ARM: shmobile: lager: Sound PIO support on DTS
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
parent
177d8bea33
commit
8ea7a44a98
@ -9,6 +9,18 @@
|
|||||||
* kind, whether express or implied.
|
* kind, whether express or implied.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SSI-AK4643
|
||||||
|
*
|
||||||
|
* SW1: 1: AK4643
|
||||||
|
* 2: CN22
|
||||||
|
* 3: ADV7511
|
||||||
|
*
|
||||||
|
* This command is required when Playback/Capture
|
||||||
|
*
|
||||||
|
* amixer set "LINEOUT Mixer DACL" on
|
||||||
|
*/
|
||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "r8a7790.dtsi"
|
#include "r8a7790.dtsi"
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
@ -146,6 +158,23 @@
|
|||||||
1800000 0>;
|
1800000 0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sound {
|
||||||
|
compatible = "simple-audio-card";
|
||||||
|
|
||||||
|
simple-audio-card,format = "left_j";
|
||||||
|
simple-audio-card,bitclock-master = <&sndcodec>;
|
||||||
|
simple-audio-card,frame-master = <&sndcodec>;
|
||||||
|
|
||||||
|
sndcpu: simple-audio-card,cpu {
|
||||||
|
sound-dai = <&rcar_sound>;
|
||||||
|
};
|
||||||
|
|
||||||
|
sndcodec: simple-audio-card,codec {
|
||||||
|
sound-dai = <&ak4643>;
|
||||||
|
system-clock-frequency = <11289600>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
vga-encoder {
|
vga-encoder {
|
||||||
compatible = "adi,adv7123";
|
compatible = "adi,adv7123";
|
||||||
|
|
||||||
@ -292,6 +321,16 @@
|
|||||||
renesas,groups = "vin1_data8", "vin1_clk";
|
renesas,groups = "vin1_data8", "vin1_clk";
|
||||||
renesas,function = "vin1";
|
renesas,function = "vin1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sound_pins: sound {
|
||||||
|
renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
|
||||||
|
renesas,function = "ssi";
|
||||||
|
};
|
||||||
|
|
||||||
|
sound_clk_pins: sound_clk {
|
||||||
|
renesas,groups = "audio_clk_a";
|
||||||
|
renesas,function = "audio_clk";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ðer {
|
ðer {
|
||||||
@ -431,6 +470,12 @@
|
|||||||
|
|
||||||
clock-frequency = <100000>;
|
clock-frequency = <100000>;
|
||||||
|
|
||||||
|
ak4643: sound-codec@12 {
|
||||||
|
compatible = "asahi-kasei,ak4643";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
reg = <0x12>;
|
||||||
|
};
|
||||||
|
|
||||||
composite-in@20 {
|
composite-in@20 {
|
||||||
compatible = "adi,adv7180";
|
compatible = "adi,adv7180";
|
||||||
reg = <0x20>;
|
reg = <0x20>;
|
||||||
@ -513,3 +558,28 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&rcar_sound {
|
||||||
|
pinctrl-0 = <&sound_pins &sound_clk_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
rcar_sound,dai {
|
||||||
|
dai0 {
|
||||||
|
playback = <&ssi0>;
|
||||||
|
capture = <&ssi1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&ssi0 {
|
||||||
|
pio-transfer;
|
||||||
|
};
|
||||||
|
|
||||||
|
&ssi1 {
|
||||||
|
pio-transfer;
|
||||||
|
shared-pin;
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user