blob: 4a512d80912c7bb6e62447853a73ca2c85a061d1 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +02002/dts-v1/;
3
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03004#include "kirkwood.dtsi"
5#include "kirkwood-6281.dtsi"
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +02006
7/ {
8 model = "Iomega Iconnect";
Andrew Lunn77843502012-07-18 19:22:54 +02009 compatible = "iom,iconnect-1.1", "iom,iconnect", "marvell,kirkwood-88f6281", "marvell,kirkwood";
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020010
11 memory {
12 device_type = "memory";
13 reg = <0x00000000 0x10000000>;
14 };
15
16 chosen {
Arnaud Patard (Rtp)2eecb472012-08-05 22:39:13 +020017 bootargs = "console=ttyS0,115200n8 earlyprintk";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +020018 stdout-path = &uart0;
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020019 linux,initrd-start = <0x4500040>;
20 linux,initrd-end = <0x4800000>;
21 };
22
23 ocp@f1000000 {
Sebastian Hesselbartha94839692014-04-30 14:56:32 +020024 pinctrl: pin-controller@10000 {
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020025 pmx_button_reset: pmx-button-reset {
Andrew Lunn2601c252012-11-17 17:00:47 +010026 marvell,pins = "mpp12";
27 marvell,function = "gpio";
28 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020029 pmx_button_otb: pmx-button-otb {
Andrew Lunn2601c252012-11-17 17:00:47 +010030 marvell,pins = "mpp35";
31 marvell,function = "gpio";
32 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020033 pmx_led_level: pmx-led-level {
Andrew Lunn2601c252012-11-17 17:00:47 +010034 marvell,pins = "mpp41";
35 marvell,function = "gpio";
36 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020037 pmx_led_power_blue: pmx-led-power-blue {
Andrew Lunn2601c252012-11-17 17:00:47 +010038 marvell,pins = "mpp42";
39 marvell,function = "gpio";
40 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020041 pmx_led_power_red: pmx-power-red {
Andrew Lunn2601c252012-11-17 17:00:47 +010042 marvell,pins = "mpp43";
43 marvell,function = "gpio";
44 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020045 pmx_led_usb1: pmx-led-usb1 {
Andrew Lunn2601c252012-11-17 17:00:47 +010046 marvell,pins = "mpp44";
47 marvell,function = "gpio";
48 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020049 pmx_led_usb2: pmx-led-usb2 {
Andrew Lunn2601c252012-11-17 17:00:47 +010050 marvell,pins = "mpp45";
51 marvell,function = "gpio";
52 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020053 pmx_led_usb3: pmx-led-usb3 {
Andrew Lunn2601c252012-11-17 17:00:47 +010054 marvell,pins = "mpp46";
55 marvell,function = "gpio";
56 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020057 pmx_led_usb4: pmx-led-usb4 {
Andrew Lunn2601c252012-11-17 17:00:47 +010058 marvell,pins = "mpp47";
59 marvell,function = "gpio";
60 };
Thomas Petazzoni40eb4412013-05-24 11:44:45 +020061 pmx_led_otb: pmx-led-otb {
Andrew Lunn2601c252012-11-17 17:00:47 +010062 marvell,pins = "mpp48";
63 marvell,function = "gpio";
64 };
65 };
Andrew Lunn48135a62012-07-16 12:54:58 +020066 i2c@11000 {
67 status = "okay";
68
69 lm63: lm63@4c {
70 compatible = "national,lm63";
71 reg = <0x4c>;
72 };
73 };
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020074 serial@12000 {
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020075 status = "ok";
76 };
77 };
Arnaud Patard (Rtp)2eecb472012-08-05 22:39:13 +020078
Andrew Lunn258f3672012-07-17 08:26:11 +020079 gpio-leds {
80 compatible = "gpio-leds";
Thomas Petazzoniedd27182013-05-24 11:44:46 +020081 pinctrl-0 = < &pmx_led_level &pmx_led_power_blue
82 &pmx_led_power_red &pmx_led_usb1
83 &pmx_led_usb2 &pmx_led_usb3
84 &pmx_led_usb4 &pmx_led_otb >;
85 pinctrl-names = "default";
Andrew Lunn258f3672012-07-17 08:26:11 +020086
87 led-level {
88 label = "led_level";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010089 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
Jason Cooperdcdf14c2013-10-14 17:37:55 +000090 default-state = "on";
Andrew Lunn258f3672012-07-17 08:26:11 +020091 };
92 power-blue {
93 label = "power:blue";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010094 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
Jason Cooperdcdf14c2013-10-14 17:37:55 +000095 default-state = "keep";
Andrew Lunn258f3672012-07-17 08:26:11 +020096 };
Arnaud Patard (Rtp)03810a22012-08-05 22:35:56 +020097 power-red {
98 label = "power:red";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010099 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
Arnaud Patard (Rtp)03810a22012-08-05 22:35:56 +0200100 };
Andrew Lunn258f3672012-07-17 08:26:11 +0200101 usb1 {
102 label = "usb1:blue";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100103 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
Andrew Lunn258f3672012-07-17 08:26:11 +0200104 };
105 usb2 {
106 label = "usb2:blue";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100107 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
Andrew Lunn258f3672012-07-17 08:26:11 +0200108 };
109 usb3 {
110 label = "usb3:blue";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100111 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
Andrew Lunn258f3672012-07-17 08:26:11 +0200112 };
113 usb4 {
114 label = "usb4:blue";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100115 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
Andrew Lunn258f3672012-07-17 08:26:11 +0200116 };
117 otb {
118 label = "otb:blue";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100119 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
Andrew Lunn258f3672012-07-17 08:26:11 +0200120 };
121 };
Arnaud Patard (Rtp)17ba0222012-08-05 22:39:12 +0200122
123 gpio_keys {
124 compatible = "gpio-keys";
125 #address-cells = <1>;
126 #size-cells = <0>;
Thomas Petazzoniedd27182013-05-24 11:44:46 +0200127 pinctrl-0 = < &pmx_button_reset &pmx_button_otb >;
128 pinctrl-names = "default";
129
Andrew Lunn395c7552016-04-03 04:03:43 +0200130 otb {
Arnaud Patard (Rtp)17ba0222012-08-05 22:39:12 +0200131 label = "OTB Button";
Andrew Lunn23301192013-12-04 16:51:38 +0100132 linux,code = <KEY_COPY>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100133 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
Arnaud Patard (Rtp)17ba0222012-08-05 22:39:12 +0200134 debounce-interval = <100>;
135 };
Andrew Lunn395c7552016-04-03 04:03:43 +0200136 reset {
Arnaud Patard (Rtp)17ba0222012-08-05 22:39:12 +0200137 label = "Reset";
Andrew Lunn23301192013-12-04 16:51:38 +0100138 linux,code = <KEY_RESTART>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +0100139 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
Arnaud Patard (Rtp)17ba0222012-08-05 22:39:12 +0200140 debounce-interval = <100>;
141 };
142 };
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +0200143};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200144
Jason Gunthorpe7045ff52013-09-17 12:44:33 -0600145&nand {
146 status = "okay";
147
148 partition@0 {
149 label = "uboot";
150 reg = <0x0000000 0xc0000>;
151 };
152
153 partition@a0000 {
154 label = "env";
155 reg = <0xa0000 0x20000>;
156 };
157
158 partition@100000 {
159 label = "zImage";
160 reg = <0x100000 0x300000>;
161 };
162
163 partition@540000 {
164 label = "initrd";
165 reg = <0x540000 0x300000>;
166 };
167
168 partition@980000 {
169 label = "boot";
170 reg = <0x980000 0x1f400000>;
171 };
172};
173
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200174&mdio {
175 status = "okay";
176
177 ethphy0: ethernet-phy@11 {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +0200178 reg = <11>;
179 };
180};
181
182&eth0 {
183 status = "okay";
184 ethernet0-port@0 {
185 phy-handle = <&ethphy0>;
186 };
187};
Andrew Lunneb13cf82016-04-03 04:03:47 +0200188
189&pciec {
190 status = "okay";
191};
192
193&pcie0 {
194 status = "okay";
195};