Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5998852ybe; Tue, 10 Sep 2019 11:57:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJdpZi06Sj1wP91Z3yGd6iNEOTO16cByGpThWiADMznlrGMbfnZ5W5hNkHK1hpPivCmUfY X-Received: by 2002:a50:9734:: with SMTP id c49mr32754126edb.93.1568141873707; Tue, 10 Sep 2019 11:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141873; cv=none; d=google.com; s=arc-20160816; b=km1ZGlptjAag/qDsXrh2T5nNthDVHzIStrMBUBBr0FUqu6PcoHtmRJPrJD9duB1//f LX2jsRZrnFXkS2+vZVWZlVkPYWW2m8/SjXcF2i0BSv5E3EwK5nPG0dqSpCwP1aa8BWBo uOzLfEuR+03k41vIW9fchNreSKQHvYzmtWMs2uL3iArMRd4wXs85UIchhroI5l1XqKVK ZERPleLS8mh0Av3LZKNjFkykzBbu3XLDATc7t/O79yB8QNc3QuDIURXSYtuMQCQQrqPk l+/RVxvnIfUeBsxy+LHr8DEljaYkvCXOJfDh+ScPcQNZ6Cm9naiM18sPVw7PjsgoSr1G P7rw== 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=J37WOYhcIEKzEnO3t8q5TtofJfu6T7iSB8tR2Bkh500=; b=YqVGS+7/mBeIB4i+LRKkHEbndZtQzOv7Fb9r6Kmskx+n1WFwbo1Zz4G5oOuENeAjP5 MQY4agJs8eSExW56y0LkUlqo1nVpJIgH7Vq6c4ETqkEYEXHNTngoH3DIAqjOr6xxyJez vwcs1tTtVs0v2IIsP5RHsJwx3/8gXIWn/FdoYGhitsQvmHjdiAKvJVj2dgCmR/0ctTPu DbTaFvEj6FlhZ0G8eo9nf4P5VD9+YNNT7BEk462tBgUEzxaXTM5KRcHBLBy+dRZzY8Pq oxAxVFRjLWpGs6uRypJBevbU5fwihJjBlzRuGRJadH4sZ02WfZc/mvWKDe9VB1OXgk0R S0xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=czbPDEr+; 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 um16si1495889ejb.256.2019.09.10.11.57.29; Tue, 10 Sep 2019 11:57:53 -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=czbPDEr+; 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 S2391023AbfIJLAP (ORCPT + 99 others); Tue, 10 Sep 2019 07:00:15 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:55964 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729647AbfIJLAC (ORCPT ); Tue, 10 Sep 2019 07:00:02 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8AAxuVP071833; Tue, 10 Sep 2019 05:59:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568113196; bh=J37WOYhcIEKzEnO3t8q5TtofJfu6T7iSB8tR2Bkh500=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=czbPDEr+OvH3hBFdUOyqld4eLuWL7baiMvvSfQAf9VV7NMerjSdQET1+1LdEKc6j4 fcKc9FR1xdet90ONeTo9s0LWV9uGYXe7CVOvWvaDG+TBLTQYg90R/hk5HJLayFzIF0 dWwj1o/uJ2TOdtCh9B48pjMuHo08U2llzAXfXkjQ= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8AAxuKf034417; Tue, 10 Sep 2019 05:59:56 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 10 Sep 2019 05:59:55 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Tue, 10 Sep 2019 05:59:55 -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 x8AAxs7N018253; Tue, 10 Sep 2019 05:59:55 -0500 From: Jean-Jacques Hiblot To: , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH v5 3/4] dt-bindings: backlight: Add led-backlight binding Date: Tue, 10 Sep 2019 12:59:45 +0200 Message-ID: <20190910105946.23057-4-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190910105946.23057-1-jjhiblot@ti.com> References: <20190910105946.23057-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..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 + +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. + +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