1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Device Tree file for Marvell Armada 3720 development board 4c66ec88fSEmmanuel Vadot * (DB-88F3720-DDR3) 5c66ec88fSEmmanuel Vadot * Copyright (C) 2016 Marvell 6c66ec88fSEmmanuel Vadot * 7c66ec88fSEmmanuel Vadot * Gregory CLEMENT <gregory.clement@free-electrons.com> 8c66ec88fSEmmanuel Vadot * 9c66ec88fSEmmanuel Vadot * This file is compatible with the version 1.4 and the version 2.0 of 10c66ec88fSEmmanuel Vadot * the board, however the CON numbers are different between the 2 11c66ec88fSEmmanuel Vadot * version 12c66ec88fSEmmanuel Vadot */ 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot/dts-v1/; 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 17c66ec88fSEmmanuel Vadot#include "armada-372x.dtsi" 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot/ { 20c66ec88fSEmmanuel Vadot model = "Marvell Armada 3720 Development Board DB-88F3720-DDR3"; 21*cb7aa33aSEmmanuel Vadot compatible = "marvell,armada-3720-db", "marvell,armada3720", "marvell,armada3700"; 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot chosen { 24c66ec88fSEmmanuel Vadot stdout-path = "serial0:115200n8"; 25c66ec88fSEmmanuel Vadot }; 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot memory@0 { 28c66ec88fSEmmanuel Vadot device_type = "memory"; 29c66ec88fSEmmanuel Vadot reg = <0x00000000 0x00000000 0x00000000 0x20000000>; 30c66ec88fSEmmanuel Vadot }; 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot exp_usb3_vbus: usb3-vbus { 33c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 34c66ec88fSEmmanuel Vadot regulator-name = "usb3-vbus"; 35c66ec88fSEmmanuel Vadot regulator-min-microvolt = <5000000>; 36c66ec88fSEmmanuel Vadot regulator-max-microvolt = <5000000>; 37c66ec88fSEmmanuel Vadot enable-active-high; 38c66ec88fSEmmanuel Vadot regulator-always-on; 39c66ec88fSEmmanuel Vadot gpio = <&gpio_exp 1 GPIO_ACTIVE_HIGH>; 40c66ec88fSEmmanuel Vadot }; 41c66ec88fSEmmanuel Vadot 42c66ec88fSEmmanuel Vadot usb3_phy: usb3-phy { 43c66ec88fSEmmanuel Vadot compatible = "usb-nop-xceiv"; 44c66ec88fSEmmanuel Vadot vcc-supply = <&exp_usb3_vbus>; 45c66ec88fSEmmanuel Vadot }; 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot vcc_sd_reg1: regulator { 48c66ec88fSEmmanuel Vadot compatible = "regulator-gpio"; 49c66ec88fSEmmanuel Vadot regulator-name = "vcc_sd1"; 50c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 51c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 52c66ec88fSEmmanuel Vadot regulator-boot-on; 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>; 55c66ec88fSEmmanuel Vadot gpios-states = <0>; 56c66ec88fSEmmanuel Vadot states = <1800000 0x1 57c66ec88fSEmmanuel Vadot 3300000 0x0>; 58c66ec88fSEmmanuel Vadot enable-active-high; 59c66ec88fSEmmanuel Vadot }; 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot vcc_sd_reg2: regulator-vmcc { 62c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 63c66ec88fSEmmanuel Vadot regulator-name = "vcc_sd2"; 64c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 65c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 66c66ec88fSEmmanuel Vadot regulator-boot-on; 67c66ec88fSEmmanuel Vadot enable-active-high; 68c66ec88fSEmmanuel Vadot gpio = <&gpio_exp 4 GPIO_ACTIVE_HIGH>; 69c66ec88fSEmmanuel Vadot }; 70c66ec88fSEmmanuel Vadot}; 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadot/* Gigabit module on CON19(V2.0)/CON21(V1.4) */ 73c66ec88fSEmmanuel Vadotð0 { 74c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 75c66ec88fSEmmanuel Vadot pinctrl-0 = <&rgmii_pins>; 76c66ec88fSEmmanuel Vadot phy-mode = "rgmii-id"; 77c66ec88fSEmmanuel Vadot phy = <&phy0>; 78c66ec88fSEmmanuel Vadot status = "okay"; 79c66ec88fSEmmanuel Vadot}; 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot/* Gigabit module on CON18(V2.0)/CON20(V1.4) */ 82c66ec88fSEmmanuel Vadotð1 { 83c66ec88fSEmmanuel Vadot phy-mode = "sgmii"; 84c66ec88fSEmmanuel Vadot phy = <&phy1>; 85c66ec88fSEmmanuel Vadot status = "okay"; 86c66ec88fSEmmanuel Vadot}; 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot&i2c0 { 89c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 90c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c1_pins>; 91c66ec88fSEmmanuel Vadot status = "okay"; 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadot gpio_exp: pca9555@22 { 94c66ec88fSEmmanuel Vadot compatible = "nxp,pca9555"; 95c66ec88fSEmmanuel Vadot gpio-controller; 96c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 97c66ec88fSEmmanuel Vadot 98c66ec88fSEmmanuel Vadot reg = <0x22>; 99c66ec88fSEmmanuel Vadot /* 100c66ec88fSEmmanuel Vadot * IO0_0: PWR_EN_USB2 IO1_0: PWR_EN_VTT 101c66ec88fSEmmanuel Vadot * IO0_1: PWR_EN_USB23 IO1_1: MPCIE_WDISABLE 102c66ec88fSEmmanuel Vadot * IO0_2: PWR_EN_SATA IO1_2: RGMII_DEV_RSTN 103c66ec88fSEmmanuel Vadot * IO0_3: PWR_EN_PCIE IO1_3: SGMII_DEV_RSTN 104c66ec88fSEmmanuel Vadot * IO0_4: PWR_EN_SD 105c66ec88fSEmmanuel Vadot * IO0_5: PWR_EN_EMMC 106c66ec88fSEmmanuel Vadot * IO0_6: PWR_EN_RGMII IO1_6: SATA_USB3.0_SEL 107c66ec88fSEmmanuel Vadot * IO0_7: PWR_EN_SGMII IO1_7: PWR_MCI_PS 108c66ec88fSEmmanuel Vadot */ 109c66ec88fSEmmanuel Vadot }; 110c66ec88fSEmmanuel Vadot 111c66ec88fSEmmanuel Vadot rtc@68 { 112c66ec88fSEmmanuel Vadot /* PT7C4337A from pericom fully compatible with the ds1337 */ 113c66ec88fSEmmanuel Vadot compatible = "dallas,ds1337"; 114c66ec88fSEmmanuel Vadot reg = <0x68>; 115c66ec88fSEmmanuel Vadot }; 116c66ec88fSEmmanuel Vadot}; 117c66ec88fSEmmanuel Vadot 118c66ec88fSEmmanuel Vadot&mdio { 119c66ec88fSEmmanuel Vadot status = "okay"; 120c66ec88fSEmmanuel Vadot phy0: ethernet-phy@0 { 121c66ec88fSEmmanuel Vadot reg = <0>; 122c66ec88fSEmmanuel Vadot }; 123c66ec88fSEmmanuel Vadot 124c66ec88fSEmmanuel Vadot phy1: ethernet-phy@1 { 125c66ec88fSEmmanuel Vadot reg = <1>; 126c66ec88fSEmmanuel Vadot }; 127c66ec88fSEmmanuel Vadot}; 128c66ec88fSEmmanuel Vadot 129c66ec88fSEmmanuel Vadot/* CON15(V2.0)/CON17(V1.4) : PCIe / CON15(V2.0)/CON12(V1.4) :mini-PCIe */ 130c66ec88fSEmmanuel Vadot&pcie0 { 131c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 132c66ec88fSEmmanuel Vadot pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>; 133c66ec88fSEmmanuel Vadot reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>; 134c66ec88fSEmmanuel Vadot status = "okay"; 135c66ec88fSEmmanuel Vadot}; 136c66ec88fSEmmanuel Vadot 137c66ec88fSEmmanuel Vadot/* CON3 */ 138c66ec88fSEmmanuel Vadot&sata { 139c66ec88fSEmmanuel Vadot status = "okay"; 140c66ec88fSEmmanuel Vadot}; 141c66ec88fSEmmanuel Vadot 142c66ec88fSEmmanuel Vadot&sdhci0 { 143c66ec88fSEmmanuel Vadot non-removable; 144c66ec88fSEmmanuel Vadot bus-width = <8>; 145c66ec88fSEmmanuel Vadot mmc-ddr-1_8v; 146c66ec88fSEmmanuel Vadot mmc-hs400-1_8v; 147c66ec88fSEmmanuel Vadot marvell,pad-type = "fixed-1-8v"; 148c66ec88fSEmmanuel Vadot status = "okay"; 149c66ec88fSEmmanuel Vadot}; 150c66ec88fSEmmanuel Vadot 151c66ec88fSEmmanuel Vadot/* SD slot module on CON14(V2.0)/CON15(V1.4) */ 152c66ec88fSEmmanuel Vadot&sdhci1 { 153c66ec88fSEmmanuel Vadot wp-inverted; 154c66ec88fSEmmanuel Vadot cd-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>; 155c66ec88fSEmmanuel Vadot bus-width = <4>; 156c66ec88fSEmmanuel Vadot marvell,pad-type = "sd"; 157c66ec88fSEmmanuel Vadot vqmmc-supply = <&vcc_sd_reg1>; 158c66ec88fSEmmanuel Vadot vmmc-supply = <&vcc_sd_reg2>; 159c66ec88fSEmmanuel Vadot status = "okay"; 160c66ec88fSEmmanuel Vadot}; 161c66ec88fSEmmanuel Vadot 162c66ec88fSEmmanuel Vadot&spi0 { 163c66ec88fSEmmanuel Vadot status = "okay"; 164c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 165c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi_quad_pins>; 166c66ec88fSEmmanuel Vadot 167d5b0e70fSEmmanuel Vadot flash@0 { 168c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 169c66ec88fSEmmanuel Vadot reg = <0>; 170c66ec88fSEmmanuel Vadot spi-max-frequency = <108000000>; 171c66ec88fSEmmanuel Vadot spi-rx-bus-width = <4>; 172c66ec88fSEmmanuel Vadot spi-tx-bus-width = <4>; 173c66ec88fSEmmanuel Vadot 174c66ec88fSEmmanuel Vadot partitions { 175c66ec88fSEmmanuel Vadot compatible = "fixed-partitions"; 176c66ec88fSEmmanuel Vadot #address-cells = <1>; 177c66ec88fSEmmanuel Vadot #size-cells = <1>; 178c66ec88fSEmmanuel Vadot partition@0 { 179c66ec88fSEmmanuel Vadot label = "bootloader"; 180c66ec88fSEmmanuel Vadot reg = <0x0 0x200000>; 181c66ec88fSEmmanuel Vadot }; 182c66ec88fSEmmanuel Vadot partition@200000 { 183c66ec88fSEmmanuel Vadot label = "U-boot Env"; 184c66ec88fSEmmanuel Vadot reg = <0x200000 0x10000>; 185c66ec88fSEmmanuel Vadot }; 186c66ec88fSEmmanuel Vadot partition@210000 { 187c66ec88fSEmmanuel Vadot label = "Linux"; 188c66ec88fSEmmanuel Vadot reg = <0x210000 0xDF0000>; 189c66ec88fSEmmanuel Vadot }; 190c66ec88fSEmmanuel Vadot }; 191c66ec88fSEmmanuel Vadot }; 192c66ec88fSEmmanuel Vadot}; 193c66ec88fSEmmanuel Vadot 194c66ec88fSEmmanuel Vadot/* 195c66ec88fSEmmanuel Vadot * Exported on the micro USB connector CON30(V2.0)/CON32(V1.4) through 196c66ec88fSEmmanuel Vadot * an FTDI (also on CON24(V2.0)/CON26(V1.4)). 197c66ec88fSEmmanuel Vadot */ 198c66ec88fSEmmanuel Vadot&uart0 { 199c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 200c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart1_pins>; 201c66ec88fSEmmanuel Vadot status = "okay"; 202c66ec88fSEmmanuel Vadot}; 203c66ec88fSEmmanuel Vadot 204c66ec88fSEmmanuel Vadot/* CON26(V2.0)/CON28(V1.4) */ 205c66ec88fSEmmanuel Vadot&uart1 { 206c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 207c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart2_pins>; 208c66ec88fSEmmanuel Vadot status = "okay"; 209c66ec88fSEmmanuel Vadot}; 210c66ec88fSEmmanuel Vadot 211c66ec88fSEmmanuel Vadot/* CON27(V2.0)/CON29(V1.4) */ 212c66ec88fSEmmanuel Vadot&usb2 { 213c66ec88fSEmmanuel Vadot status = "okay"; 214c66ec88fSEmmanuel Vadot}; 215c66ec88fSEmmanuel Vadot 216c66ec88fSEmmanuel Vadot/* CON29(V2.0)/CON31(V1.4) */ 217c66ec88fSEmmanuel Vadot&usb3 { 218c66ec88fSEmmanuel Vadot status = "okay"; 219c66ec88fSEmmanuel Vadot usb-phy = <&usb3_phy>; 220c66ec88fSEmmanuel Vadot}; 221