From 5db3025cd1fefdbba85408a412fb082ec8dba189 Mon Sep 17 00:00:00 2001 From: suyuan <175338101@qq.com> Date: Sun, 18 Sep 2022 22:32:47 +0800 Subject: [PATCH] Update qcom-ipq4019-z4019.dts --- .../arch/arm/boot/dts/qcom-ipq4019-z4019.dts | 98 +++++++++++-------- 1 file changed, 56 insertions(+), 42 deletions(-) diff --git a/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-z4019.dts b/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-z4019.dts index 577e40ee..e31df98b 100755 --- a/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-z4019.dts +++ b/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-z4019.dts @@ -122,11 +122,8 @@ leds { compatible = "gpio-leds"; - - power: power { - label = "green:power"; - gpios = <&tlmm 36 GPIO_ACTIVE_LOW>; - }; + pinctrl-0 = <&led_pins>; + pinctrl-names = "default"; wifi0 { label = "green:wlan0"; @@ -138,8 +135,8 @@ gpios = <&tlmm 42 GPIO_ACTIVE_LOW>; }; - 4g { - label = "green:4g"; + 4g1 { + label = "green:4g1"; gpios = <&tlmm 1 GPIO_ACTIVE_LOW>; }; @@ -153,27 +150,23 @@ gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; }; - 4gpwr { - label = "green:4gpwr"; - gpios = <&tlmm 20 GPIO_ACTIVE_LOW>; + 4g1pwr { + label = "green:4g1pwr"; + gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; }; 4g2pwr { label = "green:4g2pwr"; - gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; }; 4g3pwr { label = "green:4g3pwr"; - gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; + gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>; }; + }; - 4g2sim { - label = "green:4g2sim"; - gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; - }; - - watchdog { + watchdog { compatible = "linux,wdt-gpio"; gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; hw_algo = "toggle"; @@ -304,47 +297,68 @@ }; }; + led_pins: led_pins { + wifi1 { + pins = "gpio42"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; - power_4g_pinmux { - mux { + wifi2 { + pins = "gpio43"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + 4g1 { + pins = "gpio1"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + 4g2 { + pins = "gpio2"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + 4g3 { + pins = "gpio4"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + + power_4g1 { pins = "gpio20"; function = "gpio"; - drive-strength = <12>; - bias-pull-down; + drive-strength = <8>; + bias-pull-up; output-high; }; - }; - power_4g2_pinmux { - mux { + power_4g2 { pins = "gpio8"; function = "gpio"; - drive-strength = <12>; - bias-pull-down; + drive-strength = <8>; + bias-pull-up; output-high; }; - }; - power_4g3_pinmux { - mux { + power_4g3 { pins = "gpio9"; function = "gpio"; - drive-strength = <12>; - bias-pull-down; + drive-strength = <8>; + bias-pull-up; output-high; }; }; - power_sim_sw_pinmux { - mux { - pins = "gpio0"; - function = "gpio"; - drive-strength = <12>; - bias-disable; - output-low; - }; - }; - spi_0_pins: spi_0_pinmux { pinmux { function = "blsp_spi0";