Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp763519pxr; Mon, 11 Apr 2022 06:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0x12wZYPWbr56eOSzf41V3f42QfzO4Dg4uybjs26bGt6cHTcJ+aB4zLT7VgFxTgGKuHZJ X-Received: by 2002:a17:906:5fc6:b0:6e8:86bd:64ab with SMTP id k6-20020a1709065fc600b006e886bd64abmr6014243ejv.538.1649684529017; Mon, 11 Apr 2022 06:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649684529; cv=none; d=google.com; s=arc-20160816; b=nsveJzApW6ZwaQKPW653CH7742g/Ig+vE3vh0RLmYXEgTDh5KqILlzrsj1GHIkeHDI /1rpDFOV3Xia4ei3NEJtQQLsMkQrLm6y6gKPUkxcT8pDXZOKqxkeJ+51nXT4HrWUKjcz Y3jfF1b7L4lvE0Z8DA2bwZTp9yyR78Kuk75kR0GVuxxAfWby0pesON+hL1ZOIpVFhub6 Kw4v6mnQ9vt4vztYUejgCFYfqpCKOqkIru+6AzNU3GiacibbT+1eWKG6kzSHUytHZG6e CEaf4uB7kMRAJ+E1+48RTZdV6sD9i2D4VLnx1KaQYQp31kpV9yzNp4BA3ktjAfdcOcJc gxGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OHIHH7LBjO7n3w0TkyTvZ+CHhZPHMYRUZ96K/VbT0E0=; b=LWCglHnliReKqXbS+RT7un0f0EHTddOa0kHPIRTmdcXxWBu6MmiMlBE9sup57EbHBv rOCI7nc80zYS3k/FCjZawNkZskjmLW21+U75pGnFvTR5SJjk/GaZMleGNclpcqn2+zvp dTgtIcBZ3r2UU5+5luQN6wW1bxfbAgZWUERKKne0Xbp1b7qEFnU20/5zu7y1vXRoGonH ZgN7cO52tjOKJd4t31ngp7rtEvTitzz7W0swwN4mEitBRmCvLuWFqhjN2qyX7MXX3aT+ ucQKCstIb9AmyskrO6CG4cMXSx49pJj7z6iMMt2Ze/cpkPl11YnlGP9iUYYmR1o/MJby AROw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="MMMg/MMY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a17090679c200b006e881149e83si3603853ejo.629.2022.04.11.06.41.43; Mon, 11 Apr 2022 06:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="MMMg/MMY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237465AbiDHPPM (ORCPT + 99 others); Fri, 8 Apr 2022 11:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237437AbiDHPOx (ORCPT ); Fri, 8 Apr 2022 11:14:53 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7601510242B; Fri, 8 Apr 2022 08:12:47 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id 75so2197473qkk.8; Fri, 08 Apr 2022 08:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OHIHH7LBjO7n3w0TkyTvZ+CHhZPHMYRUZ96K/VbT0E0=; b=MMMg/MMY5cbKMYBNeQ+Fkz+rHwKfKIaAdKf+u/3iJedRJdm+2+1Y2/eIatpIU5jSpO yFY33ZFWVtvkFiIHZbCtBhakZXh9JVNEwcBWEJ9R/MUrqgKe8HMMcQHfoFPhoMzrcF5W wSPCdZ0Ia95qDsVnWzNn1nWZ+wfI5iCZbOMIRag/vacyytKiioYxsmodBfdMXfpF85aL N2RiwEVwdFjQxUn/q8R8ToAt4Uet4AfobcdWwx0qEVdjrm1sAeXFg/gLFE1K/oh71MNq MyQtne9Bw8jrJxkfCcF8SkUwpWLQdnsvhK/ZA9FWh9BMcRPta1P22DrV6yMG5TufN5MZ c3vA== 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=OHIHH7LBjO7n3w0TkyTvZ+CHhZPHMYRUZ96K/VbT0E0=; b=UzE1nDmCPf0pTz7xkm+hPj9pnW4ZeAzW9kWeyMFPFbwDGtNmTY7+1oHJBoTEOxuqdx nuntti5gb3ZeXVQu2z0FL6hNaGJiDYobejGG+C2sGrdfyAdceBRQgzW+v4jn7mlRsgun 6kl/o8kiW2cD9SGpI9jE+v7yFkxxR83cf9PLcodh9cNd4iyMoHGx/hx0YyYTk5viz35s kkUnYxiub+fqIDK1mHUzC9fvt5e0U1bt7p3YAbuPFnGThv9zdgnOFspE6QenDGNmbJ+S maiouIMoLBoo4TTsb8SPGRpixH4bitxwVxQbneuchozEcpjMUtc2NRJZK6coJ7G3v6K+ bn4Q== X-Gm-Message-State: AOAM532T1Szy6A90AhW9Ewo9NIb11Hyqp5FQrkj63ZwftlScEoHUC9oP weDlnGCfyv4h9vHA5uf3qgwig7j9fTTiqb6a X-Received: by 2002:a37:67c5:0:b0:69b:ed21:e345 with SMTP id b188-20020a3767c5000000b0069bed21e345mr1074947qkc.732.1649430766325; Fri, 08 Apr 2022 08:12:46 -0700 (PDT) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id 191-20020a3707c8000000b0069a13545fcfsm2266052qkh.123.2022.04.08.08.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 08:12:46 -0700 (PDT) From: Peter Geis To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, Michael Riesch , Sascha Hauer , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 5/5] arm64: dts: rockchip: add usb3 support to rk3568-evb1-v10 Date: Fri, 8 Apr 2022 11:12:37 -0400 Message-Id: <20220408151237.3165046-6-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220408151237.3165046-1-pgwipeout@gmail.com> References: <20220408151237.3165046-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Riesch The Rockchip RK3568 EVB1 features one USB 3.0 device-only (USB 2.0 OTG) port and one USB 3.0 host-only port. Activate the USB 3.0 controller nodes and phy nodes in the device tree. Signed-off-by: Sascha Hauer Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index a794a0ea5c70..622be8be9813 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -103,6 +103,18 @@ vcc5v0_usb_host: vcc5v0-usb-host { vin-supply = <&vcc5v0_usb>; }; + vcc5v0_usb_otg: vcc5v0-usb-otg { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb_otg_en>; + regulator-name = "vcc5v0_usb_otg"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_usb>; + }; + vcc3v3_lcd0_n: vcc3v3-lcd0-n { compatible = "regulator-fixed"; regulator-name = "vcc3v3_lcd0_n"; @@ -136,6 +148,14 @@ regulator-state-mem { }; }; +&combphy0 { + status = "okay"; +}; + +&combphy1 { + status = "okay"; +}; + &cpu0 { cpu-supply = <&vdd_cpu>; }; @@ -507,6 +527,9 @@ usb { vcc5v0_usb_host_en: vcc5v0_usb_host_en { rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; }; + vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; }; @@ -568,6 +591,11 @@ &usb_host0_ohci { status = "okay"; }; +&usb_host0_xhci { + extcon = <&usb2phy0>; + status = "okay"; +}; + &usb_host1_ehci { status = "okay"; }; @@ -576,6 +604,24 @@ &usb_host1_ohci { status = "okay"; }; +&usb_host1_xhci { + status = "okay"; +}; + +&usb2phy0 { + status = "okay"; +}; + +&usb2phy0_host { + phy-supply = <&vcc5v0_usb_host>; + status = "okay"; +}; + +&usb2phy0_otg { + vbus-supply = <&vcc5v0_usb_otg>; + status = "okay"; +}; + &usb2phy1 { status = "okay"; }; -- 2.25.1