0001 // SPDX-License-Identifier: GPL-2.0-only
0002 // Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0003
0004 /dts-v1/;
0005
0006 #include <dt-bindings/gpio/gpio.h>
0007 #include "orion5x-mv88f5182.dtsi"
0008
0009 / {
0010 model = "Marvell Reference Design 88F5182 NAS";
0011 compatible = "marvell,rd-88f5182-nas", "marvell,orion5x-88f5182", "marvell,orion5x";
0012
0013 memory {
0014 device_type = "memory";
0015 reg = <0x00000000 0x4000000>; /* 64 MB */
0016 };
0017
0018 chosen {
0019 bootargs = "console=ttyS0,115200n8 earlyprintk";
0020 stdout-path = &uart0;
0021 };
0022
0023 soc {
0024 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
0025 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
0026 <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x80000>,
0027 <MBUS_ID(0x01, 0x1d) 0 0xfc000000 0x1000000>;
0028 };
0029
0030 gpio-leds {
0031 compatible = "gpio-leds";
0032 pinctrl-0 = <&pmx_debug_led>;
0033 pinctrl-names = "default";
0034
0035 led@0 {
0036 label = "rd88f5182:cpu";
0037 linux,default-trigger = "heartbeat";
0038 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
0039 };
0040 };
0041 };
0042
0043 &devbus_bootcs {
0044 status = "okay";
0045
0046 /* Read parameters */
0047 devbus,bus-width = <8>;
0048 devbus,turn-off-ps = <90000>;
0049 devbus,badr-skew-ps = <0>;
0050 devbus,acc-first-ps = <186000>;
0051 devbus,acc-next-ps = <186000>;
0052
0053 /* Write parameters */
0054 devbus,wr-high-ps = <90000>;
0055 devbus,wr-low-ps = <90000>;
0056 devbus,ale-wr-ps = <90000>;
0057
0058 flash@0 {
0059 compatible = "cfi-flash";
0060 reg = <0 0x80000>;
0061 bank-width = <1>;
0062 };
0063 };
0064
0065 &devbus_cs1 {
0066 status = "okay";
0067
0068 /* Read parameters */
0069 devbus,bus-width = <8>;
0070 devbus,turn-off-ps = <90000>;
0071 devbus,badr-skew-ps = <0>;
0072 devbus,acc-first-ps = <186000>;
0073 devbus,acc-next-ps = <186000>;
0074
0075 /* Write parameters */
0076 devbus,wr-high-ps = <90000>;
0077 devbus,wr-low-ps = <90000>;
0078 devbus,ale-wr-ps = <90000>;
0079
0080 flash@0 {
0081 compatible = "cfi-flash";
0082 reg = <0 0x1000000>;
0083 bank-width = <1>;
0084 };
0085 };
0086
0087 &ehci0 {
0088 status = "okay";
0089 };
0090
0091 &ehci1 {
0092 status = "okay";
0093 };
0094
0095 ð {
0096 status = "okay";
0097
0098 ethernet-port@0 {
0099 phy-handle = <ðphy>;
0100 };
0101 };
0102
0103 &i2c {
0104 status = "okay";
0105 clock-frequency = <100000>;
0106 #address-cells = <1>;
0107
0108 rtc@68 {
0109 pinctrl-0 = <&pmx_rtc>;
0110 pinctrl-names = "default";
0111 compatible = "dallas,ds1338";
0112 reg = <0x68>;
0113 };
0114 };
0115
0116 &mdio {
0117 status = "okay";
0118
0119 ethphy: ethernet-phy {
0120 reg = <8>;
0121 };
0122 };
0123
0124 &pinctrl {
0125 pinctrl-0 = <&pmx_reset_switch &pmx_misc_gpios
0126 &pmx_pci_gpios>;
0127 pinctrl-names = "default";
0128
0129 /*
0130 * MPP[20] PCI Clock to MV88F5182
0131 * MPP[21] PCI Clock to mini PCI CON11
0132 * MPP[22] USB 0 over current indication
0133 * MPP[23] USB 1 over current indication
0134 * MPP[24] USB 1 over current enable
0135 * MPP[25] USB 0 over current enable
0136 */
0137
0138 pmx_debug_led: pmx-debug_led {
0139 marvell,pins = "mpp0";
0140 marvell,function = "gpio";
0141 };
0142
0143 pmx_reset_switch: pmx-reset-switch {
0144 marvell,pins = "mpp1";
0145 marvell,function = "gpio";
0146 };
0147
0148 pmx_rtc: pmx-rtc {
0149 marvell,pins = "mpp3";
0150 marvell,function = "gpio";
0151 };
0152
0153 pmx_misc_gpios: pmx-misc-gpios {
0154 marvell,pins = "mpp4", "mpp5";
0155 marvell,function = "gpio";
0156 };
0157
0158 pmx_pci_gpios: pmx-pci-gpios {
0159 marvell,pins = "mpp6", "mpp7";
0160 marvell,function = "gpio";
0161 };
0162 };
0163
0164 &sata {
0165 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
0166 pinctrl-names = "default";
0167 status = "okay";
0168 nr-ports = <2>;
0169 };
0170
0171 &uart0 {
0172 status = "okay";
0173 };