diff --git a/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-nhx4019.dts b/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-nhx4019.dts index eabfd23b..a5ee4852 100755 --- a/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-nhx4019.dts +++ b/root/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-nhx4019.dts @@ -93,6 +93,24 @@ edma@c080000 { status = "okay"; }; + + m2_pins: m2_pinmux { + mux_1 { + pins = "gpio48", "gpio49", "gpio50"; + function = "gpio"; + drive-strength = <2>; + bias-none; + output-high; + }; + + mux_2 { + pins = "gpio51", "gpio42", "gpio44", "gpio46"; + function = "gpio"; + drive-strength = <2>; + bias-none; + output-high; + }; + }; }; leds { @@ -378,63 +396,54 @@ }; }; - power_pins: power_pins { - m2_pwr_en { - pins = "gpio48"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; - }; + + gpio-export { + compatible = "gpio-export"; + pinctrl-0 = <&m2_pins>; + pinctrl-names = "default"; - m2_reset { - pins = "gpio49"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; - }; + m2power { + gpio-export,name = "m2power"; + gpio-export,output = <1>; + gpio = <&tlmm 48 GPIO_ACTIVE_LOW>; + }; - m2_dc_en { - pins = "gpio51"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; - }; + m2reset { + gpio-export,name = "m2reset"; + gpio-export,output = <1>; + gpio = <&tlmm 49 GPIO_ACTIVE_HIGH>; + }; - pcie1_dc_en { - pins = "gpio50"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; - }; + m2_dc_en { + gpio-export,name = "m2_dc_en"; + gpio-export,output = <1>; + gpio = <&tlmm 51 GPIO_ACTIVE_LOW>; // high enbale + }; - pcie1_reset { - pins = "gpio42"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; - }; + pcie1_dc_en { + gpio-export,name = "pcie1_dc_en"; + gpio-export,output = <1>; + gpio = <&tlmm 50 GPIO_ACTIVE_HIGH>; + }; + + pcie1_reset { + gpio-export,name = "pcie1_reset"; + gpio-export,output = <1>; + gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>; + }; - pcie2_dc_en { - pins = "gpio46"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; - }; + pcie2_dc_en { + gpio-export,name = "pcie2_dc_en"; + gpio-export,output = <1>; + gpio = <&tlmm 46 GPIO_ACTIVE_HIGH>; + }; - pcie2_reset { - pins = "gpio43"; - function = "gpio"; - drive-strength = <2>; - bias-none; - output-high; + pcie2_reset { + gpio-export,name = "pcie2_reset"; + gpio-export,output = <1>; + gpio = <&tlmm 44 GPIO_ACTIVE_HIGH>; + }; }; - }; }; &gmac0 {