xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ib62x0.dts (revision b98a91911d24babe20600ad19697570ea335356f)
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		#address-cells = <1>;
62724ba675SRob Herring		#size-cells = <0>;
63724ba675SRob Herring		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
64724ba675SRob Herring		pinctrl-names = "default";
65724ba675SRob Herring
66*b98a9191SKrzysztof Kozlowski		button-copy {
67724ba675SRob Herring			label = "USB Copy";
68724ba675SRob Herring			linux,code = <KEY_COPY>;
69724ba675SRob Herring			gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
70724ba675SRob Herring		};
71*b98a9191SKrzysztof Kozlowski		button-reset {
72724ba675SRob Herring			label = "Reset";
73724ba675SRob Herring			linux,code = <KEY_RESTART>;
74724ba675SRob Herring			gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
75724ba675SRob Herring		};
76724ba675SRob Herring	};
77724ba675SRob Herring
78724ba675SRob Herring	gpio-leds {
79724ba675SRob Herring		compatible = "gpio-leds";
80724ba675SRob Herring		pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
81724ba675SRob Herring			     &pmx_led_usb_transfer>;
82724ba675SRob Herring		pinctrl-names = "default";
83724ba675SRob Herring
84724ba675SRob Herring		green-os {
85724ba675SRob Herring			label = "ib62x0:green:os";
86724ba675SRob Herring			gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
87724ba675SRob Herring			default-state = "keep";
88724ba675SRob Herring		};
89724ba675SRob Herring		red-os {
90724ba675SRob Herring			label = "ib62x0:red:os";
91724ba675SRob Herring			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
92724ba675SRob Herring		};
93724ba675SRob Herring		usb-copy {
94724ba675SRob Herring			label = "ib62x0:red:usb_copy";
95724ba675SRob Herring			gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
96724ba675SRob Herring		};
97724ba675SRob Herring	};
98724ba675SRob Herring
99724ba675SRob Herring	gpio_poweroff {
100724ba675SRob Herring		compatible = "gpio-poweroff";
101724ba675SRob Herring		pinctrl-0 = <&pmx_power_off>;
102724ba675SRob Herring		pinctrl-names = "default";
103724ba675SRob Herring		gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
104724ba675SRob Herring	};
105724ba675SRob Herring};
106724ba675SRob Herring
107724ba675SRob Herring&nand {
108724ba675SRob Herring	status = "okay";
109724ba675SRob Herring
110724ba675SRob Herring	partition@0 {
111724ba675SRob Herring		label = "u-boot";
112724ba675SRob Herring		reg = <0x0000000 0xe0000>;
113724ba675SRob Herring	};
114724ba675SRob Herring
115724ba675SRob Herring	partition@e0000 {
116724ba675SRob Herring		label = "u-boot environment";
117724ba675SRob Herring		reg = <0xe0000 0x20000>;
118724ba675SRob Herring	};
119724ba675SRob Herring
120724ba675SRob Herring	partition@100000 {
121724ba675SRob Herring		label = "uImage";
122724ba675SRob Herring		reg = <0x0100000 0x600000>;
123724ba675SRob Herring	};
124724ba675SRob Herring
125724ba675SRob Herring	partition@700000 {
126724ba675SRob Herring		label = "root";
127724ba675SRob Herring		reg = <0x0700000 0xf900000>;
128724ba675SRob Herring	};
129724ba675SRob Herring
130724ba675SRob Herring};
131724ba675SRob Herring
132724ba675SRob Herring&mdio {
133724ba675SRob Herring	status = "okay";
134724ba675SRob Herring
135724ba675SRob Herring	ethphy0: ethernet-phy@8 {
136724ba675SRob Herring		reg = <8>;
137724ba675SRob Herring	};
138724ba675SRob Herring};
139724ba675SRob Herring
140724ba675SRob Herring&eth0 {
141724ba675SRob Herring	status = "okay";
142724ba675SRob Herring
143724ba675SRob Herring	ethernet0-port@0 {
144724ba675SRob Herring		phy-handle = <&ethphy0>;
145724ba675SRob Herring	};
146724ba675SRob Herring};
147