Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1911190rwb; Thu, 19 Jan 2023 17:41:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXsz7G2xAp1ti0n+erONY0Ks273lp6cEJYTSV88eCWWPgtVgmAWxGDCNhR9z4iaO8QFtZ66K X-Received: by 2002:a05:6a20:b924:b0:ad:79bb:7485 with SMTP id fe36-20020a056a20b92400b000ad79bb7485mr11954997pzb.11.1674178868370; Thu, 19 Jan 2023 17:41:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674178868; cv=none; d=google.com; s=arc-20160816; b=fhlCYRmFX2fnyFyzji/JcuG2jRM27wtMD8f3noEDRDXXPNoo7jGNf+t7D6YgJ0XfEx K/qut6hbITnuLYlcpLeYW1XO4e8p+MfuF3vv5uqsgKjHt/zdioqhtfPkh0POeWJ8RO4i fOjlUCdFkUjrKRxT1X5MNxqPosdtgyWrqjCecCz0R5vFwey1xoKOw/0vb+j5MEa0gXRr 4oCfyXSbhLGVKr2N0Opcl6e9g4ohdV/YpHUHG/DsjqLG80s7udkn3r1kD3tMa8RIECPk WIZmtDFR0h9Vka4EPnZsWpqW5+8Jc64pKr+19D/0Kk++KlCBQLTYYUyFFbPV+7qN9IOE DsSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=xamGaGtvB9HqMjf06LUEihHT8uFAAGyusdxNzjapV4w=; b=EAanAxbtO827HskablHqIur7V5Wim1VOuTfjeay+pdJq3Qo2skUojeDx9gQtZgG6RT y5W+UQge/W3vWEZ3an+8n8uMyMt0K8WLB6Q5rrHXeQa29H95ggr2G098LVzmwoniw5Az VUX9gRq2hpmg4rVF0G7UqZ32Ayzld8HIrcSbWQWLybQGTiY/pRbPoVpoWzHpjFAV94U4 jGSfu+cvhbmMkzo1m6UtRvwLYNvoYOkpc7kHSEcxk4z0/vYdk965jlvtOiEN0YtIVBb3 KoRNcATaAxdos39hT1P8e0Rxy+zuE9BvY+D87Gw9yEeMPrRwpwhW9HZThCxpExLlNbDW 9XoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e33-20020a635461000000b00477b463b049si34071833pgm.491.2023.01.19.17.41.02; Thu, 19 Jan 2023 17:41:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbjATBZA (ORCPT + 48 others); Thu, 19 Jan 2023 20:25:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjATBY7 (ORCPT ); Thu, 19 Jan 2023 20:24:59 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51926A2959; Thu, 19 Jan 2023 17:24:56 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pIg98-0005vY-1m; Fri, 20 Jan 2023 02:24:48 +0100 Date: Fri, 20 Jan 2023 01:24:36 +0000 From: Daniel Golle To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-armkernel@lists.infradead.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Chen-Yu Tsai , Miles Chen , Edward-JW Yang , Johnson Wang , Fabien Parent , Chun-Jie Chen , Sam Shih , Jianhui Zhao Subject: [PATCH 0/3 v2] add support for clocks on MT7981 SoC Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MediaTek MT7981 SoC is quite similar to its big sibling, the MT7986. Hence most drivers can be reused and not much is missing the get also this SoC working on mainline Linux. Start with a cleaned-up version of the clock drivers, based on what can also be found in MediaTek's SDK[1]. Upon request of AngeloGioacchino Del Regno this series has been rebased and adapted to be applied on top of the pending series "MediaTek clocks cleanups and improvements"[2] Changes since v1: * rebase and adapt on top of [2] * split-off addition of dt-bindings header, fix filename * changed commit title as requested [1]: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/refs/heads/master/target/linux/mediatek/files-5.4/drivers/clk/mediatek/clk-mt7981.c [2]: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711734 Daniel Golle (3): dt-bindings: clk: Add apmixedsys/topckgen compatibles for MT7981 dt-bindings: clk: mediatek: add mt7981 clock IDs clk: mediatek: add MT7981 clock support .../bindings/clock/mediatek,apmixedsys.yaml | 1 + .../bindings/clock/mediatek,topckgen.yaml | 1 + drivers/clk/mediatek/Kconfig | 17 + drivers/clk/mediatek/Makefile | 4 + drivers/clk/mediatek/clk-mt7981-apmixed.c | 103 +++++ drivers/clk/mediatek/clk-mt7981-eth.c | 138 ++++++ drivers/clk/mediatek/clk-mt7981-infracfg.c | 236 ++++++++++ drivers/clk/mediatek/clk-mt7981-topckgen.c | 423 ++++++++++++++++++ .../dt-bindings/clock/mediatek,mt7981-clk.h | 215 +++++++++ 9 files changed, 1138 insertions(+) create mode 100644 drivers/clk/mediatek/clk-mt7981-apmixed.c create mode 100644 drivers/clk/mediatek/clk-mt7981-eth.c create mode 100644 drivers/clk/mediatek/clk-mt7981-infracfg.c create mode 100644 drivers/clk/mediatek/clk-mt7981-topckgen.c create mode 100644 include/dt-bindings/clock/mediatek,mt7981-clk.h -- 2.39.1