1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
21 linux,code = <KEY_WPS_BUTTON>;
22 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
34 compatible = "gpio-leds";
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
43 function = LED_FUNCTION_WPS;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
49 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <50000000>;
70 compatible = "fixed-partitions";
76 reg = <0x000000 0x40000>;
82 reg = <0x040000 0x10000>;
88 reg = <0x050000 0x10000>;
94 reg = <0x060000 0x10000>;
100 reg = <0x070000 0x10000>;
105 compatible = "seama";
107 reg = <0x080000 0xf50000>;
110 art: partition@fd0000 {
112 reg = <0xfd0000 0x010000>;
118 reg = <0xfe0000 0x20000>;
128 phy0: ethernet-phy@0 {
130 qca,mib-poll-interval = <500>;
131 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
133 qca,ar8327-initvals = <
134 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
135 0x10 0x81000080 /* POWER_ON_STRAP */
136 0x50 0xcc35cc35 /* LED_CTRL0 */
137 0x54 0xcb37cb37 /* LED_CTRL1 */
138 0x58 0x00000000 /* LED_CTRL2 */
139 0x5c 0x00f3cf00 /* LED_CTRL3 */
140 0x7c 0x0000007e /* PORT0_STATUS */
148 pll-data = <0x03000101 0x00000101 0x00001919>;
151 phy-handle = <&phy0>;