Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp956749ybl; Wed, 29 Jan 2020 12:39:35 -0800 (PST) X-Google-Smtp-Source: APXvYqw/mEVR+hzefcxeMQlIA3cUxvePQ3VK65TOf8qw7QInBm7U3LDQ9AQrDEWQICXwoIKe8nTV X-Received: by 2002:a54:4595:: with SMTP id z21mr580760oib.136.1580330375158; Wed, 29 Jan 2020 12:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580330375; cv=none; d=google.com; s=arc-20160816; b=bv4cXpmim4DlDpkWSmf3mZvVYJbIP3m2KNQNZsV+xjXaEwxJIFcDQ3T8TsbFETVxHf phcurChUH/pPyXhKcWsfivaGZfKN8knf8Bnfc1Xu38FHcYx3v4BnyM4Lf8yj/o46gNjl /jgm2vLBwFZRFbq/qx0McHl3kiH35cF8XtdOcIqSTSxK77Nr9NG0PrtIUtxe1kSNd97R MxStskF/uWgN7vguiZRPEtG7iYd3/RFwNKJKEfjLT3tmOnxDNygvImdf0KTz//zUDAlG QC6apOFCUo5KUEpaUR4MOmbFS0yjj4B3DJ0rflnAaXxb3o8o333QoDQyULaMAHHzvVDt K2YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=I/3MIyesWwLMZvoquoi7/37fnkG30lH2RtrUZl2JY2g=; b=tB3uGsBg4jsbzyMSlVvRxuTpQBodiaOfMJi2Lm+2dKrMePom/JbKYfhTHpnmxJEMA0 fLJAyJnGF6K3OevPRG7T9CeWgWwFXzCzgkCYhbRZ3U0CFihyb+ewAmh8F5rRtq8rpXP/ lw3O7WYIWOgd16RSBgqtTJeIv49eK4tmKG2TQDs1V8qTHPbF4p6kEVbB0rHDcSSAfd1E 18npNHRbRzJ7CBJ7nwqO/ukrvUJ5gNKvwnS0onpRv9P8/KfK2mwqmIkOrfFFBsz+tslG tq+sGQ7sdr1GDlqCkIaqVmDeAmbDr74anAtdF+W/WUChsI/QCPjzyB+LdS/kGhRPWknO mltA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RCII856z; 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 y12si1617803oti.162.2020.01.29.12.39.22; Wed, 29 Jan 2020 12:39:35 -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=@chromium.org header.s=google header.b=RCII856z; 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 S1726317AbgA2UiV (ORCPT + 99 others); Wed, 29 Jan 2020 15:38:21 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38396 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbgA2UiV (ORCPT ); Wed, 29 Jan 2020 15:38:21 -0500 Received: by mail-pf1-f193.google.com with SMTP id x185so251446pfc.5 for ; Wed, 29 Jan 2020 12:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=I/3MIyesWwLMZvoquoi7/37fnkG30lH2RtrUZl2JY2g=; b=RCII856zNQ+5oofjSFPKITF/gPTInLOj3Bh8ZgmaHEk7wpcvKCtOUKUxi5Fazcpk2x jG+C3Ps8b6d29UipkLfgcYTpH6UEhv7b4AhlR7c9O3RWekLCn6gki/XcsACCuIrSgef4 dwsyBtU4SN7Piz79NMuLyKVtBEcqEN039rBOU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=I/3MIyesWwLMZvoquoi7/37fnkG30lH2RtrUZl2JY2g=; b=thxpz0Gr44LpTpDdbpUJNWBBnYzHHQv7bwLBjnRTmGunD+QKrSEgasHnEZPOcn2R98 uN0ip5wWlvGtrTDl2KNjSi9sE8zBsPE2zPZX5OlDsA9a7mGUnaRlXRhlt9VNpzyuzssD mVQxcTvoWOkxiefNeP8bjLZEJB2xrWhd2cC3dF8YXvNoCSfDJIDrlquVhJ77Nv2Z4eFz bsgxyUKGyPMiTjacoWs6NqDyc+VBiMq7yh/ELZ0ic7DXY3keb/8OExDiJA5h1etiSkIp XbgR1o1QLKrjGjssbpFC8AEFdqXf3z372EiyzN1s5lexBql1VFaCeMq2upCL6cPrGQSX 50zA== X-Gm-Message-State: APjAAAUhw8k0+4OirF0h757gJtt3Ej1oeXVCes73mQYIzTO0QDfjtZRp JgPP9Z6eIw+Kn0cZMRRaWF98jQ== X-Received: by 2002:a63:1f21:: with SMTP id f33mr918798pgf.91.1580330300869; Wed, 29 Jan 2020 12:38:20 -0800 (PST) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id b185sm3644304pfa.102.2020.01.29.12.38.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jan 2020 12:38:20 -0800 (PST) Date: Wed, 29 Jan 2020 12:38:19 -0800 From: Matthias Kaehlcke To: Sandeep Maheswaram Cc: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v4 4/8] dt-bindings: phy: qcom-qusb2: Add support for overriding Phy tuning parameters Message-ID: <20200129203819.GE71044@google.com> References: <1580305919-30946-1-git-send-email-sanm@codeaurora.org> <1580305919-30946-5-git-send-email-sanm@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1580305919-30946-5-git-send-email-sanm@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 29, 2020 at 07:21:55PM +0530, Sandeep Maheswaram wrote: > Add support for overriding QUSB2 V2 phy tuning parameters > in device tree bindings. > > Signed-off-by: Sandeep Maheswaram > Reviewed-by: Rob Herring > --- > .../devicetree/bindings/phy/qcom,qusb2-phy.yaml | 33 ++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml > index 43082c8..dfef356 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml > @@ -80,6 +80,28 @@ properties: > maximum: 63 > default: 0 > > + qcom,bias-ctrl-value: > + description: > + It is a 6 bit value that specifies bias-ctrl-value. It is a PHY > + tuning parameter that may vary for different boards of same SOC. > + This property is applicable to only QUSB2 v2 PHY. As commented on 'dt-bindings: phy: qcom,qusb2: Convert QUSB2 phy bindings to yaml' a possible improvement could be to restrict these properties to the QUSB2 v2 PHY through the schema. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - minimum: 0 > + maximum: 63 > + default: 0 > + > + qcom,charge-ctrl-value: > + description: > + It is a 2 bit value that specifies charge-ctrl-value. It is a PHY > + tuning parameter that may vary for different boards of same SOC. > + This property is applicable to only QUSB2 v2 PHY. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - minimum: 0 > + maximum: 3 > + default: 0 > + > qcom,hstx-trim-value: > description: > It is a 4 bit value that specifies tuning for HSTX > @@ -118,6 +140,17 @@ properties: > maximum: 1 > default: 0 > > + qcom,hsdisc-trim-value: > + description: > + It is a 2 bit value tuning parameter that control disconnect > + threshold and may vary for different boards of same SOC. > + This property is applicable to only QUSB2 v2 PHY. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - minimum: 0 > + maximum: 3 > + default: 0 > + > required: > - compatible > - reg Reviewed-by: Matthias Kaehlcke