From patchwork Wed Aug 2 12:25:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13338094 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10AE4C001DF for ; Wed, 2 Aug 2023 12:25:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232717AbjHBMZT (ORCPT ); Wed, 2 Aug 2023 08:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232119AbjHBMZT (ORCPT ); Wed, 2 Aug 2023 08:25:19 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 437F8269E; Wed, 2 Aug 2023 05:25:17 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.01,249,1684767600"; d="scan'208";a="175356815" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 02 Aug 2023 21:25:16 +0900 Received: from localhost.localdomain (unknown [10.226.92.171]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 0BF1D41D15EF; Wed, 2 Aug 2023 21:25:12 +0900 (JST) From: Biju Das To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Biju Das , Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Prabhakar Mahadev Lad Subject: [PATCH 0/3] Fix Versa3 clock mapping Date: Wed, 2 Aug 2023 13:25:07 +0100 Message-Id: <20230802122510.275420-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org According to Table 3. ("Output Source") in the 5P35023 datasheet, the output clock mapping should be 0=REF, 1=SE1, 2=SE2, 3=SE3, 4=DIFF1, 5=DIFF2. But the code uses inverse. This patch series aims to document clock-output-names in bindings and fix the mapping in driver. Biju Das (3): dt-bindings: clock: versaclock3: Document clock-output-names clk: vc3: Fix output clock mapping arm64: dts: renesas: rz-smarc-common: Use versa3 clk for audio mclk .../bindings/clock/renesas,5p35023.yaml | 14 ++-- .../boot/dts/renesas/rz-smarc-common.dtsi | 14 ++-- arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi | 23 +++++++ arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 23 +++++++ arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi | 27 ++++++++ drivers/clk/clk-versaclock3.c | 68 +++++++++---------- 6 files changed, 124 insertions(+), 45 deletions(-)