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 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/wm8750.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: WM8750 and WM8987 audio CODECs |
| 8 | |
| 9 | description: | |
| 10 | These devices support both I2C and SPI (configured with pin strapping |
| 11 | on the board). |
| 12 | |
| 13 | maintainers: |
| 14 | - Mark Brown <broonie@kernel.org> |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | enum: |
| 19 | - wlf,wm8750 |
| 20 | - wlf,wm8987 |
| 21 | |
| 22 | reg: |
| 23 | description: |
| 24 | The I2C address of the device for I2C, the chip select number for SPI |
| 25 | maxItems: 1 |
| 26 | |
| 27 | additionalProperties: false |
| 28 | |
| 29 | required: |
| 30 | - reg |
| 31 | |
| 32 | examples: |
| 33 | - | |
| 34 | i2c { |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <0>; |
| 37 | |
| 38 | codec@1a { |
| 39 | compatible = "wlf,wm8750"; |
| 40 | reg = <0x1a>; |
| 41 | }; |
| 42 | }; |