1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "compex,wpj344-16m", "qca,ar9344";
11 model = "Compex WPJ344 (16MB flash)";
14 label-mac-device = ð0;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
36 label = "yellow:sig2";
37 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys";
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
63 clock-frequency = <40000000>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <25000000>;
75 compatible = "fixed-partitions";
81 reg = <0x000000 0x030000>;
85 compatible = "fixed-layout";
89 macaddr_uboot_2e010: macaddr@2e010 {
97 reg = <0x030000 0xfc0000>;
98 compatible = "denx,uimage";
101 art: partition@ff0000 {
103 reg = <0xff0000 0x010000>;
125 mtd-cal-data = <&art 0x1000>;
131 phy0: ethernet-phy@0 {
135 qca,ar8327-initvals = <
136 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
137 0x10 0x80000080 /* POWER_ON_STRAP */
138 0x50 0x00000000 /* LED_CTRL0 */
139 0x54 0xc737c737 /* LED_CTRL1 */
140 0x58 0x00000000 /* LED_CTRL2 */
141 0x5c 0x00c30c00 /* LED_CTRL3 */
142 0x7c 0x0000007e /* PORT0_STATUS */
150 pll-data = <0x06000000 0x00000101 0x00001616>;
152 nvmem-cells = <&macaddr_uboot_2e010>;
153 nvmem-cell-names = "mac-address";
156 phy-handle = <&phy0>;