Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp10158pxb; Tue, 31 Aug 2021 13:49:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh/4vD5UsPDNtXn91rCg05gMTYj+F8QmSQ1M2a/vPB8kIXJma9qloqDZQ9KYhMEivZquXj X-Received: by 2002:a92:c6d1:: with SMTP id v17mr22087095ilm.302.1630442964221; Tue, 31 Aug 2021 13:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630442964; cv=none; d=google.com; s=arc-20160816; b=sv50Picj/efI/N3AnPPNjSC2hY+bxIQvmBVfZ+ppcc/ztE4J8Iq65K10YuFyNPXrZ8 PTaM5Ta+H6MCrIiVxbxYNmSPzQLMtXLPcU8cKg/21KqPCl//I/QMlDCDKDTgUbVaSk7E l2wV2a4Y5bUxgWTTpfoS8ymEB/CcPrt7rsqzNI/n2c3wmInaT5bKb5HIDu7n+K3ROTQD GbT00XIBi4pwuo0U2coDK1urh9VEOy4oc7r5LfsAZRkMpB5ZK5gIOxz6FTSlSmER94mc 7yc84LL1xp+Uuv1EsthEgYqhw6KmnbgrUi/OeYIfH+XJ11CFD7CktWYehpIC1ErP+P7T oRxA== 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=PukLxj8PF44hPfPZSax4F6FSnHNWQbfJmpSj2w22I78=; b=n3zwtx7xRJJOHw8GIP5sgI4BFb3NwIFJjzNRy548/pN+6n/CAkJy6bNmRyMqaQ2zuN MfwRLBEQ3a8MAwqNXyCIt+6fV3K253yY3eoKEFFIgTii1T+t7EFzfAVinUIGZMDfpnHL 3YM6Cdc4p39Nb5fcA8g23NCGSl4pGjRdpDzTZrOSkDkSIOyOPffpf5jGhHpZ2lswHvMe ukA3tftXHFbENm9eyjRwNUb6gb1kFsgMVCjQEWHCBL7u5jxyRZiTn3cfpsSDv3eqULmq oa8QuedkJdNx8pb/9wRw+uyevfmUO6AwMG/3rZXr5R60ocIYsohRuLgtkDaTf7w5ukdR ZNSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xiuk9zA3; 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 f7si22062743ila.78.2021.08.31.13.48.59; Tue, 31 Aug 2021 13:49:24 -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=Xiuk9zA3; 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 S241114AbhHaUtH (ORCPT + 99 others); Tue, 31 Aug 2021 16:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbhHaUtE (ORCPT ); Tue, 31 Aug 2021 16:49:04 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D60A9C061575; Tue, 31 Aug 2021 13:48:08 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id eb14so466323edb.8; Tue, 31 Aug 2021 13:48:08 -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=PukLxj8PF44hPfPZSax4F6FSnHNWQbfJmpSj2w22I78=; b=Xiuk9zA30NMWF8XhrbeTJPEl62/se/94IUtFgYD5W4nLHJ48vY5U7IJjWmtKVC3w1t o0AznnrBYn7L2lyG+Cqhqcrk6jhGtnHIQZB2YroQsrpO3GQMPOzAj/yna7wxPnJdPEPy qlnlFTNeTdfhHQutlVrf4xVLfCPiHbpUl39ebItWilCFor0DBvFTL7RqQqZNiSEEwDhn PCR1hOTGR9P6Zr/SkzzZRwnm/tJwF9GCdjQO9jDgrHNzIBF94Damn5s5Sa/Ve2Phc1YG DvM5FBHDhBxeUmguDyzpuTjy3TRFCn5Qdc+YrgKJjXLxxj+xNYEGcxtkB3UIzD78SuDm XZHg== 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=PukLxj8PF44hPfPZSax4F6FSnHNWQbfJmpSj2w22I78=; b=YCuIXg2QoGDc+CrakKTeIqZBXqqHVnYb1eP5G7ZRDL17+moueo5UfuO4Zi4G0iWWJI aP1IgGO5r2PsvuDj5eKTlWWEKSeF5RMlUzxNpnHTHpHeWtUd7Ek6gBOkYUjDgZDCe2Ng ggMhZZGR9+XJBcXS66HP5EYHeIp/ddhcqDW0u8xtRoCkVlsc85mKcgobJuG1BB5B7tG6 ZkcnT5SM+3IrvC8pMIsc0uWBRojQES6pRD52NLyPJ+4FBzErPX6vIbMijmtF6E+hPf7r /bwZHMHfBRGVb/eiUf+OvEHaz29F4XSaevq3Rc4mW6226KkwwRcj886m6IZtPEw7XIvV I7yw== X-Gm-Message-State: AOAM531ArngtiIUG6nerx4Rz9CD2EvGF+ZYXM/GkWYjA12GAyJKldtu4 JhhPw1NRCrSKAGYyEiidndwR+8BD9zvlzvoW4kc= X-Received: by 2002:a50:e699:: with SMTP id z25mr31279466edm.130.1630442887231; Tue, 31 Aug 2021 13:48:07 -0700 (PDT) MIME-Version: 1.0 References: <20210817041548.1276-1-linux.amoon@gmail.com> <20210817041548.1276-2-linux.amoon@gmail.com> <2b07b3de-cee5-c570-8fde-6a4c684122d6@baylibre.com> In-Reply-To: <2b07b3de-cee5-c570-8fde-6a4c684122d6@baylibre.com> From: Anand Moon Date: Wed, 1 Sep 2021 02:17:54 +0530 Message-ID: Subject: Re: [PATCHv3 1/6] ARM: dts: meson8b: odroidc1: Add usb phy power node To: Neil Armstrong Cc: Martin Blumenstingl , linux-phy@lists.infradead.org, linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel , devicetree , Matt Corallo , Rob Herring , Kevin Hilman , Jerome Brunet , Kishon Vijay Abraham I , Vinod Koul , Emiliano Ingrassia , Brian Kim Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil / Martin, Thanks for your review comments. On Tue, 31 Aug 2021 at 20:20, Neil Armstrong wrote: > > Hi, > > On 30/08/2021 21:37, Martin Blumenstingl wrote: > > Hi Neil, > > > > On Mon, Aug 30, 2021 at 9:45 AM Neil Armstrong wrote: > >> > >> Hi, > >> > >> On 17/08/2021 06:15, Anand Moon wrote: > >>> Add missing usb phy power node for usb node fix below warning. > >>> P5V0 regulator supply input voltage range to USB host controller. > >>> As described in the C1+ schematics, GPIO GPIOAO_5 is used to > >>> enable input power to USB ports, set it to Active Low. > >>> > >>> [ 1.260772] dwc2 c90c0000.usb: Looking up vbus-supply from device tree > >>> [ 1.260784] dwc2 c90c0000.usb: Looking up vbus-supply property in > >>> mode /soc/usb@c90c0000 failed > >> > >> First of all, DT is not here to fix boot message. > > Anand mentioned elsewhere that this is a debug/info message > > > >> Finally, I looked at the Odroid-C1 schematics and the GPIOAO.BIT5 is an input > >> to the S805, and the PWREN signal is controlled by the USB Hub so this regulator > >> should not be added at all. > > I think there's a misunderstanding because there's two PWREN signals > > with different meanings. > > The PWREN signal for the USB host ports is hard-wired and not > > connected to the SoC at all. > > The PWREN signal for the Micro-USB port (which Anand is adding here) > > is controlled by GPIOAO_5. odroid-c1+_rev0.4_20150615.pdf [0] shows it > > as an input to "USB_OTG" on page 1. "USB_OTG" consists of a power > > switch and the connector itself as shown on page 28. > > > > Personally I think that the change from Anand itself is good. > > If you feel otherwise then please speak up. > > Ok thanks for the clarification, then the change is ok, but not the commit message. > > >> Add missing usb phy power node for usb node fix below warning. > > is not a good reason for a DT change. A proper reason should be added. > > And the commit message doesn't specify the change is for the Micro-USB port, > this should be clarified. > > Neil > > > As I pointed out three smaller changes I am hoping that Anand will > > re-send the updated patch anyways. At that point he can also add the > > changes from your feedback. > > Ok I will try to address your feedback in the next version. After enabling CONFIG_REGULATOR_DEBUG, with this patch applied I still not getting the USB regulator to enable. Do you see different output at your end? On Odroid C1+ [ 5.737571] reg-fixed-voltage regulator-usb-pwr-en: GPIO lookup for consumer (null) [ 5.737630] reg-fixed-voltage regulator-usb-pwr-en: using device tree for GPIO lookup [ 5.737711] of_get_named_gpiod_flags: can't parse 'gpios' property of node '/regulator-usb-pwr-en[0]' [ 5.737906] of_get_named_gpiod_flags: parsed 'gpio' property of node '/regulator-usb-pwr-en[0]' - status (0) [ 5.738209] gpio_stub_drv gpiochip0: Persistence not supported for GPIO 5 [ 5.738490] USB_OTG_PWR: 5000 mV, disabled [ 5.740313] reg-fixed-voltage regulator-usb-pwr-en: Looking up vin-supply from device tree [ 5.740394] USB_OTG_PWR: supplied by P5V0 [ 5.741235] reg-fixed-voltage regulator-usb-pwr-en: USB_OTG_PWR supplying 5000000uV Odroid N2. [ 3.047813] reg-fixed-voltage regulator-hub_5v: HUB_5V supplying 5000000uV [ 3.049282] reg-fixed-voltage regulator-usb_pwr_en: GPIO lookup for consumer (null) [ 3.049305] reg-fixed-voltage regulator-usb_pwr_en: using device tree for GPIO lookup [ 3.049370] of_get_named_gpiod_flags: can't parse 'gpios' property of node '/regulator-usb_pwr_en[0]' [ 3.049500] of_get_named_gpiod_flags: parsed 'gpio' property of node '/regulator-usb_pwr_en[0]' - status (0) [ 3.049622] gpio_stub_drv gpiochip0: Persistence not supported for GPIO 22 [ 3.049759] USB_PWR_EN: 5000 mV, disabled [ 3.051257] reg-fixed-voltage regulator-usb_pwr_en: Looking up vin-supply from device tree [ 3.051320] USB_PWR_EN: supplied by 5V Thanks -Anand > > > > Best regards, > > Martin > > > > > > [0] https://dn.odroid.com/S805/Schematics/odroid-c1+_rev0.4_20150615.pdf > > >