ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9331_8dev_carambola2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10         model = "8devices Carambola2";
11         compatible = "8dev,carambola2", "qca,ar9331";
12
13         aliases {
14                 serial0 = &uart;
15                 label-mac-device = &wmac;
16         };
17
18         leds {
19                 compatible = "gpio-leds";
20
21                 wlan {
22                         label = "carambola2:green:wlan";
23                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
24                         linux,default-trigger = "phy0tpt";
25                 };
26
27                 eth0 {
28                         label = "carambola2:orange:eth0";
29                         gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
30                 };
31
32                 eth1 {
33                         label = "carambola2:orange:eth1";
34                         gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
35                 };
36         };
37
38         keys {
39                 compatible = "gpio-keys";
40
41                 wps {
42                         label = "wps";
43                         linux,code = <KEY_WPS_BUTTON>;
44                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
45                 };
46         };
47 };
48
49 &ref {
50         clock-frequency = <40000000>;
51 };
52
53 &uart {
54         status = "okay";
55 };
56
57 &gpio {
58         status = "okay";
59 };
60
61 &usb {
62         dr_mode = "host";
63         status = "okay";
64 };
65
66 &usb_phy {
67         status = "okay";
68 };
69
70 &spi {
71         num-chipselects = <0>;
72         status = "okay";
73
74         flash@0 {
75                 compatible = "jedec,spi-nor";
76                 spi-max-frequency = <50000000>;
77                 reg = <0>;
78
79                 partitions {
80                         compatible = "fixed-partitions";
81                         #address-cells = <1>;
82                         #size-cells = <1>;
83
84                         uboot: partition@0 {
85                                 label = "u-boot";
86                                 reg = <0x000000 0x040000>;
87                                 read-only;
88                         };
89
90                         partition@40000 {
91                                 label = "u-boot-env";
92                                 reg = <0x040000 0x010000>;
93                                 read-only;
94                         };
95
96                         partition@50000 {
97                                 compatible = "denx,uimage";
98                                 label = "firmware";
99                                 reg = <0x50000 0xfa0000>;
100                         };
101
102                         art: partition@ff0000 {
103                                 label = "art";
104                                 reg = <0xff0000 0x010000>;
105                                 read-only;
106                         };
107                 };
108         };
109 };
110
111 &mdio0 {
112         status = "okay";
113 };
114
115 &eth0 {
116         status = "okay";
117         mtd-mac-address = <&art 0x0>;
118
119         gmac-config {
120                 device = <&gmac>;
121
122                 switch-phy-addr-swap = <1>;
123                 switch-phy-swap = <1>;
124         };
125 };
126
127 &eth1 {
128         status = "okay";
129         mtd-mac-address = <&art 0x6>;
130 };
131
132 &wmac {
133         status = "okay";
134         mtd-cal-data = <&art 0x1000>;
135 };