From 2ed8df9b107adc0b49a39aaf22f01961ce786918 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 12 Oct 2023 12:42:32 +0200 Subject: [PATCH] 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 --- .../boot/dts/qcom/qcom-ipq5018-eap104.dts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-eap104.dts b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-eap104.dts index fd4be4ead..ae1d8b716 100755 --- a/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-eap104.dts +++ b/feeds/ipq807x_v5.4/ipq50xx/files/arch/arm64/boot/dts/qcom/qcom-ipq5018-eap104.dts @@ -625,7 +625,24 @@ }; &soc { - gpio_keys { + 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>; pinctrl-names = "default";