Message ID | 20230515-refclk-v2-0-fc9ff08826f5@ti.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 2C1A5C7EE29 for <linux-arm-kernel@archiver.kernel.org>; Mon, 22 May 2023 06:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:MIME-Version:Message-ID:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CYdoqAVi4/HdVbRPsM1RXcpXuxV6tBUzvrUDsTfhZj4=; b=0v3ZmSc6vqXLos yOm5TJt4c9v0F87sd3Hi2ER4KaXOROcCXKwPZN73BtQMHcAQBbnuzc9NM/DLjbp2UrK/YZUJ6G4Bk 5PdONfkwmATysOWzns1JfMFH9veVDFK7TGEtXyPi5gNnAQZAMiB6k8m6zH103vWFCTmrArOUO8vvn LMcVUDnAH2Rv9bMTv56mh70I0Y3Bw0QEkTph6DyRhMSFqkUMXAd2aiA0/mSXayKW3yjLqQn3unRj7 lC+BT4kTn29X7Y55oitQDQ7hbWFmXcCSZMDrjWzArBiQm3KpES2ruifEuQcCwpiOLCW2jCAscdDba fDy96Qc7Y9Z/y0K8UwmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q0z5j-005Vqz-1e; Mon, 22 May 2023 06:32:23 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q0z5a-005Vnz-2L for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 06:32:17 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34M6Vwcl087174; Mon, 22 May 2023 01:31:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684737118; bh=Y1PgBFAW58oQQelrLWGs2ihl4Rz/2sGaWxADqzqTSGU=; h=From:Subject:Date:To:CC; b=L1TV4L3zw4Bs6wZFDIPS/7eC0hB/RaviAvzD0mI3pAThPQpwnRrAujSLbbLdHvsit YcXhFPLIOu9MGeq72RN3L7dTLQL1frC8CcHbzvvLDhTiyrpabXn3iiuBrkvOi7S0cs R9AfnGGRB/xVMgn6os/SvglgrpwNagXB23FebX7g= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34M6VweZ027528 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 May 2023 01:31:58 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 22 May 2023 01:31:58 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 01:31:58 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34M6VvXb086761; Mon, 22 May 2023 01:31:58 -0500 From: Jai Luthra <j-luthra@ti.com> Subject: [PATCH v2 0/2] clk: keystone: syscon-clk: Enable audio reference clock Date: Mon, 22 May 2023 12:01:54 +0530 Message-ID: <20230515-refclk-v2-0-fc9ff08826f5@ti.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFoMa2QC/2WNyw6CMBBFf4XM2po+fbDyPwwLaAeZqK1pCcGQ/ rstW5fn5uTcDRJGwgRts0HEhRIFX0AeGrBT7x/IyBUGyaXiRhgWcbSvJzOD0dopoa1UUOShT8i G2Hs7Vd3jOtf5U3Ra9/69KzxRmkP87neLqOtfeRGMM4OX68iFO52Vus10tOENXc75BypTDkuwA AAA To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Santosh Shilimkar <ssantosh@kernel.org> CC: Vignesh Raghavendra <vigneshr@ti.com>, Andrew Davis <afd@ti.com>, <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, Jai Luthra <j-luthra@ti.com> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2633; i=j-luthra@ti.com; h=from:subject:message-id; bh=00+PDpG4Jh6Ip7rfWxUl0DcfQvjrKR/hkRa7/qnO7QY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkawxbG16yp1rV4j7+lfvIbmXvUHA3Kg9cA3QcM SsXiQhv+hCJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZGsMWwAKCRBD3pH5JJpx Rf5REAC5+mNi8dliL12u8XTdPamsw72iVxGm2JblwiDvBw5acWQnWZnHnkE9IkwMrQd8ClSlgBI zWPXCstQqylbVElX2llbgs8I9KuXjkb2mHvTXsiFaQSlKJJCabsy7A0qVlsk6mf/09DMb6AKVCv T6OwTGIOFta74gzsHEu7wOFDzGVQXynVbXa5HPYwogx/CNwBdl/k/h1qbbpw8LVunW5wXz5qRxs 6jsXMAn02mABr+jmS38Unk6TSeFB9+rL2ySl1TNK+Ak/Pgh4zRrDe8NZ72Vdt0waQgys+SBhWuj 1QlYs2/EJaQGZJFIqImj82yj6QwyBOJ1EAb8ec2Kd5tcxUTjmKDJUz0SwGuK98rOHg/x5cbOeOn mS/BOUVVRMnf57TzS8bcXUZTTtjVM1/ffz/ADMeXYcDlaxaIPRa3RfAi5ilTKENu0mFtLJ8MMG4 9EtpsT7NRf6L3ozFeVJJJU5+Szuu7g/FW7JyvJbcr9P7u7j1bgurRvvDTS/q3unzUdYQXrVXRcz 2ELTuSGZ/oDSIIT9qT4ptdxQRxLkrh9HTe9mDQmCqHDdO9Vf2IhPsObs+T8AmZIITC5TtMImNQR xPl5Gb2ltbYPxGgd1IDRGnkEtouUXaQfMILWU36ba6CrGzqLao9HedNU04/k9npqjQdlcnaywDM GhXAGk2vT5oK0QQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230521_233214_863337_8B9D7BF0 X-CRM114-Status: GOOD ( 13.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
clk: keystone: syscon-clk: Enable audio reference clock
|
expand
|
TI's AM62 SoC can optionally provide two audio reference clocks (AUDIO_REFCLKx) to external peripherals. By default the reference clock is looped-back inside the SoC to a mux that goes to McASP AHCLK, but can optionally be enabled as an output to peripherals outside the SoC by setting a bit through CTRL_MMR registers. This patch series extends the existing syscon-clk driver to support the audio reference clock, and also adds new device tree bindings documentation. Please apply this on-top-of Andrew's series [1] removing the unnecessary dependency on syscon compatible. Signed-off-by: Jai Luthra <j-luthra@ti.com> --- Changes in v2: - Removed "syscon" compatible and rebased on top of [1] - Moved reg above other properties in bindings yaml - Link to v1: https://lore.kernel.org/r/20230515-refclk-v1-0-5e89f01d6733@ti.com [1]: https://lore.kernel.org/linux-clk/20230516184626.154892-1-afd@ti.com/#t Range-diff from v1: 1: 8107cb140f7d ! 1: a690c2044971 dt-bindings: clock: Add binding documentation for TI Audio REFCLK @@ Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml (new) + compatible: + items: + - const: ti,am62-audio-refclk -+ - const: syscon -+ -+ "#clock-cells": -+ const: 0 + + reg: + maxItems: 1 + ++ "#clock-cells": ++ const: 0 ++ + clocks: + maxItems: 1 + +required: + - compatible -+ - "#clock-cells" + - reg ++ - "#clock-cells" + - clocks + +additionalProperties: false @@ Documentation/devicetree/bindings/clock/ti,am62-audio-refclk.yaml (new) +examples: + - | + audio_refclk0: clock@82e0 { -+ compatible = "ti,am62-audio-refclk", "syscon"; ++ compatible = "ti,am62-audio-refclk"; + reg = <0x82e0 0x4>; + clocks = <&k3_clks 157 0>; + assigned-clocks = <&k3_clks 157 0>; 2: 5a555757fe42 = 2: 854166d4305f clk: keystone: syscon-clk: Add support for audio refclk --- Jai Luthra (2): dt-bindings: clock: Add binding documentation for TI Audio REFCLK clk: keystone: syscon-clk: Add support for audio refclk .../bindings/clock/ti,am62-audio-refclk.yaml | 43 ++++++++++++++++++++++ drivers/clk/keystone/syscon-clk.c | 43 +++++++++++++++++++--- 2 files changed, 81 insertions(+), 5 deletions(-) --- base-commit: 62f117ff3cbc8ea2bf9be36f019eba60369b6a81 change-id: 20230515-refclk-5b544d314c23 Best regards,