1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "jjPlus JWAP230";
11 compatible = "jjplus,jwap230", "qca,qca9558";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 label = "green:power";
25 color = <LED_COLOR_ID_GREEN>;
26 function = LED_FUNCTION_POWER;
27 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
31 color = <LED_COLOR_ID_GREEN>;
32 function-enumerator = <0>;
33 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 color = <LED_COLOR_ID_GREEN>;
38 function-enumerator = <1>;
39 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
56 compatible = "jedec,spi-nor";
58 spi-max-frequency = <25000000>;
61 compatible = "fixed-partitions";
67 reg = <0x000000 0x040000>;
73 reg = <0x040000 0x010000>;
77 compatible = "denx,uimage";
79 reg = <0x050000 0xfa0000>;
82 art: partition@ff0000 {
84 reg = <0xff0000 0x010000>;
87 compatible = "nvmem-cells";
91 macaddr_art_lan: macaddr@0 {
95 macaddr_art_wan: macaddr@6 {
99 calibration_art_wlan: calibration@1000 {
100 reg = <0x1000 0x440>;
111 compatible = "qca,ar8327";
114 qca,ar8327-initvals = <
115 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
116 0x58 0xffb7ffb7 /* LED_CTRL2 */
117 0x5c 0x03ffff00 /* LED_CTRL3 */
118 0x7c 0x0000007e /* PORT0_STATUS */
119 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
120 0x94 0x0000007e /* PORT6_STATUS */
128 nvmem-cells = <&macaddr_art_wan>;
129 nvmem-cell-names = "mac-address";
131 pll-data = <0xae000000 0x80000101 0x80001313>;
138 gmac_config: gmac-config {
152 nvmem-cells = <&macaddr_art_lan>;
153 nvmem-cell-names = "mac-address";
155 pll-data = <0x03000101 0x00000101 0x00001313>;
165 nvmem-cells = <&calibration_art_wlan>;
166 nvmem-cell-names = "calibration";