From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 091D2C47404 for ; Mon, 7 Oct 2019 16:15:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D4FC020659 for ; Mon, 7 Oct 2019 16:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570464933; bh=c5S5cP7zbXe49BRmhXacvHzF7MGKuJdxIqqAZRMyIhI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=fk0lgC0m22zesBohstAlkLhFug0l1Lna+xPu3ey8XEj2NxlL/Y2USybZCTKeo6DSd 2QnekGhLzuaouVhvC5WIm9sDOgi8VbYxEcZ8rhVp+XvYzy1uJJDBFPc8WroKdFXrXW uUVKGvylHEReTb7S2z9kAPTzZErUbgjh0gzgP2Jk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728825AbfJGQPc (ORCPT ); Mon, 7 Oct 2019 12:15:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:59100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbfJGQPc (ORCPT ); Mon, 7 Oct 2019 12:15:32 -0400 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 A7BCE2173B; Mon, 7 Oct 2019 16:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570464930; bh=c5S5cP7zbXe49BRmhXacvHzF7MGKuJdxIqqAZRMyIhI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qKjcPd59Q3r4oAQhmdNT3jUfAgQuGlV43LIyhLlgYTCGrWJXflwGMesh62+b0eERb kt2y4GqnwWWulinmXB3T1hLTKrgayW3gOA/79+XsKJR4QuBe/YzRDhgo+dJ/AeXie3 Z1uM1nOmWkfAGBMqspT9g8/Xd+bISDku+j0xS9bw= Received: by mail-qk1-f173.google.com with SMTP id 4so13137972qki.6; Mon, 07 Oct 2019 09:15:30 -0700 (PDT) X-Gm-Message-State: APjAAAUgdhyRgbG0o3OGzgve4o0pXDpMCQxEgjXBLbnvCSu+FycoE4kR ihWJP6wCavreHOtXUtPUC0De3T1fjCzyl61RWQ== X-Google-Smtp-Source: APXvYqyMttVp4NzoL2BDMDlTAFC0wl59ea24O6Tt3LAaIXYbjarxKts9Yn3gDhGLEMnxuy668Diq4GmdVs5QafCFS30= X-Received: by 2002:a05:620a:549:: with SMTP id o9mr24622003qko.223.1570464929688; Mon, 07 Oct 2019 09:15:29 -0700 (PDT) MIME-Version: 1.0 References: <20191007124437.20367-1-jjhiblot@ti.com> <20191007124437.20367-5-jjhiblot@ti.com> In-Reply-To: <20191007124437.20367-5-jjhiblot@ti.com> From: Rob Herring Date: Mon, 7 Oct 2019 11:15:17 -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 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. > 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'. > + > +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. Rob