Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp67510ybn; Thu, 3 Oct 2019 01:32:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCOwrxkab/6rQJZAaVNgoQ/1U3BoPCG+zy5u+MvFlih5YJBIozmwALwMI6tQf2zi0OgQDQ X-Received: by 2002:a17:906:d04f:: with SMTP id bo15mr6847931ejb.296.1570091524810; Thu, 03 Oct 2019 01:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570091524; cv=none; d=google.com; s=arc-20160816; b=Z3wEvFwXxYAOZkLCFl6gUsy7J4wZi25KiPi2jau/Ben4NhDxlr7dG16Zts9BZsFf7r hPeH25f1YpwhAAddMJnRTUYa6CAHK1I5UdCeHOhtVOsaYjeFoFOHdblxz/kf+iiM13wH WBDTPst+23iJt10nBdA7sA7lbnrBo1d22gk4h7cvmTqZIYGEs6lqHeEA3uQNr0LRWZhm xmpex/BYfpE1pAxSrBWce1pPoH1aZZIdGLnY8bHrNUzjvnwvEces3VIp6TXGI1JiFZaK u2ONP6iUyoqAOH8Kj0b1iknW5f/MSGo2EE51vKVXjuZGtI0Jte/skhmrA5/C/leH6Dxw Horg== 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=dPDBk1Y3qicoCPHxrSR9zQwbWp6dV0NX8yJNHPPSaTk=; b=KFoJ/rq7x7ZbAXK+CunX58bvxS+gQaB9iFp5MpUen3Zu6U0mEW6OEPjs0QDDvAEjay cIfbe15/99NTjgfLqyHL9WZMo3QCS1GPam6Lp9/GP70XuYpyyiuttrxtYGbQMFudyJ+e N0d8B4WD0hs7AZvVJMz8UC2JQey8JPbitarf+LuRTDNnQ7R1AF+SCw5r3BLvHaeZuMO4 a+lqna1svrUdTtGe0KxWBy1AoS1Cf/JK/cfrCvWzuYylbIzykLEuJy8IbCgUrnpu5KLk yRJfEfpCdCxqHxYF+qfFXj3zj1X2UITzGk3cxxVCPwmi9fDn8T2fqCkIrE4dB93Pkj3V QB8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=r2EwsMNz; 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 q46si1040488eda.44.2019.10.03.01.31.39; Thu, 03 Oct 2019 01:32:04 -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=r2EwsMNz; 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 S1728919AbfJCI2f (ORCPT + 99 others); Thu, 3 Oct 2019 04:28:35 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:59912 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728905AbfJCI2e (ORCPT ); Thu, 3 Oct 2019 04:28:34 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x938SQRB086271; Thu, 3 Oct 2019 03:28:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570091306; bh=dPDBk1Y3qicoCPHxrSR9zQwbWp6dV0NX8yJNHPPSaTk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=r2EwsMNzy4BSoOo9hOPh2l02tzgU6W29EDaDiFn28O+lww1vR1tYRXgaygeKqIMmh DYlk0XOhHMce0f9BxdqlS/YaDDSNRzN3WG1R+YrCRn4q9xSYa/FyK+6f5tYzl/dTlF jC2SdhLbrVAtw4bZS1XVge9f6QSYjAFpoHmxQMK0= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x938SPCH117638 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Oct 2019 03:28:26 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 3 Oct 2019 03:28:25 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) 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; Thu, 3 Oct 2019 03:28:25 -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 x938SOCo033289; Thu, 3 Oct 2019 03:28:25 -0500 From: Jean-Jacques Hiblot To: , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH v8 4/5] dt-bindings: backlight: Add led-backlight binding Date: Thu, 3 Oct 2019 10:28:11 +0200 Message-ID: <20191003082812.28491-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191003082812.28491-1-jjhiblot@ti.com> References: <20191003082812.28491-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 Reviewed-by: Daniel Thompson --- .../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