ath79: move usb led trigger node to SoC dtsi
[openwrt/staging/ldir.git] / target / linux / ath79 / dts / ar9344_dlink_dir-8x5.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 linux,code = <KEY_RESTART>;
14 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
15 debounce-interval = <60>;
16 };
17
18 wps {
19 linux,code = <KEY_WPS_BUTTON>;
20 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
21 debounce-interval = <60>;
22 };
23 };
24 };
25
26 &eth0 {
27 status = "okay";
28
29 /* default for ar934x, except for 1000M */
30 pll-data = <0x06000000 0x00000101 0x00001616>;
31
32 phy-mode = "rgmii";
33 phy-handle = <&phy0>;
34 };
35
36 &mdio0 {
37 status = "okay";
38
39 phy0: ethernet-phy@0 {
40 reg = <0>;
41 qca,ar8327-initvals = <
42 /* GPL code drop (bsp.h & athrs17_phy.c) */
43 0x10 0xc1000000 /* PWS_REG_VALUE */
44 0x04 0x07600000 /* PORT0 PAD Mode */
45 0x0c 0x01000000 /* PORT6 PAD Mode */
46 0x7c 0x0000007e /* PORT0_STATUS */
47 0x94 0x0000007e /* PORT6_STATUS */
48 >;
49 };
50 };
51
52 &pcie {
53 status = "okay";
54
55 ath9k: wifi@0,0 {
56 compatible = "pci168c,0030";
57 reg = <0x0000 0 0 0 0>;
58 qca,no-eeprom;
59 gpio-controller;
60 #gpio-cells = <2>;
61 };
62 };
63
64 &ref {
65 clock-frequency = <40000000>;
66 };
67
68 &spi {
69 status = "okay";
70
71 flash@0 {
72 compatible = "jedec,spi-nor";
73 reg = <0>;
74 spi-max-frequency = <25000000>;
75
76 partitions {
77 compatible = "fixed-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 partition@0 {
82 label = "uboot";
83 reg = <0x000000 0x010000>;
84 read-only;
85 };
86
87 partition@10000 {
88 label = "nvram";
89 reg = <0x010000 0x010000>;
90 read-only;
91 };
92
93 partition@20000 {
94 label = "firmware";
95 reg = <0x020000 0xF90000>;
96 compatible = "denx,uimage";
97 };
98
99 partition@fb0000 {
100 label = "lang";
101 reg = <0xfb0000 0x030000>;
102 read-only;
103 };
104
105 partition@fe0000 {
106 label = "mac";
107 reg = <0xfe0000 0x010000>;
108 read-only;
109 };
110
111 partition@ff0000 {
112 label = "art";
113 reg = <0xff0000 0x010000>;
114 read-only;
115 };
116 };
117 };
118 };
119
120 &usb {
121 status = "okay";
122 };
123
124 &usb_phy {
125 status = "okay";
126 };
127
128 &wmac {
129 status = "okay";
130 qca,no-eeprom;
131 };