bb4b058a9a5a3ed388b0f4ead8301e4a39d74eba
[openwrt/staging/blocktrron.git] / target / linux / ath79 / dts / qca9558_sophos_ap15.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "sophos,ap15", "qca,qca9558";
10 model = "Sophos AP15";
11
12 aliases {
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_yellow;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_yellow;
17 label-mac-device = &eth0;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200n8";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 led_status_green: status_green {
28 label = "green:status";
29 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 default-state = "on";
31 };
32
33 led_status_yellow: status_yellow {
34 label = "yellow:status";
35 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 };
37 };
38 };
39
40 &pcie0 {
41 status = "okay";
42 };
43
44 &spi {
45 status = "okay";
46
47 flash@0 {
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 spi-max-frequency = <25000000>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 label = "u-boot";
59 reg = <0x000000 0x040000>;
60 read-only;
61 };
62
63 partition@40000 {
64 label = "u-boot-env";
65 reg = <0x040000 0x010000>;
66 };
67
68 art: partition@50000 {
69 label = "art";
70 reg = <0x050000 0x010000>;
71 read-only;
72 };
73
74 config: partition@60000 {
75 label = "config";
76 reg = <0x060000 0x010000>;
77 read-only;
78 };
79
80 partition@70000 {
81 compatible = "denx,uimage";
82 label = "firmware";
83 reg = <0x070000 0xf90000>;
84 };
85 };
86 };
87 };
88
89 &mdio0 {
90 status = "okay";
91
92 phy-mask = <0x10>;
93
94 phy4: ethernet-phy@4 {
95 reg = <4>;
96 eee-broken-100tx;
97 eee-broken-1000t;
98 };
99 };
100
101 &eth0 {
102 status = "okay";
103
104 pll-data = <0xa6000000 0xa0000101 0xa0001313>;
105
106 nvmem-cells = <&macaddr_config_201a>;
107 nvmem-cell-names = "mac-address";
108
109 phy-mode = "rgmii-id";
110 phy-handle = <&phy4>;
111
112 gmac_config: gmac-config {
113 device = <&gmac>;
114
115 rgmii-enabled = <1>;
116
117 rxdv-delay = <3>;
118 rxd-delay = <3>;
119 txen-delay = <3>;
120 txd-delay = <3>;
121 };
122 };
123
124 &wmac {
125 status = "okay";
126
127 mtd-cal-data = <&art 0x1000>;
128 };
129
130 &config {
131 compatible = "nvmem-cells";
132 #address-cells = <1>;
133 #size-cells = <1>;
134
135 macaddr_config_201a: macaddr@201a {
136 reg = <0x201a 0x6>;
137 };
138 };