ARM: dts: imx6ul-pico-hobbit: add sgtl5000 sound card support
Subsystems (2)
PATCH 1/1 ARM: dts: imx6ul-pico-hobbit: add sgtl5000 sound card support
use simple-audio-card to support sgtl5000 with SAI interface.
--- arch/arm/boot/dts/imx6ul-pico-hobbit.dts | 29 +++++++++++++++++++++-------- arch/arm/boot/dts/imx6ul-pinfunc.h | 2 +- 2 files changed, 22 insertions(+), 9 deletions(-)
arch/arm/boot/dts/imx6ul-pico-hobbit.dts +21 -8
@@ -101,15 +101,26 @@ }; sound { - compatible = "fsl,imx-audio-sgtl5000"; - model = "imx6ul-sgtl5000"; - audio-cpu = <&sai1>; - audio-codec = <&codec>; - audio-routing = - "LINE_IN", "Line In Jack", - "MIC_IN", "Mic Jack", - "Mic Jack", "Mic Bias", + compatible = "simple-audio-card"; + simple-audio-card,name = "imx6ul-sgtl5000"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,widgets = + "Microphone", "Microphone Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "MIC_IN", "Microphone Jack", + "Microphone Jack", "Mic Bias", "Headphone Jack", "HP_OUT"; + + simple-audio-card,cpu { + sound-dai = <&sai1>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&codec>; + }; }; sys_mclk: clock-sys-mclk {
@@ -218,6 +229,7 @@ status = "okay"; codec: sgtl5000@0a { + #sound-dai-cells = <0>; reg = <0x0a>; compatible = "fsl,sgtl5000"; clocks = <&sys_mclk>;
@@ -284,6 +296,7 @@ }; &sai1 { + #sound-dai-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai1>; status = "okay";
arch/arm/boot/dts/imx6ul-pinfunc.h +1 -1
@@ -924,7 +924,7 @@#define MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x01fc 0x0488 0x053c 3 1#define MX6UL_PAD_CSI_DATA06__EIM_AD06 0x01fc 0x0488 0x0000 4 0#define MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x01fc 0x0488 0x0000 5 0 -#define MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x01fc 0x0488 0x0000 6 0 +#define MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x01fc 0x0488 0x05E4 6 1#define MX6UL_PAD_CSI_DATA06__USDHC1_RESET_B 0x01fc 0x0488 0x0000 8 0#define MX6UL_PAD_CSI_DATA07__CSI_DATA09 0x0200 0x048c 0x04e8 0 1#define MX6UL_PAD_CSI_DATA07__USDHC2_DATA7 0x0200 0x048c 0x0698 1 2
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx6ul-pico-hobbit: add sgtl5000 sound card support
Hi Winter,
Quoted 1 line · Winter Wang
use simple-audio-card to support sgtl5000 with SAI interface.
Is this really needed? Currently we get audio working via sound/soc/fsl/fsl-asoc-card.c driver.
arch/arm/boot/dts/imx6ul-pinfunc.h line 927
Quoted 10 lines
arch/arm/boot/dts/imx6ul-pinfunc.h +1
-1@@ -924,7 +924,7 @@#define MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x01fc 0x0488 0x053c 3 1#define MX6UL_PAD_CSI_DATA06__EIM_AD06 0x01fc 0x0488 0x0000 4 0#define MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x01fc 0x0488 0x0000 5 0 -#define MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x01fc 0x0488 0x0000 6 0 +#define MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x01fc 0x0488 0x05E4 6 1
This should be a separate change and you need to explain it.
PATCH 1/1 ARM: dts: imx6ul-pico-hobbit: add sgtl5000 sound card support
Quoted 26 lines
-----Original Message-----
From: Fabio Estevam [mailto:festevam at gmail.com]
To: Wente Wang <[email protected]>
Cc: Shawn Guo <[email protected]>; Fabio Estevam <[email protected]>; Sascha Hauer <[email protected]>; linux-arm-kernel at lists.infradead.org; devicetree at vger.kernel.org
Subject: Re: [PATCH] ARM: dts: imx6ul-pico-hobbit: add sgtl5000 sound card supportHi Winter,
Quoted 1 line · Winter Wang
use simple-audio-card to support sgtl5000 with SAI interface.
Is this really needed? Currently we get audio working via
sound/soc/fsl/fsl-asoc-card.cdriver.arch/arm/boot/dts/imx6ul-pinfunc.h line 924
Quoted 7 lines
arch/arm/boot/dts/imx6ul-pinfunc.h +0
-0@@ -924,7 +924,7 @@#define MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x01fc 0x0488
0x053c3 1arch/arm/boot/dts/imx6ul-pinfunc.h line 925
Quoted 1 line
arch/arm/boot/dts/imx6ul-pinfunc.h +0
-0#define MX6UL_PAD_CSI_DATA06__EIM_AD06 0x01fc 0x0488
0x00004 0
Quoted 8 lines
arch/arm/boot/dts/imx6ul-pinfunc.h line 926
Quoted 1 line
arch/arm/boot/dts/imx6ul-pinfunc.h +0
-0#define MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x01fc 0x0488
0x00005 0arch/arm/boot/dts/imx6ul-pinfunc.h line 927
Quoted 1 line
arch/arm/boot/dts/imx6ul-pinfunc.h +0
-1-#define MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x01fc 0x0488
0x00006 0arch/arm/boot/dts/imx6ul-pinfunc.h line 927
Quoted 1 line
arch/arm/boot/dts/imx6ul-pinfunc.h +1
-0+#define MX6UL_PAD_CSI_DATA06__SAI1_RX_DATA 0x01fc 0x0488
0x05E46 1This should be a separate change and you need to explain it.
I'm trying to enable pico's sgtl5000 on 4.4 kernel, but recording is not working sometimes. I think it may related with pinfunc.h, will check that.