armada-370-db.dts revision 295436
1279377Simp/* 2279377Simp * Device Tree file for Marvell Armada 370 evaluation board 3279377Simp * (DB-88F6710-BP-DDR3) 4279377Simp * 5279377Simp * Copyright (C) 2012 Marvell 6279377Simp * 7279377Simp * Lior Amsalem <alior@marvell.com> 8279377Simp * Gregory CLEMENT <gregory.clement@free-electrons.com> 9279377Simp * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 10279377Simp * 11279377Simp * This file is dual-licensed: you can use it either under the terms 12279377Simp * of the GPL or the X11 license, at your option. Note that this dual 13279377Simp * licensing only applies to this file, and not this project as a 14279377Simp * whole. 15279377Simp * 16279377Simp * a) This file is free software; you can redistribute it and/or 17279377Simp * modify it under the terms of the GNU General Public License as 18279377Simp * published by the Free Software Foundation; either version 2 of the 19279377Simp * License, or (at your option) any later version. 20279377Simp * 21279377Simp * This file is distributed in the hope that it will be useful 22279377Simp * but WITHOUT ANY WARRANTY; without even the implied warranty of 23279377Simp * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24279377Simp * GNU General Public License for more details. 25279377Simp * 26279377Simp * Or, alternatively 27279377Simp * 28279377Simp * b) Permission is hereby granted, free of charge, to any person 29279377Simp * obtaining a copy of this software and associated documentation 30279377Simp * files (the "Software"), to deal in the Software without 31279377Simp * restriction, including without limitation the rights to use 32279377Simp * copy, modify, merge, publish, distribute, sublicense, and/or 33279377Simp * sell copies of the Software, and to permit persons to whom the 34279377Simp * Software is furnished to do so, subject to the following 35279377Simp * conditions: 36279377Simp * 37279377Simp * The above copyright notice and this permission notice shall be 38279377Simp * included in all copies or substantial portions of the Software. 39279377Simp * 40279377Simp * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND 41279377Simp * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 42279377Simp * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 43279377Simp * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 44279377Simp * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY 45279377Simp * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 46279377Simp * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 47279377Simp * OTHER DEALINGS IN THE SOFTWARE. 48295436Sandrew * 49295436Sandrew * Note: this Device Tree assumes that the bootloader has remapped the 50295436Sandrew * internal registers to 0xf1000000 (instead of the default 51295436Sandrew * 0xd0000000). The 0xf1000000 is the default used by the recent, 52295436Sandrew * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier 53295436Sandrew * boards were delivered with an older version of the bootloader that 54295436Sandrew * left internal registers mapped at 0xd0000000. If you are in this 55295436Sandrew * situation, you should either update your bootloader (preferred 56295436Sandrew * solution) or the below Device Tree should be adjusted. 57279377Simp */ 58279377Simp 59279377Simp/dts-v1/; 60279377Simp#include "armada-370.dtsi" 61279377Simp 62279377Simp/ { 63279377Simp model = "Marvell Armada 370 Evaluation Board"; 64279377Simp compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp"; 65279377Simp 66279377Simp chosen { 67295436Sandrew stdout-path = "serial0:115200n8"; 68279377Simp }; 69279377Simp 70279377Simp memory { 71279377Simp device_type = "memory"; 72279377Simp reg = <0x00000000 0x40000000>; /* 1 GB */ 73279377Simp }; 74279377Simp 75279377Simp soc { 76295436Sandrew ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 77295436Sandrew MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000 78295436Sandrew MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>; 79279377Simp 80279377Simp internal-regs { 81279377Simp serial@12000 { 82279377Simp status = "okay"; 83279377Simp }; 84279377Simp sata@a0000 { 85279377Simp nr-ports = <2>; 86279377Simp status = "okay"; 87279377Simp }; 88279377Simp 89279377Simp mdio { 90279377Simp pinctrl-0 = <&mdio_pins>; 91279377Simp pinctrl-names = "default"; 92279377Simp phy0: ethernet-phy@0 { 93279377Simp reg = <0>; 94279377Simp }; 95279377Simp 96279377Simp phy1: ethernet-phy@1 { 97279377Simp reg = <1>; 98279377Simp }; 99279377Simp }; 100279377Simp 101279377Simp ethernet@70000 { 102279377Simp pinctrl-0 = <&ge0_rgmii_pins>; 103279377Simp pinctrl-names = "default"; 104279377Simp status = "okay"; 105279377Simp phy = <&phy0>; 106279377Simp phy-mode = "rgmii-id"; 107279377Simp }; 108279377Simp ethernet@74000 { 109279377Simp pinctrl-0 = <&ge1_rgmii_pins>; 110279377Simp pinctrl-names = "default"; 111279377Simp status = "okay"; 112279377Simp phy = <&phy1>; 113279377Simp phy-mode = "rgmii-id"; 114279377Simp }; 115279377Simp 116279377Simp i2c@11000 { 117279377Simp pinctrl-0 = <&i2c0_pins>; 118279377Simp pinctrl-names = "default"; 119279377Simp clock-frequency = <100000>; 120279377Simp status = "okay"; 121279377Simp audio_codec: audio-codec@4a { 122279377Simp #sound-dai-cells = <0>; 123279377Simp compatible = "cirrus,cs42l51"; 124279377Simp reg = <0x4a>; 125279377Simp }; 126279377Simp }; 127279377Simp 128279377Simp audio-controller@30000 { 129279377Simp pinctrl-0 = <&i2s_pins2>; 130279377Simp pinctrl-names = "default"; 131279377Simp status = "okay"; 132279377Simp }; 133279377Simp 134279377Simp mvsdio@d4000 { 135279377Simp pinctrl-0 = <&sdio_pins1>; 136279377Simp pinctrl-names = "default"; 137279377Simp /* 138279377Simp * This device is disabled by default, because 139279377Simp * using the SD card connector requires 140279377Simp * changing the default CON40 connector 141279377Simp * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a 142279377Simp * different connector 143279377Simp * "DB-88F6710_MPP_RGMII_SD_Jumper". 144279377Simp */ 145279377Simp status = "disabled"; 146279377Simp /* No CD or WP GPIOs */ 147279377Simp broken-cd; 148279377Simp }; 149279377Simp 150279377Simp usb@50000 { 151279377Simp status = "okay"; 152279377Simp }; 153279377Simp 154279377Simp usb@51000 { 155279377Simp status = "okay"; 156279377Simp }; 157279377Simp 158279377Simp spi0: spi@10600 { 159279377Simp pinctrl-0 = <&spi0_pins2>; 160279377Simp pinctrl-names = "default"; 161279377Simp status = "okay"; 162279377Simp 163279377Simp spi-flash@0 { 164279377Simp #address-cells = <1>; 165279377Simp #size-cells = <1>; 166295436Sandrew compatible = "mx25l25635e", "jedec,spi-nor"; 167279377Simp reg = <0>; /* Chip select 0 */ 168279377Simp spi-max-frequency = <50000000>; 169279377Simp }; 170279377Simp }; 171279377Simp }; 172279377Simp 173279377Simp pcie-controller { 174279377Simp status = "okay"; 175279377Simp /* 176279377Simp * The two PCIe units are accessible through 177279377Simp * both standard PCIe slots and mini-PCIe 178279377Simp * slots on the board. 179279377Simp */ 180279377Simp pcie@1,0 { 181279377Simp /* Port 0, Lane 0 */ 182279377Simp status = "okay"; 183279377Simp }; 184279377Simp 185279377Simp pcie@2,0 { 186279377Simp /* Port 1, Lane 0 */ 187279377Simp status = "okay"; 188279377Simp }; 189279377Simp }; 190279377Simp }; 191279377Simp 192279377Simp sound { 193279377Simp compatible = "simple-audio-card"; 194279377Simp simple-audio-card,name = "Armada 370 DB Audio"; 195279377Simp simple-audio-card,mclk-fs = <256>; 196279377Simp simple-audio-card,widgets = 197279377Simp "Headphone", "Out Jack", 198279377Simp "Line", "In Jack"; 199279377Simp simple-audio-card,routing = 200279377Simp "Out Jack", "HPL", 201279377Simp "Out Jack", "HPR", 202279377Simp "AIN1L", "In Jack", 203279377Simp "AIN1L", "In Jack"; 204279377Simp status = "okay"; 205279377Simp 206279377Simp simple-audio-card,dai-link@0 { 207279377Simp format = "i2s"; 208279377Simp cpu { 209279377Simp sound-dai = <&audio_controller 0>; 210279377Simp }; 211279377Simp 212279377Simp codec { 213279377Simp sound-dai = <&audio_codec>; 214279377Simp }; 215279377Simp }; 216279377Simp 217279377Simp simple-audio-card,dai-link@1 { 218279377Simp format = "i2s"; 219279377Simp cpu { 220279377Simp sound-dai = <&audio_controller 1>; 221279377Simp }; 222279377Simp 223279377Simp codec { 224279377Simp sound-dai = <&spdif_out>; 225279377Simp }; 226279377Simp }; 227279377Simp 228279377Simp simple-audio-card,dai-link@2 { 229279377Simp format = "i2s"; 230279377Simp cpu { 231279377Simp sound-dai = <&audio_controller 1>; 232279377Simp }; 233279377Simp 234279377Simp codec { 235279377Simp sound-dai = <&spdif_in>; 236279377Simp }; 237279377Simp }; 238279377Simp }; 239279377Simp 240279377Simp spdif_out: spdif-out { 241279377Simp #sound-dai-cells = <0>; 242279377Simp compatible = "linux,spdif-dit"; 243279377Simp }; 244279377Simp 245279377Simp spdif_in: spdif-in { 246279377Simp #sound-dai-cells = <0>; 247279377Simp compatible = "linux,spdif-dir"; 248279377Simp }; 249279377Simp}; 250