Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9156991ybi; Wed, 10 Jul 2019 05:40:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqznEPKJrVR2IN/j7o+dgfhdvzUJwAlyBBfSDyUDGRB4+VnsPY7/Sk7hAV0DHSgDC4eEyPcz X-Received: by 2002:a17:902:744c:: with SMTP id e12mr38542469plt.287.1562762440187; Wed, 10 Jul 2019 05:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562762440; cv=none; d=google.com; s=arc-20160816; b=pUX/jaONzK2qahr1aG3Hn6d4lJTN6JibH2LJR6OeUFvB81hAlu8TauESvm3quyaL6d lFIBFXkqpEdg4ja8dY+bhXxn5aRgwzDVhuFFvXsqQNpYVQ2uGzToIcyFh52fx/+tIypN 3/v3GrCWBugFE1NDSUsswpxci3oedekT6avVyyMRqIkvtijUvQdwOenC3rz/RjD39Ti7 hbe6Xib2XngEDDCTjbn67wMm8J8Ai628XWO9J0Yd+qnzpkBQ2LWIx7/OijOEfHg0D2ck 54yllqncCq73CVq23TLP4T8Vvi0iA9zEL95fj/A9gbWxN0hPpMLymQYzBGYjOJ5lOfkC QRbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Pk7hnsVKcJGKKe6elo6dBDjGU2lxh03iSzrLZOy1kgU=; b=WPr2/GHpha7Hf/Ut4dJeg9yDypGJ5WjoULF2Zw1HxO/2ZtS5AAxa6fi6nlSVKeb3bL o3u/6gaelR8o4Gx+T3VdrScKo0eO4b1C6kRDgFoo2R17hNJ43XvWq+sGfa7tM0XQMdkk QIPKMci8w5XX/YWWHh7tDQ5FbXgItMEjrdr/dnImSQDEdP+Iw6r71w87ZiRvHp+1lKjp OH0k9IcQl/M2txRpZjhOdmr1U8RjPFvg3UA+Hrs8ZDGiNB3T3EltHonD06pC9SJWxavl wL9xJnPBnFTbPbb1oSOh+Fv32meB/DREmIfJCHqd7199GqROnhP4Eli07798NQqjDB04 S25Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VNrBWkNP; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t70si2114308pgd.573.2019.07.10.05.40.24; Wed, 10 Jul 2019 05:40:40 -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=@ti.com header.s=ti-com-17Q1 header.b=VNrBWkNP; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727492AbfGJMj5 (ORCPT + 99 others); Wed, 10 Jul 2019 08:39:57 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53308 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfGJMjt (ORCPT ); Wed, 10 Jul 2019 08:39:49 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6ACdfWG104822; Wed, 10 Jul 2019 07:39:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562762381; bh=Pk7hnsVKcJGKKe6elo6dBDjGU2lxh03iSzrLZOy1kgU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VNrBWkNPOCnHiOPV7FKvFAJC3hRSnSsiiBRZKutIoS9cvXgXbbdi+cpRSKvrTGlq+ r9yYUT52z8IQN2pNlG3DlEWOAvxxJqo8QqciUqw6A8rrqL2f5ym+GArIwA8oyB9jof akzodC8O4/4uNgf2yaVG50nOgb/d+v0bVr/JyGas= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6ACdf9l113538 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Jul 2019 07:39:41 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 10 Jul 2019 07:39:41 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 10 Jul 2019 07:39:41 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6ACdeT5113704; Wed, 10 Jul 2019 07:39:41 -0500 From: Jean-Jacques Hiblot To: , , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH v3 3/4] dt-bindings: backlight: Add led-backlight binding Date: Wed, 10 Jul 2019 14:39:31 +0200 Message-ID: <20190710123932.28244-4-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190710123932.28244-1-jjhiblot@ti.com> References: <20190710123932.28244-1-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT binding for led-backlight. Signed-off-by: Jean-Jacques Hiblot --- .../bindings/leds/backlight/led-backlight.txt | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt 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..0444eec8efe1 --- /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 + +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 not provided, the + identity mapping is used. + + - default-brightness-level: The default brightness level. + +Example: + + backlight { + compatible = "led-backlight"; + + leds = <&led1>, <&led2>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + }; -- 2.17.1