From nobody Tue Feb 10 16:02:00 2026 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 1177E1537C8 for ; Thu, 12 Dec 2024 00:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733964471; cv=none; b=NVYx1ZqRlKDv5UGSW6v3p77FyBlmf6bCKqvVviBg7S+ljmkYcW9gD/9+gH9RiM6CoM/ZVhW3v52/mtLwR6US2Qc+DmWV9OV09RQtBxlZ6aUFWjrjcS4DN9c4gyYBXuo5bmwNffCUeKJCZasHTAgDSoSCY7k6m11VB/hmqpX/+7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733964471; c=relaxed/simple; bh=KxG2H3oHtPjIV+VhCiilLtiyhUfg1u1AKb3+JTgTrMs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b7aa3UxXQQyg8qu4oTViGYhCWXnbXIxJ3RolfW+2sqxnIy4BvO4V+M8Iqid26fmZVH3mp5LeIwlE6iJjlJ2BhgGoJGuAA5D8OvzichHnCq0WTnm5QYjSxIrTnpVIp+LfmDqIuAPpcK+jRDikkaUPBn54nYSs0TD4aEL5PWp+xew= 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=By/vuAI/; arc=none smtp.client-ip=209.85.128.41 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="By/vuAI/" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso241095e9.3 for ; Wed, 11 Dec 2024 16:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733964468; x=1734569268; 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=vFHKgaQUdzL/Q4nPVhlEMPI+GbJNKf55IgIGl/KzjWA=; b=By/vuAI/JvC4AssI7Y9TfppP+xN1c6D/OGqMvREbxE0HTIW3VGzWPXsfqybXwY0qhg V/mP7eODc10OJUo9zpNNoUl+44rKbSupxUO0Ku67HwGWo21Q2yPMmc3LONPoagnQsU5k NETlIEIWABQ6X3O1JwQ8SnpOKeIZBk/SoV9RL/3MwCf8oJD2YQgW1mGJcM3rMCaEdEVt 4l5Qm663xU1pQGy9H/Cp0yht5efyziuKcO98Y7UFtFrvTYmekfGF/c4XkyHU8tdux3r6 qmelpG04gYHlYq4EwHKliksPGGa4sT2xj6/GF3Mng3UNDbe53Zd1p6OtCTzBkARiD9NI uMtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733964468; x=1734569268; 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=vFHKgaQUdzL/Q4nPVhlEMPI+GbJNKf55IgIGl/KzjWA=; b=Gdf0ZLPy8AF5g7llGpuQgyRGSoF1vJ2sUsuYnlkWf2lNaA77TKvS5DhA7RQWU9ekgY 9giEJgBmi4ZOWRqMCwSK6l5eu17M4TO3p/Nc4itM41MBBFrTCEFWBK0UpSahL8n0CwoP /iH6dFWD8YJ2xey4AyRmy3FmtezHz4PzFtqFeOq6q0AMla6pUDqlKepvJ/Ip3Itd4V07 m9GBDHHaP/I02DtICBPw3Dvkl3JIYSHdM6U6ZsAhd02eC03qiU5MBQSgrUyz3HYxmNiz 7rSWZS/DMLuPHSlMNCjLvixfA8+eNacosI8vDkvYWSskHOWi4yr1xQKGccJGJnE1G/N/ 6o+Q== X-Forwarded-Encrypted: i=1; AJvYcCWP/6A3tl2tGVCj/hNHIfRfrMpxwHA9sNfU+n9v18OrOLJ2CZlWQ6pe6/Yb5NzRMrquCUddexCDO4zKnqI=@vger.kernel.org X-Gm-Message-State: AOJu0Yx0KFbAvzNyaUu2xDs56fohcFY8QkSO4E6Fu78U4DxRY+iC/++m /+NVNfE15JAiTbL4dWGBg9+eFc1+wdhk1aFIjI1Y/cqkuFPoxWoGKbgK7C5WgSY= X-Gm-Gg: ASbGncuWTXWTzf5ZHEQhEiJrM5LMa23aaTPhyu4JVNY/4JG86HqF0Y1e7zRholgVxOZ q2bi2TD1wiPo4w9X9Y0trU8fmmH6oxmVawMNM4CCpFHXmyk8Pr/Rx/yy9iraj3/lNRnOQYWP99P FxX6kco+mlHY2mLryfAQ7h8pUuE24sZwZtV5qWjoRmxnW1FLRnKNpJ9Th4FhWqyk2Kc9t8WMj7h pwlJuqYBUV/7OrOb1+ckPeGP5jKU7zDR+gjMc3r59hvewT0jVwtlN1FlDiylC2IElFbywQS X-Google-Smtp-Source: AGHT+IGqJQuuqk4Vhp5TZjFSvgTAdQ/xv2AVt/O10VN20Uow3Ku4n2wjK3uOgIBOBh22buJzPhpm7A== X-Received: by 2002:a05:6000:1a85:b0:385:e1a8:e2a1 with SMTP id ffacd0b85a97d-3864ce86758mr3868050f8f.3.1733964468442; Wed, 11 Dec 2024 16:47:48 -0800 (PST) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-387824a4ef4sm2459660f8f.39.2024.12.11.16.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 16:47:47 -0800 (PST) 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 v2 09/14] ASoC: dt-bindings: qcom,wsa881x: extend description to analog mode Date: Thu, 12 Dec 2024 00:47:22 +0000 Message-ID: <20241212004727.2903846-10-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241212004727.2903846-1-alexey.klimov@linaro.org> References: <20241212004727.2903846-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" WSA881X also supports analog mode when device is configured via i2c only. Document it, add properties, new compatibles and example. While at this, also adjust quotes. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- .../bindings/sound/qcom,wsa881x.yaml | 75 +++++++++++++++++-- 1 file changed, 67 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml b/Do= cumentation/devicetree/bindings/sound/qcom,wsa881x.yaml index ac03672ebf6d..e482d9dc0de2 100644 --- a/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml @@ -12,15 +12,17 @@ maintainers: 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. This binding is for SoundWire interface. - -allOf: - - $ref: dai-common.yaml# + This family of amplifiers support two operating modes: + SoundWire digital audio interface which is a primary mode + and analog mode when device is configured via i2c only. + This binding describes both modes. =20 properties: compatible: - const: sdw10217201000 + enum: + - qcom,wsa8810 + - qcom,wsa8815 + - sdw10217201000 =20 reg: maxItems: 1 @@ -35,17 +37,60 @@ properties: '#sound-dai-cells': const: 0 =20 + clocks: + maxItems: 1 + + mclk-gpios: + description: GPIO spec for mclk + maxItems: 1 + required: - compatible - reg - powerdown-gpios - - "#thermal-sensor-cells" - - "#sound-dai-cells" + - '#thermal-sensor-cells' + - '#sound-dai-cells' + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,wsa8810 + const: qcom,wsa8815 + then: + properties: + reg: + description: + In case of analog mode this should be I2C address of the digit= al + part of the device. The I2C address of analog part of an ampli= fier + is expected to be located at the fixed offset. + maxItems: 1 + items: + minimum: 0x0e + maximum: 0x0f + + - if: + properties: + compatible: + contains: + enum: + - qcom,wsa8810 + const: qcom,wsa8815 + then: + required: + - clocks + - mclk-gpios =20 unevaluatedProperties: false =20 examples: - | + #include + #include + soundwire@c2d0000 { #address-cells =3D <2>; #size-cells =3D <0>; @@ -68,4 +113,18 @@ examples: }; }; =20 + i2c0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + amplifier@e { + compatible =3D "qcom,wsa8810"; + reg =3D <0x0e>; + clocks =3D <&q6afecc LPASS_CLK_ID_MCLK_3 LPASS_CLK_ATTRIBUTE_C= OUPLE_NO>; + powerdown-gpios =3D <&lpass_tlmm 16 GPIO_ACTIVE_LOW>; + mclk-gpios =3D <&lpass_tlmm 18 GPIO_ACTIVE_HIGH>; + #sound-dai-cells =3D <0>; + #thermal-sensor-cells =3D <0>; + }; + }; ... --=20 2.45.2