0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Marvell OpenRD (Base|Client|Ultimate) Board Description
0004 *
0005 * Andrew Lunn <andrew@lunn.ch>
0006 *
0007 * This file contains the definitions that are common between the three
0008 * variants of the Marvell Kirkwood Development Board.
0009 */
0010
0011 #include "kirkwood.dtsi"
0012 #include "kirkwood-6281.dtsi"
0013
0014 / {
0015 memory {
0016 device_type = "memory";
0017 reg = <0x00000000 0x20000000>;
0018 };
0019
0020 chosen {
0021 bootargs = "console=ttyS0,115200n8";
0022 stdout-path = &uart0;
0023 };
0024
0025 ocp@f1000000 {
0026 pinctrl: pin-controller@10000 {
0027 pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
0028 pinctrl-names = "default";
0029
0030 pmx_select28: pmx-select-rs232-rs485 {
0031 marvell,pins = "mpp28";
0032 marvell,function = "gpio";
0033 };
0034 pmx_sdio_cd: pmx-sdio-cd {
0035 marvell,pins = "mpp29";
0036 marvell,function = "gpio";
0037 };
0038 pmx_select34: pmx-select-uart-sd {
0039 marvell,pins = "mpp34";
0040 marvell,function = "gpio";
0041 };
0042 };
0043 serial@12000 {
0044 status = "okay";
0045
0046 };
0047 sata@80000 {
0048 status = "okay";
0049 nr-ports = <2>;
0050 };
0051 mvsdio@90000 {
0052 status = "okay";
0053 cd-gpios = <&gpio0 29 9>;
0054 };
0055 gpio@10100 {
0056 p28 {
0057 gpio-hog;
0058 gpios = <28 GPIO_ACTIVE_HIGH>;
0059 /*
0060 * SelRS232or485 selects between RS-232 or RS-485
0061 * mode for the second UART.
0062 *
0063 * Low: RS-232
0064 * High: RS-485
0065 *
0066 * To use the second UART, you need to change also
0067 * the SelUARTorSD.
0068 */
0069 output-low;
0070 line-name = "SelRS232or485";
0071 };
0072 };
0073 gpio@10140 {
0074 p2 {
0075 gpio-hog;
0076 gpios = <2 GPIO_ACTIVE_HIGH>;
0077 /*
0078 * SelUARTorSD selects between the second UART
0079 * (serial@12100) and SD (mvsdio@90000).
0080 *
0081 * Low: UART
0082 * High: SD
0083 *
0084 * When changing this line make sure the newly
0085 * selected device node is enabled and the
0086 * previously selected device node is disabled.
0087 */
0088 output-high; /* Select SD by default */
0089 line-name = "SelUARTorSD";
0090 };
0091 };
0092 };
0093 };
0094
0095 &nand {
0096 status = "okay";
0097 pinctrl-0 = <&pmx_nand>;
0098 pinctrl-names = "default";
0099
0100 partition@0 {
0101 label = "u-boot";
0102 reg = <0x0000000 0x100000>;
0103 };
0104
0105 partition@100000 {
0106 label = "uImage";
0107 reg = <0x0100000 0x400000>;
0108 };
0109
0110 partition@600000 {
0111 label = "root";
0112 reg = <0x0600000 0x1FA00000>;
0113 };
0114 };
0115
0116 &pciec {
0117 status = "okay";
0118 };
0119
0120 &pcie0 {
0121 status = "okay";
0122 };