Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp991113pxb; Tue, 17 Aug 2021 00:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd2PCfizzA0TWHpALcAD73bY1nbcph8w7x+5B3g5xis6HBrvtxgwz66mbVwcxjAzdtrCvK X-Received: by 2002:a92:cd0a:: with SMTP id z10mr1474093iln.137.1629186391010; Tue, 17 Aug 2021 00:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629186391; cv=none; d=google.com; s=arc-20160816; b=fAQsNAZQouKwSSBDcxU+i95Qx/UHZxycA9/ecH2AOXKA4eY6qoD0C1/VpI9d27WHWe tuDO5j+Bu3sPGCxQjZ0GW4yukUXOR87hwXP6ski+FFpw/ayKD3YUW0XDCS9W1drXhDdr uQwTc/Eb8EyNnaRff5Ta68SwiBchgChZKElEZ8GMvvX9TFW6UCpWY0mqLOWmGT2Xa6wi rO3UDQs/Z5oovh7jLDC8CFD83h29lb0t0WjKb9OSnwpbv1dFksdhpzPbHVQ48oNiiTtr UpapPbOwEcgTLNbz4Vm+v+oMrhPUeMPDRyGKZUKBdRHFdTUZAd1k3BbLd/Z8FUVJ9jpz 7S9Q== 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=SDWhd8zU+xFBSFdzNGmC5vb5txwiUNdkdz/bwH/pt0A=; b=LDUoF/xUFZPjolJk5QrPVeIo7urwtxhSYY0hb5SMqVTXsy2NrlEFYLzS413zD2QWa8 Ps6zqedNxHKk5tLtNx2jRdGrgMxTqFgaoljoy4eSAsSP9V2RSmrWKGe2TrKupzSt5028 x9eiDDcuRJsHPy7klb3KQEpvuIvh/kHht2TtA1Rvb/1zC/sihc7LpmBs8qPnYHYrSfGG u8HeXozwj+KGRm5C3pEPKNCxDwZtsL+iUgLQNRbgdL5RKEh+DZgdL6pfvYM4Oe47XbmF wRrSuuUM+gkv95+UrF/t2mbDhQ6ZRkqVXO8OaqKO4tApLOAM4YfpnY+EfHA3abxih1WV vdPQ== 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 v13si1661958ilj.65.2021.08.17.00.46.10; Tue, 17 Aug 2021 00:46:30 -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 S234493AbhHQHqj (ORCPT + 99 others); Tue, 17 Aug 2021 03:46:39 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:48458 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231500AbhHQHqj (ORCPT ); Tue, 17 Aug 2021 03:46:39 -0400 X-UUID: 6cc2d3ce89ac4336b8ee718cb5ae1705-20210817 X-UUID: 6cc2d3ce89ac4336b8ee718cb5ae1705-20210817 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 13340958; Tue, 17 Aug 2021 15:46:03 +0800 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 17 Aug 2021 15:46:02 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Tue, 17 Aug 2021 15:46:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 17 Aug 2021 15:46:01 +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: [v2,00/12] Add basic SoC support for mediatek mt7986 Date: Tue, 17 Aug 2021 15:45:45 +0800 Message-ID: <20210817074557.30953-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. --- 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 (12): 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 dt-bindings: rng: mediatek: add mt7986 to mtk rng binding dt-bindings: serial: Add compatible for Mediatek MT7986 dt-bindings: watchdog: Add compatible for Mediatek MT7986 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 + .../bindings/pinctrl/pinctrl-mt7622.txt | 170 +++ .../devicetree/bindings/rng/mtk-rng.yaml | 1 + .../devicetree/bindings/serial/mtk-uart.txt | 1 + .../devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 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 | 236 ++++ 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 | 1217 +++++++++++++++++ include/dt-bindings/clock/mt7986-clk.h | 169 +++ 26 files changed, 2882 insertions(+) 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