mtd: nand: omap: Fix comment in platform data using wrong Kconfig symbol
[linux/fpc-iii.git] / arch / arm / boot / dts / gemini-nas4220b.dts
blobf4535d635f3bcc32d7ebebd7a7328f778e145f67
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree file for the Gemini-based Raidsonic NAS IB-4220-B
4  */
6 /dts-v1/;
8 #include "gemini.dtsi"
9 #include <dt-bindings/input/input.h>
11 / {
12         model = "Raidsonic NAS IB-4220-B";
13         compatible = "raidsonic,ib-4220-b", "cortina,gemini";
14         #address-cells = <1>;
15         #size-cells = <1>;
17         memory@0 { /* 128 MB */
18                 device_type = "memory";
19                 reg = <0x00000000 0x8000000>;
20         };
22         chosen {
23                 bootargs = "console=ttyS0,19200n8";
24                 stdout-path = &uart0;
25         };
27         gpio_keys {
28                 compatible = "gpio-keys";
30                 button-setup {
31                         debounce-interval = <100>;
32                         wakeup-source;
33                         linux,code = <KEY_SETUP>;
34                         label = "Backup button";
35                         /* Conflict with TVC */
36                         gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
37                 };
38                 button-restart {
39                         debounce-interval = <100>;
40                         wakeup-source;
41                         linux,code = <KEY_RESTART>;
42                         label = "Softreset button";
43                         /* Conflict with TVC */
44                         gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
45                 };
46         };
48         leds {
49                 compatible = "gpio-leds";
50                 led-orange-hdd {
51                         label = "nas4220b:orange:hdd";
52                         /* Conflict with TVC */
53                         gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
54                         default-state = "on";
55                 };
56                 led-green-os {
57                         label = "nas4220b:green:os";
58                         /* Conflict with TVC */
59                         gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
60                         default-state = "on";
61                         linux,default-trigger = "heartbeat";
62                 };
63         };
65         mdio0: ethernet-phy {
66                 compatible = "virtual,mdio-gpio";
67                 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
68                         <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
69                 #address-cells = <1>;
70                 #size-cells = <0>;
72                 phy0: ethernet-phy@1 {
73                         reg = <1>;
74                         device_type = "ethernet-phy";
75                 };
76         };
78         soc {
79                 flash@30000000 {
80                         status = "okay";
81                         /* 16MB of flash */
82                         reg = <0x30000000 0x01000000>;
84                         partition@0 {
85                                 label = "RedBoot";
86                                 reg = <0x00000000 0x00020000>;
87                                 read-only;
88                         };
89                         partition@20000 {
90                                 label = "Kernel";
91                                 reg = <0x00020000 0x00300000>;
92                         };
93                         partition@320000 {
94                                 label = "Ramdisk";
95                                 reg = <0x00320000 0x00600000>;
96                         };
97                         partition@920000 {
98                                 label = "Application";
99                                 reg = <0x00920000 0x00600000>;
100                         };
101                         partition@f20000 {
102                                 label = "VCTL";
103                                 reg = <0x00f20000 0x00020000>;
104                                 read-only;
105                         };
106                         partition@f40000 {
107                                 label = "CurConf";
108                                 reg = <0x00f40000 0x000a0000>;
109                                 read-only;
110                         };
111                         partition@fe0000 {
112                                 label = "FIS directory";
113                                 reg = <0x00fe0000 0x00020000>;
114                                 read-only;
115                         };
116                 };
118                 syscon: syscon@40000000 {
119                         pinctrl {
120                                 /*
121                                  * gpio1dgrp cover line 28-31 otherwise used
122                                  * by TVC.
123                                  */
124                                 gpio1_default_pins: pinctrl-gpio1 {
125                                         mux {
126                                                 function = "gpio1";
127                                                 groups = "gpio1dgrp";
128                                         };
129                                 };
130                                 pinctrl-gmii {
131                                         mux {
132                                                 function = "gmii";
133                                                 groups = "gmii_gmac0_grp";
134                                         };
135                                         /* Settings come from OpenWRT, pins on SL3516 */
136                                         conf0 {
137                                                 pins = "V8 GMAC0 RXDV", "T10 GMAC1 RXDV";
138                                                 skew-delay = <0>;
139                                         };
140                                         conf1 {
141                                                 pins = "Y7 GMAC0 RXC", "Y11 GMAC1 RXC";
142                                                 skew-delay = <15>;
143                                         };
144                                         conf2 {
145                                                 pins = "T8 GMAC0 TXEN", "W11 GMAC1 TXEN";
146                                                 skew-delay = <7>;
147                                         };
148                                         conf3 {
149                                                 pins = "U8 GMAC0 TXC";
150                                                 skew-delay = <11>;
151                                         };
152                                         conf4 {
153                                                 pins = "V11 GMAC1 TXC";
154                                                 skew-delay = <10>;
155                                         };
156                                         conf5 {
157                                                 /* The data lines all have default skew */
158                                                 pins = "W8 GMAC0 RXD0", "V9 GMAC0 RXD1",
159                                                        "Y8 GMAC0 RXD2", "U9 GMAC0 RXD3",
160                                                        "T7 GMAC0 TXD0", "U6 GMAC0 TXD1",
161                                                        "V7 GMAC0 TXD2", "U7 GMAC0 TXD3",
162                                                        "Y12 GMAC1 RXD0", "V12 GMAC1 RXD1",
163                                                        "T11 GMAC1 RXD2", "W12 GMAC1 RXD3",
164                                                        "U10 GMAC1 TXD0", "Y10 GMAC1 TXD1",
165                                                        "W10 GMAC1 TXD2", "T9 GMAC1 TXD3";
166                                                 skew-delay = <7>;
167                                         };
168                                         /* Set up drive strength on GMAC0 to 16 mA */
169                                         conf6 {
170                                                 groups = "gmii_gmac0_grp";
171                                                 drive-strength = <16>;
172                                         };
173                                 };
174                         };
175                 };
177                 sata: sata@46000000 {
178                         cortina,gemini-ata-muxmode = <0>;
179                         cortina,gemini-enable-sata-bridge;
180                         status = "okay";
181                 };
183                 gpio1: gpio@4e000000 {
184                         pinctrl-names = "default";
185                         pinctrl-0 = <&gpio1_default_pins>;
186                 };
188                 ethernet@60000000 {
189                         status = "okay";
191                         ethernet-port@0 {
192                                 phy-mode = "rgmii";
193                                 phy-handle = <&phy0>;
194                         };
195                         ethernet-port@1 {
196                                 /* Not used in this platform */
197                         };
198                 };
200                 ata@63000000 {
201                         status = "okay";
202                 };
204                 ata@63400000 {
205                         status = "okay";
206                 };
208                 usb@68000000 {
209                         status = "okay";
210                 };
212                 usb@69000000 {
213                         status = "okay";
214                 };
215         };