Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | /include/ "kirkwood.dtsi" |
Nobuhiro Iwamatsu | 1fd7b4d | 2012-11-23 06:30:10 +0900 | [diff] [blame] | 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"; |
| 17 | }; |
| 18 | |
| 19 | ocp@f1000000 { |
| 20 | serial@12000 { |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 21 | status = "ok"; |
Thomas Petazzoni | c5a36c9 | 2013-05-24 11:44:54 +0200 | [diff] [blame] | 22 | pinctrl-0 = <&pmx_uart0>; |
| 23 | pinctrl-names = "default"; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | serial@12100 { |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 27 | status = "ok"; |
Thomas Petazzoni | c5a36c9 | 2013-05-24 11:44:54 +0200 | [diff] [blame] | 28 | pinctrl-0 = <&pmx_uart1>; |
| 29 | pinctrl-names = "default"; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | nand@3000000 { |
| 33 | chip-delay = <25>; |
| 34 | status = "okay"; |
Thomas Petazzoni | c5a36c9 | 2013-05-24 11:44:54 +0200 | [diff] [blame] | 35 | pinctrl-0 = <&pmx_nand>; |
| 36 | pinctrl-names = "default"; |
Nobuhiro Iwamatsu | a6e9ed9 | 2012-11-23 06:30:11 +0900 | [diff] [blame] | 37 | |
| 38 | partition@0 { |
| 39 | label = "uboot"; |
| 40 | reg = <0x0 0x90000>; |
| 41 | }; |
| 42 | |
| 43 | partition@90000 { |
| 44 | label = "env"; |
| 45 | reg = <0x90000 0x44000>; |
| 46 | }; |
| 47 | |
| 48 | partition@d4000 { |
| 49 | label = "test"; |
| 50 | reg = <0xd4000 0x24000>; |
| 51 | }; |
| 52 | |
| 53 | partition@f4000 { |
| 54 | label = "conf"; |
| 55 | reg = <0xf4000 0x400000>; |
| 56 | }; |
| 57 | |
| 58 | partition@4f4000 { |
| 59 | label = "linux"; |
| 60 | reg = <0x4f4000 0x1d20000>; |
| 61 | }; |
| 62 | |
| 63 | partition@2214000 { |
| 64 | label = "user"; |
| 65 | reg = <0x2214000 0x1dec000>; |
| 66 | }; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 67 | }; |
| 68 | |
| 69 | sata@80000 { |
| 70 | nr-ports = <1>; |
| 71 | status = "okay"; |
| 72 | }; |
Nobuhiro Iwamatsu | 1fd7b4d | 2012-11-23 06:30:10 +0900 | [diff] [blame] | 73 | |
| 74 | i2c@11100 { |
| 75 | status = "okay"; |
Thomas Petazzoni | c5a36c9 | 2013-05-24 11:44:54 +0200 | [diff] [blame] | 76 | pinctrl-0 = <&pmx_twsi1>; |
| 77 | pinctrl-names = "default"; |
Nobuhiro Iwamatsu | 1fd7b4d | 2012-11-23 06:30:10 +0900 | [diff] [blame] | 78 | |
| 79 | s35390a: s35390a@30 { |
| 80 | compatible = "s35390a"; |
| 81 | reg = <0x30>; |
| 82 | }; |
| 83 | }; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 84 | |
| 85 | pinctrl: pinctrl@10000 { |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 86 | pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 87 | pinctrl-names = "default"; |
| 88 | |
| 89 | pmx_uart0: pmx-uart0 { |
| 90 | marvell,pins = "mpp10", "mpp11", "mpp15", |
| 91 | "mpp16"; |
| 92 | marvell,function = "uart0"; |
| 93 | }; |
| 94 | |
| 95 | pmx_uart1: pmx-uart1 { |
| 96 | marvell,pins = "mpp13", "mpp14", "mpp8", |
| 97 | "mpp9"; |
| 98 | marvell,function = "uart1"; |
| 99 | }; |
| 100 | |
| 101 | pmx_sysrst: pmx-sysrst { |
| 102 | marvell,pins = "mpp6"; |
| 103 | marvell,function = "sysrst"; |
| 104 | }; |
| 105 | |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 106 | pmx_dip_switches: pmx-dip-switches { |
| 107 | marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23"; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 108 | marvell,function = "gpio"; |
| 109 | }; |
| 110 | |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 111 | pmx_gpio_header: pmx-gpio-header { |
| 112 | marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27", |
| 113 | "mpp28", "mpp29", "mpp30", "mpp31"; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 114 | marvell,function = "gpio"; |
| 115 | }; |
| 116 | |
| 117 | pmx_gpio_init: pmx-init { |
| 118 | marvell,pins = "mpp38"; |
| 119 | marvell,function = "gpio"; |
| 120 | }; |
| 121 | |
| 122 | pmx_usb_oc: pmx-usb-oc { |
| 123 | marvell,pins = "mpp39"; |
| 124 | marvell,function = "gpio"; |
| 125 | }; |
| 126 | |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 127 | pmx_leds: pmx-leds { |
| 128 | marvell,pins = "mpp41", "mpp42", "mpp43"; |
Nobuhiro Iwamatsu | 50ab955 | 2012-12-23 11:34:37 +0900 | [diff] [blame] | 129 | marvell,function = "gpio"; |
| 130 | }; |
| 131 | }; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 132 | }; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 133 | |
| 134 | gpio-leds { |
| 135 | compatible = "gpio-leds"; |
Thomas Petazzoni | a24ac20 | 2013-05-24 11:44:57 +0200 | [diff] [blame] | 136 | pinctrl-0 = <&pmx_leds>; |
Thomas Petazzoni | c5a36c9 | 2013-05-24 11:44:54 +0200 | [diff] [blame] | 137 | pinctrl-names = "default"; |
Nobuhiro Iwamatsu | 155acbe | 2012-11-24 05:24:09 +0900 | [diff] [blame] | 138 | |
| 139 | led-red { |
| 140 | label = "obsa6:red:stat"; |
| 141 | gpios = <&gpio1 9 1>; |
| 142 | }; |
| 143 | |
| 144 | led-green { |
| 145 | label = "obsa6:green:stat"; |
| 146 | gpios = <&gpio1 10 1>; |
| 147 | }; |
| 148 | |
| 149 | led-yellow { |
| 150 | label = "obsa6:yellow:stat"; |
| 151 | gpios = <&gpio1 11 1>; |
| 152 | }; |
| 153 | }; |
Thomas Petazzoni | 9196024a9 | 2013-05-24 11:44:58 +0200 | [diff] [blame] | 154 | |
| 155 | gpio_keys { |
| 156 | compatible = "gpio-keys"; |
| 157 | pinctrl-0 = <&pmx_gpio_init>; |
| 158 | pinctrl-names = "default"; |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
| 161 | |
| 162 | button@1 { |
| 163 | label = "Init Button"; |
| 164 | linux,code = <116>; |
| 165 | gpios = <&gpio1 6 0>; |
| 166 | }; |
| 167 | }; |
Nobuhiro Iwamatsu | f17073a | 2012-11-13 16:43:09 +0900 | [diff] [blame] | 168 | }; |