ipq807x: v5.4: eap104: export MCU related pins

Export MCU related 'reset' and 'serial bootloader' pins in sysfs using
'gpio-export' as 'mcu-enable' and 'mcu-bootloader'.

Default configuration of MCU related pins will keep MCU in reset state,
with the serial bootloader enabled.

While at it, fix also trailing white space error in 'gpio_keys' node.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
Piotr Dymacz
2023-10-12 12:42:32 +02:00
committed by John Crispin
parent 85374fbbe6
commit 2ed8df9b10

View File

@@ -625,6 +625,23 @@
};
&soc {
gpio-export {
compatible = "gpio-export";
#size-cells = <0>;
mcu-bootloader {
gpio-export,name = "mcu-bootloader";
gpio-export,output = <0>;
gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
};
mcu-enable {
gpio-export,name = "mcu-enable";
gpio-export,output = <0>;
gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
};
};
gpio_keys {
compatible = "gpio-keys";
pinctrl-0 = <&button_pins>;