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: 13708323 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 1F98616F0F2; Sat, 22 Jun 2024 13:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719061976; cv=none; b=IUuUEQINA760GoqE47KJsviRDemK9GkYTBJJtzBoDaTM0ovFSq86LCcoURHFBWz7jvQshc7MnSk88KRy3RHbXA5/OLy5GBTfvqaANvYfNMN7fhkxQdSt64sbUKewbEPGx7UjYHwv3Ythu4V+wBz8bnS6T2v80IXDv9bPwWHEDDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719061976; c=relaxed/simple; bh=gBxXwvVagI4ftepWbB3zihlaWc8oZrTP1cEGekvDHwE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dl18NxaOo1m1FIiMRXXkwf2WS3h4o11cId1+BaN6zwBqZK1wzqQ883L+/u4/mte8SitRtG6GaZGC0MpQlvQ1Zs+jvQ+7TrBde/Oe25a2Zuw6XPKcwwaNK3eYyotEm9ruYoqBhRFeaGJv4QnrkCtoLQQ7qjFo1wrZji0WbnlVg5w= 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=fL5CEhVL; arc=none smtp.client-ip=209.85.218.49 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="fL5CEhVL" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a6f177b78dcso316075766b.1; 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=vger.kernel.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=fL5CEhVLmOyCCJ5tMK2c4/bY2A29vDTfXVFfJsD61tN+Y4bNt0ZTM4XcbSbpHf2VCR 8qEr1axdvhA20paa6B2WZQe7gMso+Lqhjz1T6dXNQXxGI88ICo4ewJmRxFzCvlKjj7PA LnjlTIXZt9h4CuYFzOKUwgyQXs/jMaGpwqydZQEGeUuZ5zbFtFF6lMmARKt2sJeoaZj3 oriiVWVSqrzFZkB9upsGAb4j69SeIX+rlXybLytb3alwtK9Ze+03Df9W2D69f62r/L88 IHXdOJSMia9ujA2mkC+7HvBMW5dKLuaFULxI5UMBjjg5F4cXHMAuJY2+kDxHWIgUXAxc /dyQ== 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=QmHR4qDShTFQO+3iI9C3YhoSDHTNY9+Uf4JBkYhOky5CmMKZ3Q7RHBpFPPR9dV2n7N Jgyd+MLULBCS0L/PMJF8QfcTPBDsUufKtQK6HEXjGSHEQ8kUFI16iN/TDI4nA6m0xhSk SYRegrGJ2j+VH8l9Qc0nG1wpmbcpTAZKhNfz5K0N10ndjWdlIssrZ1qpI5ElCmyBS2+v oRCYHjG4HqwjKXNmWvAdmbeK8yA51WsbtyPSAGxI/Csy5BYRVQ6+/fIGkV9oJSl/QULf /uoGo7R7nFiRqF1eN6bIlyAnUxWal3ZQeFW/XrIsfZttb/lZzqnKqU2sIFRlEhyQEz3A awhA== X-Forwarded-Encrypted: i=1; AJvYcCWjjAWwSzzVp5DXiM4QEWOeNYoG8LJI2IaaYm4ppB+I5HjUX8ZtE5hKeIGKi5GQXhRAdvbKpOgLQ7MKaTKmdYQ65EtBqHrFkKJTYBI7qm9mM4h9qDSfeXGRsXtu91BDE6mbIk40K2y87RCyESMX/Px00XtDurh9Cq7DsCMzp2Bv9g9rViij X-Gm-Message-State: AOJu0Ywzu1KfpT521jctP60yTvYOAAWervrj3XYRN0EF4NkSaqBicEIa dNE9JiUYb7VR7jdCN61hI/4v2+XbxkKDtp7D8Vtev09mnW65eHiXzX+vZsSBgdQ= 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13708324 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 EA6B516F835; Sat, 22 Jun 2024 13:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719061979; cv=none; b=fz0IKBg1vw0KqM5RKB6rm7IMcYrn7FSZhFzOkuuHuLVw8/Iul/Gd6dXzji/efFW+zQyjFwuI/WGpsSGK+8102r8HxSVcOaxt2TTYSW611gfNY0E2kBYenNAK7gDvufhFHYkUGR3NmsNZDEx5GtGhR+mGdP7fh6pnKDgYUspfxBs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719061979; c=relaxed/simple; bh=NOkj/f8lAc7kTz5X7jDGaKXy+Z6EDvf0UOG45AeiUzs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ACZPR19a9KZFTN/sxgOi6TX7viqpLIF+9OzNYZQdi3w48kL40A4xYbgxQqJKMnRjhcKiKPCCNlpY8LicwEYwBkuMtOecK42C3dFN3DBYwv61Fej8wESWLKyLuMluDg6Nymb9Z4ETovcKq3Gy8r1NREtTmqwVP6ncfwoA3CA4jrQ= 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=gn8ed99h; arc=none smtp.client-ip=209.85.218.41 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="gn8ed99h" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a6f13dddf7eso347889966b.0; Sat, 22 Jun 2024 06:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719061976; x=1719666776; darn=vger.kernel.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=gn8ed99hK3f7hP4UgaYN2eyiJeWBOuim/KDTbdkj67O1/FKwK4KrDCf1e9sNWPYEAO 9/FalHXA8u4oCQ4O14DYsJmAUsdS0NSvLqf91597w8v5tBT2BjJuSdjyA+ueUftt0GKk LymgXCYnjlYmTBr2CT1oGV+jDopwAasyQe7TqEi6LXSAIr+kT7ObQ5OcxIjoGxKBqtpj pqSVEbT8RrGoDM0ZIxnQ3j/0WEn3QlnzvCKG2OKFshnaBIQLM0+fhpmcbH+dNMFUFCUU sgtY0y4L5U3iKLTF5DOgTyGHqDAWKOvHDLlpNco2yCurT0lyCDCDInd30YInsAJ3TvY2 ZlZw== 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=C3lswE+0M1lTN2BJFpw4bQElrkUHts/qv6+1btgyGupONB6Z2ujaQOxpL7w/u/8JPo GYhKAGoIorAeTKL3NzWZ50eM5X3yM3zpLuFutV0tQhufBX2CuuYjE88ybDiPMfEEjkr5 EbeUvhqKvkRYrfKSi0yjxbcgQwsjvMT0ejkjB/YzVNCg94ygzKEhgjrP+OlHDkPecy0Q rttYUooiBmN83/ff9DAkadLBLPdRfLDi1qrAStpe/vCZ/eBFaZeVJD8vCBSotK9VGxNV BEIw17r/Gf61IUMn2fZqLRTb+mYzyX6qeGZyUpHN1t2umz7LOqIJtkg1mw7IlfBh7se1 CQ0A== X-Forwarded-Encrypted: i=1; AJvYcCVR4mqZYNQLIWIVStbUeAvfwek6bvRyrgDz9rgPLKmh0MfN2F5bItrx33J7xAXLEzjWpIg6RXx8bhLBNEbWW0jMCT/U1Q19Hp+mDSofVlabzfRiHl+uAhSLPRxROg+GCSML8dwGf+1k19WtazEI3m4noLou3ewv86eOcyo3QEQcc64Vm0VT X-Gm-Message-State: AOJu0YyEtbEXxKuNlxtmaewo6S2vOJQdVpt6Qmw200jxaXe1k1hfj0EG n1BQTga6iPpK98sKX6CDA5KPq1RCc2eFFF0Id5Cx1hTIcVNsolzA 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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);