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 color = <LED_COLOR_ID_BLUE>;
37 function = LED_FUNCTION_STATUS;
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 led_status_green: led-1 {
42 color = <LED_COLOR_ID_GREEN>;
43 function = LED_FUNCTION_STATUS;
44 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
47 led_status_red: led-2 {
48 color = <LED_COLOR_ID_RED>;
49 function = LED_FUNCTION_STATUS;
50 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
55 compatible = "mtd-concat";
56 devices = <&fwconcat0 &fwconcat1>;
59 compatible = "fixed-partitions";
66 compatible = "openwrt,uimage", "denx,uimage";
67 openwrt,ih-magic = <IH_MAGIC_OKLI>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <30000000>;
83 compatible = "fixed-partitions";
95 reg = <0x40000 0x10000>;
99 fwconcat0: partition@50000 {
101 reg = <0x50000 0xe30000>;
106 reg = <0xe80000 0x10000>;
109 fwconcat1: partition@e90000 {
111 reg = <0xe90000 0x160000>;
116 reg = <0xff0000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 macaddr_art_0: macaddr@0 {
128 macaddr_art_6: macaddr@6 {
132 cal_art_1000: calibration@1000 {
133 reg = <0x1000 0x440>;
144 phy-handle = <&swphy4>;
146 nvmem-cells = <&macaddr_art_0>;
147 nvmem-cell-names = "mac-address";
151 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
153 nvmem-cells = <&macaddr_art_6>;
154 nvmem-cell-names = "mac-address";
160 nvmem-cells = <&cal_art_1000>;
161 nvmem-cell-names = "calibration";