1009e83b5SSaalim Quadri# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2009e83b5SSaalim Quadri%YAML 1.2 3009e83b5SSaalim Quadri--- 4009e83b5SSaalim Quadri$id: http://devicetree.org/schemas/sound/asahi-kasei,ak4458.yaml# 5009e83b5SSaalim Quadri$schema: http://devicetree.org/meta-schemas/core.yaml# 6009e83b5SSaalim Quadri 7009e83b5SSaalim Quadrititle: AK4458 audio DAC 8009e83b5SSaalim Quadri 9009e83b5SSaalim Quadrimaintainers: 10009e83b5SSaalim Quadri - Shengjiu Wang <shengjiu.wang@nxp.com> 11009e83b5SSaalim Quadri 12009e83b5SSaalim Quadriproperties: 13009e83b5SSaalim Quadri compatible: 14009e83b5SSaalim Quadri enum: 15009e83b5SSaalim Quadri - asahi-kasei,ak4458 16009e83b5SSaalim Quadri - asahi-kasei,ak4497 17009e83b5SSaalim Quadri 18009e83b5SSaalim Quadri reg: 19009e83b5SSaalim Quadri maxItems: 1 20009e83b5SSaalim Quadri 21009e83b5SSaalim Quadri avdd-supply: 22009e83b5SSaalim Quadri description: Analog power supply 23009e83b5SSaalim Quadri 24009e83b5SSaalim Quadri dvdd-supply: 25009e83b5SSaalim Quadri description: Digital power supply 26009e83b5SSaalim Quadri 27009e83b5SSaalim Quadri reset-gpios: 28009e83b5SSaalim Quadri maxItems: 1 29009e83b5SSaalim Quadri 30009e83b5SSaalim Quadri mute-gpios: 31009e83b5SSaalim Quadri maxItems: 1 32009e83b5SSaalim Quadri description: 33009e83b5SSaalim Quadri GPIO used to mute all the outputs 34009e83b5SSaalim Quadri 35009e83b5SSaalim Quadri dsd-path: 36009e83b5SSaalim Quadri description: Select DSD input pins for ak4497 37009e83b5SSaalim Quadri $ref: /schemas/types.yaml#/definitions/uint32 38009e83b5SSaalim Quadri oneOf: 39009e83b5SSaalim Quadri - const: 0 40*be5418dfSKrzysztof Kozlowski description: "select #16, #17, #19 pins" 41009e83b5SSaalim Quadri - const: 1 42*be5418dfSKrzysztof Kozlowski description: "select #3, #4, #5 pins" 43009e83b5SSaalim Quadri 44009e83b5SSaalim Quadrirequired: 45009e83b5SSaalim Quadri - compatible 46009e83b5SSaalim Quadri - reg 47009e83b5SSaalim Quadri 48009e83b5SSaalim QuadriallOf: 49009e83b5SSaalim Quadri - if: 50009e83b5SSaalim Quadri properties: 51009e83b5SSaalim Quadri compatible: 52009e83b5SSaalim Quadri contains: 53009e83b5SSaalim Quadri const: asahi-kasei,ak4458 54009e83b5SSaalim Quadri 55009e83b5SSaalim Quadri then: 56009e83b5SSaalim Quadri properties: 57009e83b5SSaalim Quadri dsd-path: false 58009e83b5SSaalim Quadri 59009e83b5SSaalim QuadriadditionalProperties: false 60009e83b5SSaalim Quadri 61009e83b5SSaalim Quadriexamples: 62009e83b5SSaalim Quadri - | 63009e83b5SSaalim Quadri #include <dt-bindings/gpio/gpio.h> 64009e83b5SSaalim Quadri i2c { 65009e83b5SSaalim Quadri #address-cells = <1>; 66009e83b5SSaalim Quadri #size-cells = <0>; 67009e83b5SSaalim Quadri codec@10 { 68009e83b5SSaalim Quadri compatible = "asahi-kasei,ak4458"; 69009e83b5SSaalim Quadri reg = <0x10>; 70009e83b5SSaalim Quadri reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 71009e83b5SSaalim Quadri mute-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; 72009e83b5SSaalim Quadri }; 73009e83b5SSaalim Quadri }; 74