Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp408169ybt; Wed, 17 Jun 2020 04:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW1iW8zXxtHHb2pf08fC9G88uGZ7STVZF5AFClWWnSKiHXcBA4H+pOncPc9K8oywiSiCX1 X-Received: by 2002:a05:6402:128b:: with SMTP id w11mr6459852edv.377.1592392729858; Wed, 17 Jun 2020 04:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592392729; cv=none; d=google.com; s=arc-20160816; b=hmUvKBA3yMv87BLgm9GHBpuvJaJeBvYqlDPuvSGwFRJ5QuEU9JKufeV91NY6G/oeee K7hPukKFm8Oi/OslOaYOzWFZtcXWipkc1LqVf0KeMoOogEx3AjPudkSKqbb+BkJjHRiT cEj4FwfBccLRQAiFDws7erPewdHwHtLEbAPULMEc8iRjS/AtqE89gDYNyT4RXmU9yAOD uYMIcClLjqWQr+xn1h/EcVdI2HaKspZm6BYnZmu3LtT78yBOhKyyaznEKIXXDC1Kuv3G 6ktRLvVVySS/EbO2Ci3nOJCX/MoeK0sRr5JLT9PtM+PDTlAAfLAgZjmoE1taKWY7EQY3 hJ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=NwwANDgxX4dH8O6rPRqOhoTERCt3DfmFlNR5UMYf758=; b=tdae0yOmG8e2NOMoOEbTvxcEoxisS0DRZVIZXJ91vZVOf+vLEZTh2PSekM9+UIvO0+ k//HNKGtckdrKfTnuLOnzqznlZGbPvOTA2fmMQwO7nYSohcLnBiVJAhDQHGQeYvz5BfA wxRAD4Y2B6aC/O2RFkHwEOIS/1AHTWobKd8flZbEZGZpHsU96EltN8pfQDUtWKuXXYtY LaNn6D/IgizXFWh9ih74a/Fm8Ixyyj7z8h/qrd/qF1sEMOwNDzq0eXUYGKJoFM80PBpB 29xdmytxeLl9YU+TXSV/mWUWA9YJ7oqg9UZL8P6OpBsxhK/ovE9xAfpwAtn6wLXRIB45 ZmiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BL1hO3Op; 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 c6si12660498edw.220.2020.06.17.04.18.27; Wed, 17 Jun 2020 04:18:49 -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=BL1hO3Op; 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 S1726282AbgFQLQj (ORCPT + 99 others); Wed, 17 Jun 2020 07:16:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgFQLQi (ORCPT ); Wed, 17 Jun 2020 07:16:38 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1EE2C061573; Wed, 17 Jun 2020 04:16:37 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id r7so1928379wro.1; Wed, 17 Jun 2020 04:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NwwANDgxX4dH8O6rPRqOhoTERCt3DfmFlNR5UMYf758=; b=BL1hO3Op+QBp8lH71zepc4iX03Z4R7n2mMn8zb5G7QIhV26mJblM+IUm67N01CqEmP CvejAxdKOh3qk6kWgZERySMMqPk0njDkzwa1RRW8ReS39a6tFlYUAfcebKjGBvMkxkWF 5GyqEAKxV0UAahM8Fnfpu6mg8hn5yseiH0i1+v1+A1ca7R1UcbWlsqF59bnqnCl49PmV fTr/WPn7Dbf/od2RgCEjFcYQpqLHq1YXKR6IhcSJ+A7PFvR/tDUyt2r69AlqVb19hIfl bOqsrAAJ2FRKeorjbqy5nYsxHC4meOj1/9b5TPL6YJBRi9pYM1tOAqfAWgcTaWeiL/dA VaIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NwwANDgxX4dH8O6rPRqOhoTERCt3DfmFlNR5UMYf758=; b=k2elOc85ftJYGSkkGwGdKMG53xILLT4qtOiLcM2DfKEb24BAXBVrdN76qgnPTtAOFM 45g/OuO/JzlQQZoZeS1zapBWDnpLLKINqV2Lt1uum3aUURQeURO2p9V5e1/ldn7ilsGL NczaHLG5WY8GP0/x5Aa3uLXBY5Vy5O/aUgvQf43/1Bku2Cjyrrhjdx62PgikvBl6NoqT xn8hmAoUIGICeyVKUu81B35hEVZzJFvS6h810n0hkFh6OBvHt/Y4Zus7a5plo1tmYGnM N3qiRClHuBKeHI3J8y7Azm1Kh9hDf55bZaB4aT3VogBiedvegaQ+P/oNY3AzEAYFu3ko t3ow== X-Gm-Message-State: AOAM533msg4uA3tOzQF5HZOBy58AjnsenXm3aIZTGc2HiuvGUJ0SqOBi UUELXrFuvYGI3NDREQpLMDk= X-Received: by 2002:adf:aa94:: with SMTP id h20mr7462127wrc.327.1592392596473; Wed, 17 Jun 2020 04:16:36 -0700 (PDT) Received: from macbook-pro-alvaro-eth.lan (90.red-88-20-62.staticip.rima-tde.net. [88.20.62.90]) by smtp.gmail.com with ESMTPSA id d28sm4242126wrc.50.2020.06.17.04.16.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2020 04:16:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH 1/2] dt-bindings: phy: add bcm63xx-usbh bindings From: =?utf-8?Q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= In-Reply-To: <2cc00ff1-f411-1c2d-d2ce-4cc0bfc2ccb5@gmail.com> Date: Wed, 17 Jun 2020 13:16:34 +0200 Cc: simon@fire.lp0.eu, Jonas Gorski , kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, p.zabel@pengutronix.de, krzk@kernel.org, gregkh@linuxfoundation.org, alcooperx@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200616083408.3426435-1-noltari@gmail.com> <20200616083408.3426435-2-noltari@gmail.com> <2cc00ff1-f411-1c2d-d2ce-4cc0bfc2ccb5@gmail.com> To: Florian Fainelli X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, > El 16 jun 2020, a las 19:17, Florian Fainelli = escribi=C3=B3: >=20 >=20 >=20 > On 6/16/2020 1:34 AM, =C3=81lvaro Fern=C3=A1ndez Rojas wrote: >> Document BCM63xx USBH PHY bindings. >>=20 >> Signed-off-by: =C3=81lvaro Fern=C3=A1ndez Rojas >> --- >> .../bindings/phy/brcm,bcm63xx-usbh-phy.yaml | 72 = +++++++++++++++++++ >> 1 file changed, 72 insertions(+) >> create mode 100644 = Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml >>=20 >> diff --git = a/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml = b/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml >> new file mode 100644 >> index 000000000000..3e7c97799b91 >> --- /dev/null >> +++ = b/Documentation/devicetree/bindings/phy/brcm,bcm63xx-usbh-phy.yaml >> @@ -0,0 +1,72 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: "http://devicetree.org/schemas/phy/brcm,bcm63xx-usbh-phy.yaml#" >> +$schema: "http://devicetree.org/meta-schemas/core.yaml#" >> + >> +title: BCM63xx USBH PHY >> + >> +maintainers: >> + - =C3=81lvaro Fern=C3=A1ndez Rojas >> + >> +properties: >> + compatible: >> + enum: >> + - brcm,bcm6318-usbh-phy >> + - brcm,bcm6328-usbh-phy >> + - brcm,bcm6358-usbh-phy >> + - brcm,bcm6362-usbh-phy >> + - brcm,bcm6368-usbh-phy >> + - brcm,bcm63268-usbh-phy >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + maxItems: 2 >> + >> + clock-names: >> + items: >> + - const: usbh >> + - const: usb_ref >> + >> + resets: >> + maxItems: 1 >> + >> + "#phy-cells": >> + const: 0 >=20 > On 6328, the same register space allows the controlling of the USB PHY > in either host or device mode, so I believe you would need to add a > #phy-cells =3D 1 in order to distinguish the consumer (host versus = device) > if we get to the point where drivers/usb/gadget/udc/bcm63xx_udc.c > becomes DT aware. I=E2=80=99ve just realized that I have implemented this wrong in v3, = because I implemented the SwapControl USB_DEVICE_SEL value, and you = meant the UTMIControl1 USB_DEVICE_MODE_SEL value. So I have a couple of questions about this, because I haven=E2=80=99t = got any bcm63xx with usb device configuration to test: - Is USB_DEVICE_SEL also needed in SwapControl or do we only need = USB_DEVICE_MODE_SEL in UTMIControl1? - Are the rest of the host values needed when configured in device mode? = Should I only set the device values when in device mode? >=20 > Other than that, this looks good to me! > --=20 > Florian Best regards, =C3=81lvaro.