From patchwork Sat Jun 22 13:12:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 806728 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86BD9C27C78 for ; Sat, 22 Jun 2024 13:13:46 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8476BE67; Sat, 22 Jun 2024 15:13:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8476BE67 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719062024; bh=gBxXwvVagI4ftepWbB3zihlaWc8oZrTP1cEGekvDHwE=; h=From:To:Subject:Date:In-Reply-To:References:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=EfB3Vh7oIM/dpJ7mt9YYq/M+w1Aq0UdryZdNquTFUAh3YAQIBTpLWzSX6aZEXCcFm xPHUJCmXVWaLsEOJkVfitwyfkO+Ej4/4I1Bsp0k2FvZLtDl33CmmCrLcBLuM9iKgJ+ LeuoPdkcaooNqRnV0S8B6wUyAfCFEcNRORkcVeqs= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 38AB5F805E5; Sat, 22 Jun 2024 15:13:02 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6C7A2F80236; Sat, 22 Jun 2024 15:13:02 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 47C94F8023A; Sat, 22 Jun 2024 15:12:56 +0200 (CEST) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 65A77F80154 for ; Sat, 22 Jun 2024 15:12:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 65A77F80154 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=NbDdyyvE Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-57d280e2d5dso2535574a12.1 for ; Sat, 22 Jun 2024 06:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719061973; x=1719666773; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=OS2tNNDMF7Cd9yV7FuF7w+ag2Zr2Tkm/X81pLFNB/r0=; b=NbDdyyvERPliMo3rgVUucGaC2b/MnHJ93e6wAJj7PPDMCwi+AFmkq1G8Rwq4nC7aDa kEzlIIZylT9KRJq4TSUMGgxDiGmsEVht+l85CNUREGoy22pXz+3h/xKbFIlnYUirmgWs ujkZ1OhGU/jncxcHqa+AEmo/U4gb1svg2CGHsJK6rrFf+0QIiK/R92v7pJcNOwrgdQF9 rQ0UhIpTYJGPa4DuvVMWHzh6iakOnxNV99TBY1/cuyCeE2PLtdfGBQTj3DNzLZ1obMCf vCCu1TyyNkEmRWSLMBqxY2UvIwb4SIAQWzFFVRE+vvlCeAiIQ+yX1wu+WnkMfeXztoG8 wU9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719061973; x=1719666773; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OS2tNNDMF7Cd9yV7FuF7w+ag2Zr2Tkm/X81pLFNB/r0=; b=uVYtP1VTueC2VtTmiKW7HI5z2P6GTXYdOxyy44DoQ8f7VKwyDuOT4ACJFYPmpb+n1w Gk5HK836twmINvHpkUIevtFG5cu9XT8oZS746wIoWU4aFsuC8RxyL6bNoWH0I+3Va+I4 UUs9IfcNOHD0wMID8BmWlUlsKtPwzqSrIuz6MUGo3Jg9764VUwcGJ4SUhh5YRku9/DYw ddOeDImjBx44VrjTIu50uGDr9WyFnYu8o7NJ31Mmx9lUiBNQ9w+RDX+/PRneNp4ewf6G YOi4M7/A4LdDZC4zbzEDXjkjOJKHen2dl8csFYDDpB3AlNiSKjjis0yg5U6E1EuCmstC Ydog== X-Forwarded-Encrypted: i=1; AJvYcCX4SGpBJcF0f5t4xexBTDzCNfxUxggw9NMXaZkw7wssYSTwj5bC/GzMt6dcHK7bU5PmInBU4kYZbKJdjs4LNHueI7I5CiRfjPFIFnw= X-Gm-Message-State: AOJu0YyzPoIS+f72lH+lfL9PWg1s1CyOvOA880lJNaMN4uaU6QhAHhVn MIgQ6DY1hc00cNNoFjC7QcqkPqfFyq1viQYafkTM0b2g9dEznkBd X-Google-Smtp-Source: AGHT+IFyJGKQbxJh6fK4UgCksg7qrcHYvLLempm3p7GWi7cFtmy4WwyuDhhOjkLx49PwlRpT/DlTYQ== X-Received: by 2002:a17:907:a4c5:b0:a6f:b5ff:a6fd with SMTP id a640c23a62f3a-a6fb5ffab3cmr720166366b.12.1719061973272; Sat, 22 Jun 2024 06:12:53 -0700 (PDT) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf42a724sm197708166b.16.2024.06.22.06.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 06:12:53 -0700 (PDT) From: Christian Hewitt To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x Date: Sat, 22 Jun 2024 13:12:44 +0000 Message-Id: <20240622131245.2607533-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240622131245.2607533-1-christianshewitt@gmail.com> References: <20240622131245.2607533-1-christianshewitt@gmail.com> MIME-Version: 1.0 Message-ID-Hash: ESH3XTSIC5S7SLPUQJWHPBNSJMWNSY3F X-Message-ID-Hash: ESH3XTSIC5S7SLPUQJWHPBNSJMWNSY3F X-MailFrom: christianshewitt@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add ti,pcm5242 to the pcm512x driver file Signed-off-by: Christian Hewitt Acked-by: Krzysztof Kozlowski --- Changes since v1: - s/pcm5424/pcm5242 in patch title and description Documentation/devicetree/bindings/sound/pcm512x.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/pcm512x.txt b/Documentation/devicetree/bindings/sound/pcm512x.txt index 77006a4aec4a..47878a6df608 100644 --- a/Documentation/devicetree/bindings/sound/pcm512x.txt +++ b/Documentation/devicetree/bindings/sound/pcm512x.txt @@ -6,7 +6,7 @@ on the board). The TAS575x devices only support I2C. Required properties: - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141", - "ti,pcm5142", "ti,tas5754" or "ti,tas5756" + "ti,pcm5142", "ti,pcm5242", "ti,tas5754" or "ti,tas5756" - reg : the I2C address of the device for I2C, the chip select number for SPI. From patchwork Sat Jun 22 13:12:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 807299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C469C27C53 for ; Sat, 22 Jun 2024 13:14:08 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 31E88E68; Sat, 22 Jun 2024 15:13:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 31E88E68 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1719062046; bh=NOkj/f8lAc7kTz5X7jDGaKXy+Z6EDvf0UOG45AeiUzs=; h=From:To:Subject:Date:In-Reply-To:References:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=t1LrfNeTYguWEgAgP+hwaCE/RZIySdsq+lJcQN9RIX9Fn5NqDQzKRDK2HJc29clFy /zPod5vMY53WZRUmScloosK0NRBIHMGwpyIN6lx7FJ462HkhMU5jK+kOLIvTN75uCi rvw82Imu6IH69KszF+gPK7EkZdtn6Jt9lGfuVvxc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6B277F80600; Sat, 22 Jun 2024 15:13:05 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A572FF805E2; Sat, 22 Jun 2024 15:13:05 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D673DF805C4; Sat, 22 Jun 2024 15:13:01 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 94328F80154 for ; Sat, 22 Jun 2024 15:12:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 94328F80154 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=c+mo7wKW Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a6f09b457fdso294453566b.2 for ; Sat, 22 Jun 2024 06:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719061976; x=1719666776; darn=alsa-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1KIghhhap73u1S2Fgyv5RhQSmZlNkggPnJ4NqRaVR4E=; b=c+mo7wKWssOFJJZT96vshAULioRTo7L/wcFsqSohiCyLr7d9xb3XgFTOTOmHqyJu8v HkDVivp9Pm2gXvTesdEeN2ErKBk5rbt4SXO4FsOVk7mTWr+1chZTyQScwKuhmfYz9bTd DTg9kDbOFTozCu5w7DMyqxzrJ5ZyLUqRgle18p9G2CKkwqIR5y0UvI2YjIOqLDpHHPfR G0ydiNKZrGcGz1gRO4kcH21nPYRmlZifiqbSLIpAozZen3VycAgM29JbgSEVywpLUYBl B3xmFLjR7KjSx4Ay3hyrlo+PFTFK5q7gCMmphkPqjMy4amP6dQ16iYRTpfJM60lUb2XK AJLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719061976; x=1719666776; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1KIghhhap73u1S2Fgyv5RhQSmZlNkggPnJ4NqRaVR4E=; b=tsJdPFyIHwtVIJhfRRFVKcIy3kw7kWDia8mBJT/4HVV2emA5/pNAIhO3+dwNBMwZxB yuvuie2elXO0l0937X25VPHxMWPVA3axNTzdcOIZ5KLXGzw68l7iy3rI8nqvT7qdsbZN 6fXGXSWtBX7if79YqyNxQ77823kLONNShXos9SrzTpOBf1/Wfh903lrQnUVmeqRQqIQV qEYAdnBYKDO52OxZQunwfOBoy+QgUJ7PoZVqXSD93fcXxYX+SCL54p4pOHCLFcnmjxc/ 17pfA5FE4AXevN8scYjLa87SSqr0RN50aErPg0vvmveT3nzMqvw0KCSguNPUxj1EhCPs Dj7w== X-Forwarded-Encrypted: i=1; AJvYcCXRgBb83EOAk3xlR4qF6+b5XyqbSNEd/oztZ0Aqv7im44fWM1HzYKDofyRboSaCbUlgFDsK0TTZzga3QQMlzUEdGbiCTmOloWN0AkA= X-Gm-Message-State: AOJu0Yyu2WodeUBdQsZHGeO7KLPNDF32gyH84UGYcItTqHOBITU0UzwK 0F/u/yA8SXdpzVw24Zw5PMLAeDVcA1xk17FtCpsu4TVRm6IRm7a/ X-Google-Smtp-Source: AGHT+IH5qt1PObEvU6yvifso7ZxFmIBxYQ215NYI9UltdYVsYxH03ugtpQPpYu3t5Veq/1dFONMdDA== X-Received: by 2002:a17:906:7f05:b0:a6e:4693:1f6e with SMTP id a640c23a62f3a-a7242c39be2mr24427066b.29.1719061976155; Sat, 22 Jun 2024 06:12:56 -0700 (PDT) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf42a724sm197708166b.16.2024.06.22.06.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 06:12:55 -0700 (PDT) From: Christian Hewitt To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v2 2/2] ASoC: Add support for ti, pcm5242 to the pcm512x driver Date: Sat, 22 Jun 2024 13:12:45 +0000 Message-Id: <20240622131245.2607533-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240622131245.2607533-1-christianshewitt@gmail.com> References: <20240622131245.2607533-1-christianshewitt@gmail.com> MIME-Version: 1.0 Message-ID-Hash: SCDJEBZOUBNKIJW4CLWABQ6FAE3HGXQA X-Message-ID-Hash: SCDJEBZOUBNKIJW4CLWABQ6FAE3HGXQA X-MailFrom: christianshewitt@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add a compatible string to enable support for the ti,pcm5242 DAC chip in the pcm512x driver. Signed-off-by: Christian Hewitt --- Changes since v1: - add pcm5242 to SPI too as suggested by Mark Brown sound/soc/codecs/pcm512x-i2c.c | 2 ++ sound/soc/codecs/pcm512x-spi.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sound/soc/codecs/pcm512x-i2c.c b/sound/soc/codecs/pcm512x-i2c.c index 4be476a280e1..92bcf5179779 100644 --- a/sound/soc/codecs/pcm512x-i2c.c +++ b/sound/soc/codecs/pcm512x-i2c.c @@ -39,6 +39,7 @@ static const struct i2c_device_id pcm512x_i2c_id[] = { { "pcm5122", }, { "pcm5141", }, { "pcm5142", }, + { "pcm5242", }, { "tas5754", }, { "tas5756", }, { } @@ -51,6 +52,7 @@ static const struct of_device_id pcm512x_of_match[] = { { .compatible = "ti,pcm5122", }, { .compatible = "ti,pcm5141", }, { .compatible = "ti,pcm5142", }, + { .compatible = "ti,pcm5242", }, { .compatible = "ti,tas5754", }, { .compatible = "ti,tas5756", }, { } diff --git a/sound/soc/codecs/pcm512x-spi.c b/sound/soc/codecs/pcm512x-spi.c index 4d29e7196380..6629b862f47d 100644 --- a/sound/soc/codecs/pcm512x-spi.c +++ b/sound/soc/codecs/pcm512x-spi.c @@ -36,6 +36,7 @@ static const struct spi_device_id pcm512x_spi_id[] = { { "pcm5122", }, { "pcm5141", }, { "pcm5142", }, + { "pcm5242", }, { }, }; MODULE_DEVICE_TABLE(spi, pcm512x_spi_id); @@ -45,6 +46,7 @@ static const struct of_device_id pcm512x_of_match[] = { { .compatible = "ti,pcm5122", }, { .compatible = "ti,pcm5141", }, { .compatible = "ti,pcm5142", }, + { .compatible = "ti,pcm5242", }, { } }; MODULE_DEVICE_TABLE(of, pcm512x_of_match);