Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Generic AC97 Device Properties |
| 2 | |
| 3 | This documents describes the devicetree bindings for an ac97 controller child |
| 4 | node describing ac97 codecs. |
| 5 | |
| 6 | Required properties: |
| 7 | -compatible : Must be "ac97,vendor_id1,vendor_id2 |
| 8 | The ids shall be the 4 characters hexadecimal encoding, such as |
| 9 | given by "%04x" formatting of printf |
| 10 | -reg : Must be the ac97 codec number, between 0 and 3 |
| 11 | |
| 12 | Example: |
| 13 | ac97: sound@40500000 { |
| 14 | compatible = "marvell,pxa270-ac97"; |
| 15 | reg = < 0x40500000 0x1000 >; |
| 16 | interrupts = <14>; |
| 17 | reset-gpios = <&gpio 95 GPIO_ACTIVE_HIGH>; |
| 18 | #sound-dai-cells = <1>; |
| 19 | pinctrl-names = "default"; |
| 20 | pinctrl-0 = < &pinctrl_ac97_default >; |
| 21 | clocks = <&clks CLK_AC97>, <&clks CLK_AC97CONF>; |
| 22 | clock-names = "AC97CLK", "AC97CONFCLK"; |
| 23 | |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <0>; |
| 26 | audio-codec@0 { |
| 27 | reg = <0>; |
| 28 | compatible = "ac97,574d,4c13"; |
| 29 | clocks = <&fixed_wm9713_clock>; |
| 30 | clock-names = "ac97_clk"; |
| 31 | } |
| 32 | }; |