ipq40xx: convert to new LED color/function format where possible
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-fritzbox-7530.dts
index af79020121ac332fa9126b2cce79576e077dc800..a118bdf26bd6ca6e6a2365fe35f8a2546dd141b5 100644 (file)
@@ -3,17 +3,22 @@
 #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>
 
 / {
        model = "AVM FRITZ!Box 7530";
        compatible = "avm,fritzbox-7530";
 
+       chosen {
+               bootargs-append = " coherent_pool=4M";
+       };
+
        aliases {
                led-boot = &power_green;
                led-failsafe = &info_red;
                led-running = &power_green;
-               led-upgrade = &info_green;
+               led-upgrade = &info_red;
        };
 
        soc {
                        gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
                };
 
-               info_green: info {
+               info {
                        label = "green:info";
                        gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                power_green: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
                };
        };
        status = "okay";
 };
 
+&gmac {
+       status = "okay";
+};
+
+&switch {
+       status = "okay";
+};
+
+&swport1 {
+       status = "okay";
+};
+
+&swport2 {
+       status = "okay";
+};
+
+&swport3 {
+       status = "okay";
+};
+
+&swport4 {
+       status = "okay";
+};
+
 &wifi0 {
        status = "okay";
        qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";