2 * Copyright (C) 2016 Marvell Technology Group Ltd.
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
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.
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.
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
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
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.
44 * Device Tree file for MACCHIATOBin Armada 8040 community board platform
47 #include "armada-8040.dtsi"
49 #include <dt-bindings/gpio/gpio.h>
52 model = "Marvell 8040 MACHIATOBin";
53 compatible = "marvell,armada8040-mcbin", "marvell,armada8040",
54 "marvell,armada-ap806-quad", "marvell,armada-ap806";
57 stdout-path = "serial0:115200n8";
61 device_type = "memory";
62 reg = <0x0 0x0 0x0 0x80000000>;
66 ethernet0 = &cp0_eth0;
67 ethernet1 = &cp1_eth0;
68 ethernet2 = &cp1_eth1;
71 /* Regulator labels correspond with schematics */
72 v_3_3: regulator-3-3v {
73 compatible = "regulator-fixed";
74 regulator-name = "v_3_3";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
81 v_vddo_h: regulator-1-8v {
82 compatible = "regulator-fixed";
83 regulator-name = "v_vddo_h";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
90 v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 {
91 compatible = "regulator-fixed";
93 gpio = <&cp0_gpio2 15 GPIO_ACTIVE_HIGH>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&cp0_xhci_vbus_pins>;
96 regulator-name = "v_5v0_usb3_hst_vbus";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
102 usb3h0_phy: usb3_phy0 {
103 compatible = "usb-nop-xceiv";
104 vcc-supply = <&v_5v0_usb3_hst_vbus>;
110 pinctrl-0 = <&uart0_pins>;
111 pinctrl-names = "default";
117 * Not stable in HS modes - phy needs "more calibration", so add
118 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
120 marvell,xenon-phy-slow-mode;
126 vqmmc-supply = <&v_vddo_h>;
130 clock-frequency = <100000>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&cp0_i2c0_pins>;
137 clock-frequency = <100000>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&cp0_i2c1_pins>;
143 compatible = "nxp,pca9548";
144 #address-cells = <1>;
149 #address-cells = <1>;
154 #address-cells = <1>;
159 #address-cells = <1>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&cp0_ge_mdio_pins>;
171 ge_phy: ethernet-phy@0 {
177 pinctrl-names = "default";
178 pinctrl-0 = <&cp0_pcie_pins>;
181 reset-gpio = <&cp0_gpio1 20 GPIO_ACTIVE_LOW>;
186 cp0_ge_mdio_pins: ge-mdio-pins {
187 marvell,pins = "mpp32", "mpp34";
188 marvell,function = "ge";
190 cp0_i2c1_pins: i2c1-pins {
191 marvell,pins = "mpp35", "mpp36";
192 marvell,function = "i2c1";
194 cp0_i2c0_pins: i2c0-pins {
195 marvell,pins = "mpp37", "mpp38";
196 marvell,function = "i2c0";
198 cp0_xhci_vbus_pins: xhci0-vbus-pins {
199 marvell,pins = "mpp47";
200 marvell,function = "gpio";
202 cp0_pcie_pins: pcie-pins {
203 marvell,pins = "mpp52";
204 marvell,function = "gpio";
206 cp0_sdhci_pins: sdhci-pins {
207 marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59",
209 marvell,function = "sdio";
216 phy0: ethernet-phy@0 {
217 compatible = "ethernet-phy-ieee802.3-c45";
221 phy8: ethernet-phy@8 {
222 compatible = "ethernet-phy-ieee802.3-c45";
235 phy-mode = "10gbase-kr";
236 /* Generic PHY, providing serdes lanes */
237 phys = <&cp0_comphy4 0>;
241 /* CPM Lane 0 - U29 */
249 pinctrl-names = "default";
250 pinctrl-0 = <&cp0_sdhci_pins>;
252 vqmmc-supply = <&v_3_3>;
256 /* J38? - USB2.0 only */
261 /* J38? - USB2.0 only */
273 phy-mode = "10gbase-kr";
274 /* Generic PHY, providing serdes lanes */
275 phys = <&cp1_comphy4 0>;
279 /* CPS Lane 0 - J5 (Gigabit RJ45) */
284 /* Generic PHY, providing serdes lanes */
285 phys = <&cp1_comphy0 1>;
289 cp1_spi1_pins: spi1-pins {
290 marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15", "mpp16";
291 marvell,function = "spi1";
296 /* CPS Lane 1 - U32 */
297 /* CPS Lane 3 - U31 */
302 pinctrl-names = "default";
303 pinctrl-0 = <&cp1_spi1_pins>;
307 compatible = "st,w25q32";
308 spi-max-frequency = <50000000>;
314 /* CPS Lane 2 - CON7 */
315 usb-phy = <&usb3h0_phy>;