ls1021a-qds.dts revision 279377
1279377Simp/* 2279377Simp * Copyright 2013-2014 Freescale Semiconductor, Inc. 3279377Simp * 4279377Simp * This file is dual-licensed: you can use it either under the terms 5279377Simp * of the GPL or the X11 license, at your option. Note that this dual 6279377Simp * licensing only applies to this file, and not this project as a 7279377Simp * whole. 8279377Simp * 9279377Simp * a) This file is free software; you can redistribute it and/or 10279377Simp * modify it under the terms of the GNU General Public License as 11279377Simp * published by the Free Software Foundation; either version 2 of 12279377Simp * the License, or (at your option) any later version. 13279377Simp * 14279377Simp * This file is distributed in the hope that it will be useful, 15279377Simp * but WITHOUT ANY WARRANTY; without even the implied warranty of 16279377Simp * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17279377Simp * GNU General Public License for more details. 18279377Simp * 19279377Simp * You should have received a copy of the GNU General Public 20279377Simp * License along with this file; if not, write to the Free 21279377Simp * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 22279377Simp * MA 02110-1301 USA 23279377Simp * 24279377Simp * Or, alternatively, 25279377Simp * 26279377Simp * b) Permission is hereby granted, free of charge, to any person 27279377Simp * obtaining a copy of this software and associated documentation 28279377Simp * files (the "Software"), to deal in the Software without 29279377Simp * restriction, including without limitation the rights to use, 30279377Simp * copy, modify, merge, publish, distribute, sublicense, and/or 31279377Simp * sell copies of the Software, and to permit persons to whom the 32279377Simp * Software is furnished to do so, subject to the following 33279377Simp * conditions: 34279377Simp * 35279377Simp * The above copyright notice and this permission notice shall be 36279377Simp * included in all copies or substantial portions of the Software. 37279377Simp * 38279377Simp * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 39279377Simp * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 40279377Simp * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 41279377Simp * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 42279377Simp * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 43279377Simp * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44279377Simp * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 45279377Simp * OTHER DEALINGS IN THE SOFTWARE. 46279377Simp */ 47279377Simp 48279377Simp/dts-v1/; 49279377Simp#include "ls1021a.dtsi" 50279377Simp 51279377Simp/ { 52279377Simp model = "LS1021A QDS Board"; 53279377Simp 54279377Simp aliases { 55279377Simp enet0_rgmii_phy = &rgmii_phy1; 56279377Simp enet1_rgmii_phy = &rgmii_phy2; 57279377Simp enet2_rgmii_phy = &rgmii_phy3; 58279377Simp enet0_sgmii_phy = &sgmii_phy1c; 59279377Simp enet1_sgmii_phy = &sgmii_phy1d; 60279377Simp }; 61279377Simp}; 62279377Simp 63279377Simp&dspi0 { 64279377Simp bus-num = <0>; 65279377Simp status = "okay"; 66279377Simp 67279377Simp dspiflash: at45db021d@0 { 68279377Simp #address-cells = <1>; 69279377Simp #size-cells = <1>; 70279377Simp compatible = "atmel,at45db021d", "atmel,at45", "atmel,dataflash"; 71279377Simp spi-max-frequency = <16000000>; 72279377Simp spi-cpol; 73279377Simp spi-cpha; 74279377Simp reg = <0>; 75279377Simp }; 76279377Simp}; 77279377Simp 78279377Simp&i2c0 { 79279377Simp status = "okay"; 80279377Simp 81279377Simp pca9547: mux@77 { 82279377Simp reg = <0x77>; 83279377Simp #address-cells = <1>; 84279377Simp #size-cells = <0>; 85279377Simp 86279377Simp i2c@0 { 87279377Simp #address-cells = <1>; 88279377Simp #size-cells = <0>; 89279377Simp reg = <0x0>; 90279377Simp 91279377Simp ds3232: rtc@68 { 92279377Simp compatible = "dallas,ds3232"; 93279377Simp reg = <0x68>; 94279377Simp interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; 95279377Simp }; 96279377Simp }; 97279377Simp 98279377Simp i2c@2 { 99279377Simp #address-cells = <1>; 100279377Simp #size-cells = <0>; 101279377Simp reg = <0x2>; 102279377Simp 103279377Simp ina220@40 { 104279377Simp compatible = "ti,ina220"; 105279377Simp reg = <0x40>; 106279377Simp shunt-resistor = <1000>; 107279377Simp }; 108279377Simp 109279377Simp ina220@41 { 110279377Simp compatible = "ti,ina220"; 111279377Simp reg = <0x41>; 112279377Simp shunt-resistor = <1000>; 113279377Simp }; 114279377Simp }; 115279377Simp 116279377Simp i2c@3 { 117279377Simp #address-cells = <1>; 118279377Simp #size-cells = <0>; 119279377Simp reg = <0x3>; 120279377Simp 121279377Simp eeprom@56 { 122279377Simp compatible = "atmel,24c512"; 123279377Simp reg = <0x56>; 124279377Simp }; 125279377Simp 126279377Simp eeprom@57 { 127279377Simp compatible = "atmel,24c512"; 128279377Simp reg = <0x57>; 129279377Simp }; 130279377Simp 131279377Simp adt7461a@4c { 132279377Simp compatible = "adi,adt7461a"; 133279377Simp reg = <0x4c>; 134279377Simp }; 135279377Simp }; 136279377Simp }; 137279377Simp}; 138279377Simp 139279377Simp&ifc { 140279377Simp #address-cells = <2>; 141279377Simp #size-cells = <1>; 142279377Simp /* NOR, NAND Flashes and FPGA on board */ 143279377Simp ranges = <0x0 0x0 0x0 0x60000000 0x08000000 144279377Simp 0x2 0x0 0x0 0x7e800000 0x00010000 145279377Simp 0x3 0x0 0x0 0x7fb00000 0x00000100>; 146279377Simp status = "okay"; 147279377Simp 148279377Simp nor@0,0 { 149279377Simp #address-cells = <1>; 150279377Simp #size-cells = <1>; 151279377Simp compatible = "cfi-flash"; 152279377Simp reg = <0x0 0x0 0x8000000>; 153279377Simp bank-width = <2>; 154279377Simp device-width = <1>; 155279377Simp }; 156279377Simp 157279377Simp fpga: board-control@3,0 { 158279377Simp #address-cells = <1>; 159279377Simp #size-cells = <1>; 160279377Simp compatible = "simple-bus"; 161279377Simp reg = <0x3 0x0 0x0000100>; 162279377Simp bank-width = <1>; 163279377Simp device-width = <1>; 164279377Simp ranges = <0 3 0 0x100>; 165279377Simp 166279377Simp mdio-mux-emi1 { 167279377Simp compatible = "mdio-mux-mmioreg"; 168279377Simp mdio-parent-bus = <&mdio0>; 169279377Simp #address-cells = <1>; 170279377Simp #size-cells = <0>; 171279377Simp reg = <0x54 1>; /* BRDCFG4 */ 172279377Simp mux-mask = <0xe0>; /* EMI1[2:0] */ 173279377Simp 174279377Simp /* Onboard PHYs */ 175279377Simp ls1021amdio0: mdio@0 { 176279377Simp reg = <0>; 177279377Simp #address-cells = <1>; 178279377Simp #size-cells = <0>; 179279377Simp rgmii_phy1: ethernet-phy@1 { 180279377Simp reg = <0x1>; 181279377Simp }; 182279377Simp }; 183279377Simp 184279377Simp ls1021amdio1: mdio@20 { 185279377Simp reg = <0x20>; 186279377Simp #address-cells = <1>; 187279377Simp #size-cells = <0>; 188279377Simp rgmii_phy2: ethernet-phy@2 { 189279377Simp reg = <0x2>; 190279377Simp }; 191279377Simp }; 192279377Simp 193279377Simp ls1021amdio2: mdio@40 { 194279377Simp reg = <0x40>; 195279377Simp #address-cells = <1>; 196279377Simp #size-cells = <0>; 197279377Simp rgmii_phy3: ethernet-phy@3 { 198279377Simp reg = <0x3>; 199279377Simp }; 200279377Simp }; 201279377Simp 202279377Simp ls1021amdio3: mdio@60 { 203279377Simp reg = <0x60>; 204279377Simp #address-cells = <1>; 205279377Simp #size-cells = <0>; 206279377Simp sgmii_phy1c: ethernet-phy@1c { 207279377Simp reg = <0x1c>; 208279377Simp }; 209279377Simp }; 210279377Simp 211279377Simp ls1021amdio4: mdio@80 { 212279377Simp reg = <0x80>; 213279377Simp #address-cells = <1>; 214279377Simp #size-cells = <0>; 215279377Simp sgmii_phy1d: ethernet-phy@1d { 216279377Simp reg = <0x1d>; 217279377Simp }; 218279377Simp }; 219279377Simp }; 220279377Simp }; 221279377Simp}; 222279377Simp 223279377Simp&lpuart0 { 224279377Simp status = "okay"; 225279377Simp}; 226279377Simp 227279377Simp&mdio0 { 228279377Simp tbi0: tbi-phy@8 { 229279377Simp reg = <0x8>; 230279377Simp device_type = "tbi-phy"; 231279377Simp }; 232279377Simp}; 233279377Simp 234279377Simp&uart0 { 235279377Simp status = "okay"; 236279377Simp}; 237279377Simp 238279377Simp&uart1 { 239279377Simp status = "okay"; 240279377Simp}; 241