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 TWR Board"; 53279377Simp 54279377Simp aliases { 55279377Simp enet2_rgmii_phy = &rgmii_phy1; 56279377Simp enet0_sgmii_phy = &sgmii_phy2; 57279377Simp enet1_sgmii_phy = &sgmii_phy0; 58279377Simp }; 59295436Sandrew 60295436Sandrew sys_mclk: clock-mclk { 61295436Sandrew compatible = "fixed-clock"; 62295436Sandrew #clock-cells = <0>; 63295436Sandrew clock-frequency = <24576000>; 64295436Sandrew }; 65295436Sandrew 66295436Sandrew regulators { 67295436Sandrew compatible = "simple-bus"; 68295436Sandrew #address-cells = <1>; 69295436Sandrew #size-cells = <0>; 70295436Sandrew 71295436Sandrew reg_3p3v: regulator@0 { 72295436Sandrew compatible = "regulator-fixed"; 73295436Sandrew reg = <0>; 74295436Sandrew regulator-name = "3P3V"; 75295436Sandrew regulator-min-microvolt = <3300000>; 76295436Sandrew regulator-max-microvolt = <3300000>; 77295436Sandrew regulator-always-on; 78295436Sandrew }; 79295436Sandrew }; 80295436Sandrew 81295436Sandrew sound { 82295436Sandrew compatible = "simple-audio-card"; 83295436Sandrew simple-audio-card,format = "i2s"; 84295436Sandrew simple-audio-card,widgets = 85295436Sandrew "Microphone", "Microphone Jack", 86295436Sandrew "Headphone", "Headphone Jack", 87295436Sandrew "Speaker", "Speaker Ext", 88295436Sandrew "Line", "Line In Jack"; 89295436Sandrew simple-audio-card,routing = 90295436Sandrew "MIC_IN", "Microphone Jack", 91295436Sandrew "Microphone Jack", "Mic Bias", 92295436Sandrew "LINE_IN", "Line In Jack", 93295436Sandrew "Headphone Jack", "HP_OUT", 94295436Sandrew "Speaker Ext", "LINE_OUT"; 95295436Sandrew 96295436Sandrew simple-audio-card,cpu { 97295436Sandrew sound-dai = <&sai1>; 98295436Sandrew frame-master; 99295436Sandrew bitclock-master; 100295436Sandrew }; 101295436Sandrew 102295436Sandrew simple-audio-card,codec { 103295436Sandrew sound-dai = <&codec>; 104295436Sandrew frame-master; 105295436Sandrew bitclock-master; 106295436Sandrew }; 107295436Sandrew }; 108295436Sandrew 109295436Sandrew panel: panel { 110295436Sandrew compatible = "nec,nl4827hc19-05b"; 111295436Sandrew }; 112279377Simp}; 113279377Simp 114295436Sandrew&dcu { 115295436Sandrew fsl,panel = <&panel>; 116295436Sandrew status = "okay"; 117295436Sandrew}; 118295436Sandrew 119279377Simp&dspi1 { 120279377Simp bus-num = <0>; 121279377Simp status = "okay"; 122279377Simp 123279377Simp dspiflash: s25fl064k@0 { 124279377Simp #address-cells = <1>; 125279377Simp #size-cells = <1>; 126279377Simp compatible = "spansion,s25fl064k"; 127279377Simp spi-max-frequency = <16000000>; 128279377Simp spi-cpol; 129279377Simp spi-cpha; 130279377Simp reg = <0>; 131279377Simp }; 132279377Simp}; 133279377Simp 134295436Sandrew&enet0 { 135295436Sandrew tbi-handle = <&tbi1>; 136295436Sandrew phy-handle = <&sgmii_phy2>; 137295436Sandrew phy-connection-type = "sgmii"; 138295436Sandrew status = "okay"; 139295436Sandrew}; 140295436Sandrew 141295436Sandrew&enet1 { 142295436Sandrew tbi-handle = <&tbi1>; 143295436Sandrew phy-handle = <&sgmii_phy0>; 144295436Sandrew phy-connection-type = "sgmii"; 145295436Sandrew status = "okay"; 146295436Sandrew}; 147295436Sandrew 148295436Sandrew&enet2 { 149295436Sandrew phy-handle = <&rgmii_phy1>; 150295436Sandrew phy-connection-type = "rgmii-id"; 151295436Sandrew status = "okay"; 152295436Sandrew}; 153295436Sandrew 154279377Simp&i2c0 { 155279377Simp status = "okay"; 156295436Sandrew 157295436Sandrew ina220@40 { 158295436Sandrew compatible = "ti,ina220"; 159295436Sandrew reg = <0x40>; 160295436Sandrew shunt-resistor = <1000>; 161295436Sandrew }; 162295436Sandrew 163295436Sandrew ina220@41 { 164295436Sandrew compatible = "ti,ina220"; 165295436Sandrew reg = <0x41>; 166295436Sandrew shunt-resistor = <1000>; 167295436Sandrew }; 168295436Sandrew 169279377Simp}; 170279377Simp 171279377Simp&i2c1 { 172279377Simp status = "okay"; 173295436Sandrew codec: sgtl5000@a { 174295436Sandrew #sound-dai-cells = <0>; 175295436Sandrew compatible = "fsl,sgtl5000"; 176295436Sandrew reg = <0x0a>; 177295436Sandrew VDDA-supply = <®_3p3v>; 178295436Sandrew VDDIO-supply = <®_3p3v>; 179295436Sandrew clocks = <&sys_mclk 1>; 180295436Sandrew }; 181279377Simp}; 182279377Simp 183279377Simp&ifc { 184279377Simp #address-cells = <2>; 185279377Simp #size-cells = <1>; 186279377Simp /* NOR Flash on board */ 187279377Simp ranges = <0x0 0x0 0x0 0x60000000 0x08000000>; 188279377Simp status = "okay"; 189279377Simp 190279377Simp nor@0,0 { 191279377Simp #address-cells = <1>; 192279377Simp #size-cells = <1>; 193279377Simp compatible = "cfi-flash"; 194279377Simp reg = <0x0 0x0 0x8000000>; 195279377Simp bank-width = <2>; 196279377Simp device-width = <1>; 197279377Simp }; 198279377Simp}; 199279377Simp 200279377Simp&lpuart0 { 201279377Simp status = "okay"; 202279377Simp}; 203279377Simp 204279377Simp&mdio0 { 205279377Simp sgmii_phy0: ethernet-phy@0 { 206279377Simp reg = <0x0>; 207279377Simp }; 208279377Simp rgmii_phy1: ethernet-phy@1 { 209279377Simp reg = <0x1>; 210279377Simp }; 211279377Simp sgmii_phy2: ethernet-phy@2 { 212279377Simp reg = <0x2>; 213279377Simp }; 214279377Simp tbi1: tbi-phy@1f { 215279377Simp reg = <0x1f>; 216279377Simp device_type = "tbi-phy"; 217279377Simp }; 218279377Simp}; 219279377Simp 220295436Sandrew&sai1 { 221295436Sandrew status = "okay"; 222295436Sandrew}; 223295436Sandrew 224295436Sandrew&sata { 225295436Sandrew status = "okay"; 226295436Sandrew}; 227295436Sandrew 228279377Simp&uart0 { 229279377Simp status = "okay"; 230279377Simp}; 231279377Simp 232279377Simp&uart1 { 233279377Simp status = "okay"; 234279377Simp}; 235