ipq806x: more dts cleanup
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8065-nbg6817.dts
index d23d57aa47233bf3f2a72f6abdf819c43d79be59..abc381a15ee5d078803fb78d7b1379a8e611d82b 100644 (file)
                        };
 
                        led_pins: led_pins {
-                               off {
-                                       pins = "gpio26", "gpio33", "gpio64";
+                               mux {
+                                       pins = "gpio9", "gpio26", "gpio33", "gpio64";
                                        function = "gpio";
                                        drive-strength = <2>;
                                        bias-pull-down;
                                };
-
-                               on {
-                                       pins = "gpio9";
-                                       function = "gpio";
-                                       drive-strength = <2>;
-                                       bias-pull-up;
-                               };
                        };
 
                        mdio0_pins: mdio0_pins {
                        };
 
                        usb0_pwr_en_pins: usb0_pwr_en_pins {
-                               pwr {
-                                       pins = "gpio14";
+                               mux {
+                                       pins = "gpio16", "gpio17";
                                        function = "gpio";
                                        drive-strength = <12>;
+                               };
+
+                               pwr {
+                                       pins = "gpio17";
                                        bias-pull-down;
                                        output-high;
                                };
 
                                ovc {
-                                       pins = "gpio15";
-                                       function = "gpio";
-                                       drive-strength = <12>;
+                                       pins = "gpio16";
                                        bias-pull-up;
-                                       output-high;
                                };
                        };
 
                        usb1_pwr_en_pins: usb1_pwr_en_pins {
-                               pwr {
-                                       pins = "gpio17";
+                               mux {
+                                       pins = "gpio14", "gpio15";
                                        function = "gpio";
                                        drive-strength = <12>;
+                               };
+
+                               pwr {
+                                       pins = "gpio14";
                                        bias-pull-down;
                                        output-high;
                                };
 
                                ovc {
-                                       pins = "gpio16";
-                                       function = "gpio";
-                                       drive-strength = <12>;
+                                       pins = "gpio15";
                                        bias-pull-up;
-                                       output-high;
                                };
                        };
                };
 
                        spi4: spi@1a280000 {
                                status = "ok";
-                               spi-max-frequency = <50000000>;
+
                                pinctrl-0 = <&spi_pins>;
                                pinctrl-names = "default";
 
                                cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
 
                                flash: m25p80@0 {
-                                       compatible = "s25fl512s";
+                                       compatible = "jedec,spi-nor";
                                        #address-cells = <1>;
                                        #size-cells = <1>;
                                        spi-max-frequency = <51200000>;
                power: power {
                        label = "nbg6817:white:power";
                        gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
+                       default-state = "keep";
                };
 
-               wifi {
-                       label = "nbg6817:amber:wifi";
+               wifi2g {
+                       label = "nbg6817:amber:wifi2g";
                        gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
                };
 
+               /* wifi2g amber from the manual is missing */
+
                wifi5g {
                        label = "nbg6817:amber:wifi5g";
                        gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
                };
+
+               /* wifi5g amber from the manual is missing */
        };
 };