Received: by 10.192.165.148 with SMTP id m20csp958604imm; Wed, 25 Apr 2018 10:13:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vuMZYzVywkaXmTKpli+ozFGaFIiDMqZkEKszFB7NGepxmTfXYHoDkGXSvmFPx7iNjIoNM X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr29873836plg.277.1524676438837; Wed, 25 Apr 2018 10:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524676438; cv=none; d=google.com; s=arc-20160816; b=c0Xm4rWRNrRrVQD4Cop3Ke22N6kxG3KI0/DOddghJTOufs8gacWn45tj7RDofUfhcP Q2XBCFCF8iB4JtnYpfqSv8yemyYRDlAwJePmPTadE7RyICTQDKSARkty5pa69MyKiGYH 7X2PzPrjF6fWWMdWr/sdw5IShtfFM3bv8toyQAfcdjTEus/AKcGl/9ng3h2Xbm4a3qc3 hScvMx1a62UhPT1bEA5EjFEFJf0fF7FGk0ZuqhTKs4RAgNdxMkLbKrfUWwGZ97RzRuCH iaXD8fmzWT7wMv5G1oEttvgrA9fYijyRXr3uN9uvgJxvle7uVwEfiA5fsO2lq3gZndsI 0Tew== 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:arc-authentication-results; bh=NiJGfFTji+U6UHafNjpzIgen1yFC+bhJiBdgZOWXvbo=; b=j1zW8uy7/qB1o1KJL+2+scPdBe8FeKZhCE3kMRSLTUBxdFUu5gCmt0tkwGv2SY8DVf cJBoQr7hcdYX0qgru3HZKFMrvKQVIwdL/TG7YR2mNWniyFx8oOsoZwoI96h0qF66ENUb 4TUu8ROKWZuLeHz1HkYg0EKK1ExrQcdFLPEKONWeeMNgW3grpMfp1r09GKF+A8Q/MU8Y X0yFiRLc39m18c19htBXf7PvXXFmazxtYvU+vAHo1D55a7xA2ZDb/QalZ0+MzM2VBiGJ cW5V4WwfvNRABE70QzPd7tMKW1/Zxn1eb9ZIBDbozR9mShmdQJWbxr/guT/rLL7V1sCm +jeA== ARC-Authentication-Results: i=1; mx.google.com; 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 x6-v6si3877337plw.268.2018.04.25.10.13.43; Wed, 25 Apr 2018 10:13:58 -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; 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 S1755371AbeDYRL2 (ORCPT + 99 others); Wed, 25 Apr 2018 13:11:28 -0400 Received: from mail-ot0-f174.google.com ([74.125.82.174]:35579 "EHLO mail-ot0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754649AbeDYRL0 (ORCPT ); Wed, 25 Apr 2018 13:11:26 -0400 Received: by mail-ot0-f174.google.com with SMTP id h8-v6so22446246otb.2; Wed, 25 Apr 2018 10:11:25 -0700 (PDT) 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=NiJGfFTji+U6UHafNjpzIgen1yFC+bhJiBdgZOWXvbo=; b=qDgW5tBOo0Kr1PEOqqpBL9zOgp8Zoq7MmnxZtjGgsZtBBoRU6S0ZwmKZVUG+HVS7jr H271455UJVf9bQQbABmaqkEQEmi7dh+tRZIqH7WrOePS9w6mGy9kq0cobWX35C1++Fo9 JMKbQ6NVi1eOjDyzKKTvXq/6bWPLsPi2JT+Z2ZlVkbaJUwwzeDui7LwNlioJjE9zZILh gjxjMzpXbv/FUqxahLjjWB4Ymz5ysDtFRiC48oxd1zvCMPlbOTfAQ4oTty244ai+GO1E no0/D1m4JwQrWcRh9vHltUH9kTzlj2C9gWq7ZSoA70luuTzVF5f0NfakJKZl8QqJjINr Ejcw== X-Gm-Message-State: ALQs6tDqXxGq1Dd1C2BnVMb18xXswjsXKIuCV0cKRaSsgmRuEmD4eKt+ +MY+Y56mN1m8lXa8TlUZMw== X-Received: by 2002:a9d:4330:: with SMTP id s45-v6mr17636572ote.270.1524676285394; Wed, 25 Apr 2018 10:11:25 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id r37-v6sm10116497ota.10.2018.04.25.10.11.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 10:11:24 -0700 (PDT) Date: Wed, 25 Apr 2018 12:11:23 -0500 From: Rob Herring To: Laurent Pinchart 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 Message-ID: <20180425171123.xhyoay3nu463btoq@rob-hp-laptop> References: <20180425075314.19137-1-philippe.cornu@st.com> <16954794.QiYqgNKfkn@avalon> <1559016.ZjzeSVB84W@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1559016.ZjzeSVB84W@avalon> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 04:17:25PM +0300, Laurent Pinchart wrote: > Hi Philippe, > > 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. > > 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 Rob