forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/Documentation/devicetree/bindings/sound/rockchip-max98090.txt
....@@ -5,11 +5,16 @@
55 - rockchip,model: The user-visible name of this sound complex
66 - rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's
77 connected to the CODEC
8
-- rockchip,audio-codec: The phandle of the MAX98090 audio codec
9
-- rockchip,headset-codec: The phandle of Ext chip for jack detection
8
+
9
+Optional properties:
10
+- rockchip,audio-codec: The phandle of the MAX98090 audio codec.
11
+- rockchip,headset-codec: The phandle of Ext chip for jack detection. This is
12
+ required if there is rockchip,audio-codec.
13
+- rockchip,hdmi-codec: The phandle of HDMI device for HDMI codec.
1014
1115 Example:
1216
17
+/* For max98090-only board. */
1318 sound {
1419 compatible = "rockchip,rockchip-audio-max98090";
1520 rockchip,model = "ROCKCHIP-I2S";
....@@ -17,3 +22,21 @@
1722 rockchip,audio-codec = <&max98090>;
1823 rockchip,headset-codec = <&headsetcodec>;
1924 };
25
+
26
+/* For HDMI-only board. */
27
+sound {
28
+ compatible = "rockchip,rockchip-audio-max98090";
29
+ rockchip,model = "ROCKCHIP-I2S";
30
+ rockchip,i2s-controller = <&i2s>;
31
+ rockchip,hdmi-codec = <&hdmi>;
32
+};
33
+
34
+/* For max98090 plus HDMI board. */
35
+sound {
36
+ compatible = "rockchip,rockchip-audio-max98090";
37
+ rockchip,model = "ROCKCHIP-I2S";
38
+ rockchip,i2s-controller = <&i2s>;
39
+ rockchip,audio-codec = <&max98090>;
40
+ rockchip,headset-codec = <&headsetcodec>;
41
+ rockchip,hdmi-codec = <&hdmi>;
42
+};