Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp865284lko; Tue, 13 Jul 2021 11:46:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/pGMsWk9h/kgBjSwZIN4RAXpzd3JkiVWFp6/ISkoTexhSJ5QXXSQRvOFjgGw+xanA3+cu X-Received: by 2002:a92:2a0a:: with SMTP id r10mr3896678ile.274.1626201988178; Tue, 13 Jul 2021 11:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626201988; cv=none; d=google.com; s=arc-20160816; b=1EN2uWjEa6K09zsvS5UmuyL1LxPjW08TfSDRC9HaHeRwjBlsmdbNfHVXsS+lkf7q80 U+jj/TsquYyoQMBQIlCsvfHdGm6nq0iw3wQBO+Yc4EDyXLXoyj6j6kT0KiCVqC/7rBbq pjGtGAJKYDDIMvD9lF3Ta6uGYHZ3AUdzYKIERYpzWtrDhKhv9oyxe0B3wsoAW6PClfw9 X1e10mCVI4nrSR69vZ+L3Z5Z9dXg0ximiufhoLAqDW6ky0B7Mpp7gVWG1Zk7DM0IfI4t znrh3w5PXV/aVTT+TtyIf6AdRE8znRep/l9lmR2x9S+f/xsdgsJjFs2ITu8JsUA+4vmF BVmA== 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=bhZvAZqqLk0cTR7vw/Ukii3edchRAWA35SbjXDGbRo0=; b=KUm0zVgYQCDMt+mgX0UHudTAbuRyNhk7Bwe8Dx4qSGJI/0cRiwjQPuLqKBBwYkjlPL Rn7FMERCOUaugbA/SmOGJ24m/3WiFwxxexho7th6OwiWmmgLR+pQEvUnRAnZqPekOUE/ tt4ZTjUk8owuaXgDtqauv1skvNQvJWrvK++qMxoIkk7TO8Ryxd5Pjhuqopgs7w5YJSvD N57ZtX3ADQpaxxi4bNIG/ydLMMco4tUj2nPOl+KwzBB95UClR05GDp2gzwbOHwIUdhP5 bW45kXswxSrHh7ykyGTjx+lgWm4HB8jawQy9ONVFD2MM/9+m28gF5b8sbc9FEb+IVnjN 4gag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jSqR0Tci; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si24924893jac.95.2021.07.13.11.46.16; Tue, 13 Jul 2021 11:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jSqR0Tci; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234254AbhGMSr5 (ORCPT + 99 others); Tue, 13 Jul 2021 14:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbhGMSr5 (ORCPT ); Tue, 13 Jul 2021 14:47:57 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93374C0613DD; Tue, 13 Jul 2021 11:45:06 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id ee25so16332278edb.5; Tue, 13 Jul 2021 11:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bhZvAZqqLk0cTR7vw/Ukii3edchRAWA35SbjXDGbRo0=; b=jSqR0TciKE1j+fOveVsQHXfCD4RwjQVVN1wnFUMg0gW6QRx8utwRgvZq1Vw/ZkuNKD l2Z18akSng37x4HSTFhLoH/MhDBN+k0UVi5UYVLPqNTTwFBerFXyooZbG4GdsjsJkAlT 1KUP+ond46vDz6gPxMcpHOwfpA4ULQwV1X0cZsYBNNMNB3bw55w42wBskC+0JUlMHRCv MyR7iwBOmCKzzJDnvR3QTWleqLxhPL49KLTsNE+WwF4qcakte3ZdzmVScdC54rWKykHp HNgspzIqVXdMt5oJB0xFyV/5Gxv+YqNpIBPAxQkyvizxMQYG8GPF41Lv4Z2Iv2WMEQeQ /oFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bhZvAZqqLk0cTR7vw/Ukii3edchRAWA35SbjXDGbRo0=; b=hYnyCPO9kJ+fRtg8OkK8wi4R+ctjsIQMruw6rrKy3HQCpRMHWqNT/Aq4VL2O0Pt/ET txN1cWdg0sa3kuNDxhfcqmjXWQ/wFKgqhFbdv08b4X4OF4pq5dL0jowiVIGAISj6sL00 u3osJceUgj2NkSaSlO/M+M2xIORBUxhXWjJrR0vOW9sHzSVCUTuajAwjGqqmbFVJmxNn tpCh1LDU/jARx/zBlselUJ/8FgFrZJFMfa1RGPHfHct9hT0WUKjKg5lQDuK3DI7Mb6aC 8XSNfq0HaR19XKfevtQipaSOwHG6ECoJgBkYk5kuJYx4Hdyuw6ZFc8lI+eK30TDzmxQ4 V9oA== X-Gm-Message-State: AOAM532eO1cZNt+Z2sbmVgMzA9lLDSxmoW20y4eDxxPrYKknk905/qOX cWoV1CAtJBY6U5nYehXHZcRywH5ePRdMINCuCvM= X-Received: by 2002:aa7:c550:: with SMTP id s16mr7537666edr.130.1626201905236; Tue, 13 Jul 2021 11:45:05 -0700 (PDT) MIME-Version: 1.0 References: <20210713055227.1142-1-linux.amoon@gmail.com> <20210713055227.1142-2-linux.amoon@gmail.com> In-Reply-To: From: Anand Moon Date: Wed, 14 Jul 2021 00:14:53 +0530 Message-ID: Subject: Re: [PATCHv1 1/3] ARM: dts: meson8b: odroidc1: Add usb phy power node To: Martin Blumenstingl Cc: linux-phy@lists.infradead.org, linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel , Matt Corallo , Rob Herring , Neil Armstrong , Kevin Hilman , Jerome Brunet , Kishon Vijay Abraham I , Vinod Koul , Emiliano Ingrassia , devicetree Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, Thanks for reviewing the changes, On Tue, 13 Jul 2021 at 20:35, Martin Blumenstingl wrote: > > Hi Anand, > > On Tue, Jul 13, 2021 at 7:53 AM Anand Moon wrote: > > > > Add missing usb phy power node for phy mode fix below warning. > > > > [ 1.253149] phy phy-c1108820.phy.0: Looking up phy-supply from device tree > > [ 1.253166] phy phy-c1108820.phy.0: Looking up phy-supply property > > in node /soc/cbus@c1100000/phy@8820 failed > I did some testing on my own Odroid-C1+ and this patch is not doing > anything for me. > more information below. Some device node for USB will have > > [...] > > + /* > > + * signal name from schematics: USB_POWER > > + */ > Just a few lines below you're saying that the name from the schematics is PWREN > If this patch is getting another round then please clarify the actual > signal name, or name both signals if the schematics is actually using > both names. > As per the schematics. PWREN ---> GPIOAO.BIT5 gpio pin control USB_POWER ---> P5V0 power source regulator. > [...] > > + gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; > > + enable-active-high; > I booted my Odroid-C1+ with this and USB was working fine. > Then I replaced these two lines with: > gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_LOW>; > and I found that USB is still working. > Yep it should be GPIOAO_5 GPIO_ACTIVE_LOW, my mistake > Can you please give this a try on your Odroid-C1 as well? > The conclusion from my own testing is that GPIOAO_5 doesn't seem to be > related to USB1 (host-only) because if it was then inverting the > polarity (from active high to active low) should result in a change. > Ok I have modified as per above but not changes in gpio polarity from active high to active low. see below. # Odroid C1 [alarm@archl-c1e ~]$ sudo cat /sys/kernel/debug/gpio | grep USB gpio-1953 (USB_HUB_RST_N |usb-hub-reset ) out hi gpio-1954 (USB_OTG_PWREN |regulator-usbp_pwr_e) out hi # Odroid C2 [alarm@archl-c2lm ~]$ sudo cat /sys/kernel/debug/gpio | grep usb gpio-501 (USB HUB nRESET |usb-hub-reset ) out hi gpio-502 (USB OTG Power En |regulator-usb-pwrs ) out hi > [...] > > &usb1_phy { > > status = "okay"; > > + phy-supply = <&usb_pwr_en>; > From the schematics it seems that this is not the PHY supply (which I > admittedly have used incorrectly for VBUS before). > In the schematics that I have (odroid-c1+_rev0.4_20150615.pdf) it > seems to be enabling VBUS. > So in that case a vbus-supply property should be used inside &usb1 instead. > As per the debug log I have added this since core phy looking for this property [ 1.250044] phy phy-c1108820.phy.0: Looking up phy-supply from device tree [ 1.250060] phy phy-c1108820.phy.0: Looking up phy-supply property in node /soc/cbus@c1100000/phy@8820 failed [ 7.222566] libphy: stmmac: probed vbus-supply power is needed for dwc2 node see below. [ 1.257714] dwc2 c90c0000.usb: Looking up vbus-supply from device tree [ 1.257725] dwc2 c90c0000.usb: Looking up vbus-supply property in node /soc/usb@c90c0000 failed > > Best regards, > Martin Thanks -Anand