nPM PowerUp Overlay generation

Hi,

I'm currently using nPM PowerUp(version 2.0.0) to generate the nPM1300 configuration.

I noticed that in the generated overlay the GPIOs configuration is missing.

For example, in nPM PowerUp, I configured GPIO1 as output interrupt but the associated configuration is not generated in the overlay. 

Is this the expected behavior ?

Best regards,

Mehdi

Parents
  • Hello Mehdi,

     nPM PowerUP application is designed to generate a devicetree overlay file that reflects the configuration set in its GUI, which can then be used in your project to initialize the nPM1300 features via Zephyr driver ((+) Extend battery life and add USB-C charging with the nPM1300 - Blogs - Nordic Blog - Nordic DevZone

    ''For example, in nPM PowerUp, I configured GPIO1 as output interrupt but the associated configuration is not generated in the overlay''  which samples you are working on and which board is connected to nPM1300? I think to connect the GPIO output of PMIC to the GPIO pin of connected board. you have to mention this in the overlay file.

    For example, the following overlay is from npm1300_one_button sample. 

    /*
     * Copyright (c) 2023 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
     */
    
    #include <dt-bindings/regulator/npm1300.h>
    
    &i2c0_default {
    	group1 {
    		bias-pull-up;
    	};
    };
    
    &npm1300_ek_ldo1 {
    	regulator-initial-mode = <NPM1300_LDSW_MODE_LDSW>;
    };
    
    &npm1300_ek_pmic {
    	host-int-gpios = <&gpio1 12 0>;
    	pmic-int-pin = <3>;
    };
    
     

    GPIO1 (P1.12) on the nRF52840 is connected to GPIO3 on the nPM1300. This connection is used for the nPM1300 to signal interrupts (such as button events) to the nRF52840 host MCU. This overlay configures the connection, so the firmware knows which pin to monitor for PMIC events.

    Thanks.

    BR

    Kazi

     

Reply
  • Hello Mehdi,

     nPM PowerUP application is designed to generate a devicetree overlay file that reflects the configuration set in its GUI, which can then be used in your project to initialize the nPM1300 features via Zephyr driver ((+) Extend battery life and add USB-C charging with the nPM1300 - Blogs - Nordic Blog - Nordic DevZone

    ''For example, in nPM PowerUp, I configured GPIO1 as output interrupt but the associated configuration is not generated in the overlay''  which samples you are working on and which board is connected to nPM1300? I think to connect the GPIO output of PMIC to the GPIO pin of connected board. you have to mention this in the overlay file.

    For example, the following overlay is from npm1300_one_button sample. 

    /*
     * Copyright (c) 2023 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
     */
    
    #include <dt-bindings/regulator/npm1300.h>
    
    &i2c0_default {
    	group1 {
    		bias-pull-up;
    	};
    };
    
    &npm1300_ek_ldo1 {
    	regulator-initial-mode = <NPM1300_LDSW_MODE_LDSW>;
    };
    
    &npm1300_ek_pmic {
    	host-int-gpios = <&gpio1 12 0>;
    	pmic-int-pin = <3>;
    };
    
     

    GPIO1 (P1.12) on the nRF52840 is connected to GPIO3 on the nPM1300. This connection is used for the nPM1300 to signal interrupts (such as button events) to the nRF52840 host MCU. This overlay configures the connection, so the firmware knows which pin to monitor for PMIC events.

    Thanks.

    BR

    Kazi

     

Children
No Data
Related