Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12995354rwl; Wed, 4 Jan 2023 01:50:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXuWT9vkUu/BAeH05WOshvKTgLuvvM8S4U9kdGNwF4EzBMFH+epLpTYhC785EySN1TJT1ZP4 X-Received: by 2002:a17:906:6896:b0:7c1:4c46:30a0 with SMTP id n22-20020a170906689600b007c14c4630a0mr42728066ejr.65.1672825832454; Wed, 04 Jan 2023 01:50:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672825832; cv=none; d=google.com; s=arc-20160816; b=K2q4PEu4a5Vawkf2AOCUjZez9eru16B8A391VU8lahKr9Zu4wf/VWG0KopTG+jyvwA AKidrkzrqoXndIkOiBAJgNy5SGwVNvuTavV8AgiKueLT6F4JkS6pQmq8E6xEf9viblh1 1xT44hbdAsYOWFtfZIQ/luiAWEmA4PZzfB0x5GaB1s1KJwxkzfqI1lK6cVRrDlNtKKcZ pDw4DHVfNWX0/j3IlSADnn0DmFHzcj3S9pS3L94czz3QhT30XtXPd82bmVa7PsnoKkng e1X8f3H+IxkugieEOQAhGjrAcDD84FR8ufp9T9h9KEjKNFW1EJcMEIEVJ9VAdRbSARax QwNg== 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=QWfac0aQEJappowHl+xwXF9NDWJ8QlQ5XBo8UGwpyxo=; b=WDflkyorZm7jOE7uRkKzkPIgGNJyKr66mnGlmy8pH6Ngz7/JM3JSxxgDgco2RAdRv4 CQIfytnL23jY1qB+ByUfm4NPaolFsE2DgV3CbhrvYpGGfyn6IzHMes72EwLkTLIkPLAG NcXH/67PXmlV9/rT/OYwzft7FVPEZiBVXV7XpRKmNNtmtP5tcsjErAqNs6icn5u2lb+U n2TGVPF5zP3CaENMTsx1xUIC2/AC9z1q08QaoiegH1pASz5f8fn4xzJO1G32vsmxpmki 07KJXQGxiBFGEEpH3fk+MuGFXUQzvAszCqRs19I5e9CkPmrVLKUYnAKO8s+VVAXUXd3h 2n0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aHGIqXJV; 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 du8-20020a17090772c800b0082517442ad3si30184498ejc.682.2023.01.04.01.50.19; Wed, 04 Jan 2023 01:50:32 -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=aHGIqXJV; 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 S234341AbjADJR7 (ORCPT + 57 others); Wed, 4 Jan 2023 04:17:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234230AbjADJRz (ORCPT ); Wed, 4 Jan 2023 04:17:55 -0500 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79D4718E04; Wed, 4 Jan 2023 01:17:54 -0800 (PST) Received: by mail-vk1-xa2f.google.com with SMTP id i84so9571982vke.7; Wed, 04 Jan 2023 01:17:54 -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=QWfac0aQEJappowHl+xwXF9NDWJ8QlQ5XBo8UGwpyxo=; b=aHGIqXJVUzEVVBwFiVoh37pUXnb/eZT1qiq2eEoGXYZaCwKA51WizZm1PK7VCQ+5cE 4RldFqpaytdMQzGkv/JIY+JmUR4NL9J7gAqnPTgSZFiEhigRNT1lTx4QmcYpz0dYb7VK Iqwjy9e72ygobOW9GLj33J7F0aUKTG3G9MDIR8UW9tc5NHEPHkAWjzfOBnIRpyV39z+p voEOlQUULjG9v6zSVdGezq77dMqcZlVSOtH+aDp5wCm386+Qs9jJfhSoETFt+R9TjpNF qfhv5wecBRX4MXBWW7VRMoFGlWv8MuTkEkxhT3ikeEXVJmSyeoGcpZgwSqwqqEoBffzX ffLA== 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=QWfac0aQEJappowHl+xwXF9NDWJ8QlQ5XBo8UGwpyxo=; b=HOysdw7pB2znc+iE/yqO9nIIqb3fER1oe4QSDb6fgbc0cElbETsPSPTvBIYXSZl12j za9dyoybGwlqjgNqcE1qcDNeYV0xtHL1p4HyRngnQR0kZHad9BFZm6v/CTg+aQsiRrn9 X1xEbPNZzh98j+woLUqOBy5J4nA6/WTkDgExBN2ZkmcmhCoFewjqbLFQGIOnplU3hFVB rOSebJ5IB+kw+j1C9u1ghojY01ZBciTmP81YosN1X2lpqBVHz0SPb878rna4FP6x/kLv 69/DD4pT6XIzPkPOpWbh/N1avDJQwJOS+s47fcZmAeaMTF9f29fRFF3eMUovpBLjNtJL OLyA== X-Gm-Message-State: AFqh2krKD2zkAYzbIOvM25hgdNUEpFWhAGPSH9QvDkPsb91bObGuAhEx HWt+OYX9YByFgxkYvlI2nrGY8U6fH+90kuwsNqA= X-Received: by 2002:a05:6122:1689:b0:3c5:db35:9288 with SMTP id 9-20020a056122168900b003c5db359288mr4946405vkl.32.1672823873536; Wed, 04 Jan 2023 01:17:53 -0800 (PST) MIME-Version: 1.0 References: <20221228100321.15949-1-linux.amoon@gmail.com> <20221228100321.15949-4-linux.amoon@gmail.com> <260b70ae-0758-592b-9c4d-90938e8a5b00@linaro.org> In-Reply-To: <260b70ae-0758-592b-9c4d-90938e8a5b00@linaro.org> From: Anand Moon Date: Wed, 4 Jan 2023 14:47:36 +0530 Message-ID: Subject: Re: [PATCH v1 03/11] arm64: dts: amlogic: Used onboard usb hub reset on odroid c2 To: neil.armstrong@linaro.org Cc: Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , 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 Niel, On Wed, 4 Jan 2023 at 14:26, Neil Armstrong wrote: > > On 04/01/2023 09:13, Anand Moon wrote: > > Hi Martin, > > > > On Wed, 28 Dec 2022 at 20:14, Anand Moon wrote: > >> > >> 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 > >> > > > > Moving the usb hub into usb subnode usb0 or usb1 does not work > > on Odroid n2 and c4, we have a combo phys of usb 2.0 and usb 3.0 > > so the onboard usb hub reset does not get initialized until both the PHY > > and USB nodes are brought up by the drivers. > > Fine, then add a comment before the usb node explaining that. > Sure, thanks. > Thanks, > Neil > Thanks -Anand