Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1009955iob; Wed, 4 May 2022 12:37:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlV9HMyAl7yeeu5Xr33cVkN3jpNhAMBmORqP1O2Xtk6oKPvZ3s6X2Gt1Kv5rUU2A50S5M9 X-Received: by 2002:a17:90a:a58c:b0:1c9:bc35:6ed9 with SMTP id b12-20020a17090aa58c00b001c9bc356ed9mr1273670pjq.146.1651693045883; Wed, 04 May 2022 12:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651693045; cv=none; d=google.com; s=arc-20160816; b=hjMHSEW7McQ8SHreG8rCxvNe5zK/oLY1AGBHjDIn5VLmliLrnFr5LOiXFxfUHoDipa +AxGHPBPa2hCMvC8MyCeIrE4+M1QEL5a0FxCuTLUmefd3Wua4L/nEzvIN3D8dicrwv2I RYiQsODZDrfc8acFBCshs+qwc+INC1bIlZpJu5/oWj+GUXT46FP+/9lEOcp7XFeE5DD3 XTWULjVUpeAXTgX+mTobpg1AKzs+XoKz/BYC1zx++S7NQkdX4n2z+pPQEz2IwvL9BhEk eUiE0oE41M1j+ofU/PGgCvDzHX+XeWFIqU7ItnDI9I4qpD34wkt17KR+ia9hkCkxZV2O 65oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=v8deg2KLDPfn0MYLkDdTzpE851zZE5QzG2ocaiOOkBo=; b=k69g+pQu2bJ/C0ffnFtWfqMUgzPIFo4AYDb/37Rmi9HYLxcJOUls2Qh3dyKDtfLVMz WjKSbyamVAVPygzIAFCbx4kjTHYt5YsMKJc5xhgX5N09udteR5IhiuknyNXdqOMgXBd9 5mMTNC/g74g3x0RJAjp01EfCpbAq9PTgNq2PbFJhsTo3/VH8QwGHlKmtLSlzK0UGrJj+ xKhxoQth6WKl3H6lfsbK9nVV2vpUF/jtkDHMP/iX4JjGqQ6cdsCSVTNkRO0Jbh7DJkUL erohtjeeOqXWHN1uX9ntRjjWodjwNy4KWV9Km0ZQwXF4mTLnraciDAxjPR3pJnb91pep 4S1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CLTbKxWN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a170902aa4900b00153b2d164bcsi694076plr.196.2022.05.04.12.37.08; Wed, 04 May 2022 12:37:25 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CLTbKxWN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349577AbiEDMcR (ORCPT + 99 others); Wed, 4 May 2022 08:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349591AbiEDMcF (ORCPT ); Wed, 4 May 2022 08:32:05 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1614B30576; Wed, 4 May 2022 05:28:27 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id be20so1489353edb.12; Wed, 04 May 2022 05:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v8deg2KLDPfn0MYLkDdTzpE851zZE5QzG2ocaiOOkBo=; b=CLTbKxWNFX6edptI+ZvYTsXKN81abpGJmTLXmBFKatFJax0iYOADG2PnCoD+/l2VwA UTy4Ng6y6ptMNezJx/4XMUPYUJJAgvMWuzzmTwKFUkUFIv0epgIVsL5U70nxYIz5LwV8 9vLpv8YKG7TBGlUdUrHoQepDCvzZ5DUa/+BDwy47FwDS3i51ok/Tt02EAJqjMRZNaENm ShehKHGJTI+EyGYgS18O4GjAc5u5IupRKsMIKrUQrkAB4wPzCW9lNk7iRpUpUH5Wfcfb 9yS/5g40xIJ3BzqRgHvgaMZizwhDizJR7u/JqyDu7rPhRUDbK3hdCWguH9WRf5NZc98J aTKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v8deg2KLDPfn0MYLkDdTzpE851zZE5QzG2ocaiOOkBo=; b=PysMEXJWWHjDUD95vJyF6QHbkd3RAc9aVEsaW7Vuo7b1dy01NHA/tpkEjVhaMnn1Cj 32y2IHUTJMA2rB9ZF6FaejCti8+XJO0p3kL/rYsV7Vg2Ov5TFDlw6Pv5fxWB4s9kDJn3 4o92VrIOdQ1wOI12/S7sz2ZVKi6aPplcl/q5I95HXFHmBh8C49uuyo7W+UsWVLxZVmLe 0NvIAxz31orGHINTD4kIWaJ+gupBpq18VFGMraZotwTNofQETK5pjQJHxlc6fhOaC62Q +2oqvAY3Wfnp93PdwIq9bA3qNThWBFXLnMqbl01thTPr/Y3uIgVVnoNim99vWHqDr9ab W07A== X-Gm-Message-State: AOAM531CJW38L8Fie+kXIiI0hqWqqr9KKgC2PedHv2RZsyE32gdRU+gA Knq2e4mc9b8O2lDaAhZs96s= X-Received: by 2002:aa7:d459:0:b0:427:bd8f:61f8 with SMTP id q25-20020aa7d459000000b00427bd8f61f8mr16374482edr.157.1651667305522; Wed, 04 May 2022 05:28:25 -0700 (PDT) Received: from localhost.localdomain (185-177-124-12.hosted-by-worldstream.net. [185.177.124.12]) by smtp.gmail.com with ESMTPSA id ig1-20020a1709072e0100b006f3ef214e7asm5688693ejc.224.2022.05.04.05.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 05:28:25 -0700 (PDT) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Matthias Brugger , Stephen Boyd , Michael Turquette , Philipp Zabel , Rob Herring , Krzysztof Kozlowski Cc: Yassine Oudjana , Chun-Jie Chen , Chen-Yu Tsai , Tinghan Shen , AngeloGioacchino Del Regno , Weiyi Lu , Ikjoon Jang , Miles Chen , Sam Shih , Bartosz Golaszewski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 00/13] Mediatek MT6735 main clock and reset drivers Date: Wed, 4 May 2022 16:25:48 +0400 Message-Id: <20220504122601.335495-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Yassine Oudjana This series adds support for the main clock and reset controllers on the Mediatek MT6735 SoC: - apmixedsys (global PLLs) - topckgen (global divisors and muxes) - infracfg (gates and resets for internal components) - pericfg (gates and resets for peripherals) MT6735 has other more specialized clock controllers, support for which is not included in this series: - imgsys (camera) - mmsys (display) - vdecsys (video decoder) - audsys (audio) Some symbols in common objects are exported to get the drivers to compile as modules, and mtk_unregister_reset_controller() is implemented to allow for unregistering reset controllers in the infracfg and pericfg drivers when unloading them. Yassine Oudjana (13): dt-bindings: clock: Add Mediatek MT6735 clock bindings dt-bindings: reset: Add MT6735 reset bindings dt-bindings: arm: mediatek: Add MT6735 clock controller compatibles clk: composite: Export clk_unregister_composite clk: mediatek: Export mtk_free_clk_data clk: mediatek: Add driver for MT6735 apmixedsys clk: mediatek: Add driver for MT6735 topckgen clk: mediatek: gate: Export mtk_clk_register_gates_with_dev clk: mediatek: reset: Export mtk_register_reset_controller symbols clk: mediatek: reset: Return mtk_reset pointer on register clk: mediatek: reset: Implement mtk_unregister_reset_controller() API clk: mediatek: Add driver for MT6735 infracfg clk: mediatek: Add driver for MT6735 pericfg .../arm/mediatek/mediatek,infracfg.yaml | 8 +- .../arm/mediatek/mediatek,pericfg.yaml | 1 + .../bindings/clock/mediatek,apmixedsys.yaml | 4 +- .../bindings/clock/mediatek,topckgen.yaml | 4 +- MAINTAINERS | 16 + drivers/clk/clk-composite.c | 1 + drivers/clk/mediatek/Kconfig | 28 + drivers/clk/mediatek/Makefile | 4 + drivers/clk/mediatek/clk-gate.c | 1 + drivers/clk/mediatek/clk-mt6735-apmixed.c | 274 ++++ drivers/clk/mediatek/clk-mt6735-infracfg.c | 265 ++++ drivers/clk/mediatek/clk-mt6735-pericfg.c | 360 +++++ drivers/clk/mediatek/clk-mt6735-topckgen.c | 1159 +++++++++++++++++ drivers/clk/mediatek/clk-mtk.c | 1 + drivers/clk/mediatek/clk-mtk.h | 8 +- drivers/clk/mediatek/reset.c | 31 +- .../clock/mediatek,mt6735-apmixedsys.h | 16 + .../clock/mediatek,mt6735-infracfg.h | 25 + .../clock/mediatek,mt6735-pericfg.h | 37 + .../clock/mediatek,mt6735-topckgen.h | 79 ++ .../reset/mediatek,mt6735-infracfg.h | 31 + .../reset/mediatek,mt6735-pericfg.h | 31 + 22 files changed, 2366 insertions(+), 18 deletions(-) create mode 100644 drivers/clk/mediatek/clk-mt6735-apmixed.c create mode 100644 drivers/clk/mediatek/clk-mt6735-infracfg.c create mode 100644 drivers/clk/mediatek/clk-mt6735-pericfg.c create mode 100644 drivers/clk/mediatek/clk-mt6735-topckgen.c create mode 100644 include/dt-bindings/clock/mediatek,mt6735-apmixedsys.h create mode 100644 include/dt-bindings/clock/mediatek,mt6735-infracfg.h create mode 100644 include/dt-bindings/clock/mediatek,mt6735-pericfg.h create mode 100644 include/dt-bindings/clock/mediatek,mt6735-topckgen.h create mode 100644 include/dt-bindings/reset/mediatek,mt6735-infracfg.h create mode 100644 include/dt-bindings/reset/mediatek,mt6735-pericfg.h -- 2.36.0