Received: by 10.223.185.116 with SMTP id b49csp3373659wrg; Tue, 13 Feb 2018 01:22:17 -0800 (PST) X-Google-Smtp-Source: AH8x224osPUuOHOOMErO67JpQDUac251n2oR+3skdgodRr594LIsDdZf4olDZOAFwardQ8hV65e1 X-Received: by 2002:a17:902:b216:: with SMTP id t22-v6mr545449plr.414.1518513737197; Tue, 13 Feb 2018 01:22:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518513737; cv=none; d=google.com; s=arc-20160816; b=C9TkieXOACMh0+qnOeHHSm459khiSB7MrVqNiWwM/plSWEMu186fqxJw9oQUFCKSJX U/mXVw+YYT7Pc9qLlvuVrNLRmUczNvsHa0ZbZ3KcxF2bQrmoLzfcYbVnSy0rLKugVkdI OYplFTXGQhU70A1h0zoa5CFguXceOP5yFq2JTVtg1T4r03kmVhXfwd3kdY3/cbpSGuXj M7LUSKQgash4f01xCgvlMp20JNX4R9aR2jR0VjtuFrJnkuvOpS+fLmW1tIGu/+azKFfp rgYlj6XMAnmCfqONtocr7FrC9lxczEwJ3VzrgLShjcqZVJi+8qrm7dLckfUEBF8lrhAN QM7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=MJ6CnLjzwGTCru49S4FdAoY5g7kc0dOCTNWlunodkuI=; b=OjNdGpXEWqDtyRM2vZ5eMYroRCyTCbU6UIKZBbBZ06ugcpH4LUAvCAB3nVSJ6vqRCI Qpg+2WlYjiE+/kJnfrn+HQiGrKuVXrXldtwGf7YHq0eqxXnJvylw7mmUR/s5OZYiU8JV 6c++/2xszv3YvrTeUPSkcup+4WlCPvv7YqUFTuy6Ou4eqjTakG2RQ9q4Pl8z94aOmvzp N9fJnlFW8El7xGqY4DxMaCoPPYpA+s6Uzp+PBIWewjLkYcMPaDvg2Yj/laWn6VBYMZ/Y 9ApBCb9Z6pTEJy5C8oLZk+FoUEmGMQJXr/E63RN4n/FrN0dgNH7fxYdm1ZQhIBykLQwt seZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EANJ2Si0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e27si5616756pfk.256.2018.02.13.01.22.02; Tue, 13 Feb 2018 01:22:17 -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=@gmail.com header.s=20161025 header.b=EANJ2Si0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934460AbeBMJVJ (ORCPT + 99 others); Tue, 13 Feb 2018 04:21:09 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37432 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934253AbeBMJS6 (ORCPT ); Tue, 13 Feb 2018 04:18:58 -0500 Received: by mail-pg0-f67.google.com with SMTP id o1so9470841pgn.4; Tue, 13 Feb 2018 01:18:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MJ6CnLjzwGTCru49S4FdAoY5g7kc0dOCTNWlunodkuI=; b=EANJ2Si0kWPcDD2g5yNdRM/75ydqR8xkLaeBirCWpj3m4P+J2mX0lMK9SuscdQAALS C1SmvFyYltsXDEw648qka6ro9CdUCDu5RFVYaYKvnCKlxTEwq/xyIm2lUYh8tYZAbzfg 7kJ7FdJ+zLKcedFySOmsEvsYpV4jKz4TKspHblw3NdNUOG84gIwbYsh1wYrLlLduaEp4 n+K3XAhhDnypboxuVaNdUUPHlnHyfyswyp71G/5oFmUNyLglYehnMLDMshH5LI33I0Gq +ewK7Yik/0D0U63Iu7hd+hwRtQv2G29tO7mISxWgFKgeIhlpMqiqx8x3qJSqSqbmMJV5 Izuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MJ6CnLjzwGTCru49S4FdAoY5g7kc0dOCTNWlunodkuI=; b=Mhv/p+VRkLi/ziV4RBrllCZIDv5s7jX3zRzPjhXqXAUd4QUqj7MmFRcSPrzCVjoxpj fsduaQfpn+hwWTcPnXoThidfZHrLgi1m4LaWcxagDaqgtBvkaVytFqgf2+VwzUIoS6tc YwLzynrxz75OnbsIjtBuwXf7hNVPVNXB88AHHWzidWewW0216xGFimVSv4oqtQzSUouy x2/orep+9YF6M6D1sXjoqA5Zrxi+7vtWgL5ffKIDtxp8zpSk3ghTAvdnbv0Ayfa7ejo0 YEtCREFPFc7X+msudtd9EGBtktfrnPqwC+UWH2HIzaqeXHe+tKZcL8OlV33hc6ya/Mqm 5EOA== X-Gm-Message-State: APf1xPBBdBz/OUwVeD8bJIO/u2LIaSbzknUJcNwdKjiU3gk+z6C9phHe jZtx6ZLoYCDXr4E/ChCz8ZUqNZpEkhBiZ4EM/X4BTqY9 X-Received: by 10.99.114.86 with SMTP id c22mr471395pgn.41.1518513536100; Tue, 13 Feb 2018 01:18:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.247.140 with HTTP; Tue, 13 Feb 2018 01:18:35 -0800 (PST) In-Reply-To: References: <20180208152028.9997-1-enric.balletbo@collabora.com> <20180208152028.9997-2-enric.balletbo@collabora.com> <20180212212643.GA37044@ban.mtv.corp.google.com> From: Emil Renner Berthing Date: Tue, 13 Feb 2018 10:18:35 +0100 Message-ID: Subject: Re: [PATCH 2/3] Documentation: bindings: add usb3-host-disable and usb3-host-port for Rockchip USB Type-C PHY To: Rob Herring Cc: Brian Norris , "devicetree@vger.kernel.org" , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , Enric Balletbo Serra , Linux Kernel Mailing List , Doug Anderson , Kishon Vijay Abraham I , Chris Zhong , Enric Balletbo i Serra , William wu , kernel@collabora.com, linux-arm-kernel , huang lin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 February 2018 at 23:29, Rob Herring wrote: > On Mon, Feb 12, 2018 at 3:26 PM, Brian Norris wrote: >> 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 it's CrOS only that's using these, then it's really up to you all. > I guess it depends if many folks are trying to run mainline on CrOS > devices and don't necessarily keep things in sync. For what it's worth I run mainline on my Chromebook Plus (rk3399-gru-kevin), but in order to have a somewhat working setup you need to run 4.16-rc1 + various patches from the rockchip mailing list which means you have to keep up with the latest mainline (both kernel and devicetree) anyway. So I'm all in favour of cleaning up the devicetree. >> 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. > > Yes, makes sense. > > Rob > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip