diff options
author | Binyuan Lan <lby@rock-chips.com> | 2018-02-03 00:59:30 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-02-23 14:39:43 +0800 |
commit | 31328fc2b3f315d4bbc72b4d883b108b764db52f (patch) | |
tree | 9080818a84c42fccc4e9327ebedb9cddd1d1d9b0 /arch/arm64/boot | |
parent | be138b5dc666240d7d69a661a37764e36f4e1eac (diff) |
arm64: dts: rockchip: add rk809 codec for px30
Change-Id: Icdc8f3694fc2dc962b779173d1e25d6a0bf5a57e
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Diffstat (limited to 'arch/arm64/boot')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts | 38 | ||||
-rw-r--r-- | arch/arm64/boot/dts/rockchip/px30-evb-ddr4-v10.dts | 38 |
2 files changed, 76 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts b/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts index 46eb2248afa2..52877cbbef2d 100644 --- a/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts +++ b/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts @@ -94,6 +94,27 @@ default-brightness-level = <200>; }; + rk809-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "rockchip,rk809-codec"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,widgets = + "Microphone", "Mic Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Mic Jack", "MICBIAS1", + "IN1P", "Mic Jack", + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + simple-audio-card,cpu { + sound-dai = <&i2s1_2ch>; + }; + simple-audio-card,codec { + sound-dai = <&rk809_codec>; + }; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; /*clocks = <&rk809 1>;*/ @@ -496,6 +517,18 @@ regulator-name = "vcc5v0_host"; }; }; + + rk809_codec: codec { + #sound-dai-cells = <0>; + compatible = "rockchip,rk809-codec", "rockchip,rk817-codec"; + clocks = <&cru SCLK_I2S1_OUT>; + clock-names = "mclk"; + pinctrl-names = "default"; + pinctrl-0 = <&i2s1_2ch_mclk>; + hp-volume = <20>; + spk-volume = <3>; + status = "okay"; + }; }; }; @@ -533,6 +566,11 @@ }; }; +&i2s1_2ch { + status = "okay"; + #sound-dai-cells = <0>; +}; + &io_domains { status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/px30-evb-ddr4-v10.dts b/arch/arm64/boot/dts/rockchip/px30-evb-ddr4-v10.dts index 12cb22de3640..bd91bba06c82 100644 --- a/arch/arm64/boot/dts/rockchip/px30-evb-ddr4-v10.dts +++ b/arch/arm64/boot/dts/rockchip/px30-evb-ddr4-v10.dts @@ -94,6 +94,27 @@ default-brightness-level = <200>; }; + rk809-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "rockchip,rk809-codec"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,widgets = + "Microphone", "Mic Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Mic Jack", "MICBIAS1", + "IN1P", "Mic Jack", + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + simple-audio-card,cpu { + sound-dai = <&i2s1_2ch>; + }; + simple-audio-card,codec { + sound-dai = <&rk809_codec>; + }; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; /*clocks = <&rk809 1>;*/ @@ -497,6 +518,18 @@ regulator-name = "vcc5v0_host"; }; }; + + rk809_codec: codec { + #sound-dai-cells = <0>; + compatible = "rockchip,rk809-codec", "rockchip,rk817-codec"; + clocks = <&cru SCLK_I2S1_OUT>; + clock-names = "mclk"; + pinctrl-names = "default"; + pinctrl-0 = <&i2s1_2ch_mclk>; + hp-volume = <20>; + spk-volume = <3>; + status = "okay"; + }; }; }; @@ -543,6 +576,11 @@ vccio5-supply = <&vcc_3v0>; }; +&i2s1_2ch { + status = "okay"; + #sound-dai-cells = <0>; +}; + &mipi_dphy { status = "okay"; }; |