Skip to content

Commit 31328fc

Browse files
Binyuan Lanrkhuangtao
authored andcommitted
arm64: dts: rockchip: add rk809 codec for px30
Change-Id: Icdc8f3694fc2dc962b779173d1e25d6a0bf5a57e Signed-off-by: Binyuan Lan <lby@rock-chips.com>
1 parent be138b5 commit 31328fc

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,27 @@
9494
default-brightness-level = <200>;
9595
};
9696

97+
rk809-sound {
98+
compatible = "simple-audio-card";
99+
simple-audio-card,format = "i2s";
100+
simple-audio-card,name = "rockchip,rk809-codec";
101+
simple-audio-card,mclk-fs = <256>;
102+
simple-audio-card,widgets =
103+
"Microphone", "Mic Jack",
104+
"Headphone", "Headphone Jack";
105+
simple-audio-card,routing =
106+
"Mic Jack", "MICBIAS1",
107+
"IN1P", "Mic Jack",
108+
"Headphone Jack", "HPOL",
109+
"Headphone Jack", "HPOR";
110+
simple-audio-card,cpu {
111+
sound-dai = <&i2s1_2ch>;
112+
};
113+
simple-audio-card,codec {
114+
sound-dai = <&rk809_codec>;
115+
};
116+
};
117+
97118
sdio_pwrseq: sdio-pwrseq {
98119
compatible = "mmc-pwrseq-simple";
99120
/*clocks = <&rk809 1>;*/
@@ -496,6 +517,18 @@
496517
regulator-name = "vcc5v0_host";
497518
};
498519
};
520+
521+
rk809_codec: codec {
522+
#sound-dai-cells = <0>;
523+
compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
524+
clocks = <&cru SCLK_I2S1_OUT>;
525+
clock-names = "mclk";
526+
pinctrl-names = "default";
527+
pinctrl-0 = <&i2s1_2ch_mclk>;
528+
hp-volume = <20>;
529+
spk-volume = <3>;
530+
status = "okay";
531+
};
499532
};
500533
};
501534

@@ -533,6 +566,11 @@
533566
};
534567
};
535568

569+
&i2s1_2ch {
570+
status = "okay";
571+
#sound-dai-cells = <0>;
572+
};
573+
536574
&io_domains {
537575
status = "okay";
538576

arch/arm64/boot/dts/rockchip/px30-evb-ddr4-v10.dts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,27 @@
9494
default-brightness-level = <200>;
9595
};
9696

97+
rk809-sound {
98+
compatible = "simple-audio-card";
99+
simple-audio-card,format = "i2s";
100+
simple-audio-card,name = "rockchip,rk809-codec";
101+
simple-audio-card,mclk-fs = <256>;
102+
simple-audio-card,widgets =
103+
"Microphone", "Mic Jack",
104+
"Headphone", "Headphone Jack";
105+
simple-audio-card,routing =
106+
"Mic Jack", "MICBIAS1",
107+
"IN1P", "Mic Jack",
108+
"Headphone Jack", "HPOL",
109+
"Headphone Jack", "HPOR";
110+
simple-audio-card,cpu {
111+
sound-dai = <&i2s1_2ch>;
112+
};
113+
simple-audio-card,codec {
114+
sound-dai = <&rk809_codec>;
115+
};
116+
};
117+
97118
sdio_pwrseq: sdio-pwrseq {
98119
compatible = "mmc-pwrseq-simple";
99120
/*clocks = <&rk809 1>;*/
@@ -497,6 +518,18 @@
497518
regulator-name = "vcc5v0_host";
498519
};
499520
};
521+
522+
rk809_codec: codec {
523+
#sound-dai-cells = <0>;
524+
compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
525+
clocks = <&cru SCLK_I2S1_OUT>;
526+
clock-names = "mclk";
527+
pinctrl-names = "default";
528+
pinctrl-0 = <&i2s1_2ch_mclk>;
529+
hp-volume = <20>;
530+
spk-volume = <3>;
531+
status = "okay";
532+
};
500533
};
501534
};
502535

@@ -543,6 +576,11 @@
543576
vccio5-supply = <&vcc_3v0>;
544577
};
545578

579+
&i2s1_2ch {
580+
status = "okay";
581+
#sound-dai-cells = <0>;
582+
};
583+
546584
&mipi_dphy {
547585
status = "okay";
548586
};

0 commit comments

Comments
 (0)