Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp922057ybl; Fri, 30 Aug 2019 09:05:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIgc5g1b1n7iH0+CKtzfkTeQWk1gLRsLkR8ds2vaeLmihuZoU5pbw/WbdzzsJRYBy8z/34 X-Received: by 2002:a63:de4c:: with SMTP id y12mr13823970pgi.264.1567181100440; Fri, 30 Aug 2019 09:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567181100; cv=none; d=google.com; s=arc-20160816; b=wm6rxYW1SYGga4O7PXv3qHJrk5OQKR9xN8infePq9r8c+bx7FanRdgOLZuVi1Cd4Pb UxKH02/FDl9xJKKo2VQN6DzSy4AYfnASVezhIUfGQ3WLXXAT0AcW7cwTC0YqO764/Nyh uy6svLQNtf3MEyCqOOxsg6YqQp1rQZl0e3B6599icQz1qviV+bm8om7lYIZV1IAx8APp nTHV07D5tz+IlxEmZ1rqvY1RwoUYCU/HaeYvrN360S3SObbJaFWTd00cegALvucEEEf8 BTAbzjijoKXvsNMLs6lyvJAp/SrgMwdz69OQduvg4IipfBlvMDQ3YEKFbdfc64ayRxi+ Wspw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:to:subject:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=Ll00P0HvLyh9ff4mGqhoY7oNmqZV/WIp9ZbBt7WSZuQ=; b=BcPUKdPoh57Ot9vR+14FQyDEFAxL4GZ+ZN3uwsx5P87JJiZLW1UQR8aI1pE4jrihbS Kkpuy/i0Ej2Nc6fW5eJDRmGk+5lDmcF94MvD/0Z2Gsa8AeKTp7FLZrcr0/cb2YJNhQMw auwnGEfgOCTwHqDsdo0nGCmcIOz/kp405T3cz2akdohu8B013BSyM/eJvT1lOQc4I3lh wi7gjFM/a4vavBmuJEd+WO/0x2gVucb7S34T+ShrbEiErEtVwIdUo4ikwAcdFgI5/+rt NmtlThFUQeoGp+ihlQJZif3b4+6e+qIobDewNDgSkkJIW8BxP1TP8kmKcw2N34Az+FCT L9Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DVNT4sGr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b30si4849668pla.368.2019.08.30.09.04.44; Fri, 30 Aug 2019 09:05:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DVNT4sGr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727820AbfH3QCB (ORCPT + 99 others); Fri, 30 Aug 2019 12:02:01 -0400 Received: from mail-pl1-f179.google.com ([209.85.214.179]:38255 "EHLO mail-pl1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbfH3QCB (ORCPT ); Fri, 30 Aug 2019 12:02:01 -0400 Received: by mail-pl1-f179.google.com with SMTP id w11so3582627plp.5 for ; Fri, 30 Aug 2019 09:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:subject:to:from:user-agent:date; bh=Ll00P0HvLyh9ff4mGqhoY7oNmqZV/WIp9ZbBt7WSZuQ=; b=DVNT4sGrKS8uBzpUvPlrwNcWOB48ID/E33wWVXKNaf5Rn1vgh5+t2kQyuqrFOdqw8j 2YmAmtzGl93QBYkr5aUtVLO4FEmveVBcPhwSjMHjKvnQY3WFEPGdEkGAlL/QNiRxAde0 9vR6xABOTJ0qzHXur+j0+MpQAv4Et4E71ZHUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:subject:to:from :user-agent:date; bh=Ll00P0HvLyh9ff4mGqhoY7oNmqZV/WIp9ZbBt7WSZuQ=; b=SlWPzHE8KQGJ3lIVTD6v2DGvhfGwx9VCeTFSt1b24YQRx00kRhZABM/+Gmwv9cwgOG QU4+jACqG+NctFnWfY+g7wPmZg7KO25uNDDA3hsN9db7rZR29mobx2AhLhUDndoSoWq5 GAhZKH3fJ1v+4tG+bU84IFfI6wuPSzanCbJum7O1MTAcjx5XBtIq1Gnb3020z1FnFVu8 HhQmqS4tKm+AuSmeVWkbOKlszQku9cqoaN+bn8d2yiBld+d47oItROlScqRuAtkc6YOk WRgnDbinJ83X/18qAIlv7wXLvGVwSM8sli/i2HAJAPSTEPjuYaZ9c+uaKtNuRw7uPspp OT9A== X-Gm-Message-State: APjAAAWcEb83ZTgJHE2G7yPwLmHxa0onhSjRoamUz5+1GPAwSDHZPeBg mwMj1j//WwBz2Kxw+pQuxJZ+6A== X-Received: by 2002:a17:902:223:: with SMTP id 32mr16796973plc.220.1567180920622; Fri, 30 Aug 2019 09:02:00 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id t70sm5846917pjb.2.2019.08.30.09.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 09:02:00 -0700 (PDT) Message-ID: <5d694878.1c69fb81.5f13b.ec4f@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <6dc0957d-5806-7643-4454-966015865d38@linaro.org> References: <20190207111734.24171-1-jorge.ramirez-ortiz@linaro.org> <20190207111734.24171-4-jorge.ramirez-ortiz@linaro.org> <20190223165218.GB572@tuxbook-pro> <6dc0957d-5806-7643-4454-966015865d38@linaro.org> Cc: robh@kernel.org, andy.gross@linaro.org, shawn.guo@linaro.org, gregkh@linuxfoundation.org, mark.rutland@arm.com, kishon@ti.com, jackp@codeaurora.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khasim.mohammed@linaro.org Subject: Re: [PATCH v4 3/4] dt-bindings: Add Qualcomm USB SuperSpeed PHY bindings To: Bjorn Andersson , Jorge Ramirez From: Stephen Boyd User-Agent: alot/0.8.1 Date: Fri, 30 Aug 2019 09:01:59 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jorge Ramirez (2019-08-29 00:03:48) > On 2/23/19 17:52, Bjorn Andersson wrote: > > On Thu 07 Feb 03:17 PST 2019, Jorge Ramirez-Ortiz wrote: > >> + > >> +Required child nodes: > >> + > >> +- usb connector node as defined in bindings/connector/usb-connector.t= xt > >> + containing the property vbus-supply. > >> + > >> +Example: > >> + > >> +usb3_phy: usb3-phy@78000 { > >> + compatible =3D "qcom,snps-usb-ssphy"; > >> + reg =3D <0x78000 0x400>; > >> + #phy-cells =3D <0>; > >> + clocks =3D <&rpmcc RPM_SMD_LN_BB_CLK>, > >> + <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, > >> + <&gcc GCC_USB3_PHY_PIPE_CLK>; > >> + clock-names =3D "ref", "phy", "pipe"; > >> + resets =3D <&gcc GCC_USB3_PHY_BCR>, > >> + <&gcc GCC_USB3PHY_PHY_BCR>; > >> + reset-names =3D "com", "phy"; > >> + vdd-supply =3D <&vreg_l3_1p05>; > >> + vdda1p8-supply =3D <&vreg_l5_1p8>; > >> + usb3_c_connector: usb3-c-connector { Node name should be 'connector', not usb3-c-connector. > >=20 > > The USB-C connector is attached both to the HS and SS PHYs, so I think > > you should represent this external to this node and use of_graph to > > query it. >=20 > but AFAICS we wont be able to retrieve the vbux-supply from an external > node (that interface does not exist). >=20 > rob, do you have a suggestion? Shouldn't the vbus supply be in the phy? Or is this a situation where the phy itself doesn't have the vbus supply going to it because the PMIC gets in the way and handles the vbus for the connector by having the SoC communicate with the PMIC about when to turn the vbus on and off, etc? >=20 > >=20 > > So the connector should look similar to example 2 in > > connector/usb-connector.txt. > >=20 > > Regards, > > Bjorn > >=20 > >> + compatible =3D "usb-c-connector"; > >> + label =3D "USB-C"; > >> + type =3D "micro"; > >> + vbus-supply =3D <&usb3_vbus_reg>; > >> + }; > >> +};