diff options
author | Nickey Yang <nickey.yang@rock-chips.com> | 2018-03-20 16:41:52 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-03-20 21:00:45 +0800 |
commit | 52a7c89b37426b39d3b9172cd05ddf3d1afe475e (patch) | |
tree | 6df9797fb6775a682d0d3b056665da0e566600d2 | |
parent | ac704a8703b7136427568bb8945912105b747e61 (diff) |
ARM64: dts: rockchip: add rt5640 related nodes for vs-rk3399
Change-Id: Ief8e698e5ff64a059a07fa1bf5eada87b3bf5a2c
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-videostrong-linux.dts | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-videostrong-linux.dts b/arch/arm64/boot/dts/rockchip/rk3399-videostrong-linux.dts index 6d1110bca172..96e8d13bdd67 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-videostrong-linux.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-videostrong-linux.dts @@ -59,6 +59,27 @@ }; }; + rt5640-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "rockchip,rt5640-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>; + }; + simple-audio-card,codec { + sound-dai = <&rt5640>; + }; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk808 1>; @@ -170,6 +191,31 @@ status = "okay"; }; +&i2c1 { + status = "okay"; + i2c-scl-rising-time-ns = <300>; + i2c-scl-falling-time-ns = <15>; + + rt5640: rt5640@1c { + #sound-dai-cells = <0>; + compatible = "realtek,rt5640"; + reg = <0x1c>; + clocks = <&cru SCLK_I2S_8CH_OUT>; + clock-names = "mclk"; + realtek,in1-differential; + pinctrl-names = "default"; + pinctrl-0 = <&i2s_8ch_mclk>; + }; +}; + +&i2s1 { + status = "okay"; + rockchip,i2s-broken-burst-len; + rockchip,playback-channels = <2>; + rockchip,capture-channels = <2>; + #sound-dai-cells = <0>; +}; + &i2s2 { #sound-dai-cells = <0>; status = "okay"; |