Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [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-6282.dtsi" |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 5 | |
| 6 | / { |
| 7 | model = "Plat'Home OpenBlocksA6"; |
| 8 | compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "marvell,kirkwood"; |
| 9 | |
| 10 | memory { |
| 11 | device_type = "memory"; |
| 12 | reg = <0x00000000 0x20000000>; |
| 13 | }; |
| 14 | |
| 15 | chosen { |
| 16 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 17 | stdout-path = &uart0; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | ocp@f1000000 { |
| 21 | serial@12000 { |
Sebastian Hesselbarth | 9f2339a | 2014-04-30 14:56:36 +0200 | [diff] [blame] | 22 | status = "okay"; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | serial@12100 { |
Sebastian Hesselbarth | 9f2339a | 2014-04-30 14:56:36 +0200 | [diff] [blame] | 26 | status = "okay"; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 27 | }; |
| 28 | |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 29 | sata@80000 { |
| 30 | nr-ports = <1>; |
| 31 | status = "okay"; |
| 32 | }; |
Nobuhiro Iwamatsu | 1fd7b4d | 2012-11-23 06:30:10 +0900 | [diff] [blame] | 33 | |
| 34 | i2c@11100 { |
| 35 | status = "okay"; |
| 36 | |
| 37 | s35390a: s35390a@30 { |
Andrew Lunn | dcdf9cf | 2014-03-22 13:46:00 +0100 | [diff] [blame] | 38 | compatible = "sii,s35390a"; |
Nobuhiro Iwamatsu | 1fd7b4d | 2012-11-23 06:30:10 +0900 | [diff] [blame] | 39 | reg = <0x30>; |
| 40 | }; |
| 41 | }; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 42 | |
Sebastian Hesselbarth | a948396 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 43 | pinctrl: pin-controller@10000 { |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 44 | pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 45 | pinctrl-names = "default"; |
| 46 | |
| 47 | pmx_uart0: pmx-uart0 { |
| 48 | marvell,pins = "mpp10", "mpp11", "mpp15", |
| 49 | "mpp16"; |
| 50 | marvell,function = "uart0"; |
| 51 | }; |
| 52 | |
| 53 | pmx_uart1: pmx-uart1 { |
| 54 | marvell,pins = "mpp13", "mpp14", "mpp8", |
| 55 | "mpp9"; |
| 56 | marvell,function = "uart1"; |
| 57 | }; |
| 58 | |
| 59 | pmx_sysrst: pmx-sysrst { |
| 60 | marvell,pins = "mpp6"; |
| 61 | marvell,function = "sysrst"; |
| 62 | }; |
| 63 | |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 64 | pmx_dip_switches: pmx-dip-switches { |
| 65 | marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23"; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 66 | marvell,function = "gpio"; |
| 67 | }; |
| 68 | |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 69 | pmx_gpio_header: pmx-gpio-header { |
| 70 | marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27", |
| 71 | "mpp28", "mpp29", "mpp30", "mpp31"; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 72 | marvell,function = "gpio"; |
| 73 | }; |
| 74 | |
| 75 | pmx_gpio_init: pmx-init { |
| 76 | marvell,pins = "mpp38"; |
| 77 | marvell,function = "gpio"; |
| 78 | }; |
| 79 | |
| 80 | pmx_usb_oc: pmx-usb-oc { |
| 81 | marvell,pins = "mpp39"; |
| 82 | marvell,function = "gpio"; |
| 83 | }; |
| 84 | |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 85 | pmx_leds: pmx-leds { |
| 86 | marvell,pins = "mpp41", "mpp42", "mpp43"; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 87 | marvell,function = "gpio"; |
| 88 | }; |
| 89 | }; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 90 | }; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 91 | |
| 92 | gpio-leds { |
| 93 | compatible = "gpio-leds"; |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 94 | pinctrl-0 = <&pmx_leds>; |
Thomas Petazzoni | c5a36c9 | 2013-05-24 11:44:54 +0200 | [diff] [blame] | 95 | pinctrl-names = "default"; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 96 | |
| 97 | led-red { |
| 98 | label = "obsa6:red:stat"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 99 | gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 100 | }; |
| 101 | |
| 102 | led-green { |
| 103 | label = "obsa6:green:stat"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 104 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 105 | }; |
| 106 | |
| 107 | led-yellow { |
| 108 | label = "obsa6:yellow:stat"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 109 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 110 | }; |
| 111 | }; |
Thomas Petazzoni | 9196024a9 | 2013-05-24 11:44:58 +0200 | [diff] [blame] | 112 | |
| 113 | gpio_keys { |
| 114 | compatible = "gpio-keys"; |
| 115 | pinctrl-0 = <&pmx_gpio_init>; |
| 116 | pinctrl-names = "default"; |
| 117 | #address-cells = <1>; |
| 118 | #size-cells = <0>; |
| 119 | |
| 120 | button@1 { |
| 121 | label = "Init Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 122 | linux,code = <KEY_POWER>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 123 | gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; |
Thomas Petazzoni | 9196024a9 | 2013-05-24 11:44:58 +0200 | [diff] [blame] | 124 | }; |
| 125 | }; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 126 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 127 | |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 128 | &nand { |
| 129 | chip-delay = <25>; |
| 130 | status = "okay"; |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 131 | |
| 132 | partition@0 { |
| 133 | label = "uboot"; |
| 134 | reg = <0x0 0x90000>; |
| 135 | }; |
| 136 | |
| 137 | partition@90000 { |
| 138 | label = "env"; |
| 139 | reg = <0x90000 0x44000>; |
| 140 | }; |
| 141 | |
| 142 | partition@d4000 { |
| 143 | label = "test"; |
| 144 | reg = <0xd4000 0x24000>; |
| 145 | }; |
| 146 | |
| 147 | partition@f4000 { |
| 148 | label = "conf"; |
| 149 | reg = <0xf4000 0x400000>; |
| 150 | }; |
| 151 | |
| 152 | partition@4f4000 { |
| 153 | label = "linux"; |
| 154 | reg = <0x4f4000 0x1d20000>; |
| 155 | }; |
| 156 | |
| 157 | partition@2214000 { |
| 158 | label = "user"; |
| 159 | reg = <0x2214000 0x1dec000>; |
| 160 | }; |
| 161 | }; |
| 162 | |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 163 | &mdio { |
| 164 | status = "okay"; |
| 165 | |
| 166 | ethphy0: ethernet-phy@0 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 167 | reg = <0>; |
| 168 | }; |
| 169 | }; |
| 170 | |
| 171 | ð0 { |
| 172 | status = "okay"; |
| 173 | ethernet0-port@0 { |
| 174 | phy-handle = <ðphy0>; |
| 175 | }; |
| 176 | }; |