Linux Audio

Check our new training course

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