apm821xx: consolidate apm821xx device trees files
[openwrt/openwrt.git] / target / linux / apm821xx / dts / MR24.dts
1 /*
2 * Device Tree Source for Meraki MR24 (Ikarem)
3 *
4 * Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
5 *
6 * Based on Cisco Meraki GPL Release r23-20150601 MR24 DTS
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without
10 * any warranty of any kind, whether express or implied.
11 */
12
13 /dts-v1/;
14
15 #include "apm82181.dtsi"
16
17 / {
18 model = "Meraki MR24 Access Point";
19 compatible = "meraki,ikarem";
20
21 aliases {
22 serial0 = &UART1;
23 };
24
25 chosen {
26 linux,stdout-path = "/plb/opb/serial@ef600400";
27 };
28
29 };
30
31
32 &CRYPTO {
33 status = "okay";
34 };
35
36 &PKA {
37 status = "okay";
38 };
39
40 &TRNG {
41 status = "okay";
42 };
43
44 &EBC0 {
45 /* Ikarem has 32MB of NAND */
46 ndfc@1,0 {
47 status = "okay";
48 /* 32 MiB NAND Flash */
49 nand {
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 partition@0 {
54 label = "u-boot";
55 reg = <0x00000000 0x00170000>;
56 read-only;
57 };
58
59 partition@170000 {
60 label = "oops";
61 reg = <0x00170000 0x00010000>;
62 };
63
64 partition@180000 {
65 label = "ubi";
66 reg = <0x00180000 0x01e80000>;
67 };
68 };
69 };
70 };
71
72 &UART1 {
73 status = "okay";
74 };
75
76 &GPIO0 {
77 status = "okay";
78 };
79
80 &IIC0 {
81 status = "okay";
82 /* Boot ROM is at 0x52-0x53, do not touch */
83 /* Unknown chip at 0x6e, not sure what it is */
84 };
85
86 &EMAC0 {
87 status = "okay";
88 };
89
90 &POB0 {
91 gpio-leds {
92 compatible = "gpio-leds";
93
94 power-green {
95 label = "mr24:green:power";
96 gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
97 };
98
99 power-orange {
100 label = "mr24:orange:power";
101 gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
102 };
103
104 lan {
105 label = "mr24:green:wan";
106 gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
107 };
108
109 ssi-0 {
110 label = "mr24:green:wifi1";
111 gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
112 };
113
114 ssi-1 {
115 label = "mr24:green:wifi2";
116 gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
117 };
118
119 ssi-2 {
120 label = "mr24:green:wifi3";
121 gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
122 };
123
124 ssi-3 {
125 label = "mr24:green:wifi4";
126 gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
127 };
128 };
129
130 gpio_keys_polled {
131 compatible = "gpio-keys-polled";
132 #address-cells = <1>;
133 #size-cells = <0>;
134 poll-interval = <60>; /* 3 * 20 = 60ms */
135 autorepeat;
136
137 button@1 {
138 label = "Reset button";
139 linux,code = <KEY_RESTART>;
140 gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
141 };
142 };
143 };
144
145 &PCIE0 {
146 status = "okay";
147 };
148
149 &MSI {
150 status = "okay";
151 };