Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5760440ybp; Tue, 8 Oct 2019 07:55:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZK6huLM/rDkX2lJpVwCEEkpvrsW4M1XCL7XEONB5E+xcQ+h/jhhKL8K490c3fDepbtHjd X-Received: by 2002:a17:906:7d10:: with SMTP id u16mr29438619ejo.194.1570546551376; Tue, 08 Oct 2019 07:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570546551; cv=none; d=google.com; s=arc-20160816; b=bU03emFaiGxn0mj389u7Cs7aachhiMhFjzp4HAlge2/wFHYifk+K4fQX3X50wpQlcb jbPleRisOMwc74e8qu5LU+IaPLscrfyM+o+TWvZh/lg59tyYeHoHxXnXntOEOtrd3XY8 7BzlbVdQzdewSZN/cQ5eI4l6mx+Qb3jGkw/Jg1t7VV07rTDP/UYqtScn/FraJTuRvxyj mE0hU+neoNyDe6PZUHDjCmVcvHNUDuZFz0ATUraqKHwhenhQPrp1nUCN4JU6A0byawIA NQq0FEl2ezgHsZWeqP71PequO7LU/ijdVeqvaWcsbrZ7/RU0S/BT/Fj+zlsoBe5e+4fr NUBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QHfe2VLBRUouursc//7o0qIBjNsw/5sf+X9hU3mDQ7I=; b=IUBPzn9+PzH7jG4Vv9t+zYhX0jnzzTkq+0cDVnzxSqlR8UplGVjeuFQsNvDCxzaoqI 2SKZsT9o1fHTjlluMIIfawtwpzObtwjWGcawDf7F2aDxe360q6xGilDCrl5NdpED34eY ogxEXdRiDXqgVnHTZwNQiK11gD76pQ+/g5YdnO20NJe3l6dG+kPcOmX3zXqhs5eXUEj6 0bvw+CwDHTwyh0KOJ/7AptsGTZs6tAb+oEKGSNonFg7fm9vBwlz4Zyq59OQhcB/qkfV6 nDnUtRb33REJj21PLv8zLwskGkvXlTovOjBwI3I8z4RWjmcIPJtOnz3dE02ZVaebyGMf bNeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1m1YJESG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qh16si9050644ejb.349.2019.10.08.07.55.27; Tue, 08 Oct 2019 07:55:51 -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 header.i=@kernel.org header.s=default header.b=1m1YJESG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727306AbfJHOxJ (ORCPT + 99 others); Tue, 8 Oct 2019 10:53:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:34988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfJHOxJ (ORCPT ); Tue, 8 Oct 2019 10:53:09 -0400 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB79F20659; Tue, 8 Oct 2019 14:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570546387; bh=43D7mJTidNziffTuZdsS4fBLNRTISxe76SYbSUFqmEA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1m1YJESGHnrJ5kSL4SpMFlTgPgrgMebqBQkd3RuW0i5X+8TPHwI0YSPQ21+vM0+AY NhIgNS5NuszhMSn6uufNPKlPvus6kC1GTbwEfflVK5EdbSzCnctLe67flCF4YCcnce mUnJQbZCZJrDRMx+BtHHcHjGw3VUYXcRWWAQ2qD8= Received: by mail-qk1-f176.google.com with SMTP id 201so16994579qkd.13; Tue, 08 Oct 2019 07:53:07 -0700 (PDT) X-Gm-Message-State: APjAAAXmnZG2f+y5lNmmk9Q+urHikGAqoZt7ea8C8YRogA1EFitvsNlz 811gnomMJxIHFBw05sKQWWXuKSCH+UP/zC9VoA== X-Received: by 2002:a37:be87:: with SMTP id o129mr30275734qkf.254.1570546386900; Tue, 08 Oct 2019 07:53:06 -0700 (PDT) MIME-Version: 1.0 References: <20191007124437.20367-1-jjhiblot@ti.com> <20191007124437.20367-5-jjhiblot@ti.com> <30fcd898-aa50-bac2-b316-0d9bf2429369@ti.com> In-Reply-To: <30fcd898-aa50-bac2-b316-0d9bf2429369@ti.com> From: Rob Herring Date: Tue, 8 Oct 2019 09:52:55 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9 4/5] dt-bindings: backlight: Add led-backlight binding To: Jean-Jacques Hiblot Cc: Jacek Anaszewski , Pavel Machek , Sebastian Reichel , Mark Rutland , Lee Jones , Daniel Thompson , Dan Murphy , Linux LED Subsystem , "linux-kernel@vger.kernel.org" , dri-devel , Tomi Valkeinen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 8, 2019 at 7:51 AM Jean-Jacques Hiblot wrote: > > Hi Rob, > > On 07/10/2019 18:15, Rob Herring wrote: > > Please send DT bindings to DT list or it's never in my queue. IOW, > > send patches to the lists that get_maintainers.pl tells you to. > > > > On Mon, Oct 7, 2019 at 7:45 AM Jean-Jacques Hiblot wrote: > >> Add DT binding for led-backlight. > >> > >> Signed-off-by: Jean-Jacques Hiblot > >> Reviewed-by: Daniel Thompson > >> Reviewed-by: Sebastian Reichel > >> --- > >> .../bindings/leds/backlight/led-backlight.txt | 28 +++++++++++++++++++ > >> 1 file changed, 28 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > > Please make this a DT schema. > > OK. > > BTW I used "make dt_binding_check" but had to fix a couple of YAMLs file > to get it to work. Do you have a kernel tree with already all the YAML > files in good shape ? Or do you want me to post the changes to > devicetree@vger.kernel.org ? linux-next is fixed now. > >> diff --git a/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > >> new file mode 100644 > >> index 000000000000..4c7dfbe7f67a > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > >> @@ -0,0 +1,28 @@ > >> +led-backlight bindings > >> + > >> +This binding is used to describe a basic backlight device made of LEDs. > >> +It can also be used to describe a backlight device controlled by the output of > >> +a LED driver. > >> + > >> +Required properties: > >> + - compatible: "led-backlight" > >> + - leds: a list of LEDs > > 'leds' is already used as a node name and mixing is not ideal. > > > > We already have 'flash-leds' in use and with the same definition, so > > lets continue that and use 'backlight-leds'. > OK > > > >> + > >> +Optional properties: > >> + - brightness-levels: Array of distinct brightness levels. The levels must be > >> + in the range accepted by the underlying LED devices. > >> + This is used to translate a backlight brightness level > >> + into a LED brightness level. If it is not provided, the > >> + identity mapping is used. > >> + > >> + - default-brightness-level: The default brightness level. > > You can just assume these 2 get a common schema at some point. So just > > need to define any additional constraints if possible. > > Maybe we should keep them until such a common schema is written ? I'm not saying to remove them, but you can just have a description if there are no other constraints. Rob