From nobody Mon Nov 25 02:08:26 2024 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F325153808 for ; Fri, 1 Nov 2024 05:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730439130; cv=none; b=A8WlRhoXuq2vAcHNke7vfu3Hi6e7EkrcjGkz+EoJHOwQfaNPvSstBaipFapWUrreWAQTdQaLzwLvd+QOkU0fAC5jAbvlK3JToeZE5yzHNQlQatDW750vMsGmonlo4yZQKvpAUVn/0EeAGVYRKN9DCOGKYVomOFysmbFWlWmBNlY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730439130; c=relaxed/simple; bh=MIPfMw1YB4xU9QdBv6XJQV5NzQp8bCOrbsfDS5uWggM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MielY1c0pRzIJCqv51bYfVgChMLs1WTdCQXwgp5IvqJapIxDPMdIn0XvfrS34L9uMfD/rDIDGQOsvXtzxQTe+ouT1kIJw2B3mjpWoVmikwkO2CjFUJFmz9jM+LWLWJZ10SIJR/bYZFdjpVyhuL4Gk5HvyGD+xPZY2QhE3a65Q/I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=SmVJQzds; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SmVJQzds" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-539fbe22ac0so1725506e87.2 for ; Thu, 31 Oct 2024 22:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730439126; x=1731043926; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HXeosd2ImYqpCcg8TPqRB9Vty1rjGyQScmLaV2l8+H8=; b=SmVJQzdsDP+9UE22diGiE3navYLaptMB++GpRqFl17jsqeOUgal2Gmi7E+jUQ2gxb2 Tt56VBL35X7dZDUfWu1DxiV/oHFxCpRSKLk5PdLjDpoTIj9KM8mS1hJt074vW+wp6z8u AmUq8iSO9ChpuNcZvZVlZcK46nnaehjWLlVYLMxmDZdVPhq+65dhkBGF4ViA5DIu9LN3 HtWQWSkfAzsvDivLp51GuUhKo4HaIoennNYN2H15klv9/un18C+Qccp5SJI5xNbtxr3I pM9BZM6t2iufDQfqNzJuw9B4jOsvKNNlr4cMsmN3o/v7a1j12g/0J56FHWBb40ozVrU4 oiow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730439126; x=1731043926; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HXeosd2ImYqpCcg8TPqRB9Vty1rjGyQScmLaV2l8+H8=; b=aTb/p6/asTC4EIUKGloDsyXORH+JHbV81QCInBxmEqJ325NJDqxFpq+LclOwiuZMur TE/G5S+tpzl25d/r0TE0fyUhw3rsYc5c9knxtJYs2ShdJvSGiRbhRHKPCUFyio7schZY 3O1FOsnuVPSZp3ZlyV9aNxWFWSpUryk6r3rA5GTfMmesTr+soUCGbiKJLL+B1lYLZlxd /Zcem1BGhq1I9JA2czxqzYnl4iDZIyaoHkVHdSOu2cTyJ4xEU83hCk5QvKMEm+RL6oBS kAA5nt1t3uL0T/e7u+PDBstNiiGvQbzZ12IKH2yi08/vp6uuZridPvPCBfqeFLMlxAtc BCYQ== X-Forwarded-Encrypted: i=1; AJvYcCXZ5Vu5i+BXZAJmye+P1m3BSWz+2KaH+aYVY+ZLxwnoVTYA6BtalNkeEvZcNa+74H6diTPugDmz9yOvsvY=@vger.kernel.org X-Gm-Message-State: AOJu0Yz1tiu1WB/eRWbd1B50AcUD4UIgt21hgT2OrGcmwXrgH7ZAAwJk obJl/sCvwzl/7PY05EBvEkSMTv8Lr6IScYL9RYD6K2CNaX+pRpL3tcyiCuCPEKk= X-Google-Smtp-Source: AGHT+IEDB9lVYwB5VsH7Tsl550C9rRY+uuA/zMGHYrtOu/zr2U+22id4jmAFoUBiWNTfptWgTpX5Ow== X-Received: by 2002:a05:6512:3c99:b0:539:f93d:eb3d with SMTP id 2adb3069b0e04-53b34924cadmr11108056e87.46.1730439125686; Thu, 31 Oct 2024 22:32:05 -0700 (PDT) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4327d6852fdsm46960505e9.34.2024.10.31.22.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 22:32:04 -0700 (PDT) From: Alexey Klimov To: broonie@kernel.org, konradybcio@kernel.org, konrad.dybcio@oss.qualcomm.com, andersson@kernel.org, srinivas.kandagatla@linaro.org Cc: tiwai@suse.com, lgirdwood@gmail.com, perex@perex.cz, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dmitry.baryshkov@linaro.org, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 06/10] ASoC: dt-bindings: add wsa881x-i2c binding for analog mode Date: Fri, 1 Nov 2024 05:31:50 +0000 Message-ID: <20241101053154.497550-7-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241101053154.497550-1-alexey.klimov@linaro.org> References: <20241101053154.497550-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add binding document for WSA881X family of smart speaker amplifiers that set to work in analog mode only and configurable via i2c only. Such devices are found in Qualcomm QRB4210 RB2 boards with SM4250/SM6115 SoCs. Cc: Krzysztof Kozlowski Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- .../bindings/sound/qcom,wsa881x-i2c.yaml | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa881x-i2= c.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml = b/Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml new file mode 100644 index 000000000000..51b040b134d2 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wsa881x-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WSA8810/WSA8815 Class-D Smart Speaker Amplifier in Analog = mode + +maintainers: + - Srinivas Kandagatla + - Alexey Klimov + +description: | + WSA8810 is a class-D smart speaker amplifier and WSA8815 + is a high-output power class-D smart speaker amplifier. + Their primary operating mode uses a SoundWire digital audio + interface however the amplifier also supports analog mode and it + can be controlled via I2C. This binding is for I2C interface. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: qcom,qrb4210-wsa881x-i2c-codec + + reg: + maxItems: 1 + + clocks: + description: Master clock for WSA amplifier + maxItems: 1 + + clock-names: + description: Master clock name + maxItems: 1 + + powerdown-gpios: + description: GPIO spec for Powerdown/Shutdown line to use + maxItems: 1 + + mclk-gpios: + description: GPIO spec for mclk + maxItems: 1 + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - clocks + - reg + - powerdown-gpios + - mclk-gpios + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + wsa881x@e { + compatible =3D "qcom,qrb4210-wsa881x-i2c-codec"; + reg =3D <0x0e>; + clocks =3D <&q6afecc LPASS_CLK_ID_MCLK_3 LPASS_CLK_ATTRIBUTE_COUPL= E_NO>; + powerdown-gpios =3D <&lpass_tlmm 16 GPIO_ACTIVE_LOW>; + mclk-gpios =3D <&lpass_tlmm 18 GPIO_ACTIVE_HIGH>; + #sound-dai-cells =3D <0>; + }; + }; + + i2c1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + wsa881x-right@e { + compatible =3D "qcom,qrb4210-wsa881x-i2c-codec"; + reg =3D <0x0e>; + clocks =3D <&q6afecc LPASS_CLK_ID_MCLK_3 LPASS_CLK_ATTRIBUTE_COU= PLE_NO>; + powerdown-gpios =3D <&lpass_tlmm 16 GPIO_ACTIVE_LOW>; + mclk-gpios =3D <&lpass_tlmm 18 GPIO_ACTIVE_HIGH>; + sound-name-prefix =3D "SpkrRight"; + #sound-dai-cells =3D <0>; + }; + + wsa881x-left@f { + compatible =3D "qcom,qrb4210-wsa881x-i2c-codec"; + reg =3D <0x0f>; + clocks =3D <&q6afecc LPASS_CLK_ID_MCLK_2 LPASS_CLK_ATTRIBUTE_C= OUPLE_NO>; + powerdown-gpios =3D <&lpass_tlmm 6 GPIO_ACTIVE_LOW>; + mclk-gpios =3D <&lpass_tlmm 8 GPIO_ACTIVE_HIGH>; + sound-name-prefix =3D "SpkrLeft"; + #sound-dai-cells =3D <0>; + }; + }; + +... --=20 2.45.2