From patchwork Wed Nov 10 19:24:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12692192 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2B63C433EF for ; Wed, 10 Nov 2021 19:26:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8134F61159 for ; Wed, 10 Nov 2021 19:26:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8134F61159 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=VedLlNau5CnJI2UPp+LFuUWC1E9qU51tn69sl2msN9U=; b=F1HHYuRs6XPJSr zT/YGHlypV3d/praSePePIJDwqyFfJvR5ppq3PetVxoX7RYCf2U2vMF7RpLqdZNSLJXp7Fx2s5a5W U9dTMEY+8Wo1qGqmYANM7GGeFY8UvmYF0ahMKj/Lr+/KszFxLIy1PTPm8SVd/kzJqYqXCBSOX2IKa jFCbNWnVTRcoTA8zmjObPdkXYq6DO1rjkps3g+Nytj4U6eL1fj+LUjNiCPRghWAmnn58sPlytgIjS YWlAFQkdI6WVTr6bjcI0u1L6Dr1pEyGd9qnVeg8D4f66XAuoEtwl3RvBYJs7Z63wdTkfQSh4sZfDh Aakz94rdEP1vQCSYS23g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktD9-0068GF-8a; Wed, 10 Nov 2021 19:24:43 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktD2-0068Dx-Od for linux-arm-kernel@lists.infradead.org; Wed, 10 Nov 2021 19:24:38 +0000 Received: by mail-wr1-x434.google.com with SMTP id s13so5856701wrb.3 for ; Wed, 10 Nov 2021 11:24:35 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=ZBcNPte2JXqPPCbEyKj3qBnsYEms5FQgmkXXyIOHj4o=; b=g1uERBZq8p2ygU7G/w6WcKWaEF0vsLuDSAM24vOncFKQu6RUj7RcLgPl5GXCxE+9pX 4YpW4iLSPc96b7BKxII6r88zDn7HNPI9RjkhMn9T0sH6Oot09NPQb6fb4690M69mTiR/ +ZQZmvO+Rw6QQUGOx2QUwK2eVOCzFtN5ir7wY0KH+6bITt8fkx21LrgIcZgtUEiwn4C8 eBgIARzp/Vf3VvREVqCtloMZp/qVEf1Q+Q5jxIu4eSCikcUcVISJWI8bWnsMUgFZswLw EbCjKsIhWzabKpbpbEJCK9NoVSznd5ISCSt4jSw/1dtaDssSVaVFG4NjuDUu8T+PE4ZT o2tA== 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:mime-version :content-transfer-encoding; bh=ZBcNPte2JXqPPCbEyKj3qBnsYEms5FQgmkXXyIOHj4o=; b=4EhYs8oh345Frr+rnLduEnOD9lYnwzxAkKTaJQrA4IHFBVItHVTq6T3qVHa3hgDZGc btI2C4hAmP47xMjYruAP56b/9p6frHXdR9OlZGXvlQNKhcb5bR9gUeXTKnDAfKRh6tuw 3LO1QJcmwaFvun/BV7bewRY/6z3/WsInpzlkEIKA3V9vX/rZeHIlTOBmwkC001NH7EXF qwQ5PUyoi/jl9lp4OP5idSuVjYRR0kn2loZZBiSyABu3IbFECThmRP6BO6LUCOs6BnTf wTt8rdyqRb9E2MFR0Dx+v075uBbGH6qgG2eWaanQYKbWD6EHwuNk5zOA2GFfzLZA7SzC Cs4g== X-Gm-Message-State: AOAM531cIMs7jpFY7jvuov8J/9I7SUO02/P8/OSK6Od9UkW7JTia05zZ S6JlWy6mt8fUrDnfjxXE9WbCKg== X-Google-Smtp-Source: ABdhPJz2CFovYIbvWQjxyj3Y/wTT7TED3FY5M53+Mhy5pC+92jywXsPb6uDNVPidlkv4OHjR3R7s/g== X-Received: by 2002:adf:eece:: with SMTP id a14mr1689076wrp.333.1636572274488; Wed, 10 Nov 2021 11:24:34 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id d16sm6250113wmb.37.2021.11.10.11.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 11:24:34 -0800 (PST) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: Pi-Hsun Shih , Jitao Shi , Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: mt8183: add dpi node to mt8183 Date: Wed, 10 Nov 2021 20:24:15 +0100 Message-Id: <20211110192417.4177741-1-fparent@baylibre.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211110_112436_809972_5377DB6E X-CRM114-Status: GOOD ( 11.26 ) 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 From: Pi-Hsun Shih Add dpi node to mt8183. Signed-off-by: Jitao Shi Signed-off-by: Pi-Hsun Shih Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index ba4584faca5a..7c283c0b68b5 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1443,6 +1443,17 @@ dsi0: dsi@14014000 { phy-names = "dphy"; }; + dpi0: dpi@14015000 { + compatible = "mediatek,mt8183-dpi"; + reg = <0 0x14015000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; + clocks = <&mmsys CLK_MM_DPI_IF>, + <&mmsys CLK_MM_DPI_MM>, + <&apmixedsys CLK_APMIXED_TVDPLL>; + clock-names = "pixel", "engine", "pll"; + }; + mutex: mutex@14016000 { compatible = "mediatek,mt8183-disp-mutex"; reg = <0 0x14016000 0 0x1000>; From patchwork Wed Nov 10 19:24:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12692193 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75756C433F5 for ; Wed, 10 Nov 2021 19:26:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4514F6108B for ; Wed, 10 Nov 2021 19:26:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4514F6108B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=PzvMjg7Rmv2APXzV2Zj7nKuwtmcDhxc4I7cQEe5gxzg=; b=G1n6H8+7+zRQiN BlHjcHM3wvCcdSvxicx9nFt0fwTRjiOu7x4jSpi6aeO6xmoBr4gr2Hf4+/nV4RGDxzuQKv0jl2A7T tzzHW0diWPeLcZRLSGb4n+NY6GEK2bFbn9OTtoLG1atoHvTIyfkYJi27M5WJkrct8j3XQjlQi/z5K iv+W+FLtyaaBN49mRfivBJxNMFEdwKfGvBrCu+qoftb7M5LUggmauYWIqOOT/sDa4IFvJ2MFEc6Zo UAEJi8YUUvguionUX6Gb3nGKR8LeSkC8lcuZI23UCsgWFj51MwDBps1g+WHgBs1NfAf0xz3HIzK5T UlqVRaLPk54gFG1skVNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktDK-0068JX-Jo; Wed, 10 Nov 2021 19:24:54 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktD3-0068E3-Mc for linux-arm-kernel@lists.infradead.org; Wed, 10 Nov 2021 19:24:40 +0000 Received: by mail-wm1-x335.google.com with SMTP id o29so3167178wms.2 for ; Wed, 10 Nov 2021 11:24:36 -0800 (PST) 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=TkI4GyDCSIwmbXr9V/MQ9+7DcTXEuCd0g4gBgL+0EyA=; b=i7Z1Pn8QdFKfxUDCIMDU7Nl9er7l71NiK2V1C90wAjvXBpTR0hSMvTNt2R+6QFxiZc B9NzrWeTGyq9I1dGtU6DW9LmHuWZaQ8YqHkROyvYY5z6D9YUHiDs+bfg/nCilHhvZE+H 8v0G7m8bOqLOhSUx3RG/nR6sxnmclH1TjGzbxs158ez2Ig5k22E/oRoz1V4HsYBz+L65 B51Q0GyZ8VwUtJY3k9R4oHTgz/oVV3fjU5Ib1UeoQasvv4dO7KvguV77bIO6Kg8Rv5W9 ALMO+d9fLuS3+Z5ddKtCfzLjKSeiSyu7CXvW+9ZBdzkHLQBSNrJ3UCrEn230+xVjreqB qdUg== 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=TkI4GyDCSIwmbXr9V/MQ9+7DcTXEuCd0g4gBgL+0EyA=; b=VK3FL+yBb+Zu7cilE/rxWVCBs8mGThgH9GlYsFnyIqleMCg5Du8RwxGhlOVOv/ZCJ5 O6CzmxODgsZQOal9O+tvlV+uZaL/FfBL6JrBnV1JKdGpEeBSnra4Knp0fya09WYvv42d 8/gBx6mDYNLf1VVyh66E3rDn2IruGXawajociyz+D44LKTxTfYcqgBCJ4yw2DeVQc5dD 6b7Pvzy8J1oCZ+iGchlJ9JPT/OwOOhsOTXG3n6Huuu5dDSviEPSBvJp4EB4n90LyfQ3W 87yrDkXj/yD/22xevJbPrQGaKLByCwwxuq8vOpNEZcP5bvSnHB0wYWE+lfOgzl1y31dD BCGQ== X-Gm-Message-State: AOAM533WjMpceiqqQX9v7eYDKZ5m9k8whlsTFq1Qwxeld3Fa1cutu0dr 2bzhulKkYBtinFOfrDpS1JlXcg== X-Google-Smtp-Source: ABdhPJzRUmYbyJGZmJg6Yqk42aKpyaRMUXbxlNPTEK2WhaJfvzp/Rwxnr7av9EPW/dLsGsYFs6jjjQ== X-Received: by 2002:a1c:f219:: with SMTP id s25mr19188607wmc.31.1636572275780; Wed, 10 Nov 2021 11:24:35 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id d16sm6250113wmb.37.2021.11.10.11.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 11:24:35 -0800 (PST) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: mediatek: mt8183-pumpkin: add HDMI support Date: Wed, 10 Nov 2021 20:24:16 +0100 Message-Id: <20211110192417.4177741-2-fparent@baylibre.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211110192417.4177741-1-fparent@baylibre.com> References: <20211110192417.4177741-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211110_112437_744587_7B4D0F3F X-CRM114-Status: GOOD ( 12.81 ) 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 MT8183 Pumpkin board has a micro-HDMI connector. HDMI support is provided by an IT66121 DPI <-> HDMI bridge. This commit enables DPI and add the node for the IT66121 bridge. Signed-off-by: Fabien Parent --- .../boot/dts/mediatek/mt8183-pumpkin.dts | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index ee912825cfc6..d5a6628e9c5b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -62,6 +62,18 @@ ntc { pulldown-ohm = <0>; io-channels = <&auxadc 0>; }; + + connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "d"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_connector_out>; + }; + }; + }; }; &auxadc { @@ -120,6 +132,41 @@ &i2c6 { pinctrl-0 = <&i2c6_pins>; status = "okay"; clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + + it66121hdmitx: hdmitx@4c { + compatible = "ite,it66121"; + pinctrl-names = "default"; + pinctrl-0 = <&ite_pins>; + vcn33-supply = <&mt6358_vcn33_wifi_reg>; + vcn18-supply = <&mt6358_vcn18_reg>; + vrf12-supply = <&mt6358_vrf12_reg>; + reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>; + interrupt-parent = <&pio>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + reg = <0x4c>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + it66121_in: endpoint { + bus-width = <12>; + remote-endpoint = <&dpi_out>; + }; + }; + + port@1 { + reg = <1>; + hdmi_connector_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; }; &mmc0 { @@ -332,6 +379,61 @@ pins_clk { input-enable; }; }; + + ite_pins: ite-pins { + pins_rst { + pinmux = ; + output-high; + }; + }; + + dpi_pins_func: dpi-pins-func { + pins_dpi { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + + dpi_pins_idle: dpi-pins-idle { + pins_gpio { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; }; &mfg { @@ -381,3 +483,16 @@ &scp { &dsi0 { status = "disabled"; }; + +&dpi0 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dpi_pins_func>; + pinctrl-1 = <&dpi_pins_idle>; + status = "okay"; + + port { + dpi_out: endpoint { + remote-endpoint = <&it66121_in>; + }; + }; +}; From patchwork Wed Nov 10 19:24:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12692194 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 781E8C433F5 for ; Wed, 10 Nov 2021 19:26:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 36EDA61168 for ; Wed, 10 Nov 2021 19:26:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 36EDA61168 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=jfziDEuSJ4zg1S+AaF76fFaG1xExod1/Wm4IbHbJNE4=; b=D1So3HNg4igd9E vNLHp7yizqAcKxwa8ZLoA1ZKIoztaVZwbwK/aEvxFTKcgilwsaru+XdMqJmAc2JrkrL0+RlC/u7Nv qilA2fsdrIFWISu4XIZMGTcA0ltSfRtEDydVIjDqJ7/vqnty8k1WCZfO8q2BvvQlvoMsGmyW2kE74 t7avc61FrxsjKaJRJ7JWbSecRhdyOxZ5x2foJdPGeIkoImqK+ExxFLBhASmcQ6NoI9yGyIkP0Z90q yfjrhCjto6ADsEYRRSGMeigwTYLgJfQViCeggdpCLjnMATEFzdQY3ZmXxn45Bx3giQSuZ3Q9slklo hm676aTnmVvr3tfKxcEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktDV-0068ND-4E; Wed, 10 Nov 2021 19:25:05 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mktD6-0068EX-KQ for linux-arm-kernel@lists.infradead.org; Wed, 10 Nov 2021 19:24:41 +0000 Received: by mail-wm1-x32e.google.com with SMTP id v127so3141579wme.5 for ; Wed, 10 Nov 2021 11:24:38 -0800 (PST) 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=hGC5vbTP7eVhWvQa6obMxUPyW7fE6TkeuAmRY62poPc=; b=o8YgN3Yr2RJVNTOVw0QWOGogKTBQMT4+qFJOEYABx2bj6SGGv63pxe/SJ4WVcCC3jn S05I4wPHD8+z79WW8vHnLfVOVCRrvtfEbM0/n3C7vWEAhsPrY0b4qbqwJixF8XZ6zP5U t9iCkujPvC/hTFn2vw7e85oBE8a126iesSSEPM7b21YMhn2y7EXSS5A7k/Lm4H6EI3VQ D9NTMrB8kCHJgzWX/9+4BDtAepVPqgHEJBSpZGf6y6io+5o3D1ucoHi3oeUB8Ko8aXpy AMIRhMvdNEHXMpDoABTqi5nFy1ORDwR4ZjebDc2S0fEpdHIvzVLWIaQEBZb8sdP2GT1u eSEA== 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=hGC5vbTP7eVhWvQa6obMxUPyW7fE6TkeuAmRY62poPc=; b=mBBHnCZcyQlIvSB4h+nXU/salEjzULpHrE6233LIqcq3LaWdJcVOsxvsgEKiC9jE0Y l+Myt8HbZ1G3//hRLjlQQURyGbkyYyDjP4c6QtiKm9CYBjNC3oGWkntIw6bIbeUVaxVK HtN5gfsGy/m92yj5BHkDc46nlXF1lN6XE0gkN7GDyiKXlVb+VdGDabJD+D35kbKkEB6q qugpZPnwMUmfSb9CzcWjmG+09c5e0MX36tlZ6EJ1i6F+5BGfldROyGBXf1hJIHSvMGVR DSTYRyh+hVDqzwyX0BFyjz1WuUrJ2N7Tm78z2UlJo/L6IqdZfBsw7PgB+75JWLtJABeL YUWw== X-Gm-Message-State: AOAM532/eH0hlp8haCi759T8TX/gfqezMmkKSMFrUo6oni2Y7+Pi03pV VwGvkma9geleFTyhLT8Gkw0bew== X-Google-Smtp-Source: ABdhPJwaqqXQvPtpGCJMftdZKiPsBPV2gDWdi4b770EA4FIRU+mVpBnIMR/wI0wlnRlRhRDKVUbAUw== X-Received: by 2002:a1c:3546:: with SMTP id c67mr1721206wma.43.1636572277143; Wed, 10 Nov 2021 11:24:37 -0800 (PST) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id d16sm6250113wmb.37.2021.11.10.11.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 11:24:36 -0800 (PST) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: mediatek: mt8183-pumpkin: add USB host support Date: Wed, 10 Nov 2021 20:24:17 +0100 Message-Id: <20211110192417.4177741-3-fparent@baylibre.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211110192417.4177741-1-fparent@baylibre.com> References: <20211110192417.4177741-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211110_112440_698547_F0621EDB X-CRM114-Status: GOOD ( 11.34 ) 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 MT8183 Pumpkin board provides USB host support through 2 type-A ports. In addition the board provides Ethernet support with the LAN9512 IP connected on the USB bus. Signed-off-by: Fabien Parent --- .../boot/dts/mediatek/mt8183-pumpkin.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts index d5a6628e9c5b..541b382c0e81 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts @@ -434,6 +434,18 @@ pins_gpio { ; }; }; + + usb_pins: usb-pins { + pins_usb { + pinmux = ; + output-low; + }; + + pins_hub_rst { + pinmux = ; + output-low; + }; + }; }; &mfg { @@ -496,3 +508,17 @@ dpi_out: endpoint { }; }; }; + +&ssusb { + pinctrl-names = "default"; + pinctrl-0 = <&usb_pins>; + maximum-speed = "high-speed"; + dr_mode = "host"; + vusb33-supply = <&mt6358_vusb_reg>; + status = "okay"; +}; + +&usb_host { + vusb33-supply = <&mt6358_vusb_reg>; + status = "okay"; +};