From nobody Thu Feb 12 15:49:40 2026 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 DE194172793 for ; Tue, 11 Jun 2024 07:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718091010; cv=none; b=Vyif41z/tra4iF9Oj3PXdFZEn9Xa9dt8e4p1r1dUPvDatsfMTpdHS8Ktw5EQVhEIUuU8ZFtG+SoJ4zIbMDhw4Mh1LUenummupL2EoODnva5ioVgUR8M5R8hxs6pK3P9Ice6rrk9IYmREFgzAYTbylfP2mt+9K3GqH8jlazuT5gg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718091010; c=relaxed/simple; bh=+yd8str5xHWobCDvL4wg3IC0NY2M/8dT9npvAkWw9YA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=ScGeP5lWPUW+tgQQeb7fHdfixHP9KyL1D9L+sLv7emSMeVAkN+BSiESX4FdyNVJRkPODhxbAGJLnlY6rbqrwjSzP7Dl7KnnIgG9jW7aoI7IfYFhHqijtUNX4Nn3YqU5cec1HPj4zov4t7kI+8S9joYllMx+jteAUVjDfaT01yQw= 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=GpqzNFtN; arc=none smtp.client-ip=209.85.128.50 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="GpqzNFtN" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4210aa012e5so9017185e9.0 for ; Tue, 11 Jun 2024 00:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718091006; x=1718695806; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=Tp0zErf8dbeYDTLzEuLWwqeIB+WJf5u0UHDSZkndrro=; b=GpqzNFtNXegIV5rbf6BAFaKLDqZZUbD9RPXw1CGKOm8BulFyGFGtE2gPl9Yn78vysf BI/dA0mLWjE4Nio6rWeb0SdRuyxZwcxXXPQBPwCX6MUssAyBdx4PCOsi+ttSvAhF+06N VAoqnx9SPSDWwY2sNwAHgQgrzSOYHE0/QlDICqPQA04LRpmDMnHkw5UJJzIZO+XTnOVS ZaViYfhqcIVaC8jOF0xYXCSSEKF6d4LSpBgX0R16jMVf/E6Ewee39OQE06Op+2QTWkAS KamHGKyAxayjlAx0L+35/0HsXMkR1FRxF+B8AOLfrwwJwk1B9uMlTQGw/igmDt+//r/K 79lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718091006; x=1718695806; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tp0zErf8dbeYDTLzEuLWwqeIB+WJf5u0UHDSZkndrro=; b=uNcWg3usy4OAb0ESGcjhBtAXEv2sg/jCDRYZP+Oxl2uz9BU7j6lvwtftJCtKxjIJ6j ygtTU8+PDNB4idyt/gkB4idrvRwpYhUW05ple8vqNsS61BH1z/d14vZdgdWbbrQBRhyT mn9Ygl80K6mV+y2PLqAEVzNyid1SCj51+wzY9clmfbHkhkuGxpQV5EPH02MYmrBsh1z+ 9YyWe+AbGxzKvqaM2WDDq0WHTPti36bh2yAkBrm9VVI7ftr2OqFmKY1UzLDC2IGLOTas nc1dENU5mZUpa+CpWIZam+O8q2txHh1u7QQSYOmwaGB6I99Y8Lr4OrBh/6jPiUyOV+Df 7LaA== X-Forwarded-Encrypted: i=1; AJvYcCWSAfyOXBIkcm+rdLW3EQfLkRGQbyFUXbcr7V9LK4YXOxXszITr/S2HWmawYz/He92TR35Y7AXaIQAqWMrLRNjBBZLJhJvoGGDTmZtv X-Gm-Message-State: AOJu0Yxa4zwCBMxocTqsqEKQ+OTSiFnOrxWdgdEOG2Ik6ySL8SkGaHwp Nr1qv66b+hq+xx7dE+VvRhpAru7U9Op4mgTQF02mX2lmg4MPoJoA1+gOHDqlEIs= X-Google-Smtp-Source: AGHT+IEzv2F+C93WwbuWLKhepxW6xKhRpwiKHPkrfPo9FyWzxTuYVt4NQR25zFR9Jxxiur1u8S1RmQ== X-Received: by 2002:a05:600c:4fc1:b0:422:aca:f87a with SMTP id 5b1f17b1804b1-4220acafa7cmr28331685e9.7.1718091006141; Tue, 11 Jun 2024 00:30:06 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42158110dfesm202926135e9.19.2024.06.11.00.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 00:30:05 -0700 (PDT) From: Neil Armstrong Date: Tue, 11 Jun 2024 09:30:04 +0200 Subject: [PATCH v2] ASoC: dt-bindings: convert tas571x.txt to dt-schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240611-topic-amlogic-upstream-bindings-convert-tas57xx-v2-1-38269edc1d95@linaro.org> X-B4-Tracking: v=1; b=H4sIAPv8Z2YC/52OOw6DMBBEr4JcZyNs8RGpco+IwobFrAQ2WjsWE eLucThCqtGbYt4cIiATBvEoDsGYKJB3GdStEMOsnUWgMbNQparKpmwh+o0G0Ovibc73FiKjXsG QG8nZAIN3CTlC1KFu9x1qPUmsmwobLUVe3Rgn2i/jq888U4ieP9eBJH/t/64kQQKaLKw62Rkjn ws5zf7u2Yr+PM8vsvyEpe8AAAA= To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6076; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=+yd8str5xHWobCDvL4wg3IC0NY2M/8dT9npvAkWw9YA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmZ/z8NS0RJHmlRuqyCvb8KS59O1iiLP6u1KVWDjJL kOl2W7GJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZmf8/AAKCRB33NvayMhJ0X5sEA COoNSxY4T0Bx2F9DH9iFn2K1myPn2mF4Mfeqn5n2zUVUczfMZfu/dHQHL53y8dwv4STpYVENbaxbnY DDWHY2dbJJ6dR05MAAFLlu/VVbkpRtBEROYzJr7gHcSxfq8DSN8HO5SU+oJLTSYpYvOEdokU0pWbG+ HzdMy/J9F99cijYPypuT6Woy0nBCH9HdNRaHpdG9zV6hbcmMm5XpDVrNvEjnaD4fgLLOrqDjsRS2qt KcZhfX6xTXOH+ukuhGNvqvLSg4jKPszo5OzB/x17kmiFrzP+seBYmMvugVcb4McW1rXKByB6pM36S/ /loc58mo695+V0ZYXEbMIBu6naSauXgi3slSWAPxJTgNe3Ro9LDwWqeMZF0QiPpkNFxNCoCuzel+SM VFXXrN+GFcQd1+s+jLH0/kDHrAt6r+9IIm1mTxGNF7I/ghs4CMBe/lI6OfA6yPX7UbPb0ZEmGy+6cR Ix1rOhm3crqO+jiGbEoxCidr4EfQmCu+MFqhX0Mgm7sfJccsWAaNl3GXjjfo0XP1iXKvxJUVQ0+DMI /ce4NN92B7TXeGXOHXojJRZui2G980A6xrm5IxDrc+CES1adS0uvFlRRp8ziBxF3SFJ/JA/O81F4xu SZNTIV2R/quHXxQZ/ZJaPgztWFA9L9r1puc5Aubjd/ZsRy8k6ubZs+VD5o0A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Convert the text bindings for the Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers to dt-schema. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring (Arm) --- Changes in v2: - Add missing port - Remove label, include and add blank line - Link to v1: https://lore.kernel.org/r/20240607-topic-amlogic-upstream-bin= dings-convert-tas57xx-v1-1-ebf1e4919bb1@linaro.org --- .../devicetree/bindings/sound/tas571x.txt | 49 -------- .../devicetree/bindings/sound/ti,tas57xx.yaml | 133 +++++++++++++++++= ++++ 2 files changed, 133 insertions(+), 49 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/tas571x.txt b/Document= ation/devicetree/bindings/sound/tas571x.txt deleted file mode 100644 index 1addc75989d5..000000000000 --- a/Documentation/devicetree/bindings/sound/tas571x.txt +++ /dev/null @@ -1,49 +0,0 @@ -Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power amplifiers - -The codec is controlled through an I2C interface. It also has two other -signals that can be wired up to GPIOs: reset (strongly recommended), and -powerdown (optional). - -Required properties: - -- compatible: should be one of the following: - - "ti,tas5707" - - "ti,tas5711", - - "ti,tas5717", - - "ti,tas5719", - - "ti,tas5721" - - "ti,tas5733" -- reg: The I2C address of the device -- #sound-dai-cells: must be equal to 0 - -Optional properties: - -- reset-gpios: GPIO specifier for the TAS571x's active low reset line -- pdn-gpios: GPIO specifier for the TAS571x's active low powerdown line -- clocks: clock phandle for the MCLK input -- clock-names: should be "mclk" -- AVDD-supply: regulator phandle for the AVDD supply (all chips) -- DVDD-supply: regulator phandle for the DVDD supply (all chips) -- HPVDD-supply: regulator phandle for the HPVDD supply (5717/5719) -- PVDD_AB-supply: regulator phandle for the PVDD_AB supply (5717/5719) -- PVDD_CD-supply: regulator phandle for the PVDD_CD supply (5717/5719) -- PVDD_A-supply: regulator phandle for the PVDD_A supply (5711) -- PVDD_B-supply: regulator phandle for the PVDD_B supply (5711) -- PVDD_C-supply: regulator phandle for the PVDD_C supply (5711) -- PVDD_D-supply: regulator phandle for the PVDD_D supply (5711) -- DRVDD-supply: regulator phandle for the DRVDD supply (5721) -- PVDD-supply: regulator phandle for the PVDD supply (5721) - -Example: - - tas5717: audio-codec@2a { - compatible =3D "ti,tas5717"; - reg =3D <0x2a>; - #sound-dai-cells =3D <0>; - - reset-gpios =3D <&gpio5 1 GPIO_ACTIVE_LOW>; - pdn-gpios =3D <&gpio5 2 GPIO_ACTIVE_LOW>; - - clocks =3D <&clk_core CLK_I2S>; - clock-names =3D "mclk"; - }; diff --git a/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml b/Docu= mentation/devicetree/bindings/sound/ti,tas57xx.yaml new file mode 100644 index 000000000000..2f917238db95 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml @@ -0,0 +1,133 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tas57xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TAS5711/TAS5717/TAS5719/TAS5721 stereo power ampl= ifiers + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - ti,tas5707 + - ti,tas5711 + - ti,tas5717 + - ti,tas5719 + - ti,tas5721 + - ti,tas5733 + + reg: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: GPIO for the active low reset line + + pdn-gpios: + maxItems: 1 + description: GPIO for the active low powerdown line + + clocks: + maxItems: 1 + + clock-names: + const: mclk + + AVDD-supply: true + DVDD-supply: true + HPVDD-supply: true + PVDD_AB-supply: true + PVDD_CD-supply: true + PVDD_A-supply: true + PVDD_B-supply: true + PVDD_C-supply: true + PVDD_D-supply: true + DRVDD-supply: true + PVDD-supply: true + + '#sound-dai-cells': + const: 0 + + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - '#sound-dai-cells' + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - ti,tas5717 + - ti,tas5719 + then: + properties: + PVDD_A-supply: false + PVDD_B-supply: false + PVDD_C-supply: false + PVDD_D-supply: false + DRVDD-supply: false + PVDD-supply: false + + - if: + properties: + compatible: + contains: + enum: + - ti,tas5711 + then: + properties: + HPVDD-supply: false + PVDD_AB-supply: false + PVDD_CD-supply: false + DRVDD-supply: false + PVDD-supply: false + + - if: + properties: + compatible: + contains: + enum: + - ti,tas5721 + then: + properties: + HPVDD-supply: false + PVDD_AB-supply: false + PVDD_CD-supply: false + PVDD_A-supply: false + PVDD_B-supply: false + PVDD_C-supply: false + PVDD_D-supply: false + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + codec@2a { + compatible =3D "ti,tas5717"; + reg =3D <0x2a>; + #sound-dai-cells =3D <0>; + reset-gpios =3D <&gpio1 15 0>; + pdn-gpios =3D <&gpio1 15 0>; + AVDD-supply =3D <&avdd_supply>; + DVDD-supply =3D <&dvdd_supply>; + HPVDD-supply =3D <&hpvdd_supply>; + PVDD_AB-supply =3D <&pvdd_ab_supply>; + PVDD_CD-supply =3D <&pvdd_cd_supply>; + }; + }; + +... --- base-commit: c3f38fa61af77b49866b006939479069cd451173 change-id: 20240607-topic-amlogic-upstream-bindings-convert-tas57xx-5af1e56= 4e6a1 Best regards, --=20 Neil Armstrong