imx8mq-librem5-devkit.dts: add the sound card nodes

parent 6a01f979
......@@ -54,23 +54,51 @@
clock-output-names = "pmic_osc";
};
cpu0_opp_table: opp-table {
compatible = "operating-points-v2";
opp-shared;
opp-1000000000 {
opp-hz = /bits/ 64 <1000000000>;
opp-microvolt = <900000>;
clock-latency-ns = <150000>;
};
opp-1500000000 {
opp-hz = /bits/ 64 <1500000000>;
opp-microvolt = <1000000>;
clock-latency-ns = <150000>;
opp-suspend;
};
};
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "sgtl5000";
simple-audio-card,format = "i2s";
simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Headphone", "Headphone Jack",
"Speaker", "Speaker Ext",
"Line", "Line In Jack";
simple-audio-card,routing =
"MIC_IN", "Microphone Jack",
"Microphone Jack", "Mic Bias",
"LINE_IN", "Line In Jack",
"Headphone Jack", "HP_OUT",
"Speaker Ext", "LINE_OUT";
simple-audio-card,cpu {
sound-dai = <&sai2>;
};
simple-audio-card,codec {
sound-dai = <&sgtl5000>;
clocks = <&clk IMX8MQ_CLK_SAI2>;
frame-master;
bitclock-master;
};
};
cpu0_opp_table: opp-table {
compatible = "operating-points-v2";
opp-shared;
opp-1000000000 {
opp-hz = /bits/ 64 <1000000000>;
opp-microvolt = <900000>;
clock-latency-ns = <150000>;
};
opp-1500000000 {
opp-hz = /bits/ 64 <1500000000>;
opp-microvolt = <1000000>;
clock-latency-ns = <150000>;
opp-suspend;
};
};
};
......@@ -773,6 +801,14 @@
pinctrl-0 = <&pinctrl_i2c3>, <&pinctrl_imu>;
status = "okay";
sgtl5000: sgtl5000@a {
compatible = "fsl,sgtl5000";
clocks = <&clk IMX8MQ_CLK_SAI2>;
clock-names = "mclk";
#sound-dai-cells = <0>;
reg = <0x0a>;
};
lsm9d: lsm9d@6a {
compatible = "st,lsm9ds1-gyro";
reg = <0x6a>;
......@@ -810,6 +846,22 @@
dr_mode = "otg";
};
&sai2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
#sound-dai-cells = <0>;
assigned-clock-parents =
<&clk IMX8MQ_AUDIO_PLL1_OUT>,
<&clk IMX8MQ_AUDIO_PLL1>;
assigned-clocks = <&clk IMX8MQ_CLK_SAI2>,
<&clk IMX8MQ_AUDIO_PLL1_BYPASS>,
<&clk IMX8MQ_AUDIO_PLL1>;
assigned-clock-rates = <24576000>, <0>,
<786432000>;
status = "okay";
};
&uart1 { /* console */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment