[buildroot] Enable power button in BBB

How to enable power button in Beaglebone Black Rev C?
Here is my device tree from i2c and tps:

`

i2c0_pins: pinmux_i2c0_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda /
AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /
i2c0_scl.i2c0_scl */

;
};

&i2c0 {
pinctrl-names = “default”;
pinctrl-0 = <&i2c0_pins>;

status = “okay”;
clock-frequency = <400000>;

tps: tps@24 {
reg = <0x24>;
};

baseboard_eeprom: baseboard_eeprom@50 {
compatible = “atmel,24c256”;
reg = <0x50>;

#address-cells = <1>;
#size-cells = <1>;
baseboard_data: baseboard_data@0 {
reg = <0 0x100>;
};
};
};

&tps {
/*

  • Configure pmic to enter OFF-state instead of SLEEP-state ("RTC-only
  • mode") at poweroff. Most BeagleBone versions do not support RTC-only
  • mode and risk hardware damage if this mode is entered.

In debian, the power button get's mapped to a KEY_POWER, and systemd
initiates shutdown..

Are you using systemd in your buildroot image? If so what version?
Pre-systemd we use to use an acpi-tool to help shutdown, it wasn't the
greatest..

Regards,

Thanks for quick response.
Im using Busybox, but i can try build with systemd tomorrow.

Is there a quick way to overwrite power off sequence using busybox to make it work correctly?

Working power button isn’t nesesery im my case.

W dniu piątek, 22 maja 2020 03:21:06 UTC+2 użytkownik RobertCNelson napisał: