#include "qcom-ipq4019.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/soc/qcom,tcsr.h>
compatible = "gpio-leds";
led_power_white: power_white {
- label = "white:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
};
led_power_orange: power_orange {
- label = "orange:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
};
led_power_blue: power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
};
label = "ART";
reg = <0x0b00000 0x0080000>;
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
- precal_art_1000: precal@1000 {
- reg = <0x1000 0x2f20>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- precal_art_5000: precal@5000 {
- reg = <0x5000 0x2f20>;
- };
+ precal_art_1000: precal@1000 {
+ reg = <0x1000 0x2f20>;
+ };
+
+ precal_art_5000: precal@5000 {
+ reg = <0x5000 0x2f20>;
+ };
- precal_art_9000: precal@9000 {
- reg = <0x5000 0x2f20>;
+ precal_art_9000: precal@9000 {
+ reg = <0x5000 0x2f20>;
+ };
};
};
label = "ORGDATA";
reg = <0x0c00000 0x0080000>;
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
- macaddr_orgdata_20: macaddr@20 {
- reg = <0x20 0x6>;
- };
- macaddr_orgdata_26: macaddr@26 {
- reg = <0x26 0x6>;
- };
- macaddr_orgdata_2c: macaddr@2c {
- reg = <0x2c 0x6>;
- };
- macaddr_orgdata_32: macaddr@32 {
- reg = <0x32 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_orgdata_20: macaddr@20 {
+ reg = <0x20 0x6>;
+ };
+ macaddr_orgdata_26: macaddr@26 {
+ reg = <0x26 0x6>;
+ };
+ macaddr_orgdata_2c: macaddr@2c {
+ reg = <0x2c 0x6>;
+ };
+ macaddr_orgdata_32: macaddr@32 {
+ reg = <0x32 0x6>;
+ };
};
};
qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
};
+&switch {
+ status = "okay";
+};
+
+&swport2 {
+ status = "okay";
+ label = "lan3";
+};
+
+&swport3 {
+ status = "okay";
+ label = "lan2";
+};
+
+&swport4 {
+ status = "okay";
+ label = "lan1";
+};
+
+&swport5 {
+ status = "okay";
+};
+
+&gmac {
+ status = "okay";
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_orgdata_20>;
+};
+
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;