Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1169265iol; Sun, 12 Jun 2022 08:02:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRYWQo5PS+XRGSDmLzFrzuAU432fmRoM6uV4parLj/JmQIk5sse4u9HL3igBsy+Pl/sOfq X-Received: by 2002:a17:90a:e601:b0:1e8:ad01:1eaa with SMTP id j1-20020a17090ae60100b001e8ad011eaamr10752144pjy.81.1655046121235; Sun, 12 Jun 2022 08:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655046121; cv=none; d=google.com; s=arc-20160816; b=Lq4HhmURcyGE+fzlZjTsDq2LFkHjaZ4aprYCSFVDJc5VxvqDfvf+efMshqKGzuGncI YryU01R7jUiF9ZPt3kJ4sMJEgXaVW1wU4plq4yw2XT+GRBw5S9VWxJ8mvBAC5PDiWTBh 1idMryCKHJayTNN1/vpJczhkN/jY5nLO5PRFnh8aCprecgjq7JZOJr2xY56SzHIDyMkO +6nLBDbhCmHjIVdn89qGHm8ZWiDn4UPTAgfR5paS+EDBz4YNugPsZIRzvpJZQa6CQ6VS 1rn/JL4hhP+WqPUIO4mlVYGxzPb7QLlt9Y5t7RL3Ocz4CQkzEamXT2dhlmRFv/vR8TVs PFkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Q47qFaFhiFJgkwHuVATGr2ncAsPedWjk+62XXfON58s=; b=l/wZb+RSvKfXoRSn3lDJMULo9P/I/2kc4BIph20cvoNbdA5c9BIDAq5EgbV/FzMCCd rmvE6nfCfGuqs2F0NwNk7YKb/XfjTsyZ528wpFTtL1C6+qf06An9v4yxuJIfmOrp87U0 aIaNsh3mBtYHc2cBE+9G/uHUy19cc6d6C0JfOgDwLQ4v06Aqj5KgsADwxqHS3cyUPZvO YEK6XGDAbY+fWnMS9WrclPp/LQBM1l/8uycWoMO5+Txvd/4gDJ9n7WAi8Ip7VY6lDOIx 6dwCWGd1mTZk+RkYAhbRn/bDgAPssLduQ3c0oNHTD9xn6R9h9yZnaI7WnMX6ZEC9R79N DGQw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi16-20020a17090b4b5000b001e4dd12a09esi7102705pjb.39.2022.06.12.08.01.48; Sun, 12 Jun 2022 08:02:01 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237213AbiFLNye (ORCPT + 99 others); Sun, 12 Jun 2022 09:54:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237141AbiFLNyb (ORCPT ); Sun, 12 Jun 2022 09:54:31 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F8B156C03; Sun, 12 Jun 2022 06:54:24 -0700 (PDT) X-UUID: 2dbcb9b0d66348da8d7faeda3d675b52-20220612 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5,REQID:ea1d74f2-6594-4236-92cf-cd3c67adebc8,OB:0,LO B:20,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,RULE:Release_Ham, ACTION:release,TS:95 X-CID-INFO: VERSION:1.1.5,REQID:ea1d74f2-6594-4236-92cf-cd3c67adebc8,OB:0,LOB: 20,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,RULE:Spam_GS981B3D, ACTION:quarantine,TS:95 X-CID-META: VersionHash:2a19b09,CLOUDID:7ca67d50-276a-4a9a-a4c8-ea931023add4,C OID:3b1ffced7f6d,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:0,BEC:nil X-UUID: 2dbcb9b0d66348da8d7faeda3d675b52-20220612 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2112512311; Sun, 12 Jun 2022 21:54:17 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Sun, 12 Jun 2022 21:54:16 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Sun, 12 Jun 2022 21:54:16 +0800 From: Johnson Wang To: , , , CC: , , , , , , Johnson Wang Subject: [RFC PATCH 0/2] Introduce MediaTek frequency hopping driver Date: Sun, 12 Jun 2022 21:54:12 +0800 Message-ID: <20220612135414.3003-1-johnson.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,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 This serie aims to add support for MediaTek frequency hopping and spread spectrum clocking (SSC) control on MT8186 SoC. Johnson Wang (2): dt-bindings: arm: mediatek: Add new bindings of MediaTek frequency hopping clk: mediatek: Add frequency hopping support .../bindings/arm/mediatek/mediatek,fhctl.yaml | 149 ++++++++ drivers/clk/mediatek/Kconfig | 8 + drivers/clk/mediatek/Makefile | 2 + drivers/clk/mediatek/clk-fhctl-ap.c | 347 ++++++++++++++++++ drivers/clk/mediatek/clk-fhctl-pll.c | 209 +++++++++++ drivers/clk/mediatek/clk-fhctl-pll.h | 74 ++++ drivers/clk/mediatek/clk-fhctl-util.h | 24 ++ drivers/clk/mediatek/clk-fhctl.c | 191 ++++++++++ drivers/clk/mediatek/clk-fhctl.h | 45 +++ drivers/clk/mediatek/clk-pll.c | 5 +- drivers/clk/mediatek/clk-pll.h | 5 + 11 files changed, 1058 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,fhctl.yaml create mode 100644 drivers/clk/mediatek/clk-fhctl-ap.c create mode 100644 drivers/clk/mediatek/clk-fhctl-pll.c create mode 100644 drivers/clk/mediatek/clk-fhctl-pll.h create mode 100644 drivers/clk/mediatek/clk-fhctl-util.h create mode 100644 drivers/clk/mediatek/clk-fhctl.c create mode 100644 drivers/clk/mediatek/clk-fhctl.h -- 2.18.0