Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp477354iol; Sat, 11 Jun 2022 08:53:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGh/YXOxGB6jAPixgaQZolSQsYWof5k+fPFhQ6yrZe/crgQ6mUCRMXypdM30KqgSQz33PY X-Received: by 2002:a63:67c3:0:b0:3fe:465:bfa2 with SMTP id b186-20020a6367c3000000b003fe0465bfa2mr21227027pgc.12.1654962786297; Sat, 11 Jun 2022 08:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654962786; cv=none; d=google.com; s=arc-20160816; b=K+e6+H0aEDmWD73njGpdreFAL7aOMdSo9yQvt6YKqd5R93bf8f7C8nTI7DTwstjsv3 r0EHa3M+6cA1Tq4LVY3LmDs+0MNRNzPc0EOYthKh+G/KcA1JZRghMKFd0DQ8tzB80Phq 5RPAHFliKurOqa9a9Xi3s6YAlQWnWhYHWGUElLjb4riwCS0zXBMAcibCTL0gdrlXTpnv /xO+qNNKrQVwKsX6NGnhPVZDtVcdzgGUAuL3xRIB25+SHLR9QuRpR4wIBwbgaSjV/9XU axUZNNvSQDHbCrKK/gWSIj4v5Uapl0JFT0UGjpsKYW0zjvp4T0np36KptncVaTzq6+iZ 667w== 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=mgsVmMKO7zAOMkCjcuSweooxULYgW65xrQ1case7teU=; b=NytvcXOwkRM5AJ35PRNyppagJr78ptqQHeRvuzNshHo4Z/mBlo4sB/SnK9zzFPZPL8 OCRuo/T14qxFMPGLVQUf3vObQ3Iyp6y6l6kkkFz6i5Ti4XKvqUXLhh7yZ+Lu/DczrCpl L8ZKwUyHyHWQ3gmnzCZqTUQAYlE3PU6km9gcfwJhQclTCM4S8ZONHE1mTVj/jshLcpLT 8elLqaVJ+Q+Bc60bEuUdk3PIokcGeyX9Fe0T1IuF1ZLq6hJUd6L/QtQqWneHiwW0Ew+l EYUIKw7p2xZIDdIVnqNa+5D1yGph2Y572y0l17GqcX6zOt7N8t0/Eqc/iKJOtg12fGRV AS2g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v9-20020a170902b7c900b001641a5d5794si2828462plz.243.2022.06.11.08.52.54; Sat, 11 Jun 2022 08:53:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236913AbiFKPAG (ORCPT + 99 others); Sat, 11 Jun 2022 11:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236868AbiFKPAE (ORCPT ); Sat, 11 Jun 2022 11:00:04 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9A7A4F1C4; Sat, 11 Jun 2022 08:00:00 -0700 (PDT) Received: from p508fd9f0.dip0.t-ipconnect.de ([80.143.217.240] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o02ag-0004qO-5R; Sat, 11 Jun 2022 16:59:54 +0200 From: Heiko Stuebner To: Peter Geis Cc: Rob Herring , Krzysztof Kozlowski , Michael Riesch , devicetree , arm-mail-list , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List Subject: Re: [PATCH] arm64: dts: rockchip: Fix SoQuartz CM4IO usb Date: Sat, 11 Jun 2022 16:59:53 +0200 Message-ID: <8819229.G0QQBjFxQf@phil> In-Reply-To: References: <20220610132601.160088-1-pgwipeout@gmail.com> <4178848.3VsfAaAtOV@phil> 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_PASS, T_SCC_BODY_TEXT_LINE,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 Samstag, 11. Juni 2022, 15:53:41 CEST schrieb Peter Geis: > On Sat, Jun 11, 2022 at 9:50 AM Heiko Stuebner wrote: > > > > Am Freitag, 10. Juni 2022, 16:44:23 CEST schrieb Peter Geis: > > > On Fri, Jun 10, 2022 at 9:26 AM Peter Geis wrote: > > > > > > > > The SoQuartz CM4-IO should support otg mode, however it currently > > > > defaults to device mode when otg is enabled. Force it to host mode to > > > > retain the previous behavior. > > > > > > It would seem the role-switch issue is more widespread than originally > > > thought, affecting other boards where automatic control should work. > > > Please hold this patch while I investigate further. > > > > ok! > > > > I guess this also applies to > > "arm64: dts: rockchip: Fix Quartz64-A dwc3 otg port behavior"? > > No, on Quartz64 Model A it can't work, the requisite pin isn't connected. ok, so I can pick that other patch up :-) . > I think I've found the problem, I've requested a few people to test a fix. > Do you have a Model B or SoQuartz to test against (or any other rk356x > board that has the id pin hooked up)? The rk356x in my boardfarm is a Quartz-B ... though an very early model, so hopefully nothing changed on the board since then. Although there is nothing connected to usb right now and I only have remote access this weekend, so any usb tests would need to wait till next week on my end. Heiko > > Thanks, > Peter > > > > > > > Heiko > > > > > > > > > > > > Fixes: bc405bb3eeee ("arm64: dts: rockchip: enable otg/drd operation of usb_host0_xhci in rk356x") > > > > > > > > Signed-off-by: Peter Geis > > > > --- > > > > arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts b/arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts > > > > index e00568a6be5c..56764fae9f9d 100644 > > > > --- a/arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts > > > > +++ b/arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts > > > > @@ -169,6 +169,7 @@ &usb2phy0_otg { > > > > }; > > > > > > > > &usb_host0_xhci { > > > > + dr_mode = "host"; > > > > status = "okay"; > > > > }; > > > > > > > > -- > > > > 2.25.1 > > > > > > > > > > > > > > > >