Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1936543yba; Sun, 7 Apr 2019 04:29:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQeAnnv5WbAMP0AOd08XDe+VCyAj7GMbZFC3X589BTzuPJQT/LjZUektYVDoZ+164eKfSY X-Received: by 2002:a17:902:2927:: with SMTP id g36mr24229838plb.57.1554636553893; Sun, 07 Apr 2019 04:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554636553; cv=none; d=google.com; s=arc-20160816; b=Egl9zvxoS4exZeiCIFFUUP2y08Ws2+fIU1ha5GWy9rz26bE3WOuyyljVsUakpgvosx GY7DuUTl33gd3OG0TrCnPgIKRXDC4379YP7MiS2ei6uS5RRKwEfrq5gJsyLqvlCMQqjx BHMZmR0evStx/su9j9iCszWLFB4Ezs8diqEmMkgtasXh+UxKiAZ3uRvWbZ3HN/l0gDog nfaZ5MfvMBdEkCAkXWh2H7VcXhIkoI3J9dxhmlBCeeKhs092JqnUGFTskQNZBzyyM0c8 WpkrvlQJBiXhDtSmDwe40CW6+UrDbxFrSnSJbny5PuopUvAQAy1TZB0Pov7GoDsy0n23 HaaA== 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=khnis/ar/osOkABjJdbjyBnfXtG+wtnrsbV/H5WV7X4=; b=jhmf13+aUYv1UaLaddiKq8iYyMPusfUk6W4B47pSS99q460tTpP/20Dbjhgv9CshA0 P0jP4XbbC0T2daDKPA/cQ/WtYmo4y310A6i6y/uUGksEDKR3znzH7HCGsgyS1eQVPq2T DURUOTbfMAvqmR/5JWBZ2ubACuqj10GBAb9U1PILx3Scg1fzPs13+j5+tCrWmEd8K6t/ 9thZmYpeG9kv3s22BjAjN/EnzW/RZh+m2UAUhwznZqcVhj0vbxsEQ4BJA/JIVxaznZ1x JMNE0S4OurJ0xn/i/UPJGLeSdYxbEugqGB0zRnTQHWe1T/vhM8ySRnKnQQ4S299VFl4r ISIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=UDoNhSYo; 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 q8si23175056pgp.480.2019.04.07.04.28.58; Sun, 07 Apr 2019 04:29:13 -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=UDoNhSYo; 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 S1726489AbfDGL2X (ORCPT + 99 others); Sun, 7 Apr 2019 07:28:23 -0400 Received: from onstation.org ([52.200.56.107]:56468 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbfDGL2X (ORCPT ); Sun, 7 Apr 2019 07:28:23 -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 1F61F3EE68; Sun, 7 Apr 2019 11:28:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1554636502; bh=vpMqsdsNHGaPr7vvdFnzl7khluIySmMwQJVbwnsvz5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UDoNhSYodRYRlsTqqsqSCiNzS06vLo0B+U3gkZcqTwsIDMLAV1MXlb/1yZfxg7g9E jlIRnHlyQvlx3cyLDkvj1Gfg2DfifhNvdPyWPMTneL3BJB769EOy5XqMyEMEBsneVz uJvZHJRVIkcsYWTbJjrpcKzzC4T2Bi+xMsdhS/EE= Date: Sun, 7 Apr 2019 07:28:21 -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: <20190407112821.GA6922@basecamp> References: <20190401103034.21062-1-masneyb@onstation.org> <20190401103034.21062-3-masneyb@onstation.org> <68229e7f-4749-cde5-f541-793ab614084d@ti.com> <20190402132440.GA10359@basecamp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On Tue, Apr 02, 2019 at 08:44:22AM -0500, Dan Murphy wrote: > Also one other comment I noticed when reviewing the code that there is no definition to > which child led properties are optional and which are required? With the new YAML bindings, there is a separate toplevel 'required' tag in the schema. Here is a snippet from my last submission that illustrates this: properties: compatible: const: ti,lm3630a reg: maxItems: 1 ti,linear-mapping-mode: description: | Enable linear mapping mode. If disabled, then it will use exponential mapping mode in which the ramp up/down appears to have a more uniform transition to the human eye. type: boolean required: - compatible - reg So 'ti,linear-mapping-mode' is optional in this example. > > + 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. We'll still need to define the led-sources and label in this binding with the new format even though it will also be in the LED common bindings. We won't have to put the common things like the description since that information will come from the common binding. We only need to specify the additional constraints like the min/max number of items and the min/max value for each item for this particular example. Brian