From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 A43FB42AA5 for ; Thu, 27 Feb 2025 12:08:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740658134; cv=none; b=ZHfjRsrGLYH6OSP1vh7GWfK7BPp1pkPrFqL9xhWUgs5zRNiFz7VtDkz47ZGrRxwicvVDT9OCP9ho0y/VeX7JtK7gbDoAcIANvsjDQekhepVIou8BiwgHr4ROpKl84Tc68tHHt5Iqq/4uxOkIZ/K/hvG5fjmEtaeOKmg4KYfbwrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740658134; c=relaxed/simple; bh=tql2RO8GL3XbRYzLyF10LrmaUQUmVqAYtQm0jp7XazI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rhKg1jC6v061UMcWYH1X9X6nsT99xPYUOZrTB45OciNypcOj9zciSqcKTUgw5DbFSItArGqSI/39ZTKMQCnx0dpIZaa/T9Jrtp20xLnUm3pSW4yloSaefRfuLuTUBYuuI72j6psizVtUr4t67tGlKSbjSnKXxOObNeL6H9qn2uM= 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=HD9uN6JI; arc=none smtp.client-ip=209.85.214.175 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="HD9uN6JI" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-22334203781so26100325ad.0 for ; Thu, 27 Feb 2025 04:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740658132; x=1741262932; darn=lists.linux.dev; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=jgXAyWJlzyUT7W8oT86LCqJbT092n3CAES1oCH+us9Q=; b=HD9uN6JIhiqXmeroPu5ar3IHQDH9NOrlIP8ioaOXZY5w0OMqza8cC4mBglkkwojHGI gRz+v/25baCgVkH0tNWiGXWIGa+Hc6EDKk3nxHo6JBm4LFnHkienUW3FryVeIfgTDs6I /A/TUiiQ/i5+zpseJB2bRmA21gKTHIghp88oXNqixlfzoXQSlHeE1T7evjWsjWTkzOFL n2BSJP0XKI+qlQIo2rPmUvY/eKQSqDR4sDNjfbwzAqcZiofPyqAMDj/jrhey+oTAQUES 4kDy6ZW4V/yWMKsAJsPPSgYOowcVrYALUoo+MIn2LlY/yGIqweve2U18c0pvpkfcjVkF Ox9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740658132; x=1741262932; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jgXAyWJlzyUT7W8oT86LCqJbT092n3CAES1oCH+us9Q=; b=lXsY8oW1kWa17d2bvM47qlSBouz8CdOeGvHLJ8oFZe7e7aJNUSWUHNimJ9Fd8GbeOt bG6RgldaeGjrFS14CTg1fWzk2DghqFERTxk7ysPajLnAWrlbIKMAdDVWfX/zR0m1rNKk PBAxW76k9Ab0s8KoQLqjuY/T/rWdA5lv/GA0mH+GGC9kFZYtzu7Gtq0cgdBXCPhcj9cl 28KyUXYssSCHMsjFBZZOaZc+N7XMFliHQHBTPTtXfdWkC8UwxSDE2xazNBER45yF4Bry FuGzd/K+OTzCXa/5mpya9pqValIUEhtwwTcBQq1ZC3Hiw3IzrpmgX/WugzEXtz/0a4Cr k8GQ== X-Forwarded-Encrypted: i=1; AJvYcCVuDwvVQAWkFlYjZSDW3VTkRl4SepnNJtAujmEn/z13KK0mvmPU99dErW6xqWnkpxhhTgOrWQ==@lists.linux.dev X-Gm-Message-State: AOJu0YxOhItr9gWk0DmCFR0YyxHiiSXyDW1TKLtrv/c2SHbk7cSA8wbm WMMKl2jYkv+r2QdeqdUPNZMONmJmlRtb9ct1Qip/YrDauwG2brGwCcgO8rjx X-Gm-Gg: ASbGncvn1jNXRmoVK9wg3oGIngkmzA4svl9u7L45AhqhcBn5cGryv2vWNi4PZ4FN9gm ep8aK/R3gv3x9P4czMiq2d+xdCMJVNg7YexjBOXaNxWn3N/cgaxhAM2+/1CVL+g3nPCqW8pBhFg tKBNh2+g40dmbDYk5VeGgbIhaDxKL2ldd1qU9IiT+wsU7NqO5tN+LBm7FIpbCuoD61/xTkPh+1z kg3duGFnousJkzCl5t7iV95W0phcHw1J19JeJNUwB80AqhcyAe409V/o8YC555UcWu7F5lEnorP ccgqDgkHIWLuVJzxqN88OiV1v27TqlwQwlosXExvK/L6Vi4Kk3ut7mz/NKgSkkcHM2swdiwOxvD 9KbECM0XtYai/UIPKK6jS X-Google-Smtp-Source: AGHT+IGpG3aYl9HWsQOldqhSuN29J84k9WJc0IYy7wzLeHC+7iHr1iy3v7s+wPTT3I+3pe465wAJnA== X-Received: by 2002:a05:6a21:6f0c:b0:1ee:d19c:45f9 with SMTP id adf61e73a8af0-1f2e39188d3mr5135935637.19.1740658131652; Thu, 27 Feb 2025 04:08:51 -0800 (PST) Received: from [192.168.2.3] (2403-580a-80ed-0-4835-5a07-49e7-f115.ip6.aussiebb.net. [2403:580a:80ed:0:4835:5a07:49e7:f115]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-aee7de19cdasm1074217a12.24.2025.02.27.04.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2025 04:08:51 -0800 (PST) From: James Calligeros Subject: [PATCH v3 00/20] ASoC: tas27{64,70}: improve support for Apple codec variants Date: Thu, 27 Feb 2025 22:07:27 +1000 Message-Id: <20250227-apple-codec-changes-v3-0-cbb130030acf@gmail.com> Precedence: bulk X-Mailing-List: asahi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAH9VwGcC/23NwQ6DIAyA4VcxnMcCVWB62nssOyhUJVExsJAtx ncfuizx4PFv2q8LCegtBlJlC/EYbbBuSpFfMqL7euqQWpOaAAPBgBe0nucBqXYGNf1tBCpRCmk 0RygMSZezx9a+d/XxTN3b8HL+sz+JfJv+PXHqRU4ZVZALWTbAG17eu7G2w1W7kWxehKNxOzcgG WUOSrLWKGTqaKzr+gVhtMHr+gAAAA== X-Change-ID: 20250214-apple-codec-changes-6e656dc1e24d To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shenghao Ding , Kevin Lu , Baojun Xu , Dan Murphy , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shi Fu , Jean Delvare , Guenter Roeck Cc: Alyssa Rosenzweig , =?utf-8?q?Martin_Povi=C5=A1er?= , Hector Martin , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, asahi@lists.linux.dev, linux-hwmon@vger.kernel.org, Neal Gompa , James Calligeros X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3916; i=jcalligeros99@gmail.com; h=from:subject:message-id; bh=tql2RO8GL3XbRYzLyF10LrmaUQUmVqAYtQm0jp7XazI=; b=owGbwMvMwCV2xczoYuD3ygTG02pJDOkHQk84PxRvSj/f26TnMf3zq6hn/pu8Jhf+/um1Z1Pnv JNnmAVmdJSyMIhxMciKKbJsaBLymG3EdrNfpHIvzBxWJpAhDFycAjCRrAxGhs6n81dO2fhCyOrF IYNyV3fWPwpLSmKXdHeuXqIZqX7m0iqGf1o8rpKShxfdM+A5V2x3RICdK+qU5izu3+ymgTl/L2p fYAIA X-Developer-Key: i=jcalligeros99@gmail.com; a=openpgp; fpr=B08212489B3206D98F1479BDD43632D151F77960 Hi all, This series introduces a number of changes to the drivers for the Texas Instruments TAS2764 and TAS2770 amplifiers in order to introduce (and improve in the case of TAS2770) support for the variants of these amps found in Apple Silicon Macs. Apple's variant of TAS2764 is known as SN012776, and as always with Apple is a subtly incompatible variant with a number of quirks. It is not publicly available. The TAS2770 variant is known as TAS5770L, and does not require incompatible handling. Much as with the Cirrus codec patches, I do not expect that we will get any official acknowledgement that these parts exist from TI, however I would be delighted to be proven wrong. This series has been living in the downstream Asahi kernel tree[1] for over two years, and has been tested by many thousands of users by this point[2]. [1] https://github.com/AsahiLinux/linux/tree/asahi-wip [2] https://stats.asahilinux.org/ --- Changes in v3: - Add Rob's Acked-by to Devicetree compatible additions - Dropped cherry-picked patches - Droped abuse of regulator API - Droped bespoke sysfs interface - Rationalised temperature reading for hwmon interface - Set SN012776 device ID with OF match data - Changed probe ops reliant on device ID to case/switch statement - Added documentation for new Devicetree properties - Improved a number of poor quality commit messages - Documented behaviour of die temperature ADC - Link to v2: https://lore.kernel.org/r/20250218-apple-codec-changes-v2-0-932760fd7e07@gmail.com Changes in v2: - Changed author field of patch to match Martin's Signed-off-by - Added Neal's Reviewed-by to reviewed patches - Moved fixes to existing code to the top of the series - Removed tas2764's explicit dependency on OF - Removed complicated single-use tas2764 quirks macro and replaced with if block - Added hwmon interface for codec die temp - Fixed a malformed commit message - Link to v1: https://lore.kernel.org/r/20250215-apple-codec-changes-v1-0-723569b21b19@gmail.com --- Hector Martin (5): ASoC: tas2764: Enable main IRQs ASoC: tas2770: Power cycle amp on ISENSE/VSENSE change ASoC: tas2770: Add zero-fill and pull-down controls ASoC: tas2770: Support setting the PDM TX slot ASoC: tas2770: Set the SDOUT polarity correctly James Calligeros (6): ASoC: dt-bindings: tas27xx: add compatible for SN012776 ASoC: dt-bindings: tas2770: add compatible for TAS5770L ASoC: dt-bindings: tas27xx: document ti,sdout-force-zero-mask property ASoC: tas2770: expose die temp to hwmon ASoC: tas2764: expose die temp to hwmon ASoC: dt-bindings: tas2770: add flags for SDOUT pulldown and zero-fill Martin PoviĊĦer (9): ASoC: tas2764: Extend driver to SN012776 ASoC: tas2764: Add control concerning overcurrent events ASoC: tas2770: Factor out set_ivsense_slots ASoC: tas2770: Fix and redo I/V sense TDM slot setting logic ASoC: tas2764: Reinit cache on part reset ASoC: tas2764: Configure zeroing of SDOUT slots ASoC: tas2764: Apply Apple quirks ASoC: tas2764: Raise regmap range maximum ASoC: tas2764: Crop SDOUT zero-out mask based on BCLK ratio .../bindings/sound/ti,tas2770.yaml | 13 ++ .../bindings/sound/ti,tas27xx.yaml | 5 + sound/soc/codecs/tas2764-quirks.h | 180 +++++++++++++++++ sound/soc/codecs/tas2764.c | 258 ++++++++++++++++++++++++- sound/soc/codecs/tas2764.h | 21 ++ sound/soc/codecs/tas2770.c | 240 ++++++++++++++++++++--- sound/soc/codecs/tas2770.h | 19 ++ 7 files changed, 706 insertions(+), 30 deletions(-) --- base-commit: 32adeb9806ac5bf928514b62e6145bba12dfd71a change-id: 20250214-apple-codec-changes-6e656dc1e24d Best regards, -- James Calligeros