From patchwork Tue Jul 16 19:36:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13734865 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E0B0BC3DA49 for ; Tue, 16 Jul 2024 19:37:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=Au6Je6Zf7H2gAUtTJgDAXKX2pB HmF/jAXIPypTCkXBEdrLRyQcEGDGXpc6I5Q7E5C+tbrAGe3rk7pTCxNybja+KZmZOcMJyllTlOFTl mAlS9SszTwl04cx3EgBSkPyIpYcbWcJoU7UtD5MWSjd9bOyHfiZO8K2Zxc4mogMFF1tnxoVZtrblH mRqDgLibeOxC10HR18bE75ZAEUeKsPqO0o4HjgGELcFWjebjrVSRJHiiPLlo8pzXxkiAEUA0Swy2l vib3F/zNe5wzOB+ZWPU8piSNcHKQoEqkM0HU/duRaKjPrylzECw5Vz+SoCaIHKx9uAWKXpvHx6Eao bMRTki3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnzd-0000000BYFv-0NhM; Tue, 16 Jul 2024 19:37:45 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyF-0000000BXlk-0NS7 for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:20 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a77d85f7fa3so15505466b.0 for ; Tue, 16 Jul 2024 12:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158577; x=1721763377; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=DCXA82kSBz8DeVqCdoqvVwNOKbH9jrJdG5ZNp8NDuRYx5+6o6SUcWKRnhMkNMUoHf/ DPopY85a0zWUO4PqHHFZTzqa+v+Qp2Tuw7NaNBTRxjeARyvfUfmEuYTzddzZcFZucGqF VuA8Zh/mS0WdVVd8qMcTYXpDzJPqjPP+N0TgSHu7P33OsXb+Ntbd+YEwLYzgn1vHjeZ/ gUqsdO5r9TENe1YjVltjMpbOeQ5hiy2wRkJqF82i3frUzVpQnSbDjdkwFEoSAuccDCi1 j0JKgYSEfgLxjaewjGrT8sgHLtzh21DgXuBsRLFhPOLOIYfvEFhnFDy9SFuVGGFemv97 ms8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158577; x=1721763377; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=GPO0Vm79Qc1JPeLBbyvbBvyH729YTbxhROAs/9WnSRTRQlNerCyCWLzk+oUIVBx18O eFLs0ks8tpvDA9T6QhIyqKP7EXhiNxSzltIV9gssDXhxeOzIrLnbMWZ4onU8FwEqUG7w xQ0Xa8kQNrZxko+Yf7/JjaNNXeWcR8nNvhWgzz0hrdfYJT/KbVYuKnPXfyxp8LNlCYtD +ZtEzvrATYnIYi3itOct6o/nwKdAKea7VmKqi/atl3D/h61/ZUJZ6fFheJ6/iX+dEgPP YVMxcSNksEA+20FNWP06QNjLnlEFG8px8c6cgElxj6MtrZGSmDZ0lsW8EPKyFvBhaMQe Gd5Q== X-Forwarded-Encrypted: i=1; AJvYcCWzGz8l9GoSu/+PGJCvFohnjdRimS+MsuMwABQAbuFS2bnf9xTimAunFQb5QlNnJTiMV6YH5s7T2VwYw38FjM1DibFi6ot3TiuwNqoceHZpQQw+wNk= X-Gm-Message-State: AOJu0Yx/Kiw1CirDnLoZNKLmPWqlZQP7YPZLvZmK5Xy0MpOqM6+nNJM+ /EKy4b2tyLpuiuxA6+L71OFboTJUhWJeo/wY1g3aj9to2w8lHbTx X-Google-Smtp-Source: AGHT+IGvh218FLNwg88O/PK8HFP5c4wmFuV+wVaZLuf0WdA4vfqo6k1ykFWmZsh9n9V46AYNgDEzPw== X-Received: by 2002:a17:906:3084:b0:a75:1923:eb2e with SMTP id a640c23a62f3a-a79eda9537fmr249643566b.14.1721158576959; Tue, 16 Jul 2024 12:36:16 -0700 (PDT) Received: from tablet.my.domain (ip-37-248-155-75.multi.internet.cyfrowypolsat.pl. [37.248.155.75]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc7ff888sm351179866b.159.2024.07.16.12.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:16 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:08 +0200 Subject: [PATCH 4/6] ARM: dts: samsung: exynos4212-tab3: Add MCLK2 clock to WM1811 codec config MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-4-a53ea075af5a@gmail.com> References: <20240716-midas-audio-tab3-v1-0-a53ea075af5a@gmail.com> In-Reply-To: <20240716-midas-audio-tab3-v1-0-a53ea075af5a@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1158; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=QgWGYzqvHsjqfBL4j0SgJZ5JxQSnDNVwolJTCMyITN8=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsunUETQ1dVc8FKwNP4+eeUj5fugkIRozC1vV igRSF+i0/KJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpwAKCRCzu/ihE6BR aMP7D/0WPdFsO2koC9szvz/Srxq22hpYb8obGNYBICHfaV95VXvIUO7yej2P93XYB6MyxN4+xPv 0tRGWFVpkZfnVY6ya1VyZGlnBHdFiEDIngTXio9DiR2quosMa+fpZ8m+NCPGZfQiOUwc6RcALMD uARnkFNwfaO4jfWFV46MLO4kTheAz1ga/CMnE+MnqFZt/9eH+qasHV4cvLkmszVmTlbm0xXLfVC 4/rJRgwcgv/VfMVGIZRp3zjrpTOwU0E8MTBGRvilVAuOcqk2IVg7bps29g0Sgo0MpH2rpA4Vjaz hiXpyqa8S8omd+j6s8AEHsuqbQu3J7UwaaYqvu8KRqV2PpsfeRgASmOwbSXAcvwk4T6Ed7RbwX8 8bcRmA1WzI1IDGoxq82oayH4fp5BSROkEuN38qWinFqkvkY0F0H90yrrNacEYQSof2bkNiqu26/ n/G3CbrpYAtbdBeXIBtBQEm/+E2QcVnjf95e0YAKzKU+O5vojLWZ8n0qCyPwDgCuGGPYY1igV6S H0QRrkusT7PUBfukJlwZi1cXsTK3LR+o/cpJQkWg/EfMmH01pKmYunXh03/RmeSytGnPTzIZnD0 D3nFoU4mv3wnKQH+jpreCQ5cEJchKxtjOtKllQ0LnSlKqB27Wrx44mhJ/rZHtG1lC4V+shrn5QB EhTXzlmz3ie6uVg== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123619_174926_60682A16 X-CRM114-Status: GOOD ( 12.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the schematics, the MCLK2 pin is shown as connected to CODEC_CLK32K, which is derived from the same 32KHZ_PMIC clock as Bluetooth/WiFi and GPS clocks. 32KHZ_PMIC is connected to the BTCLK pin, represented in mainline as S2MPS11_CLK_BT. Add the MCLK2 clock to the WM1811 codec clock property to properly describe the hardware. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 45003967406a..46bdd0681afe 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -535,8 +535,9 @@ &i2c_4 { wm1811: audio-codec@1a { compatible = "wlf,wm1811"; reg = <0x1a>; - clocks = <&pmu_system_controller 0>; - clock-names = "MCLK1"; + clocks = <&pmu_system_controller 0>, + <&s5m8767_osc S2MPS11_CLK_BT>; + clock-names = "MCLK1", "MCLK2"; interrupt-controller; #interrupt-cells = <2>; interrupt-parent = <&gpx3>;