490d3ae22767584456b2bf4ae4d1c5d8298b5037
[openwrt/staging/svanheule.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 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_config_201a: macaddr@201a {
85 reg = <0x201a 0x6>;
86 };
87 };
88 };
89
90 partition@70000 {
91 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x070000 0xf90000>;
94 };
95 };
96 };
97 };
98
99 &mdio0 {
100 status = "okay";
101
102 phy-mask = <0x10>;
103
104 phy4: ethernet-phy@4 {
105 reg = <4>;
106 eee-broken-100tx;
107 eee-broken-1000t;
108 };
109 };
110
111 &eth0 {
112 status = "okay";
113
114 pll-data = <0xa6000000 0xa0000101 0xa0001313>;
115
116 nvmem-cells = <&macaddr_config_201a>;
117 nvmem-cell-names = "mac-address";
118
119 phy-mode = "rgmii-id";
120 phy-handle = <&phy4>;
121
122 gmac_config: gmac-config {
123 device = <&gmac>;
124
125 rgmii-enabled = <1>;
126
127 rxdv-delay = <3>;
128 rxd-delay = <3>;
129 txen-delay = <3>;
130 txd-delay = <3>;
131 };
132 };
133
134 &wmac {
135 status = "okay";
136
137 mtd-cal-data = <&art 0x1000>;
138 };