How to soft Shutdown Jetson nano with GPIO

hello shubham.shah09,

you may use SW_SHUTDOWN* to perform a software shutdown control ,
please also refer to Nano PMIC device tree, it has GPIO pin for SW shutdown control with default value as high.
for example,

        i2c@7000d000 {
                nvidia,bit-bang-after-shutdown;

                max77620: max77620@3c {
                            compatible = "maxim,max77620";
                            maxim,power-shutdown-gpio-states = <1 0>;
                            low-battery-monitor {
                                maxim,low-battery-shutdown-enable;
                            };

                            max77620_default: pinmux@0 {
                                                  pin_gpio1 {
                                                          pins = "gpio1";
                                                          function = "gpio";
                                                          drive-open-drain = <1>;
                                                          maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
                                                          maxim,active-fps-power-up-slot = <0>;
                                                          maxim,active-fps-power-down-slot = <7>;
                                                  };
                            };
...
                            spmic-default-output-high {
                            gpio-hog;
                            output-high;
                            gpios = <1 0>;
                            label = "spmic-default-output-high";
                        };

BTW,
here’s a similar discussion thread for your reference, controlling Jetson Nano power button headers with Arduino.
thanks

1 Like