116e2f8a4SSrinivas Kandagatla# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 216e2f8a4SSrinivas Kandagatla%YAML 1.2 316e2f8a4SSrinivas Kandagatla--- 416e2f8a4SSrinivas Kandagatla$id: http://devicetree.org/schemas/sound/qcom,wsa883x.yaml# 516e2f8a4SSrinivas Kandagatla$schema: http://devicetree.org/meta-schemas/core.yaml# 616e2f8a4SSrinivas Kandagatla 79d69d47fSKrzysztof Kozlowskititle: Qualcomm WSA8830/WSA8832/WSA8835 816e2f8a4SSrinivas Kandagatla smart speaker amplifier 916e2f8a4SSrinivas Kandagatla 1016e2f8a4SSrinivas Kandagatlamaintainers: 1116e2f8a4SSrinivas Kandagatla - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 1216e2f8a4SSrinivas Kandagatla 1316e2f8a4SSrinivas Kandagatladescription: | 1416e2f8a4SSrinivas Kandagatla WSA883X is the Qualcomm Aqstic smart speaker amplifier 1516e2f8a4SSrinivas Kandagatla Their primary operating mode uses a SoundWire digital audio 1616e2f8a4SSrinivas Kandagatla interface. This binding is for SoundWire interface. 1716e2f8a4SSrinivas Kandagatla 1858ae9a2aSKrzysztof KozlowskiallOf: 1958ae9a2aSKrzysztof Kozlowski - $ref: dai-common.yaml# 2058ae9a2aSKrzysztof Kozlowski 2116e2f8a4SSrinivas Kandagatlaproperties: 2216e2f8a4SSrinivas Kandagatla compatible: 2316e2f8a4SSrinivas Kandagatla const: sdw10217020200 2416e2f8a4SSrinivas Kandagatla 2516e2f8a4SSrinivas Kandagatla reg: 2616e2f8a4SSrinivas Kandagatla maxItems: 1 2716e2f8a4SSrinivas Kandagatla 2816e2f8a4SSrinivas Kandagatla powerdown-gpios: 29817e9817SKrzysztof Kozlowski description: GPIO spec for Powerdown/Shutdown line to use (pin SD_N) 3016e2f8a4SSrinivas Kandagatla maxItems: 1 3116e2f8a4SSrinivas Kandagatla 3216e2f8a4SSrinivas Kandagatla vdd-supply: 3316e2f8a4SSrinivas Kandagatla description: VDD Supply for the Codec 3416e2f8a4SSrinivas Kandagatla 35*49beb4d2SManikantan R qcom,port-mapping: 36*49beb4d2SManikantan R description: | 37*49beb4d2SManikantan R Specifies static port mapping between slave and master ports. 38*49beb4d2SManikantan R In the order of slave port index. 39*49beb4d2SManikantan R $ref: /schemas/types.yaml#/definitions/uint32-array 40*49beb4d2SManikantan R minItems: 4 41*49beb4d2SManikantan R maxItems: 4 42*49beb4d2SManikantan R 4316e2f8a4SSrinivas Kandagatla '#thermal-sensor-cells': 4416e2f8a4SSrinivas Kandagatla const: 0 4516e2f8a4SSrinivas Kandagatla 4616e2f8a4SSrinivas Kandagatla '#sound-dai-cells': 4716e2f8a4SSrinivas Kandagatla const: 0 4816e2f8a4SSrinivas Kandagatla 4916e2f8a4SSrinivas Kandagatlarequired: 5016e2f8a4SSrinivas Kandagatla - compatible 5116e2f8a4SSrinivas Kandagatla - reg 5216e2f8a4SSrinivas Kandagatla - vdd-supply 5316e2f8a4SSrinivas Kandagatla - powerdown-gpios 5416e2f8a4SSrinivas Kandagatla - "#thermal-sensor-cells" 5516e2f8a4SSrinivas Kandagatla - "#sound-dai-cells" 5616e2f8a4SSrinivas Kandagatla 5758ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false 5816e2f8a4SSrinivas Kandagatla 5916e2f8a4SSrinivas Kandagatlaexamples: 6016e2f8a4SSrinivas Kandagatla - | 61817e9817SKrzysztof Kozlowski #include <dt-bindings/gpio/gpio.h> 62817e9817SKrzysztof Kozlowski 63dc29d3d2SKrzysztof Kozlowski soundwire@3250000 { 6416e2f8a4SSrinivas Kandagatla #address-cells = <2>; 6516e2f8a4SSrinivas Kandagatla #size-cells = <0>; 6616e2f8a4SSrinivas Kandagatla reg = <0x3250000 0x2000>; 6716e2f8a4SSrinivas Kandagatla 6816e2f8a4SSrinivas Kandagatla speaker@0,1 { 6916e2f8a4SSrinivas Kandagatla compatible = "sdw10217020200"; 7016e2f8a4SSrinivas Kandagatla reg = <0 1>; 71817e9817SKrzysztof Kozlowski powerdown-gpios = <&tlmm 1 GPIO_ACTIVE_LOW>; 7216e2f8a4SSrinivas Kandagatla vdd-supply = <&vreg_s10b_1p8>; 7316e2f8a4SSrinivas Kandagatla #thermal-sensor-cells = <0>; 7416e2f8a4SSrinivas Kandagatla #sound-dai-cells = <0>; 7558ae9a2aSKrzysztof Kozlowski sound-name-prefix = "SpkrLeft"; 7616e2f8a4SSrinivas Kandagatla }; 7716e2f8a4SSrinivas Kandagatla 7816e2f8a4SSrinivas Kandagatla speaker@0,2 { 7916e2f8a4SSrinivas Kandagatla compatible = "sdw10217020200"; 8016e2f8a4SSrinivas Kandagatla reg = <0 2>; 81817e9817SKrzysztof Kozlowski powerdown-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; 8216e2f8a4SSrinivas Kandagatla vdd-supply = <&vreg_s10b_1p8>; 8316e2f8a4SSrinivas Kandagatla #thermal-sensor-cells = <0>; 8416e2f8a4SSrinivas Kandagatla #sound-dai-cells = <0>; 8558ae9a2aSKrzysztof Kozlowski sound-name-prefix = "SpkrRight"; 8616e2f8a4SSrinivas Kandagatla }; 8716e2f8a4SSrinivas Kandagatla }; 8816e2f8a4SSrinivas Kandagatla 8916e2f8a4SSrinivas Kandagatla... 90