Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2460353ybl; Mon, 19 Aug 2019 02:23:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqye20YukoOmhNWTu9LVhMpz24Ch2JQspaco1XSBUDuONMPGctNhPaSc95TwHldhhQR2jlnb X-Received: by 2002:a62:65c7:: with SMTP id z190mr14218948pfb.9.1566206617607; Mon, 19 Aug 2019 02:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566206617; cv=none; d=google.com; s=arc-20160816; b=shXQcB8wp/xCQNQwKbt5FA75j8yaeuYdUhmpWQkbhNahW2l71dZPozPyVcLSe9KRV1 Lx37fGfdCAxAXNzf/lkKfdmt95DKmAzwsGDZgmEtD9mdptzG82BaZBbhWZwJjGAXRXWL K9IQ7kjHzmhAbAXSGDsvE5G8H70DHBLADQVzVgMqCiVWmWiKDQMm2GSV0nwzJxTDnDxc 5SiMSOFzy6ET6KRv2mD4KfuG9V+98QespfzWE6QA2DNTi4aeDNq9Z4McutiFVV4+v+by rV3OsSl6A3IRgyG9iJPQhREKks+NMlNgSeTDQpDxeudirNeHNlsTbpefIfP13fpv8xwR OC4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=1IyxeaSNTnzrAd828fbePgg7kwfchRNsBSnodtL0C8c=; b=eorXCKewpxHBv+8Vwm4rHnhlqy78ulMsrLtIuKW4//4eAw88T9/IJtsGUc9IlyxoJi AdERzGSt1rbfinidjD+kQDiMwkQ3zpiEtlNcRE+MbzMwNU27P+g8sDfqd6BGung7Ny58 dNYVy4mOlg9NATZeFWyLJ0VGp1Jy1ULMJBF2TuDkITBr9egQvF4PnBs79LL1A5bxVo6d tTAo86Ea723AqeLKEGkzAV6AApZ7NJQfOQNwV4g5xDiEmOe20Qxg9GHaXd3T0HB/8mds 3yvkDLdt2mxYxQ2HqCgFu5sY5KDJ1Sbydt6X9CN2upOXGcTTq/Z9jx9SQUzTRPmpWFh1 oLDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id 38si9539287pla.216.2019.08.19.02.23.23; Mon, 19 Aug 2019 02:23:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727448AbfHSJWM (ORCPT + 99 others); Mon, 19 Aug 2019 05:22:12 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:37221 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727335AbfHSJWJ (ORCPT ); Mon, 19 Aug 2019 05:22:09 -0400 X-UUID: 796730bac6ef4d829f0a303d01b3d6d4-20190819 X-UUID: 796730bac6ef4d829f0a303d01b3d6d4-20190819 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 37471676; Mon, 19 Aug 2019 17:22:01 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 19 Aug 2019 17:22:00 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 19 Aug 2019 17:22:00 +0800 From: Mars Cheng To: Matthias Brugger , Rob Herring , Marc Zyngier , Stephen Boyd , Sean Wang , Linus Walleij CC: CC Hwang , Loda Chou , , , , , mtk01761 , Subject: [PATCHv2 00/11] Add basic SoC Support for Mediatek MT6779 SoC Date: Mon, 19 Aug 2019 17:21:31 +0800 Message-ID: <1566206502-4347-1-git-send-email-mars.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: D2DE206C8813DC47ED7261D11FDE95B6936DD33B5D67B0F8EC1338EF0A6DBB962000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset is based on v5.3-rc1. Basic SoC support for the new Mediatek SoC, MT6779, which targets for smartphone. It provides ccf, pinctrl, uart, timer, gic...etc. Change History: v2: 1. add Reviewed-by tags 2. fix checkpatch warnings with strict level v1: first patchset Mars Cheng (8): dt-bindings: mediatek: add support for mt6779 reference board dt-bindings: mtk-uart: add mt6779 uart bindings dt-bindings: irq: mtk,sysirq: add support for mt6779 pinctrl: mediatek: update pinmux defintions for mt6779 pinctrl: mediatek: avoid virtual gpio trying to set reg pinctrl: mediatek: add pinctrl support for MT6779 SoC pinctrl: mediatek: add mt6779 eint support arm64: dts: add dts nodes for MT6779 mtk01761 (3): dt-bindings: mediatek: bindings for MT6779 clk clk: mediatek: Add dt-bindings for MT6779 clocks clk: mediatek: Add MT6779 clock support .../devicetree/bindings/arm/mediatek.yaml | 4 + .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek,audsys.txt | 1 + .../bindings/arm/mediatek/mediatek,camsys.txt | 1 + .../bindings/arm/mediatek/mediatek,imgsys.txt | 1 + .../bindings/arm/mediatek/mediatek,infracfg.txt | 1 + .../bindings/arm/mediatek/mediatek,ipesys.txt | 22 + .../bindings/arm/mediatek/mediatek,mfgcfg.txt | 1 + .../bindings/arm/mediatek/mediatek,mmsys.txt | 1 + .../bindings/arm/mediatek/mediatek,topckgen.txt | 1 + .../bindings/arm/mediatek/mediatek,vdecsys.txt | 1 + .../bindings/arm/mediatek/mediatek,vencsys.txt | 1 + .../interrupt-controller/mediatek,sysirq.txt | 1 + .../devicetree/bindings/serial/mtk-uart.txt | 1 + arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dtsi | 31 + arch/arm64/boot/dts/mediatek/mt6779.dts | 229 +++ drivers/clk/mediatek/Kconfig | 56 + drivers/clk/mediatek/Makefile | 9 + drivers/clk/mediatek/clk-mt6779-aud.c | 117 ++ drivers/clk/mediatek/clk-mt6779-cam.c | 66 + drivers/clk/mediatek/clk-mt6779-img.c | 58 + drivers/clk/mediatek/clk-mt6779-ipe.c | 60 + drivers/clk/mediatek/clk-mt6779-mfg.c | 55 + drivers/clk/mediatek/clk-mt6779-mm.c | 113 ++ drivers/clk/mediatek/clk-mt6779-vdec.c | 67 + drivers/clk/mediatek/clk-mt6779-venc.c | 58 + drivers/clk/mediatek/clk-mt6779.c | 1315 ++++++++++++ drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt6779.c | 783 ++++++++ drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 20 + drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h | 1 + drivers/pinctrl/mediatek/pinctrl-mtk-mt6779.h | 2085 ++++++++++++++++++++ drivers/pinctrl/mediatek/pinctrl-paris.c | 3 + include/dt-bindings/clock/mt6779-clk.h | 436 ++++ include/dt-bindings/pinctrl/mt6779-pinfunc.h | 1242 ++++++++++++ 37 files changed, 6851 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,ipesys.txt create mode 100644 arch/arm64/boot/dts/mediatek/mt6779-evb.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt6779.dts create mode 100644 drivers/clk/mediatek/clk-mt6779-aud.c create mode 100644 drivers/clk/mediatek/clk-mt6779-cam.c create mode 100644 drivers/clk/mediatek/clk-mt6779-img.c create mode 100644 drivers/clk/mediatek/clk-mt6779-ipe.c create mode 100644 drivers/clk/mediatek/clk-mt6779-mfg.c create mode 100644 drivers/clk/mediatek/clk-mt6779-mm.c create mode 100644 drivers/clk/mediatek/clk-mt6779-vdec.c create mode 100644 drivers/clk/mediatek/clk-mt6779-venc.c create mode 100644 drivers/clk/mediatek/clk-mt6779.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt6779.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt6779.h create mode 100644 include/dt-bindings/clock/mt6779-clk.h create mode 100644 include/dt-bindings/pinctrl/mt6779-pinfunc.h