From patchwork Sun Mar 24 15:46:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1063239 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="pWB+H550"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44S1wt3Sn6z9sST for ; Mon, 25 Mar 2019 02:47:08 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DB5F3C21E75; Sun, 24 Mar 2019 15:47:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 24B6DC21DB6; Sun, 24 Mar 2019 15:46:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 190CCC21D83; Sun, 24 Mar 2019 15:46:56 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id CB981C21BE5 for ; Sun, 24 Mar 2019 15:46:55 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id v14so6532191wmf.2 for ; Sun, 24 Mar 2019 08:46:55 -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=QdloK1/Iu+Vlk4xQv4lasOIswcgB8f4cDKtg5RN+c84=; b=pWB+H550dG7rLKucVomK6gjdCjlC1SyUrmwyLjhBt5X8e0DAbNFt0FgX4T/N+/LRtf Ew5Cp+CeqQKkimpFJjpfQQQH0LIehNaijOZ5cHWmq2Fpf90blid+3tXMUXnp0X0T1Pq6 cJIlece3wlBGJQYWIq0hXoCw1TFtDtwzWh4CY3i4gYTWoFm0Q9/jvrgld/pkTjCwRC54 zWlLYCtfZfcfOHY9YWmZ0AjIV4nlszvOWpOGcI67lEN54GW9HXGUOFAlmrbiRVo70C2G cq9kKzUWRJuzAgCibPRUc61TLoPMvp9LvS4Jsnjwc2HbAOHKb7R11ssoXRQcNUzac2mL j04w== 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=QdloK1/Iu+Vlk4xQv4lasOIswcgB8f4cDKtg5RN+c84=; b=TJ4zQ1hD0MiYTjttzJbYU7HpwVb5F2AGUmQ+YM45eojmIVVbzPnID54SX5WPlyVdly Idz8IfR7xUrlPLSAKdPLAflpOcAD4nPxKrI3dkXzfz+HUja17imzWJ+DQnY2rYjJ2QlP UCwj/NL9IS+PRPG4cWe3sDuv0/BLi/GLp43ldPUuK2eNMilGFKCpZlr6xoy33YRvO8VP zMbWMPuyIXdbhKad0g+AlbcXojjuEEAqtyNwxf/DJ/3XO8zu8q5LFTaZw/wa55TNFJIw x+zAZAuS5LR7ufMPro3z59EQngv+R4J+bk/fSx67wY7lFKzLJ285d4qDfTKccjWBc56e otEg== X-Gm-Message-State: APjAAAWmbGksVi/Go+mKwt7Afd+3bXdzsLcFJAXYi2E4pBBso9xnxAk5 mkg2qGD1+pxpdHGiupULugWAWDApRn0ap5u9 X-Google-Smtp-Source: APXvYqz92XUb7eLgIrDItGKTTNd0ZIiORY43xCRowv5PiYY12dUf+7k/Fycks/UAU0m2ZEOwVAs55w== X-Received: by 2002:a1c:c68e:: with SMTP id w136mr2807554wmf.111.1553442414996; Sun, 24 Mar 2019 08:46:54 -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 k11sm28917683wmk.45.2019.03.24.08.46.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 08:46:54 -0700 (PDT) From: Fabien Parent To: u-boot@lists.denx.de Date: Sun, 24 Mar 2019 16:46:31 +0100 Message-Id: <20190324154638.29800-1-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: trini@konsulko.com, ryder.lee@mediatek.com, stephane.leprovost@mediatek.com, GSS_MTK_Uboot_upstream@mediatek.com Subject: [U-Boot] [PATCH v3 0/7] Add support for MT8516 SoC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch series adds basic boot support on eMMC for the MediaTek MT8516 SoC based boards. This series adds the clock, pinctrl drivers and the SoC initialization code. Fabien Parent (7): mmc: mtk-sd: add source_cg clock support mmc: mtk-sd: add support for MT8516 mmc: mtk-sd: fix configuration option check clk: mediatek: add support for SETCLR_INV and NO_SETCLR flags clk: mediatek: add driver for MT8516 pinctrl: add driver for MT8516 ARM: MediaTek: Add support for MT8516 SoC arch/arm/dts/mt8516-u-boot.dtsi | 25 + arch/arm/dts/mt8516.dtsi | 136 +++++ arch/arm/mach-mediatek/Kconfig | 10 + arch/arm/mach-mediatek/Makefile | 1 + arch/arm/mach-mediatek/mt8516/Makefile | 3 + arch/arm/mach-mediatek/mt8516/init.c | 120 ++++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 701 ++++++++++++++++++++++ drivers/clk/mediatek/clk-mtk.c | 12 + drivers/mmc/mtk-sd.c | 23 +- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8516.c | 391 ++++++++++++ include/dt-bindings/clock/mt8516-clk.h | 230 +++++++ 14 files changed, 1654 insertions(+), 4 deletions(-) create mode 100644 arch/arm/dts/mt8516-u-boot.dtsi create mode 100644 arch/arm/dts/mt8516.dtsi create mode 100644 arch/arm/mach-mediatek/mt8516/Makefile create mode 100644 arch/arm/mach-mediatek/mt8516/init.c create mode 100644 drivers/clk/mediatek/clk-mt8516.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8516.c create mode 100644 include/dt-bindings/clock/mt8516-clk.h