Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Ezequiel Garcia | 0ab6129 | 2013-07-26 10:18:02 -0300 | [diff] [blame] | 3 | #include "kirkwood.dtsi" |
| 4 | #include "kirkwood-6281.dtsi" |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 5 | |
| 6 | / { |
| 7 | model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)"; |
Luka Perkov | 148c274 | 2013-10-03 05:06:45 +0200 | [diff] [blame] | 8 | compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 9 | |
| 10 | memory { |
| 11 | device_type = "memory"; |
| 12 | reg = <0x00000000 0x10000000>; |
| 13 | }; |
| 14 | |
| 15 | chosen { |
| 16 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
| 17 | }; |
| 18 | |
| 19 | ocp@f1000000 { |
Andrew Lunn | d1d0c04 | 2012-11-17 17:00:52 +0100 | [diff] [blame] | 20 | pinctrl: pinctrl@10000 { |
Andrew Lunn | d1d0c04 | 2012-11-17 17:00:52 +0100 | [diff] [blame] | 21 | pmx_led_os_red: pmx-led-os-red { |
| 22 | marvell,pins = "mpp22"; |
| 23 | marvell,function = "gpio"; |
| 24 | }; |
| 25 | pmx_power_off: pmx-power-off { |
| 26 | marvell,pins = "mpp24"; |
| 27 | marvell,function = "gpio"; |
| 28 | }; |
| 29 | pmx_led_os_green: pmx-led-os-green { |
| 30 | marvell,pins = "mpp25"; |
| 31 | marvell,function = "gpio"; |
| 32 | }; |
| 33 | pmx_led_usb_transfer: pmx-led-usb-transfer { |
| 34 | marvell,pins = "mpp27"; |
| 35 | marvell,function = "gpio"; |
| 36 | }; |
| 37 | pmx_button_reset: pmx-button-reset { |
| 38 | marvell,pins = "mpp28"; |
| 39 | marvell,function = "gpio"; |
| 40 | }; |
| 41 | pmx_button_usb_copy: pmx-button-usb-copy { |
| 42 | marvell,pins = "mpp29"; |
| 43 | marvell,function = "gpio"; |
| 44 | }; |
| 45 | }; |
Luka Perkov | 148c274 | 2013-10-03 05:06:45 +0200 | [diff] [blame] | 46 | |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 47 | serial@12000 { |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 48 | status = "okay"; |
| 49 | }; |
| 50 | |
Andrew Lunn | 2cef1a2 | 2012-06-10 16:58:11 +0200 | [diff] [blame] | 51 | sata@80000 { |
| 52 | status = "okay"; |
| 53 | nr-ports = <2>; |
| 54 | }; |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 55 | }; |
Andrew Lunn | c06c7ca | 2012-07-16 12:48:20 +0200 | [diff] [blame] | 56 | |
| 57 | gpio_keys { |
| 58 | compatible = "gpio-keys"; |
| 59 | #address-cells = <1>; |
| 60 | #size-cells = <0>; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 61 | pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>; |
| 62 | pinctrl-names = "default"; |
| 63 | |
Andrew Lunn | c06c7ca | 2012-07-16 12:48:20 +0200 | [diff] [blame] | 64 | button@1 { |
| 65 | label = "USB Copy"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 66 | linux,code = <KEY_COPY>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 67 | gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
Andrew Lunn | c06c7ca | 2012-07-16 12:48:20 +0200 | [diff] [blame] | 68 | }; |
| 69 | button@2 { |
| 70 | label = "Reset"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 71 | linux,code = <KEY_RESTART>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 72 | gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
Andrew Lunn | c06c7ca | 2012-07-16 12:48:20 +0200 | [diff] [blame] | 73 | }; |
| 74 | }; |
Luka Perkov | 148c274 | 2013-10-03 05:06:45 +0200 | [diff] [blame] | 75 | |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 76 | gpio-leds { |
| 77 | compatible = "gpio-leds"; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 78 | pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green |
| 79 | &pmx_led_usb_transfer>; |
| 80 | pinctrl-names = "default"; |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 81 | |
| 82 | green-os { |
| 83 | label = "ib62x0:green:os"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 84 | gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
Jason Cooper | dcdf14c | 2013-10-14 17:37:55 +0000 | [diff] [blame] | 85 | default-state = "keep"; |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 86 | }; |
| 87 | red-os { |
| 88 | label = "ib62x0:red:os"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 89 | gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 90 | }; |
| 91 | usb-copy { |
| 92 | label = "ib62x0:red:usb_copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 93 | gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 94 | }; |
| 95 | }; |
Luka Perkov | 148c274 | 2013-10-03 05:06:45 +0200 | [diff] [blame] | 96 | |
Andrew Lunn | 2104035 | 2012-11-17 09:51:06 +0100 | [diff] [blame] | 97 | gpio_poweroff { |
| 98 | compatible = "gpio-poweroff"; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 99 | pinctrl-0 = <&pmx_power_off>; |
| 100 | pinctrl-names = "default"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 101 | gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 2104035 | 2012-11-17 09:51:06 +0100 | [diff] [blame] | 102 | }; |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 103 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 104 | |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 105 | &nand { |
| 106 | status = "okay"; |
| 107 | pinctrl-0 = <&pmx_nand>; |
| 108 | pinctrl-names = "default"; |
| 109 | |
| 110 | partition@0 { |
| 111 | label = "u-boot"; |
Luka Perkov | 148c274 | 2013-10-03 05:06:45 +0200 | [diff] [blame] | 112 | reg = <0x0000000 0xe0000>; |
| 113 | }; |
| 114 | |
| 115 | partition@e0000 { |
| 116 | label = "u-boot environment"; |
| 117 | reg = <0xe0000 0x100000>; |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 118 | }; |
| 119 | |
| 120 | partition@100000 { |
| 121 | label = "uImage"; |
| 122 | reg = <0x0100000 0x600000>; |
| 123 | }; |
| 124 | |
| 125 | partition@700000 { |
| 126 | label = "root"; |
| 127 | reg = <0x0700000 0xf900000>; |
| 128 | }; |
| 129 | |
| 130 | }; |
| 131 | |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 132 | &mdio { |
| 133 | status = "okay"; |
| 134 | |
| 135 | ethphy0: ethernet-phy@8 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 136 | reg = <8>; |
| 137 | }; |
| 138 | }; |
| 139 | |
| 140 | ð0 { |
| 141 | status = "okay"; |
Luka Perkov | 148c274 | 2013-10-03 05:06:45 +0200 | [diff] [blame] | 142 | |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 143 | ethernet0-port@0 { |
| 144 | phy-handle = <ðphy0>; |
| 145 | }; |
| 146 | }; |