From patchwork Wed Oct 9 08:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 11180833 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4491B1575 for ; Wed, 9 Oct 2019 08:52:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2C8BA206B6 for ; Wed, 9 Oct 2019 08:52:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C8BA206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 166026E936; Wed, 9 Oct 2019 08:52:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 659426E936 for ; Wed, 9 Oct 2019 08:52:09 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x998q4H2035244; Wed, 9 Oct 2019 03:52:04 -0500 Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x998q43U023525 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Oct 2019 03:52:04 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 9 Oct 2019 03:52:01 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) 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, 9 Oct 2019 03:52:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x998q3SO099447; Wed, 9 Oct 2019 03:52:04 -0500 From: Jean-Jacques Hiblot To: , , , , , , Subject: [PATCH v10 5/6] dt-bindings: backlight: Add led-backlight binding Date: Wed, 9 Oct 2019 10:51:26 +0200 Message-ID: <20191009085127.22843-6-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191009085127.22843-1-jjhiblot@ti.com> References: <20191009085127.22843-1-jjhiblot@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570611125; bh=s5d/szql8fU2uDVYRw2K7PeI4Cnl3Z9+5CQzwG1wYJU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=usk5TxWfAR6ogFjaJI14GXUZfVYQq2jWISyTbJW95JeDsUsk/EqlSVxie8frZ3npV AVZzuMjtOZqj2bNAlKKcAbR5Nme/YxHYxuCP1AwEo0OSEihMKsqNTAmZi/iUoyGOeV /Yww1zCQ+FyLtOkBesUAmpSnCFBLe/GGiT/8HpUw= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, tomi.valkeinen@ti.com, dmurphy@ti.com, Jean-Jacques Hiblot , linux-leds@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add DT binding for led-backlight. Cc: devicetree@vger.kernel.org Signed-off-by: Jean-Jacques Hiblot --- .../leds/backlight/led-backlight.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml diff --git a/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml new file mode 100644 index 000000000000..47ae3d6b4f31 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LED-based Backlight Device Tree Bindings + +maintainers: + - Jean-Jacques Hiblot + +description: | + 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. + +properties: + compatible: + const: led-backlight + + leds: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: List of LEDs constitutive of the backlight. + + default-brightness: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Default brightness level on boot. + minimum: 0 + + brightness-levels: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: 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. + +required: + - compatible + - backlight-leds + +examples: + - | + backlight { + compatible = "led-backlight"; + backlight-leds = <&led1>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness = <6>; /*6th level => brightness of the LEDs is 128*/ + }; + - | + backlight { + compatible = "led-backlight"; + backlight-leds = <&led1>, <&led2>; + default-brightness = <255>; + }; +...