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)"; |
Andrew Lunn | 7784350 | 2012-07-18 19:22:54 +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 | }; |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 46 | serial@12000 { |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 47 | status = "okay"; |
| 48 | }; |
| 49 | |
Andrew Lunn | 2cef1a2 | 2012-06-10 16:58:11 +0200 | [diff] [blame] | 50 | sata@80000 { |
| 51 | status = "okay"; |
| 52 | nr-ports = <2>; |
| 53 | }; |
| 54 | |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 55 | nand@3000000 { |
| 56 | status = "okay"; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 57 | pinctrl-0 = <&pmx_nand>; |
| 58 | pinctrl-names = "default"; |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 59 | |
| 60 | partition@0 { |
| 61 | label = "u-boot"; |
| 62 | reg = <0x0000000 0x100000>; |
| 63 | }; |
| 64 | |
| 65 | partition@100000 { |
| 66 | label = "uImage"; |
| 67 | reg = <0x0100000 0x600000>; |
| 68 | }; |
| 69 | |
| 70 | partition@700000 { |
| 71 | label = "root"; |
| 72 | reg = <0x0700000 0xf900000>; |
| 73 | }; |
| 74 | |
| 75 | }; |
| 76 | }; |
Andrew Lunn | c06c7ca | 2012-07-16 12:48:20 +0200 | [diff] [blame] | 77 | |
| 78 | gpio_keys { |
| 79 | compatible = "gpio-keys"; |
| 80 | #address-cells = <1>; |
| 81 | #size-cells = <0>; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 82 | pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>; |
| 83 | pinctrl-names = "default"; |
| 84 | |
Andrew Lunn | c06c7ca | 2012-07-16 12:48:20 +0200 | [diff] [blame] | 85 | button@1 { |
| 86 | label = "USB Copy"; |
| 87 | linux,code = <133>; |
| 88 | gpios = <&gpio0 29 1>; |
| 89 | }; |
| 90 | button@2 { |
| 91 | label = "Reset"; |
| 92 | linux,code = <0x198>; |
| 93 | gpios = <&gpio0 28 1>; |
| 94 | }; |
| 95 | }; |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 96 | gpio-leds { |
| 97 | compatible = "gpio-leds"; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 98 | pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green |
| 99 | &pmx_led_usb_transfer>; |
| 100 | pinctrl-names = "default"; |
Andrew Lunn | 157727d | 2012-07-17 08:14:19 +0200 | [diff] [blame] | 101 | |
| 102 | green-os { |
| 103 | label = "ib62x0:green:os"; |
| 104 | gpios = <&gpio0 25 0>; |
| 105 | linux,default-trigger = "default-on"; |
| 106 | }; |
| 107 | red-os { |
| 108 | label = "ib62x0:red:os"; |
| 109 | gpios = <&gpio0 22 0>; |
| 110 | }; |
| 111 | usb-copy { |
| 112 | label = "ib62x0:red:usb_copy"; |
| 113 | gpios = <&gpio0 27 0>; |
| 114 | }; |
| 115 | }; |
Andrew Lunn | 2104035 | 2012-11-17 09:51:06 +0100 | [diff] [blame] | 116 | gpio_poweroff { |
| 117 | compatible = "gpio-poweroff"; |
Thomas Petazzoni | df483ef | 2013-05-24 11:44:44 +0200 | [diff] [blame] | 118 | pinctrl-0 = <&pmx_power_off>; |
| 119 | pinctrl-names = "default"; |
Andrew Lunn | 2104035 | 2012-11-17 09:51:06 +0100 | [diff] [blame] | 120 | gpios = <&gpio0 24 0>; |
| 121 | }; |
| 122 | |
| 123 | |
Simon Baatz | f552036 | 2012-04-30 23:55:17 +0200 | [diff] [blame] | 124 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 125 | |
| 126 | &mdio { |
| 127 | status = "okay"; |
| 128 | |
| 129 | ethphy0: ethernet-phy@8 { |
| 130 | device_type = "ethernet-phy"; |
| 131 | reg = <8>; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | ð0 { |
| 136 | status = "okay"; |
| 137 | ethernet0-port@0 { |
| 138 | phy-handle = <ðphy0>; |
| 139 | }; |
| 140 | }; |