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: 10866989 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 4F1FE1669 for ; Sat, 23 Mar 2019 21:16:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 247CE28537 for ; Sat, 23 Mar 2019 21:16:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17C4228613; Sat, 23 Mar 2019 21:16:47 +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=ham 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 2F20229426 for ; Sat, 23 Mar 2019 21:16:46 +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=pIkmJyxFpK20If018eXYPoPxRhhYevLIsn/kQdBmVLE=; b=WrVKA2Bfo3TBp4 riEaGSc9TuQfwy013cGrGHSk4ZkclFoJs3YMRE6nlMCoAQL+ewxcIjhYAmZdj31PsOmPD0dkmyf7q Pc7h+GtFaeGyEepSnPy2/u3ezrd13P/UAPJNKKPiuicmQOzITKFdCS4b8esKjpIl4qByE6s8vcxmX 0k8I0cObO3MteCDOMeahjEtAHH+2epLbelDSadpbLjw4e6BmuV/D4MlHnLpNhWmDhBTovpkU5P+Dk wJgstHOdptVVgOGabMyZHkOU5dB6g1c6j0ywPBIaRrk9IozHfBT5PhaFUaryGe9zvc5W2W/RlKRvy Mwi6Nmd5yiG85Nnk0yYQ==; 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 1h7o0S-0003iW-Ju; Sat, 23 Mar 2019 21:16:44 +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-0003gp-E1 for linux-arm-kernel@lists.infradead.org; Sat, 23 Mar 2019 21:16:41 +0000 Received: by mail-wr1-x443.google.com with SMTP id s15so5963705wra.12 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=S1NrpERmCMGRWZY7x30jGk7Q2uG1sfy4fQWL5jO4kW1qW5+LFuRu6bPv7G62taIqao 3w2/x2uoFhQ9jDdUGm72GpcQoJZbV+rz2zUc/CNxgIWvk4gGc/izozFWFJOaJhtBzSYQ o4LnEagIjJbUM0UHwDbfqGiECodh9oRRB8+pAlpdJSDv3ZFj7KCd8aKZ9zVorUq642XN TSIREKYuyO2z2jbv7mwQozLoK52g8OGKYNRleuvPcnN4Y1Q59nvN4844lguf1PajmfaR OBSrUhBzeaKVqaFkWZmXsId5QkLiYcyFgp2cZBrZ069qNvk4E4zKF9/LyABCEb2bmcTG Qflg== X-Gm-Message-State: APjAAAV1wcoA5YcXEGsVmhtFN2XjgPzMPmNTLFz4eHOq9yn0FF8j1NzP zviLQ9hKHUaKzuNkLmxZ3xsLgA== 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_525552_4CD86961 X-CRM114-Status: GOOD ( 13.97 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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