Received: by 10.223.185.116 with SMTP id b49csp2655098wrg; Mon, 12 Feb 2018 13:27:44 -0800 (PST) X-Google-Smtp-Source: AH8x225BMDDIVJZnkodtGbiU5aKyJzEd5WgkrhSPNc/as/kZaT3nXxNV5cbBL04iMkZVkCsWDaUm X-Received: by 10.99.121.71 with SMTP id u68mr6761605pgc.330.1518470864305; Mon, 12 Feb 2018 13:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518470864; cv=none; d=google.com; s=arc-20160816; b=h6RDYbbLLkLlRLhMBjrlcZ8seb66upS295zB22e+KzgK2EsDskGLNb8mYUNvnUh1RQ cOnBdZ604gf+hBXdH7agKSpKSdghIuhDTuYtwHeMSzb8BImA15NCh8tzxoLdJzNtSy9B 03nLq6kyb8FppbXkpktvOowpfCyt0aHUMzbUX8mDOhtJu3YVR0JDyOWgxbcn3T/its1p /Wy2B0L8U8Yg4p2TmM4FcZBHIWsL7/Q6q65WdZrN01ztB4RpYpNkwJ32x1j6O+C94Mi1 7CiXbpj4GiVqvw1N2QNwfAlh+QBdSI/FVk5Sf5VrGemAGkjOGOBHewNEZ48xNH6hoNaH Fkdg== 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:arc-authentication-results; bh=iidOtPpCtiM4NbDTBtv5vkkQ2Q1CvE3/s/HLO4pA5ts=; b=Lcl1vFO5uZI5tK86csPfS73DrIHE9af5nvCsJwxeTYstrMNt1YoRB4vsFepM4MaLXX psTvGZjPDv8EJ99rWoQcexdtUQpwRRkqFDomPHZ6cDGqg8lG+V7+Jj3n6WuhtiHOv4dg o9JWk3klhYoE81beK5dUnde2YsFp34rk5WeO5MH+PG5309uwYZgGmxcti7nP/ZoqwClj OGNbOn219au4VHebH+H2vNF6EljY5s73KaAz415MoEY0wyWSsOnw3pAv6Yrs7TEjHPkH y+tZ47VaLDMHWMn7MBVOyriIj3IDxY2vePnatUSn62XOpg5brEjBeYGh7j4aYhBLugzp PaAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Sp89sfsc; 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 m7-v6si3047490pln.711.2018.02.12.13.27.28; Mon, 12 Feb 2018 13:27:44 -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=Sp89sfsc; 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 S932368AbeBLV0v (ORCPT + 99 others); Mon, 12 Feb 2018 16:26:51 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35760 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932134AbeBLV0s (ORCPT ); Mon, 12 Feb 2018 16:26:48 -0500 Received: by mail-pg0-f68.google.com with SMTP id l131so2826415pga.2 for ; Mon, 12 Feb 2018 13:26:48 -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=iidOtPpCtiM4NbDTBtv5vkkQ2Q1CvE3/s/HLO4pA5ts=; b=Sp89sfscHMiCWtOqBOR4A/XcZvi3ZjzP+KnrljHOhojaQVdxZCSmpzSFt0QV8HWCus Gg1XyQkUsAzqJzq/Xut3ulX8iMmWgE4Mjbab4FJ5flHH4iO0AtCw3bcCK5I970pnkK7t UKKLEKB0QqZl6xO2/mgyNQp0vwS1wl0ayv+LA= 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=iidOtPpCtiM4NbDTBtv5vkkQ2Q1CvE3/s/HLO4pA5ts=; b=VdwV8Ne2+i/4N8Muml1NbhAWWOGxEHv8NFhIsqK0WspWnnQHUs0yWyomFAoBRwO680 FVN4TVWzfsL5kJHJwlNdlcqajvjtYt7TBZ3USg+rKCmJhC3pVb3Sekp74HBYvbMEd/ck NsTvBzBFBPlE2OSKZkSKOeQYcCY6fKmktRqos5feVYB6TxvO0LQmldqttLTk88K6pxEn LoeTRYKKgB5UtBg+LWPIUYABPB1Fx3yS2xnR5juzN9sXZkxTcpvlI3YXcRRU9OKJaGZg 2z16/mkqkwbn1MObkmsP+SUJYvyj3binicO/v/QfRJIjexjroASWTw+h/8xMla+pR0Fj ih2Q== X-Gm-Message-State: APf1xPBvIvJ1ybrqv2JmQ1IIyrsVUc25h0hxELkaYJewyX9kI9mYLiwp hlsRFF5m0xfVHJ4zdc07v4ihwA== X-Received: by 10.98.42.87 with SMTP id q84mr11905148pfq.121.1518470808145; Mon, 12 Feb 2018 13:26:48 -0800 (PST) Received: from ban.mtv.corp.google.com ([2620:0:1000:1501:da1a:a5c1:68e:d948]) by smtp.gmail.com with ESMTPSA id k1sm28377304pfj.161.2018.02.12.13.26.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 13:26:47 -0800 (PST) Date: Mon, 12 Feb 2018 13:26:44 -0800 From: Brian Norris To: Rob Herring Cc: Enric Balletbo Serra , Enric Balletbo i Serra , Kishon Vijay Abraham I , Heiko Stuebner , Doug Anderson , Chris Zhong , William wu , huang lin , "devicetree@vger.kernel.org" , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , kernel@collabora.com Subject: Re: [PATCH 2/3] Documentation: bindings: add usb3-host-disable and usb3-host-port for Rockchip USB Type-C PHY Message-ID: <20180212212643.GA37044@ban.mtv.corp.google.com> References: <20180208152028.9997-1-enric.balletbo@collabora.com> <20180208152028.9997-2-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Feb 12, 2018 at 10:43:41AM -0600, Rob Herring wrote: > On Thu, Feb 8, 2018 at 3:23 PM, Enric Balletbo Serra > wrote: > > 2018-02-08 18:52 GMT+01:00 Rob Herring : > >> On Thu, Feb 8, 2018 at 9:20 AM, Enric Balletbo i Serra > >> wrote: > >>> --- a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt > >>> +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt > >>> @@ -36,6 +36,12 @@ offset, enable bit, write mask bit. > >>> - rockchip,uphy-dp-sel : the register of type-c phy enable DP function > >>> for type-c phy0, it must be <0x6268 19 19>; > >>> for type-c phy1, it must be <0x6268 3 19>; > >>> + - rockchip,usb3-host-disable : the register of type-c phy disable usb3 host > >>> + for type-c phy0, it must be <0x2434 0 16>; > >>> + for type-c phy1, it must be <0x2444 0 16>; > >>> + - rockchip,usb3-host-port : the register of type-c phy usb3 port number > >>> + for type-c phy0, it must be <0x2434 12 28>; > >>> + for type-c phy1, it must be <0x2444 12 28>; > >> > >> When does this list stop? Adding properties for various register > >> fields doesn't scale. This information should be in the driver and > >> based on the compatible string if necessary. > >> > > > > I see, seams reasonable to me, is this applicable to the new ones only > > or I should get rid of all the proprieties like this from the DT > > (including the old ones)? > > We're already kind of stuck with the existing ones. So it depends if > people want to phase them out or not. FWIW, any Chrome{device} using these sort of bindings is perfectly capable of handling changed bindings (we ship DTBs with the kernel). But that's not typically how mainline covers binding deprecation. If we're going to start recommending not putting these offsets in the DT, I'd vote for deprecating them, for consistency. (Otherwise, we'll keep running into this same question.) We only documented the RK3399 ("rockchip,rk3399-typec-phy") binding, so all users should have the same offsets. I dunno if/how we pick a time for eventually removing the bindings entirely. Brian