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"; +};