ipq40xx: convert to new LED color/function format where possible
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-cap-ac.dts
index b18ba4d46a27984559a8b22e9d429843fcfc98c9..388b2dd59084161df14857c7aa7167e7f2a680b6 100644 (file)
@@ -4,6 +4,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
                watchdog@b017000 {
                        status = "okay";
                };
-
-               ess-switch@c000000 {
-                       status = "okay";
-               };
-
-               edma@c080000 {
-                       status = "okay";
-                       qcom,poll_required = <0>;
-                       qcom,num_gmac = <1>;
-               };
        };
 
        keys {
@@ -93,7 +84,8 @@
                compatible = "gpio-leds";
 
                power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                };
        status = "okay";
 };
 
-&gmac0 {
-       vlan_tag = <0 0x3f>;
-};
-
 &ethphy3 {
        gpio-controller;
        #gpio-cells = <2>;
        #gpio-cells = <2>;
 };
 
+&gmac {
+       status = "okay";
+};
+
+&switch {
+       status = "okay";
+};
+
+&swport4 {
+       status = "okay";
+
+       label = "lan";
+};
+
+&swport5 {
+       status = "okay";
+};
+
 &wifi0 {
        status = "okay";