0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for Marvell Armada 3720 development board
0004 * (DB-88F3720-DDR3)
0005 * Copyright (C) 2016 Marvell
0006 *
0007 * Gregory CLEMENT <gregory.clement@free-electrons.com>
0008 *
0009 * This file is compatible with the version 1.4 and the version 2.0 of
0010 * the board, however the CON numbers are different between the 2
0011 * version
0012 */
0013
0014 /dts-v1/;
0015
0016 #include <dt-bindings/gpio/gpio.h>
0017 #include "armada-372x.dtsi"
0018
0019 / {
0020 model = "Marvell Armada 3720 Development Board DB-88F3720-DDR3";
0021 compatible = "marvell,armada-3720-db", "marvell,armada3720", "marvell,armada3710";
0022
0023 chosen {
0024 stdout-path = "serial0:115200n8";
0025 };
0026
0027 memory@0 {
0028 device_type = "memory";
0029 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
0030 };
0031
0032 exp_usb3_vbus: usb3-vbus {
0033 compatible = "regulator-fixed";
0034 regulator-name = "usb3-vbus";
0035 regulator-min-microvolt = <5000000>;
0036 regulator-max-microvolt = <5000000>;
0037 enable-active-high;
0038 regulator-always-on;
0039 gpio = <&gpio_exp 1 GPIO_ACTIVE_HIGH>;
0040 };
0041
0042 usb3_phy: usb3-phy {
0043 compatible = "usb-nop-xceiv";
0044 vcc-supply = <&exp_usb3_vbus>;
0045 };
0046
0047 vcc_sd_reg1: regulator {
0048 compatible = "regulator-gpio";
0049 regulator-name = "vcc_sd1";
0050 regulator-min-microvolt = <1800000>;
0051 regulator-max-microvolt = <3300000>;
0052 regulator-boot-on;
0053
0054 gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>;
0055 gpios-states = <0>;
0056 states = <1800000 0x1
0057 3300000 0x0>;
0058 enable-active-high;
0059 };
0060
0061 vcc_sd_reg2: regulator-vmcc {
0062 compatible = "regulator-fixed";
0063 regulator-name = "vcc_sd2";
0064 regulator-min-microvolt = <3300000>;
0065 regulator-max-microvolt = <3300000>;
0066 regulator-boot-on;
0067 enable-active-high;
0068 gpio = <&gpio_exp 4 GPIO_ACTIVE_HIGH>;
0069 };
0070 };
0071
0072 /* Gigabit module on CON19(V2.0)/CON21(V1.4) */
0073 ð0 {
0074 pinctrl-names = "default";
0075 pinctrl-0 = <&rgmii_pins>;
0076 phy-mode = "rgmii-id";
0077 phy = <&phy0>;
0078 status = "okay";
0079 };
0080
0081 /* Gigabit module on CON18(V2.0)/CON20(V1.4) */
0082 ð1 {
0083 phy-mode = "sgmii";
0084 phy = <&phy1>;
0085 status = "okay";
0086 };
0087
0088 &i2c0 {
0089 pinctrl-names = "default";
0090 pinctrl-0 = <&i2c1_pins>;
0091 status = "okay";
0092
0093 gpio_exp: pca9555@22 {
0094 compatible = "nxp,pca9555";
0095 gpio-controller;
0096 #gpio-cells = <2>;
0097
0098 reg = <0x22>;
0099 /*
0100 * IO0_0: PWR_EN_USB2 IO1_0: PWR_EN_VTT
0101 * IO0_1: PWR_EN_USB23 IO1_1: MPCIE_WDISABLE
0102 * IO0_2: PWR_EN_SATA IO1_2: RGMII_DEV_RSTN
0103 * IO0_3: PWR_EN_PCIE IO1_3: SGMII_DEV_RSTN
0104 * IO0_4: PWR_EN_SD
0105 * IO0_5: PWR_EN_EMMC
0106 * IO0_6: PWR_EN_RGMII IO1_6: SATA_USB3.0_SEL
0107 * IO0_7: PWR_EN_SGMII IO1_7: PWR_MCI_PS
0108 */
0109 };
0110
0111 rtc@68 {
0112 /* PT7C4337A from pericom fully compatible with the ds1337 */
0113 compatible = "dallas,ds1337";
0114 reg = <0x68>;
0115 };
0116 };
0117
0118 &mdio {
0119 status = "okay";
0120 phy0: ethernet-phy@0 {
0121 reg = <0>;
0122 };
0123
0124 phy1: ethernet-phy@1 {
0125 reg = <1>;
0126 };
0127 };
0128
0129 /* CON15(V2.0)/CON17(V1.4) : PCIe / CON15(V2.0)/CON12(V1.4) :mini-PCIe */
0130 &pcie0 {
0131 pinctrl-names = "default";
0132 pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
0133 reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
0134 status = "okay";
0135 };
0136
0137 /* CON3 */
0138 &sata {
0139 status = "okay";
0140 };
0141
0142 &sdhci0 {
0143 non-removable;
0144 bus-width = <8>;
0145 mmc-ddr-1_8v;
0146 mmc-hs400-1_8v;
0147 marvell,pad-type = "fixed-1-8v";
0148 status = "okay";
0149 };
0150
0151 /* SD slot module on CON14(V2.0)/CON15(V1.4) */
0152 &sdhci1 {
0153 wp-inverted;
0154 cd-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>;
0155 bus-width = <4>;
0156 marvell,pad-type = "sd";
0157 vqmmc-supply = <&vcc_sd_reg1>;
0158 vmmc-supply = <&vcc_sd_reg2>;
0159 status = "okay";
0160 };
0161
0162 &spi0 {
0163 status = "okay";
0164 pinctrl-names = "default";
0165 pinctrl-0 = <&spi_quad_pins>;
0166
0167 flash@0 {
0168 compatible = "jedec,spi-nor";
0169 reg = <0>;
0170 spi-max-frequency = <108000000>;
0171 spi-rx-bus-width = <4>;
0172 spi-tx-bus-width = <4>;
0173
0174 partitions {
0175 compatible = "fixed-partitions";
0176 #address-cells = <1>;
0177 #size-cells = <1>;
0178 partition@0 {
0179 label = "bootloader";
0180 reg = <0x0 0x200000>;
0181 };
0182 partition@200000 {
0183 label = "U-boot Env";
0184 reg = <0x200000 0x10000>;
0185 };
0186 partition@210000 {
0187 label = "Linux";
0188 reg = <0x210000 0xDF0000>;
0189 };
0190 };
0191 };
0192 };
0193
0194 /*
0195 * Exported on the micro USB connector CON30(V2.0)/CON32(V1.4) through
0196 * an FTDI (also on CON24(V2.0)/CON26(V1.4)).
0197 */
0198 &uart0 {
0199 pinctrl-names = "default";
0200 pinctrl-0 = <&uart1_pins>;
0201 status = "okay";
0202 };
0203
0204 /* CON26(V2.0)/CON28(V1.4) */
0205 &uart1 {
0206 pinctrl-names = "default";
0207 pinctrl-0 = <&uart2_pins>;
0208 status = "okay";
0209 };
0210
0211 /* CON27(V2.0)/CON29(V1.4) */
0212 &usb2 {
0213 status = "okay";
0214 };
0215
0216 /* CON29(V2.0)/CON31(V1.4) */
0217 &usb3 {
0218 status = "okay";
0219 usb-phy = <&usb3_phy>;
0220 };