Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp379113iob; Wed, 18 May 2022 04:20:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzabsu1oIwlREHO6zSxB7BBXkFXkGcWochqU0vx6z+JXgR+FNEaB/BsAxNxawEu8523oa5e X-Received: by 2002:a05:6a00:140f:b0:4e0:6995:9c48 with SMTP id l15-20020a056a00140f00b004e069959c48mr27087379pfu.59.1652872827654; Wed, 18 May 2022 04:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652872827; cv=none; d=google.com; s=arc-20160816; b=eSIH6t6b7QEHcJDmbo7Aa+2xmpva+gpMKNRDDqiFrv8Qli2Ej9dlENsWV7ie3eTHAX WbanluNlN7rjNAVR2LwbDnjzbsAlrYymF0x+opOXVDQS0MTTPssEqdRf+/QOLm1mGFvn F54MkKaYEDQoZLNwpD0uLBdHw9ZOQwoli4UMstQZXdHJTVNgzLwH+5em99Usk1lDq5KI QMpN5wgRgL/jXkqTMNTBd5GbO3gFh1QEqb/yHxR+lvHSuvLWNqF/y7mw2NSufI9qM2zI 7UpIcq7xCdS/umopecLL1R1BhkBcfeh8KfMI91qB0A6qtnASrsDQqRw78Brq1xmNtOrG QG/A== 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=7De8Fla9H1QSE3wB+WpvR7SYg6Tnd5EgAOcre2RfOKE=; b=Q7MBeAyvrl9n8VCgu+s/rqCZ0br9MkBL/y1gFOjHK/TH252sBOPYjbD6Feor5YR0t2 2vLZ/qknrqGhuFaTMY9lGQhOghd60n8C78Xqym8XtvaLyckhN12LWcHzzyzVO7ZtFdx+ Wvc+B1PjXsbnu9257mZqjix1hqKsC1rX+HvEbQ08jn4D0X9ehGWRuldkbJ+gakvcCt3T K/HVzrIgZ6AY0lSm90dtglFN4wOgNYOxbxc5SSTws2FbXmWexyZDW7SG/L1y/ii1p8pb E6T9EQg0P6ekh9KfdK00WBiWZGVOKCykotKtNHEXDu7eoHrRqAsgv5Quw+6GfREsAHv/ Bxhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kvD+UbyN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r21-20020a63fc55000000b003db60740a25si2282465pgk.35.2022.05.18.04.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:20:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kvD+UbyN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABF476E8DD; Wed, 18 May 2022 04:17:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235447AbiERLRF (ORCPT + 99 others); Wed, 18 May 2022 07:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235372AbiERLRD (ORCPT ); Wed, 18 May 2022 07:17:03 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8D16D4E8; Wed, 18 May 2022 04:17:01 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 6CFD71F44F12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652872620; bh=apn6ShGZEG3D6yLEFdVVyWQiT/UfA8DY+IFGQiBvVVc=; h=From:To:Cc:Subject:Date:From; b=kvD+UbyNikRWKEkhsNaUzIDlDfiMwgZgBJ3rEGieDNllPkYWc4+aDpPWs6IazHxsx hr4c8PWOcKuezXW/1mFy464M2JA0rprnyZNf7ALVRfFyPn6D+LsvOxu4uw8duDHEWl 0oGWCcl2AVrbAcxhOb9EEpiLS3w8PAn033E+Yf7OMhgjyC0uHevkaavZMqk9u3ZeF3 jG7EpDEE/4BChvUank65XMFjJ48pSHq2gXWeF6F3EZq+sKRd93jILnbA9fqcKsKI+P NThRwoxm+1O8mTwxIJRoORtyW4d9iVS7+A/4NUrAJ7buTkOVTyTSsuAxrjxdWP3Jwk 0TQg4lEB5DBBg== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, y.oudjana@protonmail.com, angelogioacchino.delregno@collabora.com, jason-jh.lin@mediatek.com, ck.hu@mediatek.com, fparent@baylibre.com, rex-bc.chen@mediatek.com, tinghan.shen@mediatek.com, chun-jie.chen@mediatek.com, weiyi.lu@mediatek.com, ikjn@chromium.org, miles.chen@mediatek.com, sam.shih@mediatek.com, wenst@chromium.org, bgolaszewski@baylibre.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, paul.bouchara@somainline.org, kernel@collabora.com Subject: [PATCH v2 0/7] MediaTek Helio X10 MT6795 - Clock drivers Date: Wed, 18 May 2022 13:16:45 +0200 Message-Id: <20220518111652.223727-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 In an effort to give some love to the apparently forgotten MT6795 SoC, I am upstreaming more components that are necessary to support platforms powered by this one apart from a simple boot to serial console. This (very big) series introduces system clock, multimedia clock drivers (including resets) for this SoC. Tested on a MT6795 Sony Xperia M5 (codename "Holly") smartphone. This series depends on, and can be merged on top of: [1]: https://patchwork.kernel.org/project/linux-mediatek/list/?series=640122 [2]: https://patchwork.kernel.org/project/linux-mediatek/list/?series=637849 Changes in v2: - Fixed yaml clock bindings as per Rob's review - Added ability to compile all MT6795 clock drivers as modules - Added commits to export some symbols, required to compile as module AngeloGioacchino Del Regno (7): dt-bindings: mediatek: Document MT6795 system controllers bindings dt-bindings: clock: Add MediaTek Helio X10 MT6795 clock bindings dt-bindings: reset: Add bindings for MT6795 Helio X10 reset controllers dt-bindings: clock: mediatek: Add clock driver bindings for MT6795 clk: mediatek: clk-apmixed: Remove unneeded __init annotation clk: mediatek: Export required symbols to compile clk drivers as module clk: mediatek: Add MediaTek Helio X10 MT6795 clock drivers .../arm/mediatek/mediatek,infracfg.yaml | 2 + .../bindings/arm/mediatek/mediatek,mmsys.yaml | 1 + .../arm/mediatek/mediatek,pericfg.yaml | 1 + .../bindings/clock/mediatek,apmixedsys.yaml | 1 + .../bindings/clock/mediatek,mt6795-clock.yaml | 66 ++ .../clock/mediatek,mt6795-sys-clock.yaml | 74 +++ .../bindings/clock/mediatek,topckgen.yaml | 1 + drivers/clk/mediatek/Kconfig | 37 ++ drivers/clk/mediatek/Makefile | 6 + drivers/clk/mediatek/clk-apmixed.c | 3 +- drivers/clk/mediatek/clk-cpumux.c | 2 + drivers/clk/mediatek/clk-mt6795-apmixedsys.c | 157 +++++ drivers/clk/mediatek/clk-mt6795-infracfg.c | 148 +++++ drivers/clk/mediatek/clk-mt6795-mfg.c | 50 ++ drivers/clk/mediatek/clk-mt6795-mm.c | 106 +++ drivers/clk/mediatek/clk-mt6795-pericfg.c | 160 +++++ drivers/clk/mediatek/clk-mt6795-topckgen.c | 611 ++++++++++++++++++ drivers/clk/mediatek/clk-mt6795-vdecsys.c | 55 ++ drivers/clk/mediatek/clk-mt6795-vencsys.c | 50 ++ drivers/clk/mediatek/clk-mtk.c | 2 + drivers/clk/mediatek/reset.c | 1 + include/dt-bindings/clock/mt6795-clk.h | 275 ++++++++ include/dt-bindings/reset/mt6795-resets.h | 50 ++ 23 files changed, 1858 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt6795-clock.yaml create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt6795-sys-clock.yaml create mode 100644 drivers/clk/mediatek/clk-mt6795-apmixedsys.c create mode 100644 drivers/clk/mediatek/clk-mt6795-infracfg.c create mode 100644 drivers/clk/mediatek/clk-mt6795-mfg.c create mode 100644 drivers/clk/mediatek/clk-mt6795-mm.c create mode 100644 drivers/clk/mediatek/clk-mt6795-pericfg.c create mode 100644 drivers/clk/mediatek/clk-mt6795-topckgen.c create mode 100644 drivers/clk/mediatek/clk-mt6795-vdecsys.c create mode 100644 drivers/clk/mediatek/clk-mt6795-vencsys.c create mode 100644 include/dt-bindings/clock/mt6795-clk.h create mode 100644 include/dt-bindings/reset/mt6795-resets.h -- 2.35.1