Received: by 10.192.165.148 with SMTP id m20csp1237015imm; Wed, 25 Apr 2018 15:06:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/GdtTjAcQ6YcMi9JV1tveiXXCvnGR2/FROwKCeaqyJB5YJqIy3gb6G7vkU6SGQdMUIl11p X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr26781663plb.99.1524693979170; Wed, 25 Apr 2018 15:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524693979; cv=none; d=google.com; s=arc-20160816; b=AlGbt1fVDlErAwwC+NTFBnOxFPiPlDz20wKZSJ33i6an0Fen7PJPL94SyXuYfF6ft/ T5zai6RXB6Y/1sp9Q2xNW/vSe/pslE+LoBbNFS9H3Sj9MY+y+qBFBuExc2OTVZKNYjj5 lpcyWZ/lwoWWkjFPcaVozAqnBi5Vj3PMR5s1QjQBg+mXcXwuDQ5UXRTH0EDUKgp8R3mq C/0tXI3nG1+MJyGRuUyKlCY2NLxsgleJmyAip4amMRWTN30hm6lLABmbk/4UaMi0wpdh 6IfN7lTatisOAMU0kzZ28wivU97osCwuH51wi8oHYkuwANW2z887P8qyA0eA3ztYAPDT DMsA== 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:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=J76S1eG2GlScdPmHNw90f7V7x7l2rrDngf0MhmaPKrE=; b=enon8F12Yhqk+i60QVZ2XHVR/fFTNyPyRZwjYKhIHgDTrKtYU6osVj6rosBz106KXh Bfawq2F9CKu5fXmks8Yq0zzh6UZxKpuc+O6jAmc+o0qOTuIOADp85QC5nwSleZBr6JF+ 0pL0y25WKZp4wEItoDOFdO+c8AOAnmfW/wNvdqsDu7PlkMKZuE0vtD44LQKwzobPj4ue iRU0j2KUcRS6St17WDDB+nlAzMVHVcpP5x4F3HbY7ethLzUyCbEw0o0NQ5XUCfxk9PlU uMBmTH8rQv7MSkWJaC2tienz28CZBlCe4vVvo8mBTYQ3APcVoHpBrn7MX09F1cQshQlq EUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qsmBY2Vt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si17329659pls.93.2018.04.25.15.06.04; Wed, 25 Apr 2018 15:06:19 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=qsmBY2Vt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753349AbeDYWE4 (ORCPT + 99 others); Wed, 25 Apr 2018 18:04:56 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:48900 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbeDYWEy (ORCPT ); Wed, 25 Apr 2018 18:04:54 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5EC7E3E45; Thu, 26 Apr 2018 00:04:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1524693892; bh=bpfr83IPfVJu0WTG8mAkLT3uPNwadnDrFNvMUzggV+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qsmBY2VtiY2tKlU/TVKYRw9PqhbhdX1XabNP/XTxzr5QzBfjXRqAPXbggMvsBrqKw FrKvUkDI7y07e8UFtMaxJxUrvFghQe9D76LWDQQzEqqujZRh3MY+sOuUv0ICk3YSl/ g2C19PydGNaUBl6aKMpZ4EyvdB6cyVaFqs1Pz4MY= From: Laurent Pinchart To: Rob Herring Cc: Philippe CORNU , Archit Taneja , Andrzej Hajda , David Airlie , Mark Rutland , "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Yannick FERTRE , Benjamin Gaignard , Alexandre TORGUE Subject: Re: [PATCH v2 1/2] dt-bindings/display/bridge: sii902x: add optional power supplies Date: Thu, 26 Apr 2018 01:05:06 +0300 Message-ID: <3518575.OAoTTXDygq@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180425171123.xhyoay3nu463btoq@rob-hp-laptop> References: <20180425075314.19137-1-philippe.cornu@st.com> <1559016.ZjzeSVB84W@avalon> <20180425171123.xhyoay3nu463btoq@rob-hp-laptop> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Wednesday, 25 April 2018 20:11:23 EEST Rob Herring wrote: > On Wed, Apr 25, 2018 at 04:17:25PM +0300, Laurent Pinchart wrote: > > On Wednesday, 25 April 2018 15:20:04 EEST Philippe CORNU wrote: > >> On 04/25/2018 11:01 AM, Laurent Pinchart wrote: > >>> On Wednesday, 25 April 2018 10:53:13 EEST Philippe Cornu wrote: > >>>> Add optional power supplies using the description found in > >>>> "SiI9022A/SiI9024A HDMI Transmitter Data Sheet (August 2016)". > >>>> > >>>> There is a single 1v2 supply voltage named vcc12 from which cvcc12 > >>>> (digital core) and avcc12 (TMDS analog) are derived because according > >>>> to this data sheet: > >>>> "cvcc12 and avcc12 can be derived from the same power source" > >>> > >>> Shouldn't the power supplies be mandatory, as explained by Mark in > >>> https://lists.freedesktop.org/archives/dri-devel/2018-April/172400.html > >>> ? > >> > >> Laurent, > >> Many thanks Laurent for your comment, I understood the merge of the two > >> 1v2 power supplies but missed the "mandatory" part... maybe because this > >> patch (with optional power supplies) already got the reviewed-by from > >> Rob, I thought the discussion thread you pointed out was applicable > >> "only" to totally new driver documentation. > >> > >> So, on my side, as a "new user" of sii902x IC, no problem to put these > >> power supplies as mandatory instead of optional properties but I would > >> like to be sure this is applicable to both old and new bindings doc : ) > > > > We obviously need to retain backward compatibility, so on the driver side > > you need to treat those power supplies as optional. From a DT bindings > > point of view, however, I think they should be mandatory for new DT. > > We don't really have a way to describe these 3 conditions (required for > all, optional for all, and required for new). So generally we make > additions optional. The exception sometimes is if we update all the dts > files. Can't we just make it mandatory in the bindings, as long as we treat it as optional in drivers ? > >> Rob, > >> could you please confirm these power supply properties should be > >> "mandatory"? if yes, should we then modify other optional properties like > >> the reset-gpios too in the future? > > > > The GPIOs properties are different in my opinion, as there's no > > requirement to connect for instance the reset pin to a GPIO controllable > > by the SoC. The pin could be hardwired to VCC, or connected to a system > > reset that is automatically managed without SoC intervention. The power > > supplies, however, are mandatory, in the sense that the chip will not work > > if you leave the power supplies unconnected. > > DT only needs to describe what matters to s/w. If a regulator is > fixed and you don't need to know its voltage (or other read-only > parameters), then there's not much point in putting it in DT. > > I'd probably base this more at a platform level and you either use > regulator binding or you don't. It's perfectly valid that you want to do > things like regulator setup, pin ctrl and muxing setup, etc. all in > firmware and the OS doesn't touch any of that. > > That's all a big can of worms which we shouldn't solve on this 2 line > change. I think this change is fine as-is, so: > > Reviewed-by: Rob Herring -- Regards, Laurent Pinchart