Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp480390pxb; Tue, 14 Sep 2021 01:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4FN3Ny2k7MZLzW5uyA/43Fz/WKnpSU+AJqh9WMaEhxp9I6LpwAgo/7B+9X4h61h2UDZwf X-Received: by 2002:a02:1942:: with SMTP id b63mr13650777jab.49.1631609530891; Tue, 14 Sep 2021 01:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631609530; cv=none; d=google.com; s=arc-20160816; b=U6t04Ng57aSbdhOftFSZwXe/xvd4w9oq6DThvnYfE/lj6bc2elLvw4glZPQDxtH9fQ znnZIZqLhKFrrcXqDiy+BOJxXcWA+g5QIS5PYfIDmPidxuE7eayXxEDk3+DMh3LwlHw1 R20pwbuDfIJzlm10qEsaXniZYanSjzv9MMJKMryqUCWbe7/apVZB8Bq/NCs7fSHRVzPI V+JjwMa3E0Vbq9TbTerLqTq0Iljb5J/as6is9scwlLAyJhaSSw9eigT+geUVhjo24H24 04icHkIqsLuq3ZPe6+eu0UZDypb/WOgUdKt3i5i5hpJ90RYQ9vJ2VoIKVBEnzDKN1Ga4 kTrQ== 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=5b/iBInlYG8J4FqQ3z7vqJRDLVZtCKFjS4YPTMVOta0=; b=FPDQFELxzdWzqKAbLjA1FDnMMMA2k9qmVo+gxUUIGpD9DKWr/kxgSudchyDoqoncDC jvAhu8TZbTiSqUzAs78Uja9ysQ0y4RFe54GW37KxzWGMcbgcQGUMiEs6EhnqovjaoPNh Go6zGKneyJtwqeNatzXzADDrgzyRnHwVh9eURv9mBILYeXE2CCH91m+reDbx0ZZGNjNU tvP0P0zaoEQoawYsYmxebhQ8vAGb7CzVxuVWB0YjbkqyaUD11c77CeesBGXbhqlu4Q8w S673IYRM7mJXqLwVSui1DfvT699DIdyzlnwc2CgUf4eNrrrnfVRj9kLHBJZBJEinmo1l Qs7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si9344956ilc.127.2021.09.14.01.51.59; Tue, 14 Sep 2021 01:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbhINIxB (ORCPT + 99 others); Tue, 14 Sep 2021 04:53:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49076 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229610AbhINIxA (ORCPT ); Tue, 14 Sep 2021 04:53:00 -0400 X-UUID: 431777d426d54f57b326deebe80da5b2-20210914 X-UUID: 431777d426d54f57b326deebe80da5b2-20210914 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 339748266; Tue, 14 Sep 2021 16:51:39 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Sep 2021 16:51:38 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Sep 2021 16:51:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 14 Sep 2021 16:51:37 +0800 From: Sam Shih To: Rob Herring , Sean Wang , "Linus Walleij" , Matthias Brugger , Matt Mackall , Herbert Xu , Greg Kroah-Hartman , Wim Van Sebroeck , Guenter Roeck , Michael Turquette , Stephen Boyd , Hsin-Yi Wang , Enric Balletbo i Serra , Fabien Parent , Seiya Wang , , , , , , , , , CC: John Crispin , Ryder Lee , "Sam Shih" Subject: [v3,0/9] Add basic SoC support for mediatek mt7986 Date: Tue, 14 Sep 2021 16:51:28 +0800 Message-ID: <20210914085137.31761-1-sam.shih@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch adds basic SoC support for Mediatek's new 4-core SoC, MT7986, which is mainly for wifi-router application. --- v3: updated mt7986 pinctrl releated dt-bindig, updated mt7986 pinctrl driver according to reviewers's suggestion fixed wrong clock ID in mt7986-clock-IDs added Acked-by tag in some patches v2: updated mt7986 clock releated IDs, dt-binding, and driver updated mt7986 clock releated dt-binding and driver updated device tree of mt7986a and mt7986b Sam Shih (9): dt-bindings: clock: mediatek: document clk bindings for mediatek mt7986 SoC clk: mediatek: add mt7986 clock IDs clk: mediatek: add mt7986 clock support pinctrl: mediatek: moore: check if pin_desc is valid before use dt-bindings: pinctrl: update bindings for MT7986 SoC pinctrl: mediatek: add support for MT7986 SoC dt-bindings: arm64: dts: mediatek: Add mt7986 series arm64: dts: mediatek: add mt7986a support arm64: dts: mediatek: add mt7986b support .../devicetree/bindings/arm/mediatek.yaml | 8 + .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek,ethsys.txt | 1 + .../arm/mediatek/mediatek,infracfg.txt | 1 + .../arm/mediatek/mediatek,sgmiisys.txt | 2 + .../arm/mediatek/mediatek,topckgen.txt | 1 + .../pinctrl/mediatek,mt7986-pinctrl.txt | 300 ++++++ arch/arm64/boot/dts/mediatek/Makefile | 2 + arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 49 + arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 227 +++++ arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 21 + arch/arm64/boot/dts/mediatek/mt7986b.dtsi | 227 +++++ drivers/clk/mediatek/Kconfig | 17 + drivers/clk/mediatek/Makefile | 4 + drivers/clk/mediatek/clk-mt7986-apmixed.c | 78 ++ drivers/clk/mediatek/clk-mt7986-eth.c | 132 +++ drivers/clk/mediatek/clk-mt7986-infracfg.c | 198 ++++ drivers/clk/mediatek/clk-mt7986-topckgen.c | 319 ++++++ drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-moore.c | 18 + drivers/pinctrl/mediatek/pinctrl-mt7986.c | 928 ++++++++++++++++++ include/dt-bindings/clock/mt7986-clk.h | 169 ++++ 23 files changed, 2711 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.txt create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt7986b.dtsi create mode 100644 drivers/clk/mediatek/clk-mt7986-apmixed.c create mode 100644 drivers/clk/mediatek/clk-mt7986-eth.c create mode 100644 drivers/clk/mediatek/clk-mt7986-infracfg.c create mode 100644 drivers/clk/mediatek/clk-mt7986-topckgen.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7986.c create mode 100644 include/dt-bindings/clock/mt7986-clk.h -- 2.29.2