Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2931603iob; Sun, 1 May 2022 01:43:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz99N5B8qjpCJv+V+cSqiS+JtDAWyHM8L1b7Gs3DbbmN05yBqUTuj2ohbCGbFW8PjVQqQ0k X-Received: by 2002:a17:90a:930b:b0:1d5:684b:8e13 with SMTP id p11-20020a17090a930b00b001d5684b8e13mr7515514pjo.153.1651394599154; Sun, 01 May 2022 01:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651394599; cv=none; d=google.com; s=arc-20160816; b=WpSeCzCkayvEBiBwLSoWPjvXD46UjkcbNplDWHV+O04EU84x2Gc+rd16i67ci6W0ii DqpG5Z7jd5cjLunUBNkeodqIIUZ6Z6g9fiujCccmJgmvpY1cYSr8s22KWgdQBKDtQggw /on0o4HF3uA4Uy7JzHTMIOa1+KvjFOEoH9dm5d2lcWzaXkElE3i7x1zTTEb9I4Wx4G6l cRctn5vwgufpEHi4RWZeORmM6ZFaTiHzISrE7RrHhZtdcaC5XvKWsOFOEjkOyPhWfg9/ Gu+297KUgYYqDIeIJADcXRwaiILcyjkqjEOV5ZL0GuH94Vy4YlgkpFnWuxD/eUEcCUyM A1KA== 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; bh=x5Yg3v/4pgbDNlMyL0gIdzR1nMV8FSAw7zhAQtbshx0=; b=lliWJBXK8HTW1Xege0ivwvPs7D0nGDyqt1tBF9fu90F4xt4I4r75N3Y9KBDDI/GgSw wkDFOVBnZBXjUsqIt3hv5SxIMDFeOGuX/2fhwufG8KK2EcCk7MofHUAVXagJJPyOcof+ 7wSkoEd/SUS345tw+jiqQPA837+QXPChbqPpQs+NtOKK9NJQIVw7urGDxQAEX7ZepaPX pLFJkYd7ifKEYzjBJ9rXL+BIzVDXEHEEpVVwEm/mZNTBXEa7bjnxRJmea9qpCkP/JGUl knep0fRKYvHMfJ6dFV8g1jsdHoxjlnu2sveekWTCqqBIhJhlpGx6sy7bMeokh0tc2+fT gCXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e132-20020a63698a000000b003816043f036si11159445pgc.555.2022.05.01.01.43.05; Sun, 01 May 2022 01:43:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbiD3OKw (ORCPT + 99 others); Sat, 30 Apr 2022 10:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235555AbiD3OKv (ORCPT ); Sat, 30 Apr 2022 10:10:51 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F4A866F83; Sat, 30 Apr 2022 07:07:28 -0700 (PDT) Received: from wf0416.dip.tu-dresden.de ([141.76.181.160] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nknks-0001ZV-O8; Sat, 30 Apr 2022 16:07:26 +0200 From: Heiko Stuebner To: Nicolas Frattaroli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Riesch Cc: Rob Herring , Krzysztof Kozlowski , Liang Chen , Peter Geis , Frank Wunderlich Subject: Re: [PATCH 1/3] arm64: dts: rockchip: enable otg/drd operation of usb_host0_xhci in rk356x Date: Sat, 30 Apr 2022 16:07:25 +0200 Message-ID: <3229434.5fSG56mABF@phil> In-Reply-To: References: <20220425133502.405512-1-michael.riesch@wolfvision.net> <2087500.ItEYzMA54p@archbook> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NONE, T_SPF_HELO_TEMPERROR 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 Am Donnerstag, 28. April 2022, 15:24:09 CEST schrieb Michael Riesch: > Hi Nicolas, > > On 4/28/22 13:15, Nicolas Frattaroli wrote: > > On Montag, 25. April 2022 15:35:00 CEST Michael Riesch wrote: > >> This USB 3.0 controller is capable of OTG/DRD operation. Enable it in the > >> device tree. > >> > >> Signed-off-by: Michael Riesch > >> --- > >> arch/arm64/boot/dts/rockchip/rk356x.dtsi | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > >> index 55e6dcb948cc..f611aaf2d238 100644 > >> --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi > >> +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > >> @@ -266,7 +266,7 @@ usb_host0_xhci: usb@fcc00000 { > >> <&cru ACLK_USB3OTG0>; > >> clock-names = "ref_clk", "suspend_clk", > >> "bus_clk"; > >> - dr_mode = "host"; > >> + dr_mode = "otg"; > >> phy_type = "utmi_wide"; > >> power-domains = <&power RK3568_PD_PIPE>; > >> resets = <&cru SRST_USB3OTG0>; > >> > > > > Hi Michael, > > > > according to official specs[1], only the RK3568 is capable of using the > > USB 3.0 controller in OTG mode. For the RK3566, OTG is USB 2.0, if I > > understand this correctly. > > > > So I think this should be an override in rk3568.dtsi. > > Thanks for pointing that out -- will change in v2 (I'll wait a bit, > though, as I hope that patches 2 and 3 will be applied as they are ;-) that can be arranged ;-) Heiko