From patchwork Sat Mar 23 21:15:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 10867007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 197A513B5 for ; Sat, 23 Mar 2019 21:17:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8427296A1 for ; Sat, 23 Mar 2019 21:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC93828613; Sat, 23 Mar 2019 21:17:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F06D2870C for ; Sat, 23 Mar 2019 21:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=y1kd0kgo1IAzFfymXo3rgW0luxCQVtjkO1hWTh879Hc=; b=U/gBsek8BOaGFe LHfKvwcGo3TtFnb/EyB28mOfkOwBL7eTbaGaVmjae1ByEOjMVvYX+dcH97ijleNw6Y2OXOpjaOJuE JGSZW+23gCJdbcbA2Wa8JC0TjxFObHyEsVZLYoQfumVzSQgqgkIKkI2YUvc8POHa9uz7T5MTK9TLx dEMSG532i3PiVkc6pAr6PufP6ZTuzTDufiNVdjJ5umUno3fBKFmI9ahFvEYs+HMDGqpmbEVrh5XfS ZAOPcw9J6L2TVN13z2tfDn72lypBbvT7L7MWYjoGaZUKGnGQUlidd08rHGu9ekPyX9Wy+FIrauLJE T3HNfn7cnS/xhQFBE/Zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7o0Z-0003t7-M6; Sat, 23 Mar 2019 21:16:51 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7o0N-0003go-E1 for linux-mediatek@lists.infradead.org; Sat, 23 Mar 2019 21:16:41 +0000 Received: by mail-wr1-x443.google.com with SMTP id w10so6003391wrm.4 for ; Sat, 23 Mar 2019 14:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4McGYYq2ZUptZXqYtAHX//HxnWqV5/YakhobL5pTDps=; b=xbSTH+a45Zi6x1BUqwnibZCTkAFasMmJZQ8izwesJPZnHuZIHhGu3u8L01TmM1rHif IEC78tWAov0bgc6JsgIYZ+dJ/n95+5BmkcA4N7dEW8PtXcJjtkCVqXgzV5DxTZ0TiBmM 5rTvHFrAK15HJ5fC9Jy0O/Zkbwp16Z4+fXEnFAutAue2+6brOUeBvFTiBn03QHH9kvBj sZepdN0pD/hlLr7UC8BdXTg5r6PjUjF/Sf51Lf4wPpT0kvAtlOz73r11Y1br45+OomQD SILOFMRo7kWJKUp8FgfgvaUga+0Vd1sg7Hgo7CcXCh3RqqzYzolyk8QA/cnLxQX03UI1 aeKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4McGYYq2ZUptZXqYtAHX//HxnWqV5/YakhobL5pTDps=; b=ChB+MO01k/rz+fNO1W67xACO9Oh4ZbAW8NQlooqHQq/R6lh1efA8c8vQ51XeaNl1gh I3wyU7S4iGjoAQMLdtVC3LsduKEQKZNwz5LSNdWs7834d9dHW2lVwtpOTL6DPKZtZhqH cA9hta5SL46mD5pdlhSGI6hmQhODlVkOnMboqwFJVyNttHJcD1MkONpA/aD+/iEYhfUu kOjvnzB/HK88S+C10BEOWfQlJ5W7ZWmiuNn656LKC9ctx8c78QUqbgjxqDQ0AL4Z7JJm dit9TporeYEoVZvtmdg0TnHYQohu5qwMMy2hNxTdFN+0MD/Eg6ZyxBywl+zt8DwE9Goq 0Khw== X-Gm-Message-State: APjAAAUdFka/WwhsjgQOijeDQfC6ogpDb21MNNsy8SW+mc3Q6IOWuDUP 2Ih959gwfCU5L3OJEWCPmTr4nA== X-Google-Smtp-Source: APXvYqwWXn0fyODwrAZ6niPpQMs28EUAEIINdt1c/GXwI+ZaBvDHjV/+22ncaxIqZXuI8lOKAmFnvQ== X-Received: by 2002:a5d:6883:: with SMTP id h3mr10528279wru.215.1553375796536; Sat, 23 Mar 2019 14:16:36 -0700 (PDT) Received: from localhost.localdomain (cag06-8-78-203-165-84.fbx.proxad.net. [78.203.165.84]) by smtp.gmail.com with ESMTPSA id y66sm8050503wmd.37.2019.03.23.14.16.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 14:16:35 -0700 (PDT) From: Fabien Parent To: matthias.bgg@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 00/24] arm64: mediatek: add support for Pumpkin MT8516 board Date: Sat, 23 Mar 2019 22:15:48 +0100 Message-Id: <20190323211612.860-1-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190323_141639_523521_669DCB36 X-CRM114-Status: GOOD ( 12.40 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, ryder.lee@mediatek.com, linux-watchdog@vger.kernel.org, jjian.zhou@mediatek.com, wenzhen.yu@mediatek.com, stephane.leprovost@mediatek.com, sean.wang@kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, yong.mao@mediatek.com, linux-spi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, hsin-hsiung.wang@mediatek.com, linux-serial@vger.kernel.org, Fabien Parent , linux-clk@vger.kernel.org, chaotian.jing@mediatek.com, linux-i2c@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The pumpkin board is designed by Gossamer Engineering and is using a MediaTek SoC. The board currently comes in two available version: MT8516 SoC and MT8167 SoC. The board provides the following IOs: eMMC, NAND, SD card, USB 2 type-A, Ethernet, Wi-Fi, Bluetooth, Audio (jack out, 2 PDM port, 1 analog in), serial over USB, and an expansion header. This patch series adds the basic board support to be able to boot on the eMMC of the MT8516 based Pumpkin board. The board is using a MT6392 PMIC. Fabien Parent (24): dt-bindings: regulator: add support for MT6392 regulator: mt6392: Add support for MT6392 regulator dt-bindings: pwrap: mediatek: add pwrap support for MT8516 soc: mediatek: pwrap: add missing check on rstc soc: mediatek: pwrap: add support for MT8516 pwrap mfd: mt6397: Add support for MT6397 pmic arm64: dts: mt6392: Add PMIC mt6392 dtsi dt-bindings: mmc: mtk-sd: add mtk-sd support for MT8516 mmc: mtk-sd: check for valid optional memory resource mmc: mtk-sd: add support for MT8516 dt-bindings: mediatek: topckgen: add support for MT8516 dt-bindings: mediatek: infracfg: add support for MT8516 dt-bindings: mediatek: apmixedsys: add support for MT8516 clk: mediatek: add clock driver for MT8516 dt-bindings: pinctrl: pinctrl-mt65xx: add support for MT8516 pinctrl: mediatek: Add MT8516 Pinctrl driver dt-bindings: wdog: mtk-wdt: add support for MT851 dt-bindings: timer: mtk-timer: add support for MT8516 dt-bindings: spi: spi-mt65xx: add support for MT8516 dt-bindings: serial: mtk-uart: add support for MT8516 dt-bindings: irq: mtk,sysirq: add support for MT8516 dt-bindings: i2c: i2c-mtk: add support for MT8516 arm64: dts: mediatek: add dtsi for MT8516 arm64: dts: mediatek: add pumpkin board dts .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../arm/mediatek/mediatek,infracfg.txt | 1 + .../arm/mediatek/mediatek,topckgen.txt | 1 + .../devicetree/bindings/i2c/i2c-mtk.txt | 1 + .../interrupt-controller/mediatek,sysirq.txt | 3 +- .../devicetree/bindings/mmc/mtk-sd.txt | 1 + .../bindings/pinctrl/pinctrl-mt65xx.txt | 1 + .../bindings/regulator/mt6392-regulator.txt | 220 +++ .../devicetree/bindings/serial/mtk-uart.txt | 1 + .../bindings/soc/mediatek/pwrap.txt | 1 + .../devicetree/bindings/spi/spi-mt65xx.txt | 1 + .../bindings/timer/mediatek,mtk-timer.txt | 1 + .../devicetree/bindings/watchdog/mtk-wdt.txt | 1 + arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6392.dtsi | 208 +++ arch/arm64/boot/dts/mediatek/mt8516-pinfunc.h | 663 +++++++++ .../boot/dts/mediatek/mt8516-pumpkin.dts | 19 + arch/arm64/boot/dts/mediatek/mt8516.dtsi | 409 ++++++ .../boot/dts/mediatek/pumpkin-common.dtsi | 210 +++ .../dts/mediatek/pumpkin-emmc-common.dtsi | 75 ++ drivers/clk/mediatek/Kconfig | 9 + drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 815 ++++++++++++ drivers/mfd/mt6397-core.c | 96 ++ drivers/mmc/host/mtk-sd.c | 19 +- drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8516.c | 384 ++++++ drivers/pinctrl/mediatek/pinctrl-mtk-mt8516.h | 1182 +++++++++++++++++ drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6392-regulator.c | 490 +++++++ drivers/soc/mediatek/mtk-pmic-wrap.c | 109 +- include/dt-bindings/clock/mt8516-clk.h | 211 +++ include/linux/mfd/mt6392/core.h | 42 + include/linux/mfd/mt6392/registers.h | 487 +++++++ include/linux/regulator/mt6392-regulator.h | 40 + 37 files changed, 5717 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mt6392-regulator.txt create mode 100644 arch/arm64/boot/dts/mediatek/mt6392.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/mt8516-pinfunc.h create mode 100644 arch/arm64/boot/dts/mediatek/mt8516-pumpkin.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8516.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi create mode 100644 arch/arm64/boot/dts/mediatek/pumpkin-emmc-common.dtsi create mode 100644 drivers/clk/mediatek/clk-mt8516.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8516.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8516.h create mode 100644 drivers/regulator/mt6392-regulator.c create mode 100644 include/dt-bindings/clock/mt8516-clk.h create mode 100644 include/linux/mfd/mt6392/core.h create mode 100644 include/linux/mfd/mt6392/registers.h create mode 100644 include/linux/regulator/mt6392-regulator.h