Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4760513rwl; Wed, 28 Dec 2022 08:26:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXur5ZKxEqf/qxS0o7GtSVOubKcyrd7i3d43FqsXB8lJy1Iqjw8fcPomVtK5JtNSVX6fJ68c X-Received: by 2002:a17:90a:fc89:b0:223:f674:fbe with SMTP id ci9-20020a17090afc8900b00223f6740fbemr29405934pjb.24.1672244788111; Wed, 28 Dec 2022 08:26:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672244788; cv=none; d=google.com; s=arc-20160816; b=tzZ2f7++09PgNxore+Jd5Y6MxdJoi/JfAbcPi2Z0YP0aYUez9YQAj+4UepwFeSe84j W7ohsE1L6L1ijUqPZ+u/7mCtswKjiw8CVx/X+dyvKwWJg0a3hE1Dp4hXxoMQ8YJ06G/M oHOsHBNwxOcG/d2nRfiMBnqbW8SDGAnH6ShINER1ZjHtb437rqIAGZxHVoMp6IH/x8Qf rVhpLqiPoWDDR9qpxHHPxoZ3uuolK8+5Hz47RfGwDOvubPifwMnQA4XHJJwxqiXTNe7U u0o9QA0JdlQz4svedFdKpe/9qSc59k9hXqHC4uJFxslX5TQhHkY7JIe4BdnhbsArILk/ NtpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nWly6CS117lh6W/pWnUHNuJLnc15iy3WKMaFGfN+hgI=; b=rvZmwEf8sCAS3otiPNeqBftxGyiSPlU2Tum7LMRKXeFZe7biVoYvO2zcpX2e1sNPCH TNXTxbHxF8OVtGgY6Oe0pb8dupHU/wVi4WwxvNbjd3N/cdWTzo745oKzxifQF/VUUTeL IXvlZZ9zeYj+55KToltyk60LJ2hUCWr1MvnVMCEiNCebwfyrEAU3pVWnVGZgwoZj5P23 JDpviP7P1LvIHwRuFvb9bk+zrw0xGi/gPtz80L4FVrDciNptyMLbCjJsnTpTELSFbFpE QO4QOrSIxh7K/noD8OOrDmaXBd2+7zJ1CzULifWe52r4xQZzpjah+fyfs7RYXn5HBxYs wYKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bC2m3zrf; 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 mh16-20020a17090b4ad000b00223be132b5esi22492509pjb.32.2022.12.28.08.26.19; Wed, 28 Dec 2022 08:26:28 -0800 (PST) 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=bC2m3zrf; 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 S232985AbiL1OpT (ORCPT + 64 others); Wed, 28 Dec 2022 09:45:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbiL1OpL (ORCPT ); Wed, 28 Dec 2022 09:45:11 -0500 Received: from mail-vk1-xa29.google.com (mail-vk1-xa29.google.com [IPv6:2607:f8b0:4864:20::a29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE4FA11A18; Wed, 28 Dec 2022 06:44:42 -0800 (PST) Received: by mail-vk1-xa29.google.com with SMTP id f24so7481997vkl.9; Wed, 28 Dec 2022 06:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nWly6CS117lh6W/pWnUHNuJLnc15iy3WKMaFGfN+hgI=; b=bC2m3zrfa87ubxBUOud/XnpoJ6JRQtIp5AvFP+Dg/RAfR3vLc3p3BbBnNuHMaFMkei wBdlTKZYONWbZWmgtF80/Od4Gw2vptTCDBS2qOKfrjzlwz4nObQZXJIu/K/woxvOyUHL gwAKm/jeYk5ljndDFPSMualoMn2J6ZmAu66QNS4n6mzyGS6hlJq0hF/UIm4R9Uk4Twq2 DsLXuCnICp2OMF48mttlcnLUy0LSASlzfARftklE8BhyNiGwVDmFwd9jK1OzACUUCm3s olYwbfI1R9iaZEIYOL+Au9daFjixBBJSwM47bm1z45J4NFutuytYsdawrsRBhigy6MJO 3ixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nWly6CS117lh6W/pWnUHNuJLnc15iy3WKMaFGfN+hgI=; b=Xio1cw8k8Q+sUcjUwP6+u7bnQ6rk+w3jSplqiKGbigohKf1UFWRDzvTQ9pY1FEJDbL ieOf2YWuUY8SK43+F1RJ2Gi7ypvWOtC5TU4fbRqwGvf23Ldo98U9nuBzYAxyT2KkAeA3 DFqW6HwTtHnRTD+X8jThcs01KKUZE113cYt7ioLuwT7RQ9B4avGE7/EwgYL92vTgcUfi 8zsaqG5uvogVFTV99k9nJfUM30o+8vbv3WK9iQXtGmdIzpB1po6Jk5WU/Nh3cqyNjPry a78yEWZ2+IjfSRLBvC+ENhhCH+/Oj6IS1+h9KP7LJkHSGC67r4mwNfFKwTiy4v9+4r7h uscQ== X-Gm-Message-State: AFqh2kpVWoxIqqPRmLoDfiBU1I7AdKUNnUlc4ULK8fnL29GqV288bXyp LibAw93q/a8tQdKHbijcudKmLAFDI4CxGKxHlmIFJaRShx2DvA== X-Received: by 2002:a1f:2189:0:b0:3d5:8603:a96f with SMTP id h131-20020a1f2189000000b003d58603a96fmr191769vkh.22.1672238681977; Wed, 28 Dec 2022 06:44:41 -0800 (PST) MIME-Version: 1.0 References: <20221228100321.15949-1-linux.amoon@gmail.com> <20221228100321.15949-4-linux.amoon@gmail.com> In-Reply-To: From: Anand Moon Date: Wed, 28 Dec 2022 20:14:26 +0530 Message-ID: Subject: Re: [PATCH v1 03/11] arm64: dts: amlogic: Used onboard usb hub reset on odroid c2 To: Martin Blumenstingl Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 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 Hi Martin, On Wed, 28 Dec 2022 at 18:21, Martin Blumenstingl wrote: > > Hi Anand, > Thanks for your review comments. > thank you for working on this topic! > > On Wed, Dec 28, 2022 at 11:05 AM Anand Moon wrote: > [...] > > + usb { > > + dr_mode = "host"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + hub@1 { > > + /* Genesys Logic GL852G-OHG usb hub */ > > + compatible = "genesys,usb5e3,610"; > > + reg = <1>; > > + vdd-supply = <&usb_otg_pwr>; > > + reset-gpio = <&gpio_ao GPIOAO_4 GPIO_ACTIVE_LOW>; > > + }; > > + }; > My understanding is that the hub@1 node should be part of the > corresponding USB controller node, not a new node. > In this case hub@1 should go into the existing &usb1 node. That way we > describe the way the hardware is set up (meaning: hub@1 is connected > to &usb1). > Ok, I will move this code under &usb0 and &usb1 nodes. onboard_usb_hub module just assists in usb hub reset. so these changes are meant to replace the gpio-hog. $ dmesg | grep onboard [ 5.405558] usbcore: registered new device driver onboard-usb-hub [ 6.383428] onboard-usb-hub 1-1: reset high-speed USB device number 2 using dwc2 Here is the boot log of the odroid c2 [0] https://pastebin.com/PFy5waPb > In case hub@1 is not detected within &usb1 then you may need something > like [0] (not tested for your use-case). > If that helps: feel free to include that patch in your series. > Thanks, will check if this is needed in this case. As of now it just reinitializes the hub. > > Best regards, > Martin > > > [0] https://github.com/xdarklight/linux/commit/d8b96e5bc9c20ab2585194e0e59580c3b062c431 Thanks -Anand