Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2497735imu; Mon, 19 Nov 2018 01:18:11 -0800 (PST) X-Google-Smtp-Source: AJdET5dJR0c82jFcwQ+rgBwT7C88N/h7IS6gC6NRm+mVx1FzWGiozyv2GcE+zihD9ZV4qJBU/jC2 X-Received: by 2002:a62:9f42:: with SMTP id g63-v6mr21965537pfe.144.1542619091032; Mon, 19 Nov 2018 01:18:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542619090; cv=none; d=google.com; s=arc-20160816; b=EMjTXVGnRV7UF9OrlyEKcivIJyXdj6vzYyqKpis7CFwfZvLMg7Zi/ave7FkFVSRM3Q r+TjUnc51c7Bim8YUjQVOyzI5z+VlB6ZeOlUG5OTvH/5BFBojqybhKtWtYbtfP6b2ZDZ JA8ZBb953rPGUkw/h/sC4fJ4RyM478RqcEBp+ZlwwcCHEbznTYDPim1MDDZRaaBL+jay h7ZDohtmJ/lnLTMuwaHPIywoe2Gc5eDsE8eaiv6QOBGQ6NX88EjNRhV/aim6akBZMwVo 7Hc0e4GT325kHsyjUcotZdD1JhY7flFnEqw6ykfg3c/vbXvzLphTzi3CFm3AY1D06Pyp gHkA== 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=QC3XRj8nNUcvhqzdhjJAaXxDuH4iNsfxmoRRQcKiamc=; b=KasU5sInGq0N2JCYE0cOy4J82ZbaReC6SczMTgtq3lXProovYrFIb5COLUdYMPqbMi xhup+tFUjjQOIgLtUG3ULCKQuLnVJ4rNOkI/cPQjG2IHpAg6/3FZ8XU7a5pkma3qklnq qbrJUjrNdC23vTYRLJobeN8PrIdcRYq3W2ZZcf8koVZQSQfzZOGS6Dp3QAOwLLg3TTLt Uxdjp1SSoBbGjt9ptOgSC7E13GCf8jJB8Wc8zjr9FJHv+iiG6yzbc/Ae0Ptu3yi8kaEi MqU+KZqwyvwokWwmFPi9MVgNAkwdwyq4lY6cE3VRNjmOVU2DBZtnHNUTzBi4QXquY+Kj F1MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e+WIrkjy; 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 n185-v6si40504164pfn.83.2018.11.19.01.17.55; Mon, 19 Nov 2018 01:18:10 -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=e+WIrkjy; 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 S1727348AbeKSTiv (ORCPT + 99 others); Mon, 19 Nov 2018 14:38:51 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44498 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbeKSTiv (ORCPT ); Mon, 19 Nov 2018 14:38:51 -0500 Received: by mail-pg1-f196.google.com with SMTP id t13so4905990pgr.11 for ; Mon, 19 Nov 2018 01:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QC3XRj8nNUcvhqzdhjJAaXxDuH4iNsfxmoRRQcKiamc=; b=e+WIrkjyMLnT/YxQWDj2yfNv3RApHzP47Hvojz+r9Wv5Ecbv5zh6rmlect/IaVwIYY xWWE8y9D57RcKodWZvCKdBDtt5DiAHympTJjki45PudhFg1ZSdd/+wve9lNtKj9e+jfc QCBmnAJQIEN3EMSer1NK55+lsGO+N30Os0xzA= 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=QC3XRj8nNUcvhqzdhjJAaXxDuH4iNsfxmoRRQcKiamc=; b=OLjycfOuPJQ6g5ywqqVHLGNBJGtxE7xhVYEU6G/N6F79wBQHXFAkh5iZqRD6SO2xZ3 +ePD9kNV8n/uaCag8f8JaObHREgj6YEAykun2BfytZG4z2cEcsXMnobhDwWc0TTViFJR Gni2CcaCnTs833xVEWAggaD3tSZkMOUPvE+TdluSHkNbH4pSEQQShv8WyySYFGevV79A ahVepcRKlpKWaef9NDCRoUUHRzDvNnWEVG3DCT1cLW0AMxerBqY6S3cuuGn9H0jF8o14 DSpYeyJRI21tRCe8BH1aH2e7+g9suvVQ4Y4tlGjJ9NkJa91abMrcTmT2MNtwOR1nNsdJ tM1Q== X-Gm-Message-State: AGRZ1gKuhfNndWhC8/eIqMntRbRf2prOhRbNp+TwmYu9ntc1cb8xUSOu EjCo2BhAbAOcAP06nej1zW2/bA== X-Received: by 2002:a63:5f95:: with SMTP id t143mr19678509pgb.395.1542618949240; Mon, 19 Nov 2018 01:15:49 -0800 (PST) Received: from dragon (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id h7sm37963134pfa.105.2018.11.19.01.15.45 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 19 Nov 2018 01:15:47 -0800 (PST) Date: Mon, 19 Nov 2018 17:15:27 +0800 From: Shawn Guo To: Vivek Gautam Cc: Rob Herring , kishon , sallenki@codeaurora.org, anur@codeaurora.org, Bjorn Andersson , vkoul@kernel.org, linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH 1/2] dt-bindings: phy: Add Qualcomm Synopsys High-Speed USB PHY binding Message-ID: <20181119091523.GC10788@dragon> References: <20181108070449.23572-1-shawn.guo@linaro.org> <20181108070449.23572-2-shawn.guo@linaro.org> <5bea0ed8.1c69fb81.8715.38b2@mx.google.com> <20181113034200.GD20049@tiger> <20181119065503.GB10788@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 12:40:59PM +0530, Vivek Gautam wrote: > On Mon, Nov 19, 2018 at 12:29 PM Shawn Guo wrote: > > > > On Sat, Nov 17, 2018 at 09:13:38AM -0600, Rob Herring wrote: > > > > > > > > +- qcom,init-seq: > > > > > > + Value type: > > > > > > + Definition: Should contain a sequence of tuples to > > > > > > + program 'value' into phy register at 'offset' with 'delay' > > > > > > + in us afterwards. > > > > > > > > > > If we wanted this type of thing in DT, we'd have a generic binding (or > > > > > forth). > > > > > > > > Right now, this is a qualcomm usb phy specific bindings - first used in > > > > qcom,usb-hs-phy.txt and I extended it a bit for my phy. As this is not > > > > a so good hardware description, I'm a little hesitated to make it > > > > generic for other platforms to use in general. What about we put off it > > > > a little bit until we see more platforms need the same thing? > > > > > > I'm not saying I want it generic. Quite the opposite. I don't think we > > > should have it either generically or vendor specific. The main thing I > > > have a problem with is the timing information because then we're more > > > that just data. Without that we're talking about a bunch of properties > > > for register fields or just raw register values in DT. That becomes > > > more of a judgement call. There's not too much value in making a > > > driver translate a bunch of properties just to stuff them into > > > registers on init. But then just allowing any raw register value to be > > > in DT could be easily abused. > > > > Rob, > > > > I agree with your comments. Honestly, I'm not comfortable with this > > 'qcom,init-seq' thing in the first impression. The similar existence in > > mainline qcom,usb-hs-phy.txt makes me think it might be acceptable with > > the timing data added. Okay, I know your position on this now. > > > > @Sriharsha, > > > > Seeing that 'qcom,init-seq' is being configured with the exactly same > > values for both HS phys in SoC level dts file (qcs404.dtsi), I think > > such settings can be moved into driver code as SoC specific data. > > Unless you have a different view on this, I will do it with v4. > > phy-qcom-qmp and phy-qcom-qusb2 have been maintaining such SoC specific > init sequences in the drivers if you would like to have pointers from them. Thanks for the pointer, Vivek. That helps. Shawn