1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 model = "Letv LBA-047-CH";
12 compatible = "letv,lba-047-ch", "qca,qca9531";
15 label-mac-device = ð0;
16 led-boot = &led_status_red;
17 led-failsafe = &led_status_blue;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_blue;
23 compatible = "gpio-keys";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
33 compatible = "gpio-leds";
35 led_status_blue: led-0 {
36 label = "blue:status";
37 color = <LED_COLOR_ID_BLUE>;
38 function = LED_FUNCTION_STATUS;
39 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 led_status_green: led-1 {
43 label = "green:status";
44 color = <LED_COLOR_ID_GREEN>;
45 function = LED_FUNCTION_STATUS;
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
49 led_status_red: led-2 {
51 color = <LED_COLOR_ID_RED>;
52 function = LED_FUNCTION_STATUS;
53 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
58 compatible = "mtd-concat";
59 devices = <&fwconcat0 &fwconcat1>;
62 compatible = "fixed-partitions";
69 compatible = "openwrt,uimage", "denx,uimage";
70 openwrt,ih-magic = <IH_MAGIC_OKLI>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <30000000>;
86 compatible = "fixed-partitions";
98 reg = <0x40000 0x10000>;
102 fwconcat0: partition@50000 {
104 reg = <0x50000 0xe30000>;
109 reg = <0xe80000 0x10000>;
112 fwconcat1: partition@e90000 {
114 reg = <0xe90000 0x160000>;
119 reg = <0xff0000 0x10000>;
123 compatible = "fixed-layout";
124 #address-cells = <1>;
127 macaddr_art_0: macaddr@0 {
131 macaddr_art_6: macaddr@6 {
135 cal_art_1000: calibration@1000 {
136 reg = <0x1000 0x440>;
147 phy-handle = <&swphy4>;
149 nvmem-cells = <&macaddr_art_0>;
150 nvmem-cell-names = "mac-address";
154 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
156 nvmem-cells = <&macaddr_art_6>;
157 nvmem-cell-names = "mac-address";
163 nvmem-cells = <&cal_art_1000>;
164 nvmem-cell-names = "calibration";