1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright (C) 2016- 2021 Marvell International Ltd. 4 */ 5 6/* 7 * Device Tree file for Marvell Armada 7040 Development board platform 8 * Boot device: NAND, 0xE (SW3) 9 */ 10 11#include "armada-7040.dtsi" 12 13/ { 14 model = "Marvell Armada 7040 DB board with NAND"; 15 compatible = "marvell,armada7040-db-nand", "marvell,armada7040-db", 16 "marvell,armada7040", "marvell,armada-ap806-quad", 17 "marvell,armada-ap806"; 18 19 chosen { 20 stdout-path = "serial0:115200n8"; 21 }; 22 23 aliases { 24 i2c0 = &cp0_i2c0; 25 spi0 = &cp0_spi1; 26 }; 27 28 memory@00000000 { 29 device_type = "memory"; 30 reg = <0x0 0x0 0x0 0x80000000>; 31 }; 32}; 33 34&ap_pinctl { 35 /* MPP Bus: 36 * SDIO [0-5] 37 * UART0 [11,19] 38 */ 39 /* 0 1 2 3 4 5 6 7 8 9 */ 40 pin-func = < 0x1 0x1 0x1 0x1 0x1 0x1 0x0 0x0 0x0 0x0 41 0x0 0x3 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x3 >; 42}; 43 44&uart0 { 45 status = "okay"; 46}; 47 48 49&cp0_pcie2 { 50 status = "okay"; 51}; 52 53&cp0_i2c0 { 54 pinctrl-names = "default"; 55 pinctrl-0 = <&cp0_i2c0_pins>; 56 status = "okay"; 57 clock-frequency = <100000>; 58}; 59 60&cp0_pinctl { 61 /* MPP Bus: 62 * AUDIO [0-5] 63 * GBE [6-11] 64 * SS_PWDN [12] 65 * NF_RBn [13] 66 * GPIO [14] 67 * DEV_BUS [15-27] 68 * SATA1 [28] 69 * UART0 [29-30] 70 * MSS_VTT_EN [31] 71 * SMI [32,34] 72 * XSMI [35-36] 73 * I2C [37-38] 74 * RGMII1 [44-55] 75 * SD [56-61] 76 * GPIO [62] 77 */ 78 /* 0 1 2 3 4 5 6 7 8 9 */ 79 pin-func = < 0x2 0x2 0x2 0x2 0x2 0x2 0x3 0x3 0x3 0x3 80 0x3 0x3 0x0 0x2 0x0 0x1 0x1 0x1 0x1 0x1 81 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x9 0xa 82 0xa 0x0 0x7 0x0 0x7 0x7 0x7 0x2 0x2 0x0 83 0x0 0x0 0x0 0x0 0x1 0x1 0x1 0x1 0x1 0x1 84 0x1 0x1 0x1 0x1 0x1 0x1 0xe 0xe 0xe 0xe 85 0xe 0xe 0x0>; 86}; 87 88&cp0_spi1 { 89 pinctrl-names = "default"; 90 pinctrl-0 = <&cp0_spi0_pins>; 91 status = "disabled"; 92 93 spi-flash@0 { 94 #address-cells = <0x1>; 95 #size-cells = <0x1>; 96 compatible = "jedec,spi-nor"; 97 reg = <0x0>; 98 spi-max-frequency = <20000000>; 99 100 partitions { 101 compatible = "fixed-partitions"; 102 #address-cells = <1>; 103 #size-cells = <1>; 104 105 partition@0 { 106 label = "U-Boot"; 107 reg = <0x0 0x200000>; 108 }; 109 110 partition@400000 { 111 label = "Filesystem"; 112 reg = <0x200000 0xe00000>; 113 }; 114 }; 115 }; 116}; 117 118&cp0_sata0 { 119 status = "okay"; 120}; 121 122&cp0_usb3_0 { 123 status = "okay"; 124}; 125 126&cp0_usb3_1 { 127 status = "okay"; 128}; 129 130&cp0_comphy { 131 phy0 { 132 phy-type = <COMPHY_TYPE_SGMII2>; 133 phy-speed = <COMPHY_SPEED_3_125G>; 134 }; 135 136 phy1 { 137 phy-type = <COMPHY_TYPE_USB3_HOST0>; 138 phy-speed = <COMPHY_SPEED_5G>; 139 }; 140 141 phy2 { 142 phy-type = <COMPHY_TYPE_SGMII0>; 143 phy-speed = <COMPHY_SPEED_1_25G>; 144 }; 145 146 phy3 { 147 phy-type = <COMPHY_TYPE_SATA1>; 148 phy-speed = <COMPHY_SPEED_5G>; 149 }; 150 151 phy4 { 152 phy-type = <COMPHY_TYPE_USB3_HOST1>; 153 phy-speed = <COMPHY_SPEED_5G>; 154 }; 155 156 phy5 { 157 phy-type = <COMPHY_TYPE_PEX2>; 158 phy-speed = <COMPHY_SPEED_5G>; 159 }; 160}; 161 162&cp0_nand { 163 status = "okay"; 164}; 165 166&cp0_utmi0 { 167 status = "okay"; 168}; 169 170&cp0_utmi1 { 171 status = "okay"; 172}; 173 174&ap_sdhci0 { 175 status = "okay"; 176 bus-width = <4>; 177 no-1-8-v; 178 non-removable; 179}; 180 181&cp0_sdhci0 { 182 status = "okay"; 183 bus-width = <4>; 184 no-1-8-v; 185 non-removable; 186}; 187