Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4653337imm; Mon, 14 May 2018 10:36:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq6ZqFKRvYhiuqSuVIkR3tUJ/5xR1/nW7jcapVXdhwsr+BPqRW4ET7djQs1g+XgfUF5Z4IJ X-Received: by 2002:aa7:850f:: with SMTP id v15-v6mr11496554pfn.144.1526319365885; Mon, 14 May 2018 10:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526319365; cv=none; d=google.com; s=arc-20160816; b=w3ftLHCNBGs76+pEatpI4Svw5gpii3Kn64rNbcJfvaRcGNdYS3myUj++656lDuNm/T NsScmTsdF1ZIHMrVtHJoLBgIf/Wom1+yzIOmQR0Sl7BImG9o5D4LeK/UhUZZOIt1AUrL 9pOqTQz8ME3O+bylydWGQAO3gPRP712uFhY/UGWm6wbmQORw3SgeDR81gBdfQNMlwNdY Cl8v7qAdClQb5drC1p3709fqOP3AnInng/lZywoc4rPZ25oTyCdHFvVKFTobz+AI8mZl JgLjUsgnJr2sadSnnabEfFPrlDZiCS7EWrKhEfPN3NJ6lby+eqUcgJ3AUKtz41uK3YZ7 VR1g== 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=H0Adnq6+rO6wp83QZCOateuFKX4NrIpn+S6XrRqov3g=; b=HwPVqBiiCdvu+498uBs3pxk6kLKqk91oarfKaGFCQQKTodsey8ni6tz28yfIAUGeud 4cYXaQYrWHrtXMa0/gKU9N97z6Rs9Q1wzs035Ib4g3A4zRDKwGNSLQiYq9g847hZpD83 nz4Epv10e5sauswmdgqcC53diI6ZLjyfUl3+hitThG721J1OeWwKIc5frRxs0oeC0TAm vZF790MIYbl/4aK5qSTd97ce41fT41k8ZNCnzlVD49I/IX/xcTAc41W2KJxIkslsfDZ7 ox98uJSIqWgtjZcLVfCLkoPstnU2neljY/2RFMn33abQW+EDy+DakdpbwRCYVhqhfvhO Qwaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=X789eTai; 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 i74-v6si10514057pfd.105.2018.05.14.10.35.51; Mon, 14 May 2018 10:36:05 -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=X789eTai; 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 S1752601AbeENRGY (ORCPT + 99 others); Mon, 14 May 2018 13:06:24 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:41658 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbeENRGW (ORCPT ); Mon, 14 May 2018 13:06:22 -0400 Received: from avalon.localnet (p5013098-ipngn2602marunouchi.tokyo.ocn.ne.jp [153.222.88.98]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7B9BE614F; Mon, 14 May 2018 19:06:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1526317581; bh=gjVCaLyBs8PtgKvXGMbLLQ89Fta5vcmzmmymzQTrlYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X789eTaiIjCnwVSIrPZTcGcppCYacFO46TQ4N1R/g6PhQaWnX6Mr5MhfAhZ4NSpsZ ipOSmDgKfZPYp+xGxQSJgs/jFCm2uLE7BEbC3j0FEAAs3ScKsJT7qggSUmwdfdgbRl lyIgNmy87zzy0DxfBiPZVkcTmmzb1Q9qdT+bp0pE= From: Laurent Pinchart To: Philippe CORNU Cc: Rob Herring , 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: Mon, 14 May 2018 20:06:38 +0300 Message-ID: <1617167.qDJKxXFJBi@avalon> Organization: Ideas on Board Oy In-Reply-To: <7fe8e766-56f5-38a3-b4dd-b44d4a5bdcf8@st.com> References: <20180425075314.19137-1-philippe.cornu@st.com> <3518575.OAoTTXDygq@avalon> <7fe8e766-56f5-38a3-b4dd-b44d4a5bdcf8@st.com> 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 Philippe, On Monday, 14 May 2018 12:22:16 EEST Philippe CORNU wrote: > On 04/26/2018 12:05 AM, Laurent Pinchart wrote: > > 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 ? > > How to progress on this patch? Do you have any suggestions? By seeing what Rob thinks about my proposal above ? :-) > >>>> 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