Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1362802yba; Tue, 2 Apr 2019 07:33:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwHTYvkTM5R5CGr9ENMORmRo+v+Ie+LTgK5DtvX9BIaYHrhRCchd398HCQYuhG4JKw39dT X-Received: by 2002:a62:e10e:: with SMTP id q14mr30599787pfh.161.1554215580898; Tue, 02 Apr 2019 07:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554215580; cv=none; d=google.com; s=arc-20160816; b=cYDqETkD0X1COcD+gA/5pQjPT9+fr1c8GJkbG9aIe4JfbYHqBg2WqxVjX1SLYxfggA QYjsTCWDWdzrOpF/6IpDuyZFL9RKWc8S2/0+odGGlQHTKzZ4wktbb15D3dIxykUEutgP CKr12jrutlMBFb5pD6Micgz75pBUNR86y2NPrKQ/E2uuyrNT7n59+tYtEelr18eQ33S1 L+tibe04w64kzG8NWwhchBauW4Pnh9dKHRJq2DGKtbK74VckhsPY4fQ9O+ePJKXs+auf k4it92XyOmpNka8znMP/WUnG6ev0Y1beYhzZKRlEjXBaD85py/OBwAifhL8yAoEtlG/n GsvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KeQxngFzRHL50OgvT97dEBHqr884u9TT/RjBDXSlw7k=; b=NHlqCL9wtZw5VaCfRgfcIcK7qWC/uHrxbm2Div4zvIx2q8c9Tbxbwsquj1VZPvMqOa Vh1A9C14d8HLy3xunvW7x8swCD0YyL4glRoTs67NOGXbYUy/fvrNmAz5+jv76ovxSH/N C4rBZOFkN/PDk0zITuhdJnJ6pQp5KfTa11eEAlnJ7iN6ok65FUXj9tFBGr1b5EOqZq0q i/xksbBciP1enTJdM8J0kSPqkN5VGTys0L+XzMSh0vjOw3dlSyv3MPTZlrp7KeXejeg6 vt+fKFh6xXD4tKzd9WZz+a3kd2JofpcpaoT136IjBSiPKpdZlWR3TGEDDeSJ9Kl8JAy6 Iraw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=Tcbq+zIT; 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 i14si2705691pgb.0.2019.04.02.07.32.44; Tue, 02 Apr 2019 07:33:00 -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=@onstation.org header.s=default header.b=Tcbq+zIT; 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 S1731227AbfDBNYn (ORCPT + 99 others); Tue, 2 Apr 2019 09:24:43 -0400 Received: from onstation.org ([52.200.56.107]:41432 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfDBNYm (ORCPT ); Tue, 2 Apr 2019 09:24:42 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id CDBCC4502C; Tue, 2 Apr 2019 13:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1554211481; bh=0T4dDsKz2NW5cIQbHt3NSk01QVcnIMhTTjqRyuGpjdA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tcbq+zIT4Aq9IvKauOc6j6lQH7l7UrWgrhYhioQM1x5lfXsbIfQ9UaV4skhnBQigP lD6bs3Dyq+aSJfy6AFTRcXLYZujZfxOAiYegfeZchB5k6b4uCfrAINXR0478PR3Z2c Xpz4vT0utCiuj4RthKshFla0gyzhqgVkjh57OD1A= Date: Tue, 2 Apr 2019 09:24:40 -0400 From: Brian Masney To: Dan Murphy Cc: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, robh+dt@kernel.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, mark.rutland@arm.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, jonathan@marek.ca Subject: Re: [PATCH v2 2/3] dt-bindings: backlight: add lm3630a bindings Message-ID: <20190402132440.GA10359@basecamp> References: <20190401103034.21062-1-masneyb@onstation.org> <20190401103034.21062-3-masneyb@onstation.org> <68229e7f-4749-cde5-f541-793ab614084d@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68229e7f-4749-cde5-f541-793ab614084d@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 07:56:55AM -0500, Dan Murphy wrote: > This would connect control bank B to control bank A. Or just use a flag to denote to connect them > and not use led-sources. But led-sources is the property of choice. > > led@0 { > reg = <0>; > led-sources = < 0 1 >; > label = "main-lcd"; > default-brightness = <200>; > max-brightness = <255>; > }; OK, I see. I wondered how we could do that in device tree. > > + properties: > > + label: > > + description: | > > + The label for this LED. If omitted, the label is taken from the node > > + name (excluding the unit address). It has to uniquely identify a > > + device, i.e. no other LED class device can be assigned the same label. > > + > > + led-sources: > > + description: | > > + List of device current outputs the LED is connected to. > > + allOf: > > + - $ref: /schemas/types.yaml#/definitions/uint32-array > > + - minItems: 1 > > + maxItems: 2 > > + items: > > + minimum: 0 > > + maximum: 1 > > + > > label and led-sources are already defined in the common.txt no need to redefine them here. If I'm going to use the new-style bindings, then I'll need to convert common.txt over to use the new format as well so that the automated schema validations will work. I'm willing to do that work if there is interest from the LED / backlight maintainers. The main issue is that there are 62 references to the file common.txt in the directory Documentation/devicetree/bindings/leds/. Would the maintainers prefer: - Once common.txt is converted to common.yaml, make common.txt only have a line stating that the common bindings were moved into common.yaml. We can remove this file once all of the other bindings are converted to the new-style format. - Update all references to common.txt to common.yaml. (1 patch or 62 patches?) - Or, just go with the older-style binding format for now. Thanks Dan for your other comments. They make sense and I'll incorporate those changes into my next version. Brian