From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 112802DC764 for ; Sat, 11 Jul 2026 14:57:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783781861; cv=none; b=QtJB7f7kQGQ1M+kjMZ7/8LIScyegGGL8jpw0frKwMIIbms6AZKzxPH2arn5my/PmrCqy9FKjU8IfOzJ302y6Ak8Wsr6qr74IpVRZH513AxIOSqDXGsERzOZ/bwlDUCl5yF8B8oySQ4JrdZovtFbXWzqxrv9fDu12NQZtZPqSRZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783781861; c=relaxed/simple; bh=yf7IrBvBrKRaoeuR+nDz+T8BMSyugAsap+/X6UxUGtk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=liY0G1KbBwatdOCq4vpQMHwhM3R4yt9dc495ShPyfPXCTEqq8J49IMu1fvQsqB5ceIucC/lT4z2pZflAgnxtRJHSNKScZe4g1HKetybWvykhMD1SYW21/zE5u8X3AgPEx3HPF4cedJHkF99Zk9etuAMiGw07++AoTMWJVeFyvMU= 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=fAeSKmoZ; arc=none smtp.client-ip=209.85.221.44 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="fAeSKmoZ" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-476d8e647e9so1971951f8f.0 for ; Sat, 11 Jul 2026 07:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783781858; x=1784386658; 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=Gkj5L9wtCn4YwWm3JNDMgU5Pi28drv8kmdPHyAdRC2M=; b=fAeSKmoZQMVGlvmhydBYX1eT0l53+pVTR2rVrphoKvEcoPR/gNYoAKG3fqeuJpqmUl QgH0lVj15WrVHNfttVhhRWyquI5ifsIEMBSBWinJW2ITc1ChYfdqAdmyXBK7LsQZ80We YbjnUNvAI1AtsaLDBBgs89mFw4nSriWGtyg9HohJHn6ClbeZ8PFSGKqsPvaMUyTD2bod XUu6N6Z9qQfS+i2LKYcRCWIySnGxFsAMD+HZyKHcd7rSN7ecpHSNwiQU6qVg94HC9k2r Hq2Cff3MO4MZo+L/bHE7BDc3lWTJf61USUxbCQ26jpHbHNmTlJUSTfgK1j1XSFvUrO6l Y3BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783781858; x=1784386658; 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=Gkj5L9wtCn4YwWm3JNDMgU5Pi28drv8kmdPHyAdRC2M=; b=f7wxvC60+trOaKEpiGjgMd1MpAn/+5pIGK11YsNuNPw7mPt7M+xMZrxLV1ov1H57tP jnLjXgZTZQAX42xlouzs98i/lr7CjU+17zg+9bqxdOAVViZvZauuOg3IfOQRlOsKpm+2 qxf9rBcWz6j8emP78eJCRl5bgn9Y3gyp0lM80SL1ksvHX6oAaz3IQ7mvBeDZeaXY+x4H C/wLM2Y8MkAuWjn7w2WuObrn6iJybpQVQRNIKDBdGr/awB2KiIsB9GEdSMGPsauPgxFg A5KfEOUHojqtVXR3yDEiWo/qch0WY9Zr6acG6QPPDrf9F8cGcdJLrMRuhclmj6ThjKsQ RX3Q== X-Forwarded-Encrypted: i=1; AHgh+Roob0o+s1k3eeND1fe80WvYhT+xGfRQia2f9RUSk9HSbe85aKzVCPEnZto7e9h7GDdzEcfTInub5ZSpFSM=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+8vG/hZTTMRJqOuVtxMurTgDNEaKKmfjNTqUhWG0QvTqBegwh BLSkdH04H0AGuw3x/WGgk6Gnh3oqmAZuZh66CjHQnkf6bMtrPjQ4U/JG X-Gm-Gg: AfdE7ckAKPVZJ2EQqyjXLEG6jZrwWZAWyPppw+NyLl+XvUVnT5nkgG+OrCeedBYNgG4 AXCJFifyY7clj8jWrBgDgpokordFNcA619Uy0Gm3pvPWRF4Gv13eS0d4xwr/nfd1D8Bpw+g9rbz TIzM2fm5vwYc/QnuWTToHrpoMuBzeJMm3HSQ+ehMJJSsoe4tFT798p2CTcUBEnn8HBCipfzjP8y EhjBeOUDAeFqtT32Jbdm7LLaYuFHOSN+J5qX85QZp+9tLUfgosB1EV45mJ+nAmwmxvKnre2qS8w bA1VNNLwEwU3L54JGHQwdgJiOLDsL3BCymggEt2R8y5G1Exd5njNhkLwgkeQ6IWcuLow/mNXwrd TQU2LWYIZz2AAQnCsYJotVA+lTiu14paVX8Rjjya67LCKk8L6OkomFAM3tpuCwyPpEfkHGYp7g+ 1kHvmsH2CMNPcG6ncPgD9k5cJ9Pm1q X-Received: by 2002:a05:6000:230e:b0:47d:fa32:c895 with SMTP id ffacd0b85a97d-47f2dced65bmr3107112f8f.50.1783781858380; Sat, 11 Jul 2026 07:57:38 -0700 (PDT) Received: from unknown.tail46804.ts.net ([2a02:b027:15:795f:9b40:189:2716:6c6b]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47aa039b126sm67213819f8f.24.2026.07.11.07.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 07:57:37 -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 , "Wang, Sen" , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: sound: add Texas Instruments TAS2557 Date: Sat, 11 Jul 2026 16:57:20 +0200 Message-ID: <20260711145722.188556-2-morf3089@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260711145722.188556-1-morf3089@gmail.com> References: <20260711145722.188556-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 --- v2: add the four mandatory supplies to the "required" list (Wang Sen) .../devicetree/bindings/sound/ti,tas2557.yaml | 127 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 128 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..862ea4036cb8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tas2557.yaml @@ -0,0 +1,127 @@ +# 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' + - vbat-supply + - iovdd-supply + - avdd-supply + - dvdd-supply + +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