Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 4 | $id: http://devicetree.org/schemas/sound/asahi-kasei,ak4375.yaml# |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: AK4375 DAC and headphones amplifier |
| 8 | |
| 9 | maintainers: |
| 10 | - Vincent Knecht <vincent.knecht@mailoo.org> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: dai-common.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: asahi-kasei,ak4375 |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | '#sound-dai-cells': |
| 23 | const: 0 |
| 24 | |
| 25 | avdd-supply: |
| 26 | description: regulator phandle for the AVDD power supply. |
| 27 | |
| 28 | tvdd-supply: |
| 29 | description: regulator phandle for the TVDD power supply. |
| 30 | |
| 31 | pdn-gpios: |
| 32 | description: optional GPIO to set the PDN pin. |
| 33 | |
| 34 | required: |
| 35 | - compatible |
| 36 | - reg |
| 37 | - '#sound-dai-cells' |
| 38 | - avdd-supply |
| 39 | - tvdd-supply |
| 40 | |
| 41 | unevaluatedProperties: false |
| 42 | |
| 43 | examples: |
| 44 | - | |
| 45 | #include <dt-bindings/gpio/gpio.h> |
| 46 | i2c { |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
| 49 | |
| 50 | headphones: audio-codec@10 { |
| 51 | compatible = "asahi-kasei,ak4375"; |
| 52 | reg = <0x10>; |
| 53 | avdd-supply = <®_headphones_avdd>; |
| 54 | tvdd-supply = <&pm8916_l6>; |
| 55 | pdn-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>; |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&headphones_pdn_default>; |
| 58 | #sound-dai-cells = <0>; |
| 59 | }; |
| 60 | }; |