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 | |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 28 | ocp@f1000000 { |
| 29 | pinctrl: pin-controller@10000 { |
| 30 | pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>; |
| 31 | pinctrl-names = "default"; |
| 32 | |
Aaro Koskinen | 39ac097 | 2016-01-23 22:37:17 +0200 | [diff] [blame] | 33 | pmx_select28: pmx-select-rs232-rs485 { |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 34 | marvell,pins = "mpp28"; |
| 35 | marvell,function = "gpio"; |
| 36 | }; |
| 37 | pmx_sdio_cd: pmx-sdio-cd { |
| 38 | marvell,pins = "mpp29"; |
| 39 | marvell,function = "gpio"; |
| 40 | }; |
Aaro Koskinen | 2b1fd39 | 2016-01-12 22:07:32 +0200 | [diff] [blame] | 41 | pmx_select34: pmx-select-uart-sd { |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 42 | marvell,pins = "mpp34"; |
| 43 | marvell,function = "gpio"; |
| 44 | }; |
| 45 | }; |
| 46 | serial@12000 { |
| 47 | status = "okay"; |
| 48 | |
| 49 | }; |
| 50 | sata@80000 { |
| 51 | status = "okay"; |
| 52 | nr-ports = <2>; |
| 53 | }; |
| 54 | mvsdio@90000 { |
| 55 | status = "okay"; |
| 56 | cd-gpios = <&gpio0 29 9>; |
| 57 | }; |
Aaro Koskinen | 39ac097 | 2016-01-23 22:37:17 +0200 | [diff] [blame] | 58 | gpio@10100 { |
| 59 | p28 { |
| 60 | gpio-hog; |
| 61 | gpios = <28 GPIO_ACTIVE_HIGH>; |
| 62 | /* |
| 63 | * SelRS232or485 selects between RS-232 or RS-485 |
| 64 | * mode for the second UART. |
| 65 | * |
| 66 | * Low: RS-232 |
| 67 | * High: RS-485 |
| 68 | * |
| 69 | * To use the second UART, you need to change also |
| 70 | * the SelUARTorSD. |
| 71 | */ |
| 72 | output-low; |
| 73 | line-name = "SelRS232or485"; |
| 74 | }; |
| 75 | }; |
Aaro Koskinen | 28c494d | 2016-01-12 22:07:33 +0200 | [diff] [blame] | 76 | gpio@10140 { |
| 77 | p2 { |
| 78 | gpio-hog; |
| 79 | gpios = <2 GPIO_ACTIVE_HIGH>; |
Aaro Koskinen | 39ac097 | 2016-01-23 22:37:17 +0200 | [diff] [blame] | 80 | /* |
| 81 | * SelUARTorSD selects between the second UART |
| 82 | * (serial@12100) and SD (mvsdio@90000). |
| 83 | * |
| 84 | * Low: UART |
| 85 | * High: SD |
| 86 | * |
| 87 | * When changing this line make sure the newly |
| 88 | * selected device node is enabled and the |
| 89 | * previously selected device node is disabled. |
| 90 | */ |
Aaro Koskinen | 28c494d | 2016-01-12 22:07:33 +0200 | [diff] [blame] | 91 | output-high; /* Select SD by default */ |
| 92 | line-name = "SelUARTorSD"; |
| 93 | }; |
| 94 | }; |
Andrew Lunn | f81a863 | 2014-05-11 21:30:39 +0200 | [diff] [blame] | 95 | }; |
| 96 | }; |
| 97 | |
| 98 | &nand { |
| 99 | status = "okay"; |
| 100 | pinctrl-0 = <&pmx_nand>; |
| 101 | pinctrl-names = "default"; |
| 102 | |
| 103 | partition@0 { |
| 104 | label = "u-boot"; |
| 105 | reg = <0x0000000 0x100000>; |
| 106 | }; |
| 107 | |
| 108 | partition@100000 { |
| 109 | label = "uImage"; |
| 110 | reg = <0x0100000 0x400000>; |
| 111 | }; |
| 112 | |
| 113 | partition@600000 { |
| 114 | label = "root"; |
| 115 | reg = <0x0600000 0x1FA00000>; |
| 116 | }; |
| 117 | }; |
Andrew Lunn | eb13cf8 | 2016-04-03 04:03:47 +0200 | [diff] [blame] | 118 | |
| 119 | &pcie0 { |
| 120 | status = "okay"; |
| 121 | }; |