1ba321360SHarninder Rai/* 2ba321360SHarninder Rai * Device Tree file for Freescale LS1012A QDS Board. 3ba321360SHarninder Rai * 4ba321360SHarninder Rai * Copyright 2016, Freescale Semiconductor 5ba321360SHarninder Rai * 6ba321360SHarninder Rai * This file is dual-licensed: you can use it either under the terms 7ba321360SHarninder Rai * of the GPLv2 or the X11 license, at your option. Note that this dual 8ba321360SHarninder Rai * licensing only applies to this file, and not this project as a 9ba321360SHarninder Rai * whole. 10ba321360SHarninder Rai * 11ba321360SHarninder Rai * a) This library is free software; you can redistribute it and/or 12ba321360SHarninder Rai * modify it under the terms of the GNU General Public License as 13ba321360SHarninder Rai * published by the Free Software Foundation; either version 2 of the 14ba321360SHarninder Rai * License, or (at your option) any later version. 15ba321360SHarninder Rai * 16ba321360SHarninder Rai * This library is distributed in the hope that it will be useful, 17ba321360SHarninder Rai * but WITHOUT ANY WARRANTY; without even the implied warranty of 18ba321360SHarninder Rai * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19ba321360SHarninder Rai * GNU General Public License for more details. 20ba321360SHarninder Rai * 21ba321360SHarninder Rai * Or, alternatively, 22ba321360SHarninder Rai * 23ba321360SHarninder Rai * b) Permission is hereby granted, free of charge, to any person 24ba321360SHarninder Rai * obtaining a copy of this software and associated documentation 25ba321360SHarninder Rai * files (the "Software"), to deal in the Software without 26ba321360SHarninder Rai * restriction, including without limitation the rights to use, 27ba321360SHarninder Rai * copy, modify, merge, publish, distribute, sublicense, and/or 28ba321360SHarninder Rai * sell copies of the Software, and to permit persons to whom the 29ba321360SHarninder Rai * Software is furnished to do so, subject to the following 30ba321360SHarninder Rai * conditions: 31ba321360SHarninder Rai * 32ba321360SHarninder Rai * The above copyright notice and this permission notice shall be 33ba321360SHarninder Rai * included in all copies or substantial portions of the Software. 34ba321360SHarninder Rai * 35ba321360SHarninder Rai * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 36ba321360SHarninder Rai * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 37ba321360SHarninder Rai * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 38ba321360SHarninder Rai * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 39ba321360SHarninder Rai * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 40ba321360SHarninder Rai * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41ba321360SHarninder Rai * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42ba321360SHarninder Rai * OTHER DEALINGS IN THE SOFTWARE. 43ba321360SHarninder Rai */ 44ba321360SHarninder Rai/dts-v1/; 45ba321360SHarninder Rai 46ba321360SHarninder Rai#include "fsl-ls1012a.dtsi" 47ba321360SHarninder Rai 48ba321360SHarninder Rai/ { 49ba321360SHarninder Rai model = "LS1012A QDS Board"; 50ba321360SHarninder Rai compatible = "fsl,ls1012a-qds", "fsl,ls1012a"; 51ba321360SHarninder Rai 52ba321360SHarninder Rai sys_mclk: clock-mclk { 53ba321360SHarninder Rai compatible = "fixed-clock"; 54ba321360SHarninder Rai #clock-cells = <0>; 55ba321360SHarninder Rai clock-frequency = <24576000>; 56ba321360SHarninder Rai }; 57ba321360SHarninder Rai 58ba321360SHarninder Rai reg_3p3v: regulator-3p3v { 59ba321360SHarninder Rai compatible = "regulator-fixed"; 60ba321360SHarninder Rai regulator-name = "3P3V"; 61ba321360SHarninder Rai regulator-min-microvolt = <3300000>; 62ba321360SHarninder Rai regulator-max-microvolt = <3300000>; 63ba321360SHarninder Rai regulator-always-on; 64ba321360SHarninder Rai }; 65ba321360SHarninder Rai 66ba321360SHarninder Rai sound { 67ba321360SHarninder Rai compatible = "simple-audio-card"; 68ba321360SHarninder Rai simple-audio-card,format = "i2s"; 69ba321360SHarninder Rai simple-audio-card,widgets = 70ba321360SHarninder Rai "Microphone", "Microphone Jack", 71ba321360SHarninder Rai "Headphone", "Headphone Jack", 72ba321360SHarninder Rai "Speaker", "Speaker Ext", 73ba321360SHarninder Rai "Line", "Line In Jack"; 74ba321360SHarninder Rai simple-audio-card,routing = 75ba321360SHarninder Rai "MIC_IN", "Microphone Jack", 76ba321360SHarninder Rai "Microphone Jack", "Mic Bias", 77ba321360SHarninder Rai "LINE_IN", "Line In Jack", 78ba321360SHarninder Rai "Headphone Jack", "HP_OUT", 79ba321360SHarninder Rai "Speaker Ext", "LINE_OUT"; 80ba321360SHarninder Rai 81ba321360SHarninder Rai simple-audio-card,cpu { 82ba321360SHarninder Rai sound-dai = <&sai2>; 83ba321360SHarninder Rai frame-master; 84ba321360SHarninder Rai bitclock-master; 85ba321360SHarninder Rai }; 86ba321360SHarninder Rai 87ba321360SHarninder Rai simple-audio-card,codec { 88ba321360SHarninder Rai sound-dai = <&codec>; 89ba321360SHarninder Rai frame-master; 90ba321360SHarninder Rai bitclock-master; 91ba321360SHarninder Rai system-clock-frequency = <24576000>; 92ba321360SHarninder Rai }; 93ba321360SHarninder Rai }; 94ba321360SHarninder Rai}; 95ba321360SHarninder Rai 96ba321360SHarninder Rai&duart0 { 97ba321360SHarninder Rai status = "okay"; 98ba321360SHarninder Rai}; 99ba321360SHarninder Rai 100ba321360SHarninder Rai&i2c0 { 101ba321360SHarninder Rai status = "okay"; 102ba321360SHarninder Rai 103ba321360SHarninder Rai pca9547@77 { 104ba321360SHarninder Rai compatible = "nxp,pca9547"; 105ba321360SHarninder Rai reg = <0x77>; 106ba321360SHarninder Rai #address-cells = <1>; 107ba321360SHarninder Rai #size-cells = <0>; 108ba321360SHarninder Rai 109ba321360SHarninder Rai i2c@4 { 110ba321360SHarninder Rai #address-cells = <1>; 111ba321360SHarninder Rai #size-cells = <0>; 112ba321360SHarninder Rai reg = <0x4>; 113ba321360SHarninder Rai 114ba321360SHarninder Rai codec: sgtl5000@a { 115ba321360SHarninder Rai #sound-dai-cells = <0>; 116ba321360SHarninder Rai compatible = "fsl,sgtl5000"; 117ba321360SHarninder Rai reg = <0xa>; 118ba321360SHarninder Rai VDDA-supply = <®_3p3v>; 119ba321360SHarninder Rai VDDIO-supply = <®_3p3v>; 120ba321360SHarninder Rai clocks = <&sys_mclk>; 121ba321360SHarninder Rai }; 122ba321360SHarninder Rai }; 123ba321360SHarninder Rai }; 124ba321360SHarninder Rai}; 125ba321360SHarninder Rai 126ba321360SHarninder Rai&sai2 { 127ba321360SHarninder Rai status = "okay"; 128ba321360SHarninder Rai}; 129