Message ID | 20171203204157.20829-10-anarsoul@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Dec 4, 2017 at 4:41 AM, Vasily Khoruzhick <anarsoul@gmail.com> wrote: > This commit enables I2S, digital and analog parts of audiocodec on > Pine64 and SoPine boards. > > Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> > --- > arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 ++++++++++++++++ > .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | 16 ++++++++++++++++ > 2 files changed, 32 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > index 806442d3e846..369d9b749521 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts > @@ -64,6 +64,18 @@ > }; > }; > > +&codec { > + status = "okay"; > +}; > + > +&codec_analog { > + status = "okay"; > +}; > + > +&dai { > + status = "okay"; > +}; > + > &ehci0 { > status = "okay"; > }; > @@ -229,6 +241,10 @@ > regulator-name = "vcc-rtc"; > }; > > +&sound { > + status = "okay"; This is missing all the board level widgets and routing. Yes I know that it works right now, but that's because simple-card isn't a strict card, i.e. it doesn't force the need for actual inputs and outputs at both ends of the DAPM graph. Later on you'll find that missing the routing leaves the microphone unusable, because the microphone bias is not turned on. ChenYu > +}; > + > /* On Exp and Euler connectors */ > &uart0 { > pinctrl-names = "default"; > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts > index 0eb2acedf8c3..9de5ddcc3656 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts > @@ -69,6 +69,18 @@ > }; > }; > > +&codec { > + status = "okay"; > +}; > + > +&codec_analog { > + status = "okay"; > +}; > + > +&dai { > + status = "okay"; > +}; > + > &ehci0 { > status = "okay"; > }; > @@ -133,6 +145,10 @@ > regulator-name = "vcc-wifi"; > }; > > +&sound { > + status = "okay"; > +}; > + > &uart0 { > pinctrl-names = "default"; > pinctrl-0 = <&uart0_pins_a>; > -- > 2.15.0 >
On Mon, Dec 4, 2017 at 7:24 PM, Chen-Yu Tsai <wens@csie.org> wrote: > On Mon, Dec 4, 2017 at 4:41 AM, Vasily Khoruzhick <anarsoul@gmail.com> wrote: >> This commit enables I2S, digital and analog parts of audiocodec on >> Pine64 and SoPine boards. >> >> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> >> --- >> arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 ++++++++++++++++ >> .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | 16 ++++++++++++++++ >> 2 files changed, 32 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> index 806442d3e846..369d9b749521 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts >> @@ -64,6 +64,18 @@ >> }; >> }; >> >> +&codec { >> + status = "okay"; >> +}; >> + >> +&codec_analog { >> + status = "okay"; >> +}; >> + >> +&dai { >> + status = "okay"; >> +}; >> + >> &ehci0 { >> status = "okay"; >> }; >> @@ -229,6 +241,10 @@ >> regulator-name = "vcc-rtc"; >> }; >> >> +&sound { >> + status = "okay"; > > This is missing all the board level widgets and routing. > Yes I know that it works right now, but that's because simple-card > isn't a strict card, i.e. it doesn't force the need for actual inputs > and outputs at both ends of the DAPM graph. > > Later on you'll find that missing the routing leaves the microphone > unusable, because the microphone bias is not turned on. sun8i-codec driver doesn't support capture at the moment. What else it could be missing? > > ChenYu > >> +}; >> + >> /* On Exp and Euler connectors */ >> &uart0 { >> pinctrl-names = "default"; >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts >> index 0eb2acedf8c3..9de5ddcc3656 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts >> @@ -69,6 +69,18 @@ >> }; >> }; >> >> +&codec { >> + status = "okay"; >> +}; >> + >> +&codec_analog { >> + status = "okay"; >> +}; >> + >> +&dai { >> + status = "okay"; >> +}; >> + >> &ehci0 { >> status = "okay"; >> }; >> @@ -133,6 +145,10 @@ >> regulator-name = "vcc-wifi"; >> }; >> >> +&sound { >> + status = "okay"; >> +}; >> + >> &uart0 { >> pinctrl-names = "default"; >> pinctrl-0 = <&uart0_pins_a>; >> -- >> 2.15.0 >>
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 806442d3e846..369d9b749521 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -64,6 +64,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { status = "okay"; }; @@ -229,6 +241,10 @@ regulator-name = "vcc-rtc"; }; +&sound { + status = "okay"; +}; + /* On Exp and Euler connectors */ &uart0 { pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index 0eb2acedf8c3..9de5ddcc3656 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -69,6 +69,18 @@ }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + &ehci0 { status = "okay"; }; @@ -133,6 +145,10 @@ regulator-name = "vcc-wifi"; }; +&sound { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
This commit enables I2S, digital and analog parts of audiocodec on Pine64 and SoPine boards. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 ++++++++++++++++ .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | 16 ++++++++++++++++ 2 files changed, 32 insertions(+)