hc
2023-02-18 a08c8b75ee83d7f62c9aefc23bfb42082aa4076c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
* Rockchip Codec Digital Interface
 
Required properties:
 
- compatible: should be one of the following
   - "rockchip,codec-digital-v1"
   - "rockchip,rk3568-codec-digital"
   - "rockchip,rv1126-codec-digital"
- reg: physical base address of the controller and length of memory mapped
  region.
- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
- clock-names: clock names.
- rockchip,bclk-fs: configure the bclk fs.
- resets: a list of phandle + reset-specifer paris, one for each entry in reset-names.
- reset-names: reset names, should include "reset".
- rockchip,grf: the phandle of the syscon node for GRF register.
 
Optional properties:
- rockchip,clk-sync-mode: This is a boolean property, if present, using clk
  sync mode.
- rockchip,pwm-output-mode: This is a boolean property, if present, output pwm
  to drive spk.
- rockchip,pa-ctl-delay-ms: The unsigned inter property, if present, will delay
  enable power amplifier with specified milliseconds.
- pa-ctl-gpios: The gpio of Power Amplifier Controller.
 
Example:
 
rkacdc_dig: codec-digital@ff850000 {
   compatible = "rockchip,codec-digital-v1";
   reg = <0xff850000 0x1000>;
   clocks = <&cru CLK_ACDCDIG_ADC>, <&cru CLK_ACDCDIG_DAC>,
        <&cru PCLK_ACDCDIG>;
   clock-names = "adc", "dac", "pclk";
   pinctrl-names = "default";
   pinctrl-0 = <&acodec_pins>;
   resets = <&cru SRST_ACDCDIG>;
   reset-names = "reset" ;
   rockchip,grf = <&grf>;
   status = "disabled";
};