Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp943447ybi; Wed, 17 Jul 2019 07:16:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyI8hv1CV4z4VZ+F2lnU3oVtbKNUvQm1WnAkKTgJGigHrlq4fIyWQz7gDtSp/APGRgrSc2 X-Received: by 2002:a17:902:42d:: with SMTP id 42mr41400370ple.228.1563373017312; Wed, 17 Jul 2019 07:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563373017; cv=none; d=google.com; s=arc-20160816; b=IS6qQNj/D49YJz27W35I+Gb4TpJVmtcYcec2tO8FRO6Ibazc95sJj34ItIVcwIS0+J CSn17Yal7yUdyxgt0BbIRKXiZPS8pJ/sF6jbBEpOdAqb/W0+cnzGAMVuUQlYQhyPvAZE tXy+ttu4pW+rEXK1oGzGU/UGAN4vwhVOT2y2RCxlt3wff6wHOLKkrOAdedt3LLBX0+b7 8mVIX3Ry6DxEMdqhH+nsXcIzNfmzZaBQXP5ikoG28MSqQuxgk/UfwMN4KaeGGvsgPtOP 7aIYjlBU3l6ROiQVMxQ9VgwhzrICFG6vNeDmNsGaTGmJWyAsTC3/RPs4eI2ouZZ5VrLT H7Fg== 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=U9CS8B9EBX/XfDF3qhfDYFozWbNZiWinI/LHvC5pO4bBc9y0ic4xn+yPmm9p7u+MN1 W0eeJKYEXpcbS/enQAWP92x1wfKO1QvKBvhYzR0cZpVQ4j1HoVSzGsZxV8wYAo1WF7ml QE2GaHDaJPHewKxQvWrDDtn6U6hYlYhw8cYLDWKpyyW91Fz9xASxWqkqz4tWKIsCQ5S2 BI/03ON3EUFUsY+P+YW4EfJ+CTukIBbTFg/sRaeYVNabVXybobK9xiczPG7zd0iotGst DobLXAIBUF1JDY523Hkh793nxmFWcgNabH21smkxnknsRB24/7zXRCwNNTTBtfE02xX2 ESXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nBjkZxKj; 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 r17si11044327pgg.155.2019.07.17.07.16.40; Wed, 17 Jul 2019 07:16:57 -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=nBjkZxKj; 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 S1728019AbfGQOPk (ORCPT + 99 others); Wed, 17 Jul 2019 10:15:40 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:33256 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727629AbfGQOPa (ORCPT ); Wed, 17 Jul 2019 10:15:30 -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 x6HEFNhm046067; Wed, 17 Jul 2019 09:15:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1563372923; bh=J37WOYhcIEKzEnO3t8q5TtofJfu6T7iSB8tR2Bkh500=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nBjkZxKjE4g1zLAGMGNxzv5PaNcDjiIWwqRPntDwk306NjvVZkMtZGjmS00KXilSS /mveP61PdTEJgEUtETWIvbgxJAV22k0uIpE6cs8bB4U9xgJl/X3nroHSCMxBw3x8gd eCzIPzXmgXVMmdFe/k0WzO8r7YM4/jfROmE8iN3c= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6HEFNjE028740 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Jul 2019 09:15:23 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) 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, 17 Jul 2019 09:15:22 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE106.ent.ti.com (157.170.170.36) 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, 17 Jul 2019 09:15:22 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6HEFLpC077724; Wed, 17 Jul 2019 09:15:22 -0500 From: Jean-Jacques Hiblot To: , , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH v4 3/4] dt-bindings: backlight: Add led-backlight binding Date: Wed, 17 Jul 2019 16:15:13 +0200 Message-ID: <20190717141514.21171-4-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190717141514.21171-1-jjhiblot@ti.com> References: <20190717141514.21171-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