Message ID | 20221222155147.158837-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp26012wrn; Thu, 22 Dec 2022 07:54:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXtXpy2z5W7STBxOVC0CNGAHl1JVPIsDeWtQyqdvToa3LB6XzRJAxqFUH5XLXYVLiZCAO1uE X-Received: by 2002:a17:907:8e93:b0:7ae:bfec:74c7 with SMTP id tx19-20020a1709078e9300b007aebfec74c7mr5151721ejc.72.1671724440633; Thu, 22 Dec 2022 07:54:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671724440; cv=none; d=google.com; s=arc-20160816; b=LWEk69VkKWJF4Feu2ebDCY4Tts+O5K8m/6hx9TpDegnJKdRCeBq9otrpxsjn3osezb OVj7xAKlcvF2Otk5YY4W7YxpKUNA6+P72yVeoTM5ja5dH0Aql64DFcagrb0f1FU8uonO S/u4LTgeoasUkA9eRf+ZI+s/I12srmvX3Ip7iMJBWnkMv5SoKQUM8DIi4DJQW7TI5LYk ktUzzZ+45Zl4Jxo62MMxOYyvC/SyD6ywa7sA36uJ9DuhHr1BSv5MUUcnGpA0eJSsMsP2 nOZGchllnghQ6KOtHCa2XhLbqQyPIpuhEu+PGRaG5xQRpxcZuhh6Jzni/FErc6dJa46/ aSGg== 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=mFoV6r2Py6GshiOCvPnrxtODe6D8zJrK6BHfPk7hlxg=; b=MMNgBhK+bbrhJO5N2tG/w3KgLTrD0APq6HOOs/uid+eNIwtvbOfu5fxT+mrQqHDyaK IshKuCT8TAILW/jozE60Rj5b5GSY6BdYRZcPu8DvnO5T0kkbCaQFuJG/G6/8aq8FDqi0 ijyboM1elb2Lyh6ijHOZsVrbtbJXvrSe0BW5/U1Vgi7hvbNYvl1rLC5URPDUS9+4TNqq QfaG5binnr4bRmG5Wqk+0wvr19MMrfbShD3s5B6RcvY9woWtatEAkHuIlf80/fG/viLB Wl1s7oXtIjGv4fOyjAjOP28ZyS9xeMYksHuBCVJYuE6qRFOx0JI6/9OWHalbyBGLZNfX Njmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FsqezhQ0; 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=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp25-20020a1709073e1900b0081a9c3ca4c4si790211ejc.572.2022.12.22.07.53.35; Thu, 22 Dec 2022 07:54:00 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=FsqezhQ0; 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=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbiLVPwE (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Thu, 22 Dec 2022 10:52:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbiLVPvx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 22 Dec 2022 10:51:53 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 970FE326; Thu, 22 Dec 2022 07:51:52 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 48CD06602CD4; Thu, 22 Dec 2022 15:51:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671724311; bh=uMlzR3jzAgZKgQ0SsvIc9RuzeNPQqYhO11Dbd9G7z0U=; h=From:To:Cc:Subject:Date:From; b=FsqezhQ0340vo0CDb+ED7Q92XVeu1d+mK9Lik1j2SBpi5KjRWJWBcXUGiFms90yBS yfP/HDrgdiP6u69tbMEYaeu2vNpY8Fsz+w9EmykXgwqBeGqo4ThhJp4nWcMaC66pGj c+q9dr9R2f7YZAFXlsPJ/uqU+D23lj7b6pr/QQyNHU/LjLDe6iArHWLXh2VEoTBBqu crxpIIosnH70dYgiTN2Z+TYLM3Uw1/iyhJqdKE7LIMhFzbAPYCCUvK0bcLkExVrR++ xN89VlCn+1hAplqfNEMKfb1T7BWq/exbuxrmHdJz3IBHzGqJ4JpbPCUl6vmOupbJwg rX8Hxup7xFrLQ== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: mturquette@baylibre.com Cc: sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, edward-jw.yang@mediatek.com, johnson.wang@mediatek.com, wenst@chromium.org, miles.chen@mediatek.com, chun-jie.chen@mediatek.com, rex-bc.chen@mediatek.com, jose.exposito89@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH v1 0/6] MediaTek Frequency Hopping: MT6795/8173/92/95 Date: Thu, 22 Dec 2022 16:51:41 +0100 Message-Id: <20221222155147.158837-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752930127065438362?= X-GMAIL-MSGID: =?utf-8?q?1752930127065438362?= |
Series |
MediaTek Frequency Hopping: MT6795/8173/92/95
|
|
Message
AngeloGioacchino Del Regno
Dec. 22, 2022, 3:51 p.m. UTC
This series adds support for Frequency Hopping (FHCTL) on more MediaTek SoCs, specifically, MT6795, MT8173, MT8192 and MT8195. In order to support older platforms like MT6795 and MT8173 it was necessary to add a new register layout that is ever-so-slightly different from the one that was previously introduced for MT8186. Since the new layout refers to older SoCs, the one valid for MT8186 and newer SoCs was renamed to be a "v2" layout, while the new one for older chips gets the "v1" name. Note: These commits won't change any behavior unless FHCTL gets explicitly enabled and configured in devicetrees. AngeloGioacchino Del Regno (6): clk: mediatek: fhctl: Add support for older fhctl register layout dt-bindings: clock: mediatek,mt8186-fhctl: Support MT6795, MT8173/92/95 clk: mediatek: mt6795: Add support for frequency hopping through FHCTL clk: mediatek: mt8173: Add support for frequency hopping through FHCTL clk: mediatek: mt8192: Add support for frequency hopping through FHCTL clk: mediatek: mt8195: Add support for frequency hopping through FHCTL .../bindings/clock/mediatek,mt8186-fhctl.yaml | 7 +- drivers/clk/mediatek/clk-fhctl.c | 26 ++++++- drivers/clk/mediatek/clk-fhctl.h | 9 ++- drivers/clk/mediatek/clk-mt6795-apmixedsys.c | 63 ++++++++++++++++- drivers/clk/mediatek/clk-mt8173-apmixedsys.c | 65 ++++++++++++++++- drivers/clk/mediatek/clk-mt8186-apmixedsys.c | 2 + drivers/clk/mediatek/clk-mt8192.c | 67 +++++++++++++++++- drivers/clk/mediatek/clk-mt8195-apmixedsys.c | 69 ++++++++++++++++++- drivers/clk/mediatek/clk-pllfh.c | 23 +++++-- drivers/clk/mediatek/clk-pllfh.h | 1 + 10 files changed, 311 insertions(+), 21 deletions(-)
Comments
Il 22/12/22 16:51, AngeloGioacchino Del Regno ha scritto: > This series adds support for Frequency Hopping (FHCTL) on more MediaTek > SoCs, specifically, MT6795, MT8173, MT8192 and MT8195. > > In order to support older platforms like MT6795 and MT8173 it was > necessary to add a new register layout that is ever-so-slightly > different from the one that was previously introduced for MT8186. > > Since the new layout refers to older SoCs, the one valid for MT8186 > and newer SoCs was renamed to be a "v2" layout, while the new one > for older chips gets the "v1" name. > > Note: These commits won't change any behavior unless FHCTL gets > explicitly enabled and configured in devicetrees. > Forgot to write in the cover letter that this series can be applied on top of [1], but that's a dependency only because that big cleanup moves things around (hence these commits won't apply if not on top of [1]). [1]: https://lore.kernel.org/lkml/20221222114857.120060-1-angelogioacchino.delregno@collabora.com Cheers, Angelo > AngeloGioacchino Del Regno (6): > clk: mediatek: fhctl: Add support for older fhctl register layout > dt-bindings: clock: mediatek,mt8186-fhctl: Support MT6795, > MT8173/92/95 > clk: mediatek: mt6795: Add support for frequency hopping through FHCTL > clk: mediatek: mt8173: Add support for frequency hopping through FHCTL > clk: mediatek: mt8192: Add support for frequency hopping through FHCTL > clk: mediatek: mt8195: Add support for frequency hopping through FHCTL > > .../bindings/clock/mediatek,mt8186-fhctl.yaml | 7 +- > drivers/clk/mediatek/clk-fhctl.c | 26 ++++++- > drivers/clk/mediatek/clk-fhctl.h | 9 ++- > drivers/clk/mediatek/clk-mt6795-apmixedsys.c | 63 ++++++++++++++++- > drivers/clk/mediatek/clk-mt8173-apmixedsys.c | 65 ++++++++++++++++- > drivers/clk/mediatek/clk-mt8186-apmixedsys.c | 2 + > drivers/clk/mediatek/clk-mt8192.c | 67 +++++++++++++++++- > drivers/clk/mediatek/clk-mt8195-apmixedsys.c | 69 ++++++++++++++++++- > drivers/clk/mediatek/clk-pllfh.c | 23 +++++-- > drivers/clk/mediatek/clk-pllfh.h | 1 + > 10 files changed, 311 insertions(+), 21 deletions(-) >
Quoting AngeloGioacchino Del Regno (2022-12-22 07:51:41) > This series adds support for Frequency Hopping (FHCTL) on more MediaTek > SoCs, specifically, MT6795, MT8173, MT8192 and MT8195. > > In order to support older platforms like MT6795 and MT8173 it was > necessary to add a new register layout that is ever-so-slightly > different from the one that was previously introduced for MT8186. > > Since the new layout refers to older SoCs, the one valid for MT8186 > and newer SoCs was renamed to be a "v2" layout, while the new one > for older chips gets the "v1" name. > > Note: These commits won't change any behavior unless FHCTL gets > explicitly enabled and configured in devicetrees. Can you resend this? It conflicts with your latest cleanup series.
Il 26/01/23 03:07, Stephen Boyd ha scritto: > Quoting AngeloGioacchino Del Regno (2022-12-22 07:51:41) >> This series adds support for Frequency Hopping (FHCTL) on more MediaTek >> SoCs, specifically, MT6795, MT8173, MT8192 and MT8195. >> >> In order to support older platforms like MT6795 and MT8173 it was >> necessary to add a new register layout that is ever-so-slightly >> different from the one that was previously introduced for MT8186. >> >> Since the new layout refers to older SoCs, the one valid for MT8186 >> and newer SoCs was renamed to be a "v2" layout, while the new one >> for older chips gets the "v1" name. >> >> Note: These commits won't change any behavior unless FHCTL gets >> explicitly enabled and configured in devicetrees. > > Can you resend this? It conflicts with your latest cleanup series. Right. Sorry about forgetting to update this one - will rebase and resend today. Thanks! Angelo