xref: /freebsd/sys/contrib/device-tree/Bindings/sound/rockchip,rk3288-hdmi-analog.txt (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1c66ec88fSEmmanuel VadotROCKCHIP RK3288 with HDMI and analog audio
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotRequired properties:
4c66ec88fSEmmanuel Vadot- compatible: "rockchip,rk3288-hdmi-analog"
5c66ec88fSEmmanuel Vadot- rockchip,model: The user-visible name of this sound complex
6c66ec88fSEmmanuel Vadot- rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's
7c66ec88fSEmmanuel Vadot  connected to the CODEC
8c66ec88fSEmmanuel Vadot- rockchip,audio-codec: The phandle of the analog audio codec.
9c66ec88fSEmmanuel Vadot- rockchip,routing: A list of the connections between audio components.
10c66ec88fSEmmanuel Vadot		    Each entry is a pair of strings, the first being the
11c66ec88fSEmmanuel Vadot		    connection's sink, the second being the connection's
12c66ec88fSEmmanuel Vadot		    source. For this driver the first string should always be
13c66ec88fSEmmanuel Vadot		    "Analog".
14c66ec88fSEmmanuel Vadot
15*aa1a8ff2SEmmanuel VadotOptional properties:
16c66ec88fSEmmanuel Vadot- rockchip,hp-en-gpios = The phandle of the GPIO that power up/down the
17c66ec88fSEmmanuel Vadot  headphone (when the analog output is an headphone).
18c66ec88fSEmmanuel Vadot- rockchip,hp-det-gpios = The phandle of the GPIO that detects the headphone
19c66ec88fSEmmanuel Vadot  (when the analog output is an headphone).
20c66ec88fSEmmanuel Vadot- pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel VadotExample:
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadotsound {
25c66ec88fSEmmanuel Vadot	compatible = "rockchip,rk3288-hdmi-analog";
26c66ec88fSEmmanuel Vadot	rockchip,model = "Analog audio output";
27c66ec88fSEmmanuel Vadot	rockchip,i2s-controller = <&i2s>;
28c66ec88fSEmmanuel Vadot	rockchip,audio-codec = <&es8388>;
29c66ec88fSEmmanuel Vadot	rockchip,routing = "Analog", "LOUT2",
30c66ec88fSEmmanuel Vadot			   "Analog", "ROUT2";
31c66ec88fSEmmanuel Vadot	rockchip,hp-en-gpios = <&gpio8 0 GPIO_ACTIVE_HIGH>;
32c66ec88fSEmmanuel Vadot	rockchip,hp-det-gpios = <&gpio7 7 GPIO_ACTIVE_HIGH>;
33c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
34c66ec88fSEmmanuel Vadot	pinctrl-0 = <&headphone>;
35c66ec88fSEmmanuel Vadot};
36c66ec88fSEmmanuel Vadot
37