From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 3C3053DFC7E for ; Thu, 9 Jul 2026 22:13:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783635227; cv=none; b=vAr9Kp4s3k6fiPTWFYXthOTXhUyZEeecK1NPZz6Flb+c2ahfqC2/cyH1Xb4JcRhZ3oce1kLSIgm7tQM9f4q2PZLO7zSRtm7rEdXy3JeVp0mwV31SAgihDQIJ10WMoIivtaPYDt5zTvNceLJVAs0WT/a8lXLnDX7oiwX7RYTb92k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783635227; c=relaxed/simple; bh=C4ayAE9UL2Kf4OuNTPepG8l1D14PXJZwapmcgB7cAA8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mm3TxvTFbNHw6sAgq98m9spBpTZpkNWcoe6+Y4sd8+YCMNEVugik0EsQ4AEDMhw0iuwoszKcWG9UaVN+0mxCXvMQPq7FWc3SWkPcbzm0oC5EmeVWJYdSevu4Q4H4ymO8XBwVC0+HheRs88u/+DwIud1+ssR6qdCN49D+XXwmKrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=okYof8CQ; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="okYof8CQ" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-47defd0c1c5so196796f8f.3 for ; Thu, 09 Jul 2026 15:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783635222; x=1784240022; 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:content-type; bh=dGaJjpg4Uf6A0xkO/I1SgrYYhus1D3i3U8sND88Lz3k=; b=okYof8CQ+33sEXKxtRIX+6hfZXjGXlKW2J5xnaaXezTTA00KfOEa6VVDBe7YzZiBoi Vxfwrr/9VbwX+IaaJ/dAXLcHWNooUhE4G4Gdwk5acgD+B59aSLse/cX7h03CQBGy04qd /l+jBJ72yvJffGV6b2nTr4ynBDgRzD55oj1g/gOXMBxrpzBp2iEkKJowTMeRX3z8InE7 KZqdmsiSwPlGLbT8a2vU50tM9mSM7/zZ2ho10J6NyKVlAf73NbwZNPwGqBi129OkPoDY lCMbv9+hZ/gm7EAcV4m+eHLqjWOdhah49v5Bf7rNPNXkJ1fhuebQPyyQi8cLcM+VPuby AeVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783635222; x=1784240022; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=dGaJjpg4Uf6A0xkO/I1SgrYYhus1D3i3U8sND88Lz3k=; b=bm5BVdxnSdsPEvRAJLLLkSm+7mEFJby51zSVp+9QslikMiWD4Bnp37yEO5y3dzAIhd qfZfW15m/g0zOv7Rgt1dUb63TPJWuafZpkbbiMNkxc9kUXxECaxlzopYx685VHY2VHV6 4JjUaF0iaPkUSDGtwSSYSUGRjbv8OmGlMHpSYsSL4+05DA5ffFgzqwAv1fHB584jJcQN VUxHFCDwd8a/I9k9r57gxS+02AJLBHzRvcUifMhuG2mY+R1WimbQAAT/oxrFjLWWbBcS 8krxsWDnnecIDt+OmUERH9GNUmHcfu1UkmCBQ0W5QTrLXhv+GCuXTpgXj2y7c5uLATgD usxA== X-Forwarded-Encrypted: i=1; AHgh+RqtmPx2gf1J4WG5FANQdelXtX01MsylG9+UpPGgemnLwA73N4tSWB/1yQVf1WLRwKDnZD2Hw0IRl0sCqeo=@vger.kernel.org X-Gm-Message-State: AOJu0YyEcA2NcufQEWBZ7UdRcfY5CBgQiV10xVhDrJKViWxkrA5iw7Z/ Z96+RhzrU0qoLj9ry+2I0pSq2OKTYxLm1mPvqLw9r4py1ju11WOTR5zu X-Gm-Gg: AfdE7ckG86nFpsccv9Wieqf6sT+2LKg7EwF0KHVTg5KEluHjZ5dsoPWbT9TLQVpKo/o G4MnGJUzDqDnmdHPjk15K5WauVyt6oeAoOIqnvC2xUqNsmVJ3zt3+BfMCzQUL7veuN74+gfP0zc 7KBdI9pzKBKuX3LCWNuLEsCUdctSwvE7Yv/HmnreQtPZ8u29rhZ+9xJ1FPBcAgijZYJyFqfybZc TqWv8kzQV6Py4Xju9pHgS1Jc1s99yuQf9b+sa7RV8nFrzCj/7Eez7Dyfq6/kHAxHSX4iF4JFi3O X+HvRa6yqqNnkqRd/eCosHUORMyeAD2pDjw0M74rzOykzxGmN5jfQMLlnS4sdeZaxsp0U2hI1xi nrpvHYVaOXh/tRPwTZtjKouAR/avlmZ6EJY2bYUnBxnDfuHVAqUNvYWmKItIQpGDwbdLofOVvLq S4JmkiH6S4uaGV5m5IdYforcycpNsWritr X-Received: by 2002:a05:6000:1a8b:b0:470:2fb1:3dca with SMTP id ffacd0b85a97d-47df07ec8d2mr11730313f8f.30.1783635222528; Thu, 09 Jul 2026 15:13:42 -0700 (PDT) Received: from unknown.tail46804.ts.net ([2a02:b023:8011:c993:4bf6:23f5:d942:9d70]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47f2465ae8bsm869008f8f.36.2026.07.09.15.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 15:13:42 -0700 (PDT) From: Gianluca Boiano To: Mark Brown , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: Gianluca Boiano , Shenghao Ding , Kevin Lu , Baojun Xu , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: sound: add Texas Instruments TAS2557 Date: Fri, 10 Jul 2026 00:13:28 +0200 Message-ID: <20260709221331.989109-2-morf3089@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260709221331.989109-1-morf3089@gmail.com> References: <20260709221331.989109-1-morf3089@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document the TAS2557 mono Class-D smart amplifier with an integrated DSP for speaker protection. The device is controlled over I2C and receives audio over I2S/TDM (ASI). It can drive a single mono speaker or, as two devices, a stereo pair; in that case the ti,channel property selects the audio slot each device reproduces and the per-device tuning it applies. The on-chip DSP boots from a firmware image generated per speaker design with the TI PurePath Console tuning tools; the optional firmware-name property selects a board-specific image. Signed-off-by: Gianluca Boiano --- .../devicetree/bindings/sound/ti,tas2557.yaml | 123 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 124 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/ti,tas2557.yaml diff --git a/Documentation/devicetree/bindings/sound/ti,tas2557.yaml b/Documentation/devicetree/bindings/sound/ti,tas2557.yaml new file mode 100644 index 000000000000..b1d1183c4a79 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas2557.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2026 Gianluca Boiano +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tas2557.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TAS2557 Mono Smart Amplifier + +maintainers: + - Gianluca Boiano + +description: | + The TAS2557 is a mono, digital-input Class-D amplifier with an + integrated DSP for speaker protection. Audio is carried over I2S/TDM + (ASI). The on-chip DSP boots from a firmware image that is generated + for a specific speaker design using the TI PurePath Console tuning + tools. + + Stereo playback is built from two devices, each reproducing one audio + slot selected through the ti,channel property and applying the + matching per-device tuning contained in a stereo-tuned firmware + image. + + Datasheet: https://www.ti.com/lit/gpn/tas2557 + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: ti,tas2557 + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + reset-gpios: + maxItems: 1 + description: GPIO connected to the active-low RESET pin. + + interrupts: + maxItems: 1 + description: Fault interrupt output (INT). + + vbat-supply: + description: Battery/boost input supply (VBAT), 2.9 V to 5.5 V. + + iovdd-supply: + description: Digital I/O supply, 1.62 V to 3.6 V. + + avdd-supply: + description: Analog supply, 1.65 V to 1.95 V. + + dvdd-supply: + description: Digital core supply, 1.65 V to 1.95 V. + + ti,imon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX time slot for current-sense data. + default: 0 + minimum: 0 + maximum: 7 + + ti,vmon-slot-no: + $ref: /schemas/types.yaml#/definitions/uint32 + description: TDM TX time slot for voltage-sense data. + default: 2 + minimum: 0 + maximum: 7 + + ti,channel: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Audio slot of the stereo stream reproduced by this device (0 = + left, 1 = right). With stereo firmware this also selects which + per-device tuning set is applied. + enum: [0, 1] + default: 0 + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: | + Name of the DSP firmware image to load. Defaults to a name + derived from the silicon revision. Stereo systems typically use + a stereo-tuned image shared by both devices. + +required: + - compatible + - reg + - '#sound-dai-cells' + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + audio-codec@4c { + compatible = "ti,tas2557"; + reg = <0x4c>; + #sound-dai-cells = <0>; + reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>; + interrupt-parent = <&tlmm>; + interrupts = <73 IRQ_TYPE_LEVEL_HIGH>; + + vbat-supply = <&vph_pwr>; + iovdd-supply = <&vreg_l6b_1p8>; + avdd-supply = <&vreg_l6b_1p8>; + dvdd-supply = <&vreg_l6b_1p8>; + + ti,imon-slot-no = <0>; + ti,vmon-slot-no = <2>; + ti,channel = <0>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 15011f5752a9..8a824da3979e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -26677,6 +26677,7 @@ M: Sen Wang L: linux-sound@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/sound/ti,tas2552.yaml +F: Documentation/devicetree/bindings/sound/ti,tas2557.yaml F: Documentation/devicetree/bindings/sound/ti,tas2562.yaml F: Documentation/devicetree/bindings/sound/ti,tas2770.yaml F: Documentation/devicetree/bindings/sound/ti,tas27xx.yaml -- 2.55.0