mediatek: backport PWM drivers
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_ocedo_raccoon.dts
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 model = "OCEDO Raccoon";
10 compatible = "ocedo,raccoon", "qca,ar9344";
11
12 chosen {
13 bootargs = "console=ttyS0,115200n8";
14 };
15
16 aliases {
17 led-boot = &led_system;
18 led-failsafe = &led_system;
19 led-running = &led_system;
20 led-upgrade = &led_system;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 power {
27 label = "green:power";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 default-state = "on";
30 };
31
32 wlan2g {
33 label = "yellow:wlan24";
34 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
36 };
37
38 led_system: system {
39 label = "blue:sys";
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 ath9k-leds {
45 compatible = "gpio-leds";
46
47 wlan5g {
48 label = "red:wlan5";
49 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy1tpt";
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys";
56
57 reset {
58 linux,code = <KEY_RESTART>;
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 debounce-interval = <60>;
61 };
62 };
63 };
64
65 &ref {
66 clock-frequency = <40000000>;
67 };
68
69 &spi {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <25000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 uboot: partition@0 {
83 label = "u-boot";
84 reg = <0x000000 0x040000>;
85 read-only;
86 };
87
88 partition@40000 {
89 label = "u-boot-env";
90 reg = <0x040000 0x010000>;
91 };
92
93 partition@50000 {
94 compatible = "denx,uimage";
95 label = "firmware";
96 reg = <0x050000 0x740000>;
97 };
98
99 partition@790000 {
100 label = "vendor";
101 reg = <0x790000 0x740000>;
102 read-only;
103 };
104
105 partition@ed0000 {
106 label = "data";
107 reg = <0xed0000 0x110000>;
108 read-only;
109 };
110
111 partition@fe0000 {
112 label = "id";
113 reg = <0xfe0000 0x010000>;
114 read-only;
115 };
116
117 art: partition@ff0000 {
118 label = "art";
119 reg = <0xff0000 0x010000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &pcie {
127 status = "okay";
128
129 ath9k: wifi@0,0 {
130 compatible = "pci168c,0030";
131 reg = <0x0000 0 0 0 0>;
132 mtd-mac-address = <&art 0xc>;
133 qca,no-eeprom;
134 #gpio-cells = <2>;
135 gpio-controller;
136 };
137 };
138
139 &wmac {
140 status = "okay";
141
142 mtd-cal-data = <&art 0x1000>;
143 mtd-mac-address = <&art 0x6>;
144 };
145
146 &mdio0 {
147 status = "okay";
148
149 phy-mask = <0>;
150
151 phy0: ethernet-phy@0 {
152 reg = <0>;
153 };
154 };
155
156 &eth0 {
157 status = "okay";
158
159 pll-data = <0x06000000 0x00000101 0x00001313>;
160
161 mtd-mac-address = <&art 0x0>;
162
163 phy-mode = "rgmii-id";
164 phy-handle = <&phy0>;
165 };