xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ib62x0.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/dts-v1/;
3724ba675SRob Herring
4724ba675SRob Herring#include "kirkwood.dtsi"
5724ba675SRob Herring#include "kirkwood-6281.dtsi"
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
9724ba675SRob Herring	compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood";
10724ba675SRob Herring
11724ba675SRob Herring	memory {
12724ba675SRob Herring		device_type = "memory";
13724ba675SRob Herring		reg = <0x00000000 0x10000000>;
14724ba675SRob Herring	};
15724ba675SRob Herring
16724ba675SRob Herring	chosen {
17724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
18724ba675SRob Herring		stdout-path = &uart0;
19724ba675SRob Herring	};
20724ba675SRob Herring
21724ba675SRob Herring	ocp@f1000000 {
22724ba675SRob Herring		pinctrl: pin-controller@10000 {
23724ba675SRob Herring			pmx_led_os_red: pmx-led-os-red {
24724ba675SRob Herring				marvell,pins = "mpp22";
25724ba675SRob Herring				marvell,function = "gpio";
26724ba675SRob Herring			};
27724ba675SRob Herring			pmx_power_off: pmx-power-off {
28724ba675SRob Herring				marvell,pins = "mpp24";
29724ba675SRob Herring				marvell,function = "gpio";
30724ba675SRob Herring			};
31724ba675SRob Herring			pmx_led_os_green: pmx-led-os-green {
32724ba675SRob Herring				marvell,pins = "mpp25";
33724ba675SRob Herring				marvell,function = "gpio";
34724ba675SRob Herring			};
35724ba675SRob Herring			pmx_led_usb_transfer: pmx-led-usb-transfer {
36724ba675SRob Herring				marvell,pins = "mpp27";
37724ba675SRob Herring				marvell,function = "gpio";
38724ba675SRob Herring			};
39724ba675SRob Herring			pmx_button_reset: pmx-button-reset {
40724ba675SRob Herring				marvell,pins = "mpp28";
41724ba675SRob Herring				marvell,function = "gpio";
42724ba675SRob Herring			};
43724ba675SRob Herring			pmx_button_usb_copy: pmx-button-usb-copy {
44724ba675SRob Herring				marvell,pins = "mpp29";
45724ba675SRob Herring				marvell,function = "gpio";
46724ba675SRob Herring			};
47724ba675SRob Herring		};
48724ba675SRob Herring
49724ba675SRob Herring		serial@12000 {
50724ba675SRob Herring			status = "okay";
51724ba675SRob Herring		};
52724ba675SRob Herring
53724ba675SRob Herring		sata@80000 {
54724ba675SRob Herring			status = "okay";
55724ba675SRob Herring			nr-ports = <2>;
56724ba675SRob Herring		};
57724ba675SRob Herring	};
58724ba675SRob Herring
59724ba675SRob Herring	gpio_keys {
60724ba675SRob Herring		compatible = "gpio-keys";
61724ba675SRob Herring		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
62724ba675SRob Herring		pinctrl-names = "default";
63724ba675SRob Herring
64b98a9191SKrzysztof Kozlowski		button-copy {
65724ba675SRob Herring			label = "USB Copy";
66724ba675SRob Herring			linux,code = <KEY_COPY>;
67724ba675SRob Herring			gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
68724ba675SRob Herring		};
69b98a9191SKrzysztof Kozlowski		button-reset {
70724ba675SRob Herring			label = "Reset";
71724ba675SRob Herring			linux,code = <KEY_RESTART>;
72724ba675SRob Herring			gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
73724ba675SRob Herring		};
74724ba675SRob Herring	};
75724ba675SRob Herring
76724ba675SRob Herring	gpio-leds {
77724ba675SRob Herring		compatible = "gpio-leds";
78724ba675SRob Herring		pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
79724ba675SRob Herring			     &pmx_led_usb_transfer>;
80724ba675SRob Herring		pinctrl-names = "default";
81724ba675SRob Herring
82*9d0120b7SKrzysztof Kozlowski		led-green-os {
83724ba675SRob Herring			label = "ib62x0:green:os";
84724ba675SRob Herring			gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
85724ba675SRob Herring			default-state = "keep";
86724ba675SRob Herring		};
87*9d0120b7SKrzysztof Kozlowski		led-red-os {
88724ba675SRob Herring			label = "ib62x0:red:os";
89724ba675SRob Herring			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
90724ba675SRob Herring		};
91*9d0120b7SKrzysztof Kozlowski		led-usb-copy {
92724ba675SRob Herring			label = "ib62x0:red:usb_copy";
93724ba675SRob Herring			gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
94724ba675SRob Herring		};
95724ba675SRob Herring	};
96724ba675SRob Herring
97724ba675SRob Herring	gpio_poweroff {
98724ba675SRob Herring		compatible = "gpio-poweroff";
99724ba675SRob Herring		pinctrl-0 = <&pmx_power_off>;
100724ba675SRob Herring		pinctrl-names = "default";
101724ba675SRob Herring		gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
102724ba675SRob Herring	};
103724ba675SRob Herring};
104724ba675SRob Herring
105724ba675SRob Herring&nand {
106724ba675SRob Herring	status = "okay";
107724ba675SRob Herring
108724ba675SRob Herring	partition@0 {
109724ba675SRob Herring		label = "u-boot";
110724ba675SRob Herring		reg = <0x0000000 0xe0000>;
111724ba675SRob Herring	};
112724ba675SRob Herring
113724ba675SRob Herring	partition@e0000 {
114724ba675SRob Herring		label = "u-boot environment";
115724ba675SRob Herring		reg = <0xe0000 0x20000>;
116724ba675SRob Herring	};
117724ba675SRob Herring
118724ba675SRob Herring	partition@100000 {
119724ba675SRob Herring		label = "uImage";
120724ba675SRob Herring		reg = <0x0100000 0x600000>;
121724ba675SRob Herring	};
122724ba675SRob Herring
123724ba675SRob Herring	partition@700000 {
124724ba675SRob Herring		label = "root";
125724ba675SRob Herring		reg = <0x0700000 0xf900000>;
126724ba675SRob Herring	};
127724ba675SRob Herring
128724ba675SRob Herring};
129724ba675SRob Herring
130724ba675SRob Herring&mdio {
131724ba675SRob Herring	status = "okay";
132724ba675SRob Herring
133724ba675SRob Herring	ethphy0: ethernet-phy@8 {
134724ba675SRob Herring		reg = <8>;
135724ba675SRob Herring	};
136724ba675SRob Herring};
137724ba675SRob Herring
138724ba675SRob Herring&eth0 {
139724ba675SRob Herring	status = "okay";
140724ba675SRob Herring
141724ba675SRob Herring	ethernet0-port@0 {
142724ba675SRob Herring		phy-handle = <&ethphy0>;
143724ba675SRob Herring	};
144724ba675SRob Herring};
145