xref: /linux/arch/arm/boot/dts/marvell/kirkwood-iconnect.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include "kirkwood.dtsi"
5#include "kirkwood-6281.dtsi"
6
7/ {
8	model = "Iomega Iconnect";
9	compatible = "iom,iconnect-1.1", "iom,iconnect", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10
11	memory {
12		device_type = "memory";
13		reg = <0x00000000 0x10000000>;
14	};
15
16	chosen {
17		bootargs = "console=ttyS0,115200n8 earlyprintk";
18		stdout-path = &uart0;
19		linux,initrd-start = <0x4500040>;
20		linux,initrd-end   = <0x4800000>;
21	};
22
23	ocp@f1000000 {
24		pinctrl: pin-controller@10000 {
25			pmx_button_reset: pmx-button-reset {
26				marvell,pins = "mpp12";
27				marvell,function = "gpio";
28			};
29			pmx_button_otb: pmx-button-otb {
30				marvell,pins = "mpp35";
31				marvell,function = "gpio";
32			};
33			pmx_led_level: pmx-led-level {
34				marvell,pins = "mpp41";
35				marvell,function = "gpio";
36			};
37			pmx_led_power_blue: pmx-led-power-blue {
38				marvell,pins = "mpp42";
39				marvell,function = "gpio";
40			};
41			pmx_led_power_red: pmx-power-red {
42				marvell,pins = "mpp43";
43				marvell,function = "gpio";
44			};
45			pmx_led_usb1: pmx-led-usb1 {
46				marvell,pins = "mpp44";
47				marvell,function = "gpio";
48			};
49			pmx_led_usb2: pmx-led-usb2 {
50				marvell,pins = "mpp45";
51				marvell,function = "gpio";
52			};
53			pmx_led_usb3: pmx-led-usb3 {
54				marvell,pins = "mpp46";
55				marvell,function = "gpio";
56			};
57			pmx_led_usb4: pmx-led-usb4 {
58				marvell,pins = "mpp47";
59				marvell,function = "gpio";
60			};
61			pmx_led_otb: pmx-led-otb {
62				marvell,pins = "mpp48";
63				marvell,function = "gpio";
64			};
65		};
66		i2c@11000 {
67			status = "okay";
68
69			lm63: lm63@4c {
70				compatible = "national,lm63";
71				reg = <0x4c>;
72			};
73		};
74		serial@12000 {
75			status = "okay";
76		};
77	};
78
79	gpio-leds {
80		compatible = "gpio-leds";
81		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";
86
87		led-level {
88			label = "led_level";
89			gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
90			default-state = "on";
91		};
92		led-power-blue {
93			label = "power:blue";
94			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
95			default-state = "keep";
96		};
97		led-power-red {
98			label = "power:red";
99			gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
100		};
101		led-usb1 {
102			label = "usb1:blue";
103			gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
104		};
105		led-usb2 {
106			label = "usb2:blue";
107			gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
108		};
109		led-usb3 {
110			label = "usb3:blue";
111			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
112		};
113		led-usb4 {
114			label = "usb4:blue";
115			gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
116		};
117		led-otb {
118			label = "otb:blue";
119			gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
120		};
121	};
122
123	gpio_keys {
124		compatible = "gpio-keys";
125		pinctrl-0 = < &pmx_button_reset &pmx_button_otb >;
126		pinctrl-names = "default";
127
128		button-otb {
129			label = "OTB Button";
130			linux,code = <KEY_COPY>;
131			gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
132			debounce-interval = <100>;
133		};
134		button-reset {
135			label = "Reset";
136			linux,code = <KEY_RESTART>;
137			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
138			debounce-interval = <100>;
139		};
140	};
141};
142
143&nand {
144	status = "okay";
145
146	partition@0 {
147		label = "uboot";
148		reg = <0x0000000 0xc0000>;
149	};
150
151	partition@a0000 {
152		label = "env";
153		reg = <0xa0000 0x20000>;
154	};
155
156	partition@100000 {
157		label = "zImage";
158		reg = <0x100000 0x300000>;
159	};
160
161	partition@540000 {
162		label = "initrd";
163		reg = <0x540000 0x300000>;
164	};
165
166	partition@980000 {
167		label = "boot";
168		reg = <0x980000 0x1f400000>;
169	};
170};
171
172&mdio {
173	status = "okay";
174
175	ethphy0: ethernet-phy@11 {
176		reg = <11>;
177	};
178};
179
180&eth0 {
181	status = "okay";
182	ethernet0-port@0 {
183		phy-handle = <&ethphy0>;
184	};
185};
186
187&pciec {
188	status = "okay";
189};
190
191&pcie0 {
192	status = "okay";
193};
194