1/* 2 * Copyright (C) 2016 Marvell Technology Group Ltd. 3 * 4 * This file is dual-licensed: you can use it either under the terms 5 * of the GPLv2 or the X11 license, at your option. Note that this dual 6 * licensing only applies to this file, and not this project as a 7 * whole. 8 * 9 * a) This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License as 11 * published by the Free Software Foundation; either version 2 of the 12 * License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * Or, alternatively, 20 * 21 * b) Permission is hereby granted, free of charge, to any person 22 * obtaining a copy of this software and associated documentation 23 * files (the "Software"), to deal in the Software without 24 * restriction, including without limitation the rights to use, 25 * copy, modify, merge, publish, distribute, sublicense, and/or 26 * sell copies of the Software, and to permit persons to whom the 27 * Software is furnished to do so, subject to the following 28 * conditions: 29 * 30 * The above copyright notice and this permission notice shall be 31 * included in all copies or substantial portions of the Software. 32 * 33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40 * OTHER DEALINGS IN THE SOFTWARE. 41 */ 42 43/* 44 * Device Tree file for MACCHIATOBin Armada 8040 community board platform 45 */ 46 47#include "armada-8040.dtsi" 48 49/ { 50 model = "Marvell 8040 MACHIATOBin"; 51 compatible = "marvell,armada8040-mcbin", "marvell,armada8040", 52 "marvell,armada-ap806-quad", "marvell,armada-ap806"; 53 54 memory@00000000 { 55 device_type = "memory"; 56 reg = <0x0 0x0 0x0 0x80000000>; 57 }; 58 59 /* Regulator labels correspond with schematics */ 60 v_3_3: regulator-3-3v { 61 compatible = "regulator-fixed"; 62 regulator-name = "v_3_3"; 63 regulator-min-microvolt = <3300000>; 64 regulator-max-microvolt = <3300000>; 65 regulator-always-on; 66 status = "okay"; 67 }; 68 69 v_vddo_h: regulator-1-8v { 70 compatible = "regulator-fixed"; 71 regulator-name = "v_vddo_h"; 72 regulator-min-microvolt = <1800000>; 73 regulator-max-microvolt = <1800000>; 74 regulator-always-on; 75 status = "okay"; 76 }; 77 78 v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 { 79 compatible = "regulator-fixed"; 80 regulator-name = "v_5v0_usb3_hst_vbus"; 81 regulator-min-microvolt = <5000000>; 82 regulator-max-microvolt = <5000000>; 83 /* actually GPIO controlled, but 8k has no GPIO support yet */ 84 regulator-always-on; 85 status = "okay"; 86 }; 87 88 usb3h0_phy: usb3_phy0 { 89 compatible = "usb-nop-xceiv"; 90 vcc-supply = <&v_5v0_usb3_hst_vbus>; 91 }; 92}; 93 94&uart0 { 95 status = "okay"; 96}; 97 98&ap_sdhci0 { 99 bus-width = <8>; 100 /* 101 * Not stable in HS modes - phy needs "more calibration", so add 102 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes. 103 */ 104 marvell,xenon-phy-slow-mode; 105 no-1-8-v; 106 no-sd; 107 no-sdio; 108 non-removable; 109 status = "okay"; 110 vqmmc-supply = <&v_vddo_h>; 111}; 112 113&cpm_i2c0 { 114 clock-frequency = <100000>; 115 status = "okay"; 116}; 117 118&cpm_mdio { 119 status = "okay"; 120 121 ge_phy: ethernet-phy@0 { 122 reg = <0>; 123 }; 124}; 125 126&cpm_sata0 { 127 /* CPM Lane 0 - U29 */ 128 status = "okay"; 129}; 130 131&cpm_sdhci0 { 132 /* U6 */ 133 broken-cd; 134 bus-width = <4>; 135 status = "okay"; 136 vqmmc-supply = <&v_3_3>; 137}; 138 139&cpm_usb3_0 { 140 /* J38? - USB2.0 only */ 141 status = "okay"; 142}; 143 144&cpm_usb3_1 { 145 /* J38? - USB2.0 only */ 146 status = "okay"; 147}; 148 149&cps_ethernet { 150 status = "okay"; 151}; 152 153&cps_eth1 { 154 /* CPS Lane 0 - J5 (Gigabit RJ45) */ 155 status = "okay"; 156 phy = <&ge_phy>; 157 phy-mode = "sgmii"; 158}; 159 160&cps_sata0 { 161 /* CPS Lane 1 - U32 */ 162 /* CPS Lane 3 - U31 */ 163 status = "okay"; 164}; 165 166&cps_spi1 { 167 status = "okay"; 168 169 spi-flash@0 { 170 compatible = "st,w25q32"; 171 spi-max-frequency = <50000000>; 172 reg = <0>; 173 }; 174}; 175 176&cps_usb3_0 { 177 /* CPS Lane 2 - CON7 */ 178 usb-phy = <&usb3h0_phy>; 179 status = "okay"; 180}; 181