From patchwork Fri Apr 15 15:00:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12814994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 264E9C433EF for ; Fri, 15 Apr 2022 15:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Sbo8H3OnbQpAPG64EI8b+b3sYfobiNe2SUMouUI2r1Y=; b=Mor4Le6D7GWx4w HqpvzWoey8jPkztaKLJCnikk8V3YrEFtG3tMyBGUyUkrrQahEYdQ7INqrLjjp1NXKd8MCCzy7eyDr Oshp+dW/wJbQUuhVRaq7KppWa4XqP4K6+tAfHO5USWn1Uo8QdTh8Lh9awkWuqn/Fg6ZzMMEo8gNLv tuBzCnrs04menEz1nqr6AJYhsSjQfNPvJCEUko0CDGL6PNN4toDxXKf9mp1m2g1HsxULpeniN4xmJ LEu0fJqUE8aoPJbyqSu4KPGXjJ1YeVQZb4Wbec0DKflYzCPOPcF2YTU31F5//zCEdZNSBipIpSRTe zz4t4lu9gpJ+y45/pr2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNRB-00AQov-Dn; Fri, 15 Apr 2022 15:00:41 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNR6-00AQnO-C8 for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 15:00:37 +0000 Received: by mail-wm1-x336.google.com with SMTP id v64-20020a1cac43000000b0038cfd1b3a6dso7883390wme.5 for ; Fri, 15 Apr 2022 08:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pOFJlUG0A7QE7n1DqwtNq6lGe7UbdV1x9FZG4NLdjq0=; b=C3Rd6fa+TyiCPz2nh952O06n04xSU85OcT8gdCDnJl3vrQtyobdCztxYFW/ki5CrUz OPnO01Xm5LnfP+xIwxnZKXDCmfBQbxE1vgVvvQjqLnLgeCg+tCHgHe4ujvygpH8kN18y tbghWMAdRlWWMwbX45jLKzDkdQc32hIVagPbvN2H3JhElX7Ojkn1o0GwIhr6A17HTXiX 5pIsV7KCoIKYBWWE7Tw2cPIbRcaeHoVadIScJoweOTYsprFq8AjD3AUfMzYtYcCFXhV2 l8Rw/ti9oLq6wiAv7eUIs6042BmH8E5ToM3d3ZvJNcgAieYiaq66ziFxzqMJAHU+NYZS rI4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pOFJlUG0A7QE7n1DqwtNq6lGe7UbdV1x9FZG4NLdjq0=; b=HTmDtw3S6xuHHOPvobZZJunV/o92PasCNCluiGwUvVr6a9ZJJrZ7TaLWSOa4Zz+KDB 8O2fDb9cDJDQGVcNfmyeuBF0oeAEcV34rOBhAQNazdX82Z/QgZ0ecnzxaC2oIZXRNcJP k5JiSJC9GAK8QaLa/6UxNHsB4NVPTtH5gCflFEphpcgFQIoKLmIVIPaP+0bYIr1Q4bLU Yx7yOIQ0lB4RA11pUtdKV8Dlv4iQ6TpVsiBuHQBOZ3xX4LpZaV6yUTteZvMztpYmSzDV oXT4Z0n9YnU+f9lNMFDEU2bg6BrGJN2Dxd2edvq0WMRCElc96/Pw9jql1NBdbUzLA3za 8SBg== X-Gm-Message-State: AOAM532qV9uEqfqQN2X9np56tH+zgUNP4UT6UyZbBPpPf/3ANrYKzpuJ nu1YZbg/uyJzOYObfD9UqGsFmA== X-Google-Smtp-Source: ABdhPJyKsCTiFSBRJqjvHjzUp5YXFv3nqiDeVyn0nKnk7EurInzgFuGGF0dlnJQuQwacVAgmXT0Aag== X-Received: by 2002:a7b:ce02:0:b0:381:2007:f75c with SMTP id m2-20020a7bce02000000b003812007f75cmr3741111wmc.6.1650034833905; Fri, 15 Apr 2022 08:00:33 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id n2-20020a5d6b82000000b0020a7e34ef20sm1579664wrx.47.2022.04.15.08.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 08:00:33 -0700 (PDT) From: Fabien Parent To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang Cc: Fabien Parent , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 1/4] dt-bindings: arm64: dts: mediatek: Add mt8195-demo board Date: Fri, 15 Apr 2022 17:00:00 +0200 Message-Id: <20220415150003.1793063-2-fparent@baylibre.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220415150003.1793063-1-fparent@baylibre.com> References: <20220415150003.1793063-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_080036_463736_B7719818 X-CRM114-Status: GOOD ( 11.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add bindings for the MediaTek mt8195-demo board. Signed-off-by: Fabien Parent Acked-by: Krzysztof Kozlowski --- v3: no changes v2: * move compatible next to the MT8195-EVB compatible Documentation/devicetree/bindings/arm/mediatek.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index ab0593c77321..024a45300da5 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -133,6 +133,7 @@ properties: - const: mediatek,mt8183 - items: - enum: + - mediatek,mt8195-demo - mediatek,mt8195-evb - const: mediatek,mt8195 - description: Google Burnet (HP Chromebook x360 11MK G3 EE) From patchwork Fri Apr 15 15:00:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12814995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 430C7C433EF for ; Fri, 15 Apr 2022 15:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jRLTU8KaB+tmf2xXc6qE0NTBvFsZkaq3SsPHtv17AVw=; b=t4w1lmealjY81h 0y0pNh+QFMqhAkDVDaaADPZq62U1QFSKeKADuEFBSMGGWtmHnDvm2wDvkiP1jLZ+1UIpqdi3EspO0 kkEeOP2DgeZIeBboIIxhrf8wPWZCs5E5tK3JMcrHT1DqU2uGNGpSwRa+6cMGXwMgog+obpnllFKJy h3TEv6hYnOsRxpwbXqG0Giq9R45xi6nUn8qeNcW6VKvUaELnyaHh1yYptlI9UrR15Eevt1mHrKi8c VLT42bBWMaFBoZDyc3ib7xeWN91fHdf+xIaMQxI7kFGKoLhUetyBzb6tfWCUa4rfbtKwx324iALuH 6CQY8eSizhcOnbtQ369g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNRc-00AQxj-Jz; Fri, 15 Apr 2022 15:01:08 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNRY-00AQw4-A1 for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 15:01:06 +0000 Received: by mail-wr1-x431.google.com with SMTP id r13so10931184wrr.9 for ; Fri, 15 Apr 2022 08:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WvgoMsFeJbLKfIyFYwF/hSsw2Ot+YCW2u9O8U5My99M=; b=oCABQfTIFtAdRLF4uQqOyGM+SaI8gF9tPvHvk+s9hqCsWNyknC6bcjlrJl+ejjM3HV EJn6UuKFo2C6Yoe4T3T2pR3g+Kr377Q+x/1IUfbByf86Gu14BM80MTQdaNmy4sDsccbs PYDk/DHv2GouXMVrYRmSx6a+YuDSodFmbErfFqjSzdwiswTXnF/5dvOiLuR6ao46gvdI f6F+DAmHyar0xtIUxHxnAVusfknw+ix9+yiiIJwCTsM/Vwbj9BYdDr4DNYWLDiWiLRzZ 6telRdQfWiDpY/MYKw1papNIwd2BdVg1dTviYTbv79buZwHGyH/nUiJsVGvhQ0Jd2z6b yUPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WvgoMsFeJbLKfIyFYwF/hSsw2Ot+YCW2u9O8U5My99M=; b=tsBJHzo4FgDJo+/JF22F+A2kFZ2GDBM61CPWJkiChfTweaRMg+ZCCRgiuxftSqPRXC +Cetk4Elmpw5yDsY7L9pdS460/h8A041SrxUJcjSji/3wwIoFRriOzko/VGh7A7SjWZ8 xjqob71gbIA820SZ1i2t4dQxB89b/VfhA0qz41uOlgha/isnjri/6nzkFukN+1L6ILNP 3sDVG+br5W5ECAVFDR5zbmS2EZ0ppsGhLUAOP5cBn/a01Qj3d896AcI+mmNsWGQtkivo 3P9PYJTNMwbaaw6X6JWNmU9ZPtWAuLXFgw8k7t0FJC8zK9NP73PAWxj1ZVX8JEh+NE0c 6gQA== X-Gm-Message-State: AOAM5331L76Zj1nJ8dQ0UccUtYtUDn9bKJZ5qog+63bUlc69HsVVzAY7 4N2wS7gd9QV3dBsuakCQVpax2A== X-Google-Smtp-Source: ABdhPJybsESsODYC2KDj++u7jHKovR4dN9IMLiM818j15zfCInvGAJXx5//V2bd7bKo2cGeao79hFQ== X-Received: by 2002:a05:6000:156f:b0:205:c541:3e8e with SMTP id 15-20020a056000156f00b00205c5413e8emr5658239wrz.581.1650034862499; Fri, 15 Apr 2022 08:01:02 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id n2-20020a5d6b82000000b0020a7e34ef20sm1579664wrx.47.2022.04.15.08.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 08:01:01 -0700 (PDT) From: Fabien Parent To: Matthias Brugger , Rob Herring , Krzysztof Kozlowski Cc: Fabien Parent , Mattijs Korpershoek , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] arm64: dts: mediatek: Add device-tree for MT8195 Demo board Date: Fri, 15 Apr 2022 17:00:01 +0200 Message-Id: <20220415150003.1793063-3-fparent@baylibre.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220415150003.1793063-1-fparent@baylibre.com> References: <20220415150003.1793063-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_080104_394548_D5381DE8 X-CRM114-Status: GOOD ( 19.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add basic device-tree for the MT8195 Demo board. The Demo board is made by MediaTek and has a MT8195 SoC, associated with the MT6359 and MT6360 PMICs, and the MT7921 connectivity chip. The IOs available on that board are: * 1 USB Type-C connector with DP aux mode support * 1 USB Type-A connector * 1 full size HDMI RX and 1 full size HDMI TX connector * 1 uSD slot * 40 pins header * SPI interface header * 1 M.2 slot * 1 audio jack * 1 micro-USB port for serial debug * 2 connectors for DSI displays * 3 connectors for CSI cameras * 1 connector for a eDP panel * 1 MMC storage This commit adds basic support in order to be able to boot. Signed-off-by: Fabien Parent Tested-by: Mattijs Korpershoek --- v3: * use plural for all pinctrl subnode names * reorder all nodes in alphabetical order * Remove invalid property for i2c6 pinctrl * use interrupts-extended instead of interrupts/interrupt-parent * rebase on top [v14,2/2] arm64: dts: Add mediatek SoC mt8195 and evaluation board -> https://patchwork.kernel.org/project/linux-mediatek/patch/20220411022724.11005-3-tinghan.shen@mediatek.com/ v2: * remove empty i2c nodes * remove empty spi node * remove unused pcie pinctrls * fixup node nodes to not contains underscore * rename mt6360 pmic node * move mmc1 node right after mmc0 node * use generic node name for gpio-keys * uniformize pinctrl node names arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 445 +++++++++++++++++++ 2 files changed, 446 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8195-demo.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 5da29e7223e4..c7d4636a2cb7 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -38,5 +38,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts new file mode 100644 index 000000000000..def3fc26cb99 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts @@ -0,0 +1,445 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2022 BayLibre, SAS. + * Author: Fabien Parent + */ +/dts-v1/; + +#include "mt8195.dtsi" +#include "mt6359.dtsi" + +#include +#include +#include +#include + +/ { + model = "MediaTek MT8195 demo board"; + compatible = "mediatek,mt8195-demo", "mediatek,mt8195"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:921600n8"; + }; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + input-name = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_pins>; + + key-0 { + gpios = <&pio 106 GPIO_ACTIVE_LOW>; + label = "volume_up"; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0 0x40000000 0 0x80000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ + bl31_secmon_reserved: secmon@54600000 { + no-map; + reg = <0 0x54600000 0x0 0x30000>; + }; + + /* 12 MiB reserved for OP-TEE (BL32) + * +-----------------------+ 0x43e0_0000 + * | SHMEM 2MiB | + * +-----------------------+ 0x43c0_0000 + * | | TA_RAM 8MiB | + * + TZDRAM +--------------+ 0x4340_0000 + * | | TEE_RAM 2MiB | + * +-----------------------+ 0x4320_0000 + */ + optee_reserved: optee@43200000 { + no-map; + reg = <0 0x43200000 0 0x00c00000>; + }; + }; +}; + +&i2c6 { + clock-frequency = <400000>; + pinctrl-0 = <&i2c6_pins>; + pinctrl-names = "default"; + status = "okay"; + + mt6360: pmic@34 { + compatible = "mediatek,mt6360"; + reg = <0x34>; + interrupt-controller; + interrupts-extended = <&pio 101 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "IRQB"; + + charger { + compatible = "mediatek,mt6360-chg"; + richtek,vinovp-microvolt = <14500000>; + + otg_vbus_regulator: usb-otg-vbus-regulator { + regulator-compatible = "usb-otg-vbus"; + regulator-name = "usb-otg-vbus"; + regulator-min-microvolt = <4425000>; + regulator-max-microvolt = <5825000>; + }; + }; + + regulator { + compatible = "mediatek,mt6360-regulator"; + LDO_VIN3-supply = <&mt6360_buck2>; + + mt6360_buck1: buck1 { + regulator-compatible = "BUCK1"; + regulator-name = "mt6360,buck1"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1300000>; + regulator-allowed-modes = ; + regulator-always-on; + }; + + mt6360_buck2: buck2 { + regulator-compatible = "BUCK2"; + regulator-name = "mt6360,buck2"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1300000>; + regulator-allowed-modes = ; + regulator-always-on; + }; + + mt6360_ldo1: ldo1 { + regulator-compatible = "LDO1"; + regulator-name = "mt6360,ldo1"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + + mt6360_ldo2: ldo2 { + regulator-compatible = "LDO2"; + regulator-name = "mt6360,ldo2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + + mt6360_ldo3: ldo3 { + regulator-compatible = "LDO3"; + regulator-name = "mt6360,ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + + mt6360_ldo5: ldo5 { + regulator-compatible = "LDO5"; + regulator-name = "mt6360,ldo5"; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + + mt6360_ldo6: ldo6 { + regulator-compatible = "LDO6"; + regulator-name = "mt6360,ldo6"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2100000>; + regulator-allowed-modes = ; + }; + + mt6360_ldo7: ldo7 { + regulator-compatible = "LDO7"; + regulator-name = "mt6360,ldo7"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2100000>; + regulator-allowed-modes = ; + regulator-always-on; + }; + }; + }; +}; + +&mmc0 { + status = "okay"; + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc0_default_pins>; + pinctrl-1 = <&mmc0_uhs_pins>; + bus-width = <8>; + max-frequency = <200000000>; + cap-mmc-highspeed; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + cap-mmc-hw-reset; + no-sdio; + no-sd; + hs400-ds-delay = <0x14c11>; + vmmc-supply = <&mt6359_vemc_1_ldo_reg>; + vqmmc-supply = <&mt6359_vufs_ldo_reg>; + non-removable; +}; + +&mmc1 { + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc1_default_pins>; + pinctrl-1 = <&mmc1_uhs_pins>; + cd-gpios = <&pio 129 GPIO_ACTIVE_LOW>; + bus-width = <4>; + max-frequency = <200000000>; + cap-sd-highspeed; + sd-uhs-sdr50; + sd-uhs-sdr104; + vmmc-supply = <&mt6360_ldo5>; + vqmmc-supply = <&mt6360_ldo3>; + status = "okay"; +}; + +&mt6359_vbbck_ldo_reg { + regulator-always-on; +}; + +&mt6359_vcore_buck_reg { + regulator-always-on; +}; + +&mt6359_vgpu11_buck_reg { + regulator-always-on; +}; + +&mt6359_vproc1_buck_reg { + regulator-always-on; +}; + +&mt6359_vproc2_buck_reg { + regulator-always-on; +}; + +&mt6359_vpu_buck_reg { + regulator-always-on; +}; + +&mt6359_vrf12_ldo_reg { + regulator-always-on; +}; + +&mt6359_vsram_md_ldo_reg { + regulator-always-on; +}; + +&mt6359_vsram_others_ldo_reg { + regulator-always-on; +}; + +&pio { + gpio_keys_pins: gpio-keys-pins { + pins { + pinmux = ; + input-enable; + }; + }; + + i2c6_pins: i2c6-pins { + pins { + pinmux = , + ; + bias-pull-up; + }; + }; + + mmc0_default_pins: mmc0-default-pins { + pins-clk { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + pins-cmd-dat { + pinmux = , + , + , + , + , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + + pins-rst { + pinmux = ; + drive-strength = ; + bias-pull-up = ; + }; + }; + + mmc0_uhs_pins: mmc0-uhs-pins { + pins-clk { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + pins-cmd-dat { + pinmux = , + , + , + , + , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + + pins-ds { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + pins-rst { + pinmux = ; + drive-strength = ; + bias-pull-up = ; + }; + }; + + mmc1_default_pins: mmc1-default-pins { + pins-clk { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + pins-cmd-dat { + pinmux = , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + + pins-insert { + pinmux = ; + bias-pull-up; + }; + }; + + mmc1_uhs_pins: mmc1-uhs-pins { + pins-clk { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + pins-cmd-dat { + pinmux = , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + }; + + uart0_pins: uart0-pins { + pins { + pinmux = , + ; + }; + }; + + uart1_pins: uart1-pins { + pins { + pinmux = , + ; + }; + }; +}; + + +&pmic { + interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; + status = "okay"; +}; + +&u3phy0 { + status = "okay"; +}; + +&u3phy1 { + status = "okay"; +}; + +&u3phy2 { + status = "okay"; +}; + +&u3phy3 { + status = "okay"; +}; + +&xhci0 { + vusb33-supply = <&mt6359_vusb_ldo_reg>; + vbus-supply = <&otg_vbus_regulator>; + status = "okay"; +}; + +&xhci1 { + vusb33-supply = <&mt6359_vusb_ldo_reg>; + status = "okay"; +}; + +&xhci2 { + vusb33-supply = <&mt6359_vusb_ldo_reg>; + status = "okay"; +}; + +&xhci3 { + vusb33-supply = <&mt6359_vusb_ldo_reg>; + status = "okay"; +}; From patchwork Fri Apr 15 15:00:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12814996 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA98FC433F5 for ; Fri, 15 Apr 2022 15:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=smlhZ49KKOlw7DZqNSIq8RCgjtUmkjk+60ikyR6O/KQ=; b=NqZEXPbpIQE7sH aI1cX/G0/UDkAI2EPtv60dncTpvY9hop62xpHp5n1ZNkqgRy3srOty7/87mqJ5qlKAdDpJaIGGscp 8WumpA+wDiRn5UGfi9n5W73e9J7hcDeKWhX0amOSOqzUQjw4V3cSlpBsPiDwdbkCpRIxYmCHuaVtE JouchaOCuTSsPXIggEAj78XDemRqGgbfksMFoHO1VEUGGfPh3h/d/BfGn7W19FGKvZDxZ15PzRY9I 8GWKoK35N+pkpSBIav0pKXsFWtSNdjGnhPZJBt01CeFPVtolK9yNM4NLZGu0FIQjI8KvX0JrWvSvp DiKhlUEOjwlhCeTzVSmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNRs-00AR5D-8b; Fri, 15 Apr 2022 15:01:24 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNRp-00AR3N-MV for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 15:01:23 +0000 Received: by mail-wr1-x42d.google.com with SMTP id x18so3114482wrc.0 for ; Fri, 15 Apr 2022 08:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PtPXEY81siOH4zQnv7yuS1B2bLj4CL7R4ay4pE9Q5sQ=; b=5ZS39VGnE9aChJzp3PjXpBvbY7slPEH4UX0Q4/yH+xs86UzzR/DI5CWB8IGEAFogwy 8AzJCVt+FOxiSfrJMyXSnAFNdZZWmb0FpBUK+zciCibEh9AgGZAUdFD7C05Q933mxA7K vy3bJhI/U63w1CL38Tb7KewlG9jiNyakMngXeC+NFJFV95F/752VWuXS6wBLFt+pxWO8 tDU3Qg0wm5dpetl+PXKW+FM/XHpnno12O89UvlSHITt4wO0OV5HawZ6jF8RXYejI5U6H TTUphecxu+gME6t3X3APk+oNyjgQDCFmTeSG+LwnbZxA2q/9JQxtG5E+te3dtl3AbHDp pCQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PtPXEY81siOH4zQnv7yuS1B2bLj4CL7R4ay4pE9Q5sQ=; b=3aTF9JXcbknhFvN0C7JKNXQRRXJZHMAdxBrO2T9RL5a8b1rahvKGVNVyVhf/o4JrKX JAfcWPnujFSsNeVYkOyc/dajj7CBFvVm2mISp7SJ2ihQANqgoiJDBBH9gojlz8sJfCL6 IWalzD1K82ezYyowNBbyZ1uyaBkAAMUNAe+bvghZ0mHwOdUmbRZrIyQ1yLurfOIllA3T +s3y2G3W3K6MFLRnBoU6KG80fIPCZjVQ0YOuyR83zzSnTgZr3hFDpV43yQj0NIZg578w CgqH4obI9sXgRaBs3q66xUps+g4Qql6mIUA9L4YZNPSIo8vU8YGHHR+COlTE3hx2W7tM 5Xzw== X-Gm-Message-State: AOAM530XteTNZyGI2gZBAXfXpOV1P7lINA0Oh07JfujVGFEktrd6zApt DQa5JSu6HM4Fg17eXF+S2btxFw== X-Google-Smtp-Source: ABdhPJyQTRwtKFcCd130f+3f+FTm/8pTE2X09oFkxD4aIi/qF2W1IB3icCw3Nyq5BGHo+22pRYlOXw== X-Received: by 2002:a5d:6449:0:b0:207:a1f4:b52 with SMTP id d9-20020a5d6449000000b00207a1f40b52mr5713618wrw.511.1650034880117; Fri, 15 Apr 2022 08:01:20 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id n2-20020a5d6b82000000b0020a7e34ef20sm1579664wrx.47.2022.04.15.08.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 08:01:19 -0700 (PDT) From: Fabien Parent To: Catalin Marinas , Will Deacon Cc: Fabien Parent , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] arm64: defconfig: enable MT6359 regulator driver Date: Fri, 15 Apr 2022 17:00:02 +0200 Message-Id: <20220415150003.1793063-4-fparent@baylibre.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220415150003.1793063-1-fparent@baylibre.com> References: <20220415150003.1793063-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_080121_748808_ACC21B7E X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PMIC regulators are essentials to be able to boot MediaTek MT8195 based boards to userspace. Like the other MediaTek PMIC regulator driver, let's enable as well the one for the MT6359 PMIC. Signed-off-by: Fabien Parent --- v3: no changes v2: no changes arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 50aa3d75ab4f..1e521f17cb39 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -644,6 +644,7 @@ CONFIG_REGULATOR_MAX77620=y CONFIG_REGULATOR_MAX8973=y CONFIG_REGULATOR_MP8859=y CONFIG_REGULATOR_MT6358=y +CONFIG_REGULATOR_MT6359=y CONFIG_REGULATOR_MT6397=y CONFIG_REGULATOR_PCA9450=y CONFIG_REGULATOR_PF8X00=y From patchwork Fri Apr 15 15:00:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12814997 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D09EC433EF for ; Fri, 15 Apr 2022 15:02:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9Jgt70y5zVsjABYg/ogDc34Ww9yoZD5RadRySL6VaDk=; b=xHdtP2OEa5x5NJ EzAUoXgC2AnOHepF80CV2diph+STSc9XVaAm6b3fOj+EwZT+gzLCvMr+Yeyg2tHnGl1aMBIq6D2WH 3X1CqH8y7jyCgwwQR12W7YGA+7sROOIdWTZhj4FDuq3vnrPKxWCBcYbUwGUgLCVo8Bv0+dWYIybPT zHGglzjQDO2a/iR3h/CORHv/Q6TXjLXU/EpEaCSTNOFcIGxP4h7cqtc4vEBHl0iMRyuCqfI8juL9V HPxF/XJZi1eY3iJLAbwaZVwXldNmv1sa6MO4E2JrEErtMCsGZp5D9A1ES33gfdutz6MsW50BZH2Pt 0l08zD9SmAwgnuwOcC8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNS5-00ARBw-Dr; Fri, 15 Apr 2022 15:01:37 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNRx-00AR7c-0I for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 15:01:30 +0000 Received: by mail-wm1-x329.google.com with SMTP id o20-20020a05600c511400b0038ebbbb2ad8so5206279wms.0 for ; Fri, 15 Apr 2022 08:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j0vnaKGxmv5JfYEKM5Bm4tqmu20hS3lgUguCbFOzoU8=; b=Aw60U+AxFr5ae1fP0IpaNSJWX8/bPiZtH5VfPVop0FZHr53WY4hZXtXAKPJSArfPH2 xgqe8qUM1DokOD7cJ31F4vPKVi/+TwWnS/gs2irgt5pOdTJ+cEvBg+EVJWYPF7KJkUHw hUKFd+cF+Dsmig+l+9a5MELvhWloS44Ll+O7A1NZ8jVHnnLWfWdffFNqfwwaMlEt6nmv No3laHS1zcgC3hzCKVfw2Tz2YPMr3Tht0yzi6+Z2TaX0VkkuCUrIBGFjNeKSHdaWBua4 L6Uk6pke8jRiD6YK5bKtH8snkjGDeGED5F0DSOhhGnJPBtnYSQu2WUAV/uaTPOHBOtxS 4j4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j0vnaKGxmv5JfYEKM5Bm4tqmu20hS3lgUguCbFOzoU8=; b=XgU6rXj9/pylPDIgcFeayDQX3EuhQfYCMpjCgAJYLQc14tixEIJn+Yt7GYSAqCm4pk eKHEpYvolRVrJsxJHyIXD0skUxW2Fkc2kISSsLtsqXEsltlen0Gm23LAY+KFdMpd4sSf 42/RkgmjqXNxKAEEEny3OPtKZFuwEbh9iv/JH3rnkWef30kKVd+oQu9cfqEk/8htwihu DLDDKbCT4N3z+F77sTAwvi6jbh4OdwJUsUjDOWREjBygLr2fO2C0e/BxEZVu0R5yeERj sCgPpzAmsyZ+Q/RD0WSGMmO3a6ihcW6pSBIV9TIkz+nYGzaN82AVBozFxKio7FLvdReF 1nzA== X-Gm-Message-State: AOAM533oQrpAp35FNzDpi8wnJVFyhHM+ZYcmUxcjRfGMLEel39TMyfdU +xEmBFd4hi7RetD73zWc/F+LQw== X-Google-Smtp-Source: ABdhPJyIDFZhXfMb5NDUQ+PJx1ThOwc70zKh0UxZUkNz38TTnVnb/WRpbNmjQV4mVGVHF6LWMRQkIQ== X-Received: by 2002:a1c:1981:0:b0:392:4dd9:b5ec with SMTP id 123-20020a1c1981000000b003924dd9b5ecmr591483wmz.149.1650034886920; Fri, 15 Apr 2022 08:01:26 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id n2-20020a5d6b82000000b0020a7e34ef20sm1579664wrx.47.2022.04.15.08.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 08:01:26 -0700 (PDT) From: Fabien Parent To: Catalin Marinas , Will Deacon Cc: Fabien Parent , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] arm64: defconfig: enable some mt6360 PMIC drivers Date: Fri, 15 Apr 2022 17:00:03 +0200 Message-Id: <20220415150003.1793063-5-fparent@baylibre.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220415150003.1793063-1-fparent@baylibre.com> References: <20220415150003.1793063-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_080129_085609_9FE8E5EB X-CRM114-Status: GOOD ( 11.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the charger and regulator driver for the MT6360 PMIC. These drivers are essential for some MediaTek MT8195 based boards to boot properly. Signed-off-by: Fabien Parent --- v3: no changes v2: no changes arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 1e521f17cb39..3848246f6727 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -565,6 +565,7 @@ CONFIG_SYSCON_REBOOT_MODE=y CONFIG_BATTERY_SBS=m CONFIG_BATTERY_BQ27XXX=y CONFIG_BATTERY_MAX17042=m +CONFIG_CHARGER_MT6360=m CONFIG_CHARGER_BQ25890=m CONFIG_CHARGER_BQ25980=m CONFIG_SENSORS_ARM_SCMI=y @@ -625,6 +626,7 @@ CONFIG_MFD_EXYNOS_LPASS=m CONFIG_MFD_HI6421_PMIC=y CONFIG_MFD_HI655X_PMIC=y CONFIG_MFD_MAX77620=y +CONFIG_MFD_MT6360=y CONFIG_MFD_MT6397=y CONFIG_MFD_SPMI_PMIC=y CONFIG_MFD_RK808=y @@ -645,6 +647,7 @@ CONFIG_REGULATOR_MAX8973=y CONFIG_REGULATOR_MP8859=y CONFIG_REGULATOR_MT6358=y CONFIG_REGULATOR_MT6359=y +CONFIG_REGULATOR_MT6360=y CONFIG_REGULATOR_MT6397=y CONFIG_REGULATOR_PCA9450=y CONFIG_REGULATOR_PF8X00=y