Merge pull request #31 from brain-hackers/poweroff

Enable syscon-poweroff
This commit is contained in:
Takumi Sueda 2023-02-23 15:24:39 +09:00 committed by GitHub
commit 8e94255c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View File

@ -263,6 +263,12 @@
status = "okay";
};
power: power@80044000 {
poweroff: poweroff {
status = "okay";
};
};
saif1: saif@80046000 {
pinctrl-names = "default";
pinctrl-0 = <&saif1_pins_a>;

View File

@ -1114,8 +1114,16 @@
};
power: power@80044000 {
compatible = "syscon", "simple-mfd";
reg = <0x80044000 0x2000>;
status = "disabled";
poweroff: poweroff {
compatible = "syscon-poweroff";
regmap = <&power>;
offset = <0x104>;
value = <0x3e770001>;
status = "disabled";
};
};
saif1: saif@80046000 {

View File

@ -123,6 +123,9 @@ CONFIG_SPI=y
CONFIG_SPI_GPIO=m
CONFIG_SPI_MXS=y
CONFIG_GPIO_SYSFS=y
CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_SYSCON=y
CONFIG_POWER_RESET_SYSCON_POWEROFF=y
# CONFIG_HWMON is not set
CONFIG_WATCHDOG=y
CONFIG_STMP3XXX_RTC_WATCHDOG=y