kirkwood-ib62x0.dts 2.7 KB
Newer Older
1 2
/dts-v1/;

3 4
#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"
5 6 7

/ {
	model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
8
	compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood";
9 10 11 12 13 14 15 16 17 18 19

	memory {
		device_type = "memory";
		reg = <0x00000000 0x10000000>;
	};

	chosen {
		bootargs = "console=ttyS0,115200n8 earlyprintk";
	};

	ocp@f1000000 {
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
		pinctrl: pinctrl@10000 {
			pmx_led_os_red: pmx-led-os-red {
				marvell,pins = "mpp22";
				marvell,function = "gpio";
			};
			pmx_power_off: pmx-power-off {
				marvell,pins = "mpp24";
				marvell,function = "gpio";
			};
			pmx_led_os_green: pmx-led-os-green {
				marvell,pins = "mpp25";
				marvell,function = "gpio";
			};
			pmx_led_usb_transfer: pmx-led-usb-transfer {
				marvell,pins = "mpp27";
				marvell,function = "gpio";
			};
			pmx_button_reset: pmx-button-reset {
				marvell,pins = "mpp28";
				marvell,function = "gpio";
			};
			pmx_button_usb_copy: pmx-button-usb-copy {
				marvell,pins = "mpp29";
				marvell,function = "gpio";
			};
		};
46

47 48 49 50
		serial@12000 {
			status = "okay";
		};

51 52 53 54
		sata@80000 {
			status = "okay";
			nr-ports = <2>;
		};
55
	};
56 57 58 59 60

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
61 62 63
		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
		pinctrl-names = "default";

64 65 66 67 68 69 70 71 72 73 74
		button@1 {
			label = "USB Copy";
			linux,code = <133>;
			gpios = <&gpio0 29 1>;
		};
		button@2 {
			label = "Reset";
			linux,code = <0x198>;
			gpios = <&gpio0 28 1>;
		};
	};
75

76 77
	gpio-leds {
		compatible = "gpio-leds";
78 79 80
		pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
			     &pmx_led_usb_transfer>;
		pinctrl-names = "default";
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95

		green-os {
			label = "ib62x0:green:os";
			gpios = <&gpio0 25 0>;
			linux,default-trigger = "default-on";
		};
		red-os {
			label = "ib62x0:red:os";
			gpios = <&gpio0 22 0>;
		};
		usb-copy {
			label = "ib62x0:red:usb_copy";
			gpios = <&gpio0 27 0>;
		};
	};
96

97 98
	gpio_poweroff {
		compatible = "gpio-poweroff";
99 100
		pinctrl-0 = <&pmx_power_off>;
		pinctrl-names = "default";
101 102
		gpios = <&gpio0 24 0>;
	};
103
};
104

105 106 107 108 109 110 111
&nand {
	status = "okay";
	pinctrl-0 = <&pmx_nand>;
	pinctrl-names = "default";

	partition@0 {
		label = "u-boot";
112 113 114 115 116 117
		reg = <0x0000000 0xe0000>;
	};

	partition@e0000 {
		label = "u-boot environment";
		reg = <0xe0000 0x100000>;
118 119 120 121 122 123 124 125 126 127 128 129 130 131
	};

	partition@100000 {
		label = "uImage";
		reg = <0x0100000 0x600000>;
	};

	partition@700000 {
		label = "root";
		reg = <0x0700000 0xf900000>;
	};

};

132 133 134 135 136 137 138 139 140 141 142
&mdio {
	status = "okay";

	ethphy0: ethernet-phy@8 {
		device_type = "ethernet-phy";
		reg = <8>;
	};
};

&eth0 {
	status = "okay";
143

144 145 146 147
	ethernet0-port@0 {
		phy-handle = <&ethphy0>;
	};
};