apm821xx: consolidate apm821xx device trees files
[openwrt/openwrt.git] / target / linux / apm821xx / dts / apollo3g.dtsi
1 /*
2 * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
3 * (c) Copyright 2010 Western Digital Technologies, Inc. All Rights Reserved.
4 *
5 * This file is licensed under the terms of the GNU General Public
6 * License version 2. This program is licensed "as is" without
7 * any warranty of any kind, whether express or implied.
8 */
9
10 #include "apm82181.dtsi"
11
12 / {
13 compatible = "amcc,apollo3g";
14
15 aliases {
16 serial0 = &UART0;
17 };
18 };
19
20 &POB0 {
21 ebc {
22 nor_flash@0,0 {
23 status = "okay";
24 compatible = "amd,s29gl512n", "jedec-probe", "cfi-flash", "mtd-rom";
25 bank-width = <1>;
26 reg = <0x00000000 0x00000000 0x00080000>;
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 /* Part of bootrom - Don't use it without a jump */
32 label = "free";
33 reg = <0x00000000 0x0001e000>;
34 };
35
36 partition@1 {
37 label = "env";
38 reg = <0x0001e000 0x00002000>;
39 };
40
41 partition@2 {
42 label = "uboot";
43 reg = <0x00020000 0x00050000>;
44 };
45 };
46 };
47
48 GPIO1: gpio1@e0000000 {
49 compatible = "wd,mbl-gpio", "ti,74273";
50 reg-names = "dat";
51 reg = <0xe0000000 0x1>;
52 #gpio-cells = <2>;
53 gpio-controller;
54
55 enable-phy {
56 /* toggle to reset EMAC PHY */
57 gpio-hog;
58 line-name = "enable EMAC PHY";
59 gpios = <0 GPIO_ACTIVE_LOW>;
60 output-low;
61 };
62
63 enable-button {
64 /* Defined in u-boot as: NOT_NOR
65 * "enables features other than NOR
66 * specifically, the buffer at CS2"
67 * (button).
68 *
69 * Note: This option is disabled as
70 * it prevents the system from being
71 * rebooted successfully.
72 */
73
74 gpio-hog;
75 line-name = "Enable Reset Button, disable NOR";
76 gpios = <1 GPIO_ACTIVE_HIGH>;
77 output-low;
78 };
79
80 enable-usb {
81 gpio-hog;
82 line-name = "Power USB Core";
83 gpios = <2 GPIO_ACTIVE_LOW>;
84 output-low;
85 status = "disabled";
86 };
87
88 enable-port1 {
89 gpio-hog;
90 line-name = "Power Drive Port 1";
91 gpios = <3 GPIO_ACTIVE_LOW>;
92 output-low;
93 };
94
95 enable-port0 {
96 gpio-hog;
97 line-name = "Power Drive Port 0";
98 gpios = <7 GPIO_ACTIVE_LOW>;
99 output-low;
100 status = "disabled";
101 };
102 };
103
104 GPIO2: gpio2@e0100000 {
105 compatible = "wd,mbl-gpio", "ti,74244";
106 reg-names = "dat";
107 reg = <0xe0100000 0x1>;
108 #gpio-cells = <2>;
109 gpio-controller;
110 no-output;
111 };
112
113 gpio-leds {
114 compatible = "gpio-leds";
115
116 power-red {
117 label = "mbl:red:power";
118 gpios = <&GPIO1 4 GPIO_ACTIVE_HIGH>;
119 linux,default-trigger = "panic";
120 };
121
122 power-green {
123 label = "mbl:green:power";
124 gpios = <&GPIO1 5 GPIO_ACTIVE_HIGH>;
125 };
126
127 power-blue {
128 label = "mbl:blue:power";
129 gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>;
130 };
131 };
132
133 gpio_keys_polled {
134 compatible = "gpio-keys-polled";
135 #address-cells = <1>;
136 #size-cells = <0>;
137 poll-interval = <60>; /* 3 * 20 = 60ms */
138 autorepeat;
139
140 button@1 {
141 label = "Reset button";
142 linux,code = <KEY_RESTART>;
143 gpios = <&GPIO2 2 GPIO_ACTIVE_LOW>;
144 };
145 };
146 };
147
148 &CRYPTO {
149 status = "okay";
150 };
151
152 &PKA {
153 status = "okay";
154 };
155
156 &TRNG {
157 status = "okay";
158 };
159
160 &SATA1 {
161 status = "okay";
162 };
163
164 &UART0 {
165 status = "okay";
166 };
167
168 &EMAC0 {
169 status = "okay";
170 };
171
172 &SATA1 {
173 status = "okay";
174 };