Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for Oxalis
0004  *
0005  * Copyright (c) 2019 Manivannan Sadhasivam
0006  *
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "fsl-ls1012a.dtsi"
0012 
0013 / {
0014         model = "Oxalis";
0015         compatible = "ebs-systart,oxalis", "fsl,ls1012a";
0016 
0017         sys_mclk: clock-mclk {
0018                 compatible = "fixed-clock";
0019                 #clock-cells = <0>;
0020                 clock-frequency = <25000000>;
0021         };
0022 
0023         reg_1p8v: regulator-1p8v {
0024                 compatible = "regulator-fixed";
0025                 regulator-name = "1P8V";
0026                 regulator-min-microvolt = <1800000>;
0027                 regulator-max-microvolt = <1800000>;
0028                 regulator-always-on;
0029         };
0030 
0031         sound {
0032                 compatible = "simple-audio-card";
0033                 simple-audio-card,format = "i2s";
0034                 simple-audio-card,widgets =
0035                         "Microphone", "Microphone Jack",
0036                         "Headphone", "Headphone Jack",
0037                         "Speaker", "Speaker Ext",
0038                         "Line", "Line In Jack";
0039                 simple-audio-card,routing =
0040                         "MIC_IN", "Microphone Jack",
0041                         "Microphone Jack", "Mic Bias",
0042                         "LINE_IN", "Line In Jack",
0043                         "Headphone Jack", "HP_OUT",
0044                         "Speaker Ext", "LINE_OUT";
0045 
0046                 simple-audio-card,cpu {
0047                         sound-dai = <&sai2>;
0048                         frame-master;
0049                         bitclock-master;
0050                 };
0051 
0052                 simple-audio-card,codec {
0053                         sound-dai = <&codec>;
0054                         frame-master;
0055                         bitclock-master;
0056                         system-clock-frequency = <25000000>;
0057                 };
0058         };
0059 };
0060 
0061 &duart0 {
0062         status = "okay";
0063 };
0064 
0065 &duart1 {
0066         status = "okay";
0067 };
0068 
0069 &esdhc1 {
0070         status = "okay";
0071 };
0072 
0073 &i2c0 {
0074         status = "okay";
0075 
0076         codec: audio-codec@a {
0077                 #sound-dai-cells = <0>;
0078                 compatible = "fsl,sgtl5000";
0079                 reg = <0xa>;
0080                 VDDA-supply = <&reg_1p8v>;
0081                 VDDIO-supply = <&reg_1p8v>;
0082                 clocks = <&sys_mclk>;
0083         };
0084 };
0085 
0086 &i2c1 {
0087         status = "okay";
0088 };
0089 
0090 &pcie1 {
0091         status = "okay";
0092 };
0093 
0094 &sai2 {
0095         status = "okay";
0096 };
0097 
0098 &sata {
0099         status = "okay";
0100 };