]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/gemini-nas4220b.dts
Merge tag 'renesas-fixes4-for-v4.13' of https://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / arch / arm / boot / dts / gemini-nas4220b.dts
1 /*
2  * Device Tree file for the Gemini-based Raidsonic NAS IB-4220-B
3  */
4
5 /dts-v1/;
6
7 #include "gemini.dtsi"
8 #include <dt-bindings/input/input.h>
9
10 / {
11         model = "Raidsonic NAS IB-4220-B";
12         compatible = "raidsonic,ib-4220-b", "cortina,gemini";
13         #address-cells = <1>;
14         #size-cells = <1>;
15
16         memory { /* 128 MB */
17                 device_type = "memory";
18                 reg = <0x00000000 0x8000000>;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,19200n8";
23                 stdout-path = &uart0;
24         };
25
26         gpio_keys {
27                 compatible = "gpio-keys";
28                 #address-cells = <1>;
29                 #size-cells = <0>;
30
31                 button@29 {
32                         debounce_interval = <50>;
33                         wakeup-source;
34                         linux,code = <KEY_SETUP>;
35                         label = "Backup button";
36                         gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
37                 };
38                 button@31 {
39                         debounce_interval = <50>;
40                         wakeup-source;
41                         linux,code = <KEY_RESTART>;
42                         label = "Softreset button";
43                         gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
44                 };
45         };
46
47         leds {
48                 compatible = "gpio-leds";
49                 led@28 {
50                         label = "nas4220b:orange:hdd";
51                         gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
52                         default-state = "on";
53                 };
54                 led@30 {
55                         label = "nas4220b:green:os";
56                         gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
57                         default-state = "on";
58                         linux,default-trigger = "heartbeat";
59                 };
60         };
61
62         soc {
63                 flash@30000000 {
64                         status = "okay";
65                         /* 16MB of flash */
66                         reg = <0x30000000 0x01000000>;
67
68                         partition@0 {
69                                 label = "RedBoot";
70                                 reg = <0x00000000 0x00020000>;
71                                 read-only;
72                         };
73                         partition@20000 {
74                                 label = "Kernel";
75                                 reg = <0x00020000 0x00300000>;
76                         };
77                         partition@320000 {
78                                 label = "Ramdisk";
79                                 reg = <0x00320000 0x00600000>;
80                         };
81                         partition@920000 {
82                                 label = "Application";
83                                 reg = <0x00920000 0x00600000>;
84                         };
85                         partition@f20000 {
86                                 label = "VCTL";
87                                 reg = <0x00f20000 0x00020000>;
88                                 read-only;
89                         };
90                         partition@f40000 {
91                                 label = "CurConf";
92                                 reg = <0x00f40000 0x000a0000>;
93                                 read-only;
94                         };
95                         partition@fe0000 {
96                                 label = "FIS directory";
97                                 reg = <0x00fe0000 0x00020000>;
98                                 read-only;
99                         };
100                 };
101
102                 sata: sata@46000000 {
103                         cortina,gemini-ata-muxmode = <0>;
104                         cortina,gemini-enable-sata-bridge;
105                         status = "okay";
106                 };
107
108                 ata@63000000 {
109                         status = "okay";
110                 };
111         };
112 };