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: 10866991 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 AB7C91669 for ; Sat, 23 Mar 2019 21:16:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90B0F2943B for ; Sat, 23 Mar 2019 21:16:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 843C329582; Sat, 23 Mar 2019 21:16:51 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A75F286B0 for ; Sat, 23 Mar 2019 21:16:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbfCWVQk (ORCPT ); Sat, 23 Mar 2019 17:16:40 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34177 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfCWVQj (ORCPT ); Sat, 23 Mar 2019 17:16:39 -0400 Received: by mail-wr1-f68.google.com with SMTP id p10so6017815wrq.1 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=EagllVIeG4TOo5dMzPLgiWRsB1gKkWH585dyv0H3M7dEdDO7IIp7zFUZup1Nnx1CWl e9nKNSetI2+b6KVRcXYUmw1gYED/UqacDerPfZh66q3nNB5icpmdi9NSrHLHNvbjYCEw XlYGc2WLVKMts3zph0hb1GcCvL2A1tC6za9YNkXKp46T+7hrmjmuydwB4Jl/piQTwqm+ xTFMN51MiMJ64U4UU8wG2iEtV7/x96oqQ3cxe2O97068p/NIIvQVUWYQmO3Auzy0MnYU yNm3n89fyEXq3ViBbEnpqQvT0xgs6iswGoJG6dKemywlyd/1tu2/maOUMXynIj1HyjYv KCQA== X-Gm-Message-State: APjAAAWmQgJUaRXaMFxYqpj68op2FYjIZ0vg92nt4ngitdDzvJOlBVb1 2JBO+W6ubIUt1Jxr73kLpZ1W0A== 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 Cc: sean.wang@kernel.org, ryder.lee@mediatek.com, hsin-hsiung.wang@mediatek.com, wenzhen.yu@mediatek.com, chaotian.jing@mediatek.com, yong.mao@mediatek.com, jjian.zhou@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-clk@vger.kernel.org, stephane.leprovost@mediatek.com, Fabien Parent 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 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.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