xref: /freebsd/sys/contrib/device-tree/Bindings/sound/rockchip,rk3328-codec.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Rockchip Rk3328 internal codec
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot- compatible: "rockchip,rk3328-codec"
6*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory mapped
7*c66ec88fSEmmanuel Vadot  region.
8*c66ec88fSEmmanuel Vadot- rockchip,grf: the phandle of the syscon node for GRF register.
9*c66ec88fSEmmanuel Vadot- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
10*c66ec88fSEmmanuel Vadot- clock-names: should be "pclk".
11*c66ec88fSEmmanuel Vadot- spk-depop-time-ms: speak depop time msec.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot- mute-gpios: GPIO specifier for external line driver control (typically the
16*c66ec88fSEmmanuel Vadot              dedicated GPIO_MUTE pin)
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotExample for rk3328 internal codec:
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadotcodec: codec@ff410000 {
21*c66ec88fSEmmanuel Vadot	compatible = "rockchip,rk3328-codec";
22*c66ec88fSEmmanuel Vadot	reg = <0x0 0xff410000 0x0 0x1000>;
23*c66ec88fSEmmanuel Vadot	rockchip,grf = <&grf>;
24*c66ec88fSEmmanuel Vadot	clocks = <&cru PCLK_ACODEC>;
25*c66ec88fSEmmanuel Vadot	clock-names = "pclk";
26*c66ec88fSEmmanuel Vadot	mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
27*c66ec88fSEmmanuel Vadot	spk-depop-time-ms = 100;
28*c66ec88fSEmmanuel Vadot};
29