Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4892018ima; Tue, 5 Feb 2019 03:04:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IbIftkerNhVTBLk639ERzcmtgAIfJ4n/TFpnSoy5neSv5l6wXGC8eXl8JWDSSpzsQCPam6L X-Received: by 2002:a63:d604:: with SMTP id q4mr3968020pgg.175.1549364693377; Tue, 05 Feb 2019 03:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549364693; cv=none; d=google.com; s=arc-20160816; b=hzvXsWj33zIyIAk+gmGZEZcLKiq1BwZoBNsK4fskM1Nn1H5qoWNYY5ThBuRjQb+Fdi Z5US9+tWUofn1R4X1ym8R/KWVRcn3HCxnZYU7knLwSU1inx4wuFQio451doFMUZ8tJpw /hDbJ6pCRdMEHuhJy4HSocvKOaiJccR+ohvx2B2Hpt01/k5JR0AQLjCgTnHQuEk1rf77 n+litSWGR7l2sk10Sgc+C2CyMJlFnV7raGTrtTEZyshuqK5jZKdhm1RP0J4zias/jzQY pQWqIgAQL+2ltBtyifuEkC0cAyvzvHHlYD+19U33v7HDJUwlxCxioXPaFTQvRmV0/Vi2 TGqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=AHCRNsN/DXOVQgOjKjbrzcLFvgqEVSD2eE2iN0OqNho=; b=xFWc9bew+rhpZLES8kYu+TO8oYXfF3bB3EZOBJO+QtM1DabRxZGwltrt/ioVUD0dWJ YzjHvO+uGiG+Ap4pAm+q+M0FD6oEMz8ViXvC2bqtsAnX1R2pP1cu4VpA0CfCVJnEx1RM XH0sV3yLhvMfbTo7fE1j3RNh7UVUDYjx1TnL2zQxuqbhZpppPLQ0vglTOLMWwe7qTBbJ UB3WyTZDGCHuiFSLxUf0wYtDgbNqvIuxzFcaMfRu+0qWMQluRxYdokXebd7kbNCIjxo9 fjWNrpiNkZtLOMYuJHCqrTZo/iyfy/gh0ZUKSSGKuhiB5JrOO0G4TD2Oq9oiHgewnNfv uzpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vgXrTfZQ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si2936708plh.307.2019.02.05.03.04.23; Tue, 05 Feb 2019 03:04:53 -0800 (PST) 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=@linaro.org header.s=google header.b=vgXrTfZQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728288AbfBELCI (ORCPT + 99 others); Tue, 5 Feb 2019 06:02:08 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36333 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728088AbfBELCI (ORCPT ); Tue, 5 Feb 2019 06:02:08 -0500 Received: by mail-wm1-f65.google.com with SMTP id p6so3132893wmc.1 for ; Tue, 05 Feb 2019 03:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AHCRNsN/DXOVQgOjKjbrzcLFvgqEVSD2eE2iN0OqNho=; b=vgXrTfZQgycBb0HIz8O+OoGKxucePKyhMLJY6eGuUddq6d5gFowky9MLYVYHppVPKb +ge7c7fGa+92VTTD4X5Ph3fCW5KeK7y4+JC1nHVIz3D0hL7jDCD32Xmgt6xivG43Ph8/ sAL0Lz7tHlNVzRbOytJmxpd3Juox07j0/8v9DzilxcfWCsTk73V9soGBCZVuafHQN0Pa 1BECcmEgM/vj2LBuCf2abQbKL+zK7v4+XLWt9txh4Kg1BpYA7YS11MdEY52HSkDc/TRF Kmm9y68OIpxTJMtECoobW23Job27hUCRdAirNS/r5iQ0kWviQJY+NYAE48Q9tbhz1F6s e1Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AHCRNsN/DXOVQgOjKjbrzcLFvgqEVSD2eE2iN0OqNho=; b=Fa98vJjiq0W0G53UArKFvnLX4zMRNBKtptRiknpKKujX6RcWtJd8ZPuI2UbO/RJebk HOSeS40JUnmGiZv3I+2FAx7FLlEQRl4MQnFIiLs9p2VfTlUwEjntBYi2CehjkN0jSJQ1 RjMBhJ8/gf0u4hmSKRiaTXwwRHH5bgAudmNSq6OtWnsjH9LF6nL5QSohpaih5H306qrD gZc0fF0Ar9bkFCtJJMorFvr+Bzx05DjqtJ37+UOLYUDlBZcQX8sP5KFO9cors+MRtOFZ fau2rm/w96aWpiFSeRP/DvjMjQofdp19zmG/aUqAzaf3R5RPs2MPf58GiMUWcrERd6Cp iv5Q== X-Gm-Message-State: AHQUAubBUgK7Z8v4Rf1Hx9TA5ZgdU8eoCp1aUKaLbMXectVqaV2SOS6R 7gkNYwoJdwHXIyHY0wPfB4WOwRWegQo= X-Received: by 2002:a1c:cbcb:: with SMTP id b194mr3017944wmg.64.1549364525872; Tue, 05 Feb 2019 03:02:05 -0800 (PST) Received: from [192.168.1.2] (119.red-83-34-190.dynamicip.rima-tde.net. [83.34.190.119]) by smtp.gmail.com with ESMTPSA id c9sm7193314wrs.84.2019.02.05.03.02.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 03:02:05 -0800 (PST) Subject: Re: [PATCH v2 1/2] dt-bindings: Add Qualcomm USB Super-Speed PHY bindings To: Rob Herring Cc: gregkh@linuxfoundation.org, mark.rutland@arm.com, kishon@ti.com, jackp@codeaurora.org, andy.gross@linaro.org, swboyd@chromium.org, shawn.guo@linaro.org, vkoul@kernel.org, bjorn.andersson@linaro.org, khasim.mohammed@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <1548761715-4004-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1548761715-4004-2-git-send-email-jorge.ramirez-ortiz@linaro.org> <20190130200218.GB5908@bogus> From: Jorge Ramirez Message-ID: Date: Tue, 5 Feb 2019 12:02:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190130200218.GB5908@bogus> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/30/19 21:02, Rob Herring wrote: > On Tue, Jan 29, 2019 at 12:35:14PM +0100, Jorge Ramirez-Ortiz wrote: >> Binding description for Qualcomm's Synopsys 1.0.0 super-speed PHY >> controller embedded in QCS404. >> >> Based on Sriharsha Allenki's original >> definitions. >> >> Signed-off-by: Jorge Ramirez-Ortiz >> --- >> .../devicetree/bindings/usb/qcom,usb-ssphy.txt | 73 ++++++++++++++++++++++ >> 1 file changed, 73 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt >> >> diff --git a/Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt b/Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt >> new file mode 100644 >> index 0000000..8ef6e39 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/usb/qcom,usb-ssphy.txt >> @@ -0,0 +1,73 @@ >> +Qualcomm Synopsys 1.0.0 SS phy controller >> +=========================================== >> + >> +Synopsys 1.0.0 ss phy controller supports SS usb connectivity on Qualcomm >> +chipsets >> + >> +Required properties: >> + >> +- compatible: >> + Value type: >> + Definition: Should contain "qcom,usb-ssphy". > > This is in no way specific enough. ok. will remove the old unused bindings and reuse qcom,dwc3-ss-usb-phy > >> + >> +- reg: >> + Value type: >> + Definition: USB PHY base address and length of the register map. >> + >> +- #phy-cells: >> + Value type: >> + Definition: Should be 0. See phy/phy-bindings.txt for details. >> + >> +- clocks: >> + Value type: >> + Definition: See clock-bindings.txt section "consumers". List of >> + three clock specifiers for reference, phy core and >> + pipe clocks. >> + >> +- clock-names: >> + Value type: >> + Definition: Names of the clocks in 1-1 correspondence with the "clocks" >> + property. Must contain "ref", "phy" and "pipe". >> + >> +- vdd-supply: >> + Value type: >> + Definition: phandle to the regulator VDD supply node. >> + >> +- vdda1p8-supply: >> + Value type: >> + Definition: phandle to the regulator 1.8V supply node. >> + >> + >> +Optional child nodes: >> + >> +- vbus-supply: >> + Value type: >> + Definition: phandle to the VBUS supply node. > > Does the phy actually get supplied by Vbus? If not, then Vbus supply > should be defined in a USB connector node. yes per the documentation vbus can optionally be routed to the phy to drive a signal to the controller. > >> + >> +- resets: >> + Value type: >> + Definition: See reset.txt section "consumers". PHY reset specifiers >> + for phy core and COR resets. > > COR or COM? com > > Looks to me the order is reversed. yes > >> + >> +- reset-names: >> + Value type: >> + Definition: Names of the resets in 1-1 correspondence with the "resets" >> + property. Must contain "com" and "phy". >> + >> +Example: >> + >> +usb3_phy: phy@78000 { > > usb3-phy@... ok > >> + compatible = "qcom,usb-ssphy"; >> + reg = <0x78000 0x400>; >> + #phy-cells = <0>; >> + clocks = <&rpmcc RPM_SMD_LN_BB_CLK>, >> + <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, >> + <&gcc GCC_USB3_PHY_PIPE_CLK>; >> + clock-names = "ref", "phy", "pipe"; >> + resets = <&gcc GCC_USB3_PHY_BCR>, >> + <&gcc GCC_USB3PHY_PHY_BCR>; >> + reset-names = "com", "phy"; >> + vdd-supply = <&vreg_l3_1p05>; >> + vdda1p8-supply = <&vreg_l5_1p8>; >> + vbus-supply = <&usb3_vbus_reg>; >> +}; >> -- >> 2.7.4 >> >