Katsuhiro Suzuki | c327590 | 2018-12-21 00:36:35 +0900 | [diff] [blame] | 1 | * Rockchip Rk3328 internal codec |
| 2 | |
| 3 | Required properties: |
| 4 | |
| 5 | - compatible: "rockchip,rk3328-codec" |
| 6 | - reg: physical base address of the controller and length of memory mapped |
| 7 | region. |
| 8 | - rockchip,grf: the phandle of the syscon node for GRF register. |
| 9 | - clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names. |
| 10 | - clock-names: should be "pclk". |
| 11 | - spk-depop-time-ms: speak depop time msec. |
| 12 | |
Robin Murphy | e149809 | 2020-02-18 21:31:58 +0000 | [diff] [blame] | 13 | Optional properties: |
| 14 | |
| 15 | - mute-gpios: GPIO specifier for external line driver control (typically the |
| 16 | dedicated GPIO_MUTE pin) |
| 17 | |
Katsuhiro Suzuki | c327590 | 2018-12-21 00:36:35 +0900 | [diff] [blame] | 18 | Example for rk3328 internal codec: |
| 19 | |
| 20 | codec: codec@ff410000 { |
| 21 | compatible = "rockchip,rk3328-codec"; |
| 22 | reg = <0x0 0xff410000 0x0 0x1000>; |
| 23 | rockchip,grf = <&grf>; |
| 24 | clocks = <&cru PCLK_ACODEC>; |
| 25 | clock-names = "pclk"; |
Robin Murphy | e149809 | 2020-02-18 21:31:58 +0000 | [diff] [blame] | 26 | mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>; |
Katsuhiro Suzuki | c327590 | 2018-12-21 00:36:35 +0900 | [diff] [blame] | 27 | spk-depop-time-ms = 100; |
Katsuhiro Suzuki | c327590 | 2018-12-21 00:36:35 +0900 | [diff] [blame] | 28 | }; |