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/mtd/partitions/uimage.h>
10 model = "Letv LBA-047-CH";
11 compatible = "letv,lba-047-ch", "qca,qca9531";
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_red;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
32 compatible = "gpio-leds";
34 pinctrl-names = "default";
35 pinctrl-0 = <&led_wan_pin>;
37 led_status_blue: status_blue {
38 label = "blue:status";
39 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 led_status_red: status_red {
44 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
49 compatible = "mtd-concat";
50 devices = <&fwconcat0 &fwconcat1>;
53 compatible = "fixed-partitions";
60 compatible = "openwrt,uimage", "denx,uimage";
61 openwrt,ih-magic = <IH_MAGIC_OKLI>;
68 /* GPIO 4: LED_LINK_5 (WAN) */
69 led_wan_pin: pinmux_led_wan_pin {
70 pinctrl-single,bits = <0x04 0x0000002d 0x000000ff>;
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <50000000>;
84 compatible = "fixed-partitions";
96 reg = <0x40000 0x10000>;
100 fwconcat0: partition@50000 {
102 reg = <0x50000 0xe30000>;
107 reg = <0xe80000 0x10000>;
110 fwconcat1: partition@e90000 {
112 reg = <0xe90000 0x160000>;
115 art: partition@ff0000 {
117 reg = <0xff0000 0x10000>;
127 phy-handle = <&swphy4>;
129 nvmem-cells = <&macaddr_art_0>;
130 nvmem-cell-names = "mac-address";
134 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
136 nvmem-cells = <&macaddr_art_6>;
137 nvmem-cell-names = "mac-address";
143 mtd-cal-data = <&art 0x1000>;
147 compatible = "nvmem-cells";
148 #address-cells = <1>;
151 macaddr_art_0: macaddr@0 {
155 macaddr_art_6: macaddr@6 {