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 35C4F311958 for ; Tue, 4 Nov 2025 08:52:58 +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=1762246379; cv=none; b=q5/xxEICIFvhmqN74Vf/5j83rV0srzuZnn3UuQ3VShThi5CcJIWy9THr3m5Jbef1gsmuC2wi+fPOGqeUO3h4ow/IUQ0+dZrME9Z+wf4YRuA7nGM24C2liR4ZV9iKiF9v2mZcm1DwBCjAuYduq6LC2X/Tuye7A+Imd0UIIyNcJhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762246379; c=relaxed/simple; bh=2rMHlQ1WtmYv1cT3KfGLFdZenWascCkIbV7yKzG2Frw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Ld4+hwMbmC2wipfY5eROK5RoKJmO6fLfn0Tsd1BLvHCFKgzr8dq/hQ6YSrxxpBkXUrDF+uvLDGg2DsAnIRU0EHdYp9Gx4yu5JlqJlui50o3n6NJA2i9yOK/H/ib/L52UJyX+jPbVC7r2zXL+xY/vzSqehF6jp1J12QupdMVoufI= 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=G1XoNgwg; 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="G1XoNgwg" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-290af0e154fso6786475ad.3 for ; Tue, 04 Nov 2025 00:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762246377; x=1762851177; 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=JHJIK8+oaXWJkBBbD+h4XXw0wc94Hg7Tu0T3cHygSwk=; b=G1XoNgwgqqvxW+Q6ug7nLKpu3RTpub5P5SbSxpAaP+MTs+vLhZK6Hqun1JPHPx6M0D ng1bHU1tF968UAIyrmlQeHxpH8315/xZLvymTUqeUlehJZd0Dq+JHUYBCdyKiIHVVEZ8 IcfDvy/skLFmizJ0HJuB7JkC7aIhf8IwvSYmf7T+g3RYbcaqYIr3gbK5euocCug51d+F 8SMx2SOwTGUGmc3GlgIllAzdojdLMIfQcUjxoUqjrcPrNrK5qKJTQkxZze4Vs6jtdVCS 3Gc/yLTO5pFVt+BZKxhXNOwscyaUNZEjknKTA1c8wncYZj3AYr4hd66E2r6Dv82ykUfz ONdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762246377; x=1762851177; 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=JHJIK8+oaXWJkBBbD+h4XXw0wc94Hg7Tu0T3cHygSwk=; b=CcfSPZGLSNULeD/qFogdYfjVQ3Klsi8s6RqrgyBg5Ymh+05oUEmCs6GNKONeMFewtL 1nR3GEoK1ErlafDd5vmUkCw94g4IF31notes3dhwDwmCCxWpZoxl6mFQnqOewBrR2Y8i EWpfxumY/GdpJ2U7XwjnI4qKoMjkcEHhh6LJw+E3Dffzqcp8z10ryLdBhb5Hne+3cy3F G5mjutYyoEYFRZ5o45KwHNvnVPtkw2L6oj7zYq74mqlj7kCdVa7gVntoXYFZb6u9sTCE u9Z1URgO8noiFlso4GXPm0MYyCEsKkzPluE9cl040HP5Szf7nY1aEZArsRGMB0u3XS2G ohXA== X-Forwarded-Encrypted: i=1; AJvYcCX8zLHOdAFD8C+/VJRVXcmp6d/wP0XfPuCVx7jIX//7KTq0/WxVwry2PXi6twZnfnVPNigWbX5fx6/bpD8=@vger.kernel.org X-Gm-Message-State: AOJu0YxsuiBhJmEnHxZJ9uXJKoVJVvq0oklLv68TeEdjSfrNUfwQwBh0 sWOrVyf5a/mCiy289VXB1wgDRCQ7E1Uvp7nm1pSwYToZppcIZGKNY+VV X-Gm-Gg: ASbGncs4KgTEaqatzZUpmv8UnJLr4SdaP5bq22F8NPSLbEDX8xCDB3nAh1pYUB10Onf r83Vtm8UFJiK3FQirt6+jiziwQuXFD2cVpDZFK/y5P9WlU/YoPoHqUzZzY9hPMIwbtebEF6CtOo vgeWEe7aAYxpxN0kSeiGbicyxOZUxGsfTHXiDb5cgi2HBos5DqklVO8BDNZy1fnx031mNl3REGs 0wohvF8j68X1eZIx+l5sBAD0K9rSfhGm3qXpkVeOJiSBpvQ6CBkQv416U3DG7w8J/yMMm0/JLwJ 7BEJhXFQ2vfr4dxtee3TR4Ry9qqTzLAhQx1STjw0PcZaODMqnkKBTFl2IxhvD+STij0vPjiL1MM qSB9iZ7+DCLBHAuJJeSkAaoMILeNudWXxhj6/YMpOUPWX1fj+4YFzW/ub3ohSFfxA1C1w+UEzzj etGRSwH6olK51GkkO3AYhq9UgQuSuHZDNCUSz0uIHz+g== X-Google-Smtp-Source: AGHT+IH2t1B9DQS3NrSrgg/yHCdfBQnUffNx5XgA6o/NzrzTv4ZYh+rhCpt79HNN4moszBGMYKYYZw== X-Received: by 2002:a17:902:e889:b0:296:53b:fcd3 with SMTP id d9443c01a7336-296053bfe03mr10444545ad.9.1762246377353; Tue, 04 Nov 2025 00:52:57 -0800 (PST) Received: from [127.0.1.1] ([2406:7400:10c:9fcf:2909:749f:36f6:6b85]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29601a609c8sm18155155ad.92.2025.11.04.00.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Nov 2025 00:52:56 -0800 (PST) From: Ranganath V N Date: Tue, 04 Nov 2025 14:22:50 +0530 Subject: [PATCH v6] ASoC: dt-bindings: ti,pcm1862: convert to dtschema 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: 7bit Message-Id: <20251104-dtbs-v6-1-61d5afa31fde@gmail.com> X-B4-Tracking: v=1; b=H4sIAOG+CWkC/13PQQrCMBCF4atI1kYyM2k0rryHuEinSQ2olUaKI r27aakQunxDvh/yFcn30Sdx3HxF74eYYvfIw2w3gq/u0XoZm7wFKqxAIcjmVSdJjiAYa1kbEPn ps/chvufM+ZL3NaZX13/m6gDTdRUYQILUlhicw4pqPrV3F2877u5iCgxYIrMgzIgbqvdADg8Hv 0ZUIrsgyoiYwSAiMOIa6QKRWpCeUAiBJgRg16gq0f9PVUbeQ8OqxuC0KtE4jj/1s5N2bAEAAA= = 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, skhan@linuxfoundation.org, david.hunter.linux@gmail.com, khalid@kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Ranganath V N X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1762246373; l=5252; i=vnranganath.20@gmail.com; s=20250816; h=from:subject:message-id; bh=2rMHlQ1WtmYv1cT3KfGLFdZenWascCkIbV7yKzG2Frw=; b=ipXerRqWnjaK7oEEls/rfgAdyD/nxcQbl/o+dgdIHQ302NAPpKWX4WMvkbilPBABzJLtNB5ks z7I4qWhxcLXD85A99mublEOWTs0u8iP+HlNhskKdkE+7ix1Bo/doj7D X-Developer-Key: i=vnranganath.20@gmail.com; a=ed25519; pk=7mxHFYWOcIJ5Ls8etzgLkcB0M8/hxmOh8pH6Mce5Z1A= convert the Texas Instruments PCM186x Universal audio ADC bindings to DT schema. Added the #sound-dai-cells as per the framework. Signed-off-by: Ranganath V N --- Convert the Texas Instruments PCM186x audio ADC bindings to DT schema. --- Changes in v6: - Corrected the Subject Asoc->ASoC, dt_bindings -> dt-bindings and ti,pcm186x -> ti,pcm1862 - Updated the commit message. - added the missed Description from the old binding. - Link to v5: https://lore.kernel.org/r/20251031-dtbs-v5-1-ee1dc0b2fa40@gmail.com Changes in v5: - Resolved previous patch warnings/errors - dtschema/dtc warnings/errors: - /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/sound/ti,pcm1862.yaml: - $id: Cannot determine base path from $id, relative path/filename doesn't match actual path or filename - $id: http://devicetree.org/schemas/sound/ti,pcm186x.yaml - file: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/sound/ti,pcm1862.yaml - Link to v4: https://lore.kernel.org/r/20251030-dtbs-v4-1-3fff32221119@gmail.com Changes in v4: - Corrected subject dt_bindings:sound to Asoc: dt_bindings: - Corrected the filename to match one of the compitables in the file - ti,pcm186x.yaml to ti,pcm1862.yaml - Link to v3: https://lore.kernel.org/r/20251029-dtbs-v3-1-3cc162221c22@gmail.com Changes in v3: - Unicode FEFF character was present in the begining of the file, - Removed unicode character. - Link to v2: https://lore.kernel.org/r/20251026-dtbs-v2-1-cd3b713a288e@gmail.com Changes in v2: - Fixes as per the reviews suggested for the v1. - Link to v1: https://lore.kernel.org/r/20251021-dtbs-v1-1-493c1aa253bc@gmail.com --- .../devicetree/bindings/sound/pcm186x.txt | 42 ------------ .../devicetree/bindings/sound/ti,pcm1862.yaml | 76 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 42 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/pcm186x.txt b/Documentation/devicetree/bindings/sound/pcm186x.txt deleted file mode 100644 index 1087f4855980..000000000000 --- a/Documentation/devicetree/bindings/sound/pcm186x.txt +++ /dev/null @@ -1,42 +0,0 @@ -Texas Instruments PCM186x Universal Audio ADC - -These devices support both I2C and SPI (configured with pin strapping -on the board). - -Required properties: - - - compatible : "ti,pcm1862", - "ti,pcm1863", - "ti,pcm1864", - "ti,pcm1865" - - - reg : The I2C address of the device for I2C, the chip select - number for SPI. - - - avdd-supply: Analog core power supply (3.3v) - - dvdd-supply: Digital core power supply - - iovdd-supply: Digital IO power supply - See regulator/regulator.txt for more information - -CODEC input pins: - * VINL1 - * VINR1 - * VINL2 - * VINR2 - * VINL3 - * VINR3 - * VINL4 - * VINR4 - -The pins can be used in referring sound node's audio-routing property. - -Example: - - pcm186x: audio-codec@4a { - compatible = "ti,pcm1865"; - reg = <0x4a>; - - avdd-supply = <®_3v3_analog>; - dvdd-supply = <®_3v3>; - iovdd-supply = <®_1v8>; - }; diff --git a/Documentation/devicetree/bindings/sound/ti,pcm1862.yaml b/Documentation/devicetree/bindings/sound/ti,pcm1862.yaml new file mode 100644 index 000000000000..0f0e254a2420 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,pcm1862.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,pcm1862.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments PCM186x Universal Audio ADC + +maintainers: + - Ranganath V N + +description: | + The Texas Instruments PCM186x family are multi-channel audio ADCs + that support both I2C and SPI control interfaces, selected by + pin strapping. These devices include on-chip programmable gain + amplifiers and support differential or single-ended analog inputs. + + CODEC input pins: + * VINL1 + * VINR1 + * VINL2 + * VINR2 + * VINL3 + * VINR3 + * VINL4 + * VINR4 + + The pins can be used in referring sound node's audio-routing property. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - ti,pcm1862 + - ti,pcm1863 + - ti,pcm1864 + - ti,pcm1865 + + reg: + maxItems: 1 + + avdd-supply: true + + dvdd-supply: true + + iovdd-supply: true + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - reg + - avdd-supply + - dvdd-supply + - iovdd-supply + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + audio-codec@4a { + compatible = "ti,pcm1865"; + reg = <0x4a>; + + avdd-supply = <®_3v3_analog>; + dvdd-supply = <®_3v3>; + iovdd-supply = <®_1v8>; + }; + }; --- base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada change-id: 20251021-dtbs-3a31f699c461 Best regards, -- Ranganath V N