Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Marvell OpenRD (Base|Client|Ultimate) Board Description |
| 3 | * |
| 4 | * Andrew Lunn <andrew@lunn.ch> |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public |
| 7 | * License version 2. This program is licensed "as is" without any |
| 8 | * warranty of any kind, whether express or implied. |
| 9 | * |
| 10 | * This file contains the definitions that are common between the three |
| 11 | * variants of the Marvell Kirkwood Development Board. |
| 12 | */ |
| 13 | |
| 14 | #include "kirkwood.dtsi" |
| 15 | #include "kirkwood-6281.dtsi" |
| 16 | |
| 17 | / { |
| 18 | memory { |
| 19 | device_type = "memory"; |
| 20 | reg = <0x00000000 0x20000000>; |
| 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | bootargs = "console=ttyS0,115200n8"; |
| 25 | stdout-path = &uart0; |
| 26 | }; |
| 27 | |
| 28 | mbus { |
| 29 | pcie-controller { |
| 30 | status = "okay"; |
| 31 | |
| 32 | pcie@1,0 { |
| 33 | status = "okay"; |
| 34 | }; |
| 35 | }; |
| 36 | }; |
| 37 | |
| 38 | ocp@f1000000 { |
| 39 | pinctrl: pin-controller@10000 { |
| 40 | pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>; |
| 41 | pinctrl-names = "default"; |
| 42 | |
Aaro Koskinen | 39ac097 | 2016-01-23 22:37:17 +0200 | [diff] [blame^] | 43 | pmx_select28: pmx-select-rs232-rs485 { |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 44 | marvell,pins = "mpp28"; |
| 45 | marvell,function = "gpio"; |
| 46 | }; |
| 47 | pmx_sdio_cd: pmx-sdio-cd { |
| 48 | marvell,pins = "mpp29"; |
| 49 | marvell,function = "gpio"; |
| 50 | }; |
Aaro Koskinen | 2b1fd39 | 2016-01-12 22:07:32 +0200 | [diff] [blame] | 51 | pmx_select34: pmx-select-uart-sd { |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 52 | marvell,pins = "mpp34"; |
| 53 | marvell,function = "gpio"; |
| 54 | }; |
| 55 | }; |
| 56 | serial@12000 { |
| 57 | status = "okay"; |
| 58 | |
| 59 | }; |
| 60 | sata@80000 { |
| 61 | status = "okay"; |
| 62 | nr-ports = <2>; |
| 63 | }; |
| 64 | mvsdio@90000 { |
| 65 | status = "okay"; |
| 66 | cd-gpios = <&gpio0 29 9>; |
| 67 | }; |
Aaro Koskinen | 39ac097 | 2016-01-23 22:37:17 +0200 | [diff] [blame^] | 68 | gpio@10100 { |
| 69 | p28 { |
| 70 | gpio-hog; |
| 71 | gpios = <28 GPIO_ACTIVE_HIGH>; |
| 72 | /* |
| 73 | * SelRS232or485 selects between RS-232 or RS-485 |
| 74 | * mode for the second UART. |
| 75 | * |
| 76 | * Low: RS-232 |
| 77 | * High: RS-485 |
| 78 | * |
| 79 | * To use the second UART, you need to change also |
| 80 | * the SelUARTorSD. |
| 81 | */ |
| 82 | output-low; |
| 83 | line-name = "SelRS232or485"; |
| 84 | }; |
| 85 | }; |
Aaro Koskinen | 28c494d | 2016-01-12 22:07:33 +0200 | [diff] [blame] | 86 | gpio@10140 { |
| 87 | p2 { |
| 88 | gpio-hog; |
| 89 | gpios = <2 GPIO_ACTIVE_HIGH>; |
Aaro Koskinen | 39ac097 | 2016-01-23 22:37:17 +0200 | [diff] [blame^] | 90 | /* |
| 91 | * SelUARTorSD selects between the second UART |
| 92 | * (serial@12100) and SD (mvsdio@90000). |
| 93 | * |
| 94 | * Low: UART |
| 95 | * High: SD |
| 96 | * |
| 97 | * When changing this line make sure the newly |
| 98 | * selected device node is enabled and the |
| 99 | * previously selected device node is disabled. |
| 100 | */ |
Aaro Koskinen | 28c494d | 2016-01-12 22:07:33 +0200 | [diff] [blame] | 101 | output-high; /* Select SD by default */ |
| 102 | line-name = "SelUARTorSD"; |
| 103 | }; |
| 104 | }; |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 105 | }; |
| 106 | }; |
| 107 | |
| 108 | &nand { |
| 109 | status = "okay"; |
| 110 | pinctrl-0 = <&pmx_nand>; |
| 111 | pinctrl-names = "default"; |
| 112 | |
| 113 | partition@0 { |
| 114 | label = "u-boot"; |
| 115 | reg = <0x0000000 0x100000>; |
| 116 | }; |
| 117 | |
| 118 | partition@100000 { |
| 119 | label = "uImage"; |
| 120 | reg = <0x0100000 0x400000>; |
| 121 | }; |
| 122 | |
| 123 | partition@600000 { |
| 124 | label = "root"; |
| 125 | reg = <0x0600000 0x1FA00000>; |
| 126 | }; |
| 127 | }; |