Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6727882ybi; Mon, 8 Jul 2019 07:42:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGbyMGlx6Ye4xOr36hYosZ2wbGWpZluajhlY3MwyFAap74P1o3pjcnNgUuVluWnrn+W5iW X-Received: by 2002:a63:5550:: with SMTP id f16mr11017366pgm.426.1562596925182; Mon, 08 Jul 2019 07:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562596925; cv=none; d=google.com; s=arc-20160816; b=P06fgsV4CpoLngdXFeBXn14SuHqLFd3hmQkGSn/MLpKPFJHtSlu3DZH8IKMRGr6qW9 MeSqs2peWCPq+kPoE+cOtROdoauawZ/OXYahg+Vxik0NR4t4mDMtmG2s2BrgP2UKaCyq aqivnQLcBH+D5kUSYL3j8Pu2iY428q/nSjGOaB3tCA18f4AvdJJhvRAnv2raN42zBlbs OdvM6r5Gb1JDr8olSUWYnHtqp8x1jY/VsLqxXjiYK8849EOC4QpVXW4ZBygVwvndx8/j 7+CUBB6mzZ+kL9z+2NdlqS/7QOJ/VgHO9v7vyxzcyGoVVOrWmAuBy6CIWZYUNRtX+4R4 NffA== 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=lMpw70wzgXRddxylMnjFZez3adtd5wWViru0eP3oWv4=; b=mv/4cOcKBU0NETvWTbd85VZdtyAI/8/kq/8otha7dFGAwjkJXP5L1vItfSyicDp6oU RChalnhk22mh5K0TPlJmQsGxhJzNZmZiF265QMDwIdHk4lrte0kOW6SfRut1MvWbmSuz h3ucT5lGv8ocSagtn9/e9wZokezTtf50M4gCmZp10OuqNcl+oP8ZfkUt7VSN9WGgaCWr 0Ot3+Rkvk1o1siMcLmG+dQwcHxYrkOLgvdHWWAA17mGjQwZkerF1tAzNxjppncDTCvfM W0L0I4HVmuUOaXfi+h4kDPQqyUeX0xt1zTxDXHuBlW/h48jawfgJGHW/2MzOIoNWeaUJ OmGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vkl7NJT5; 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 ci19si18311126plb.165.2019.07.08.07.41.50; Mon, 08 Jul 2019 07:42:05 -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=Vkl7NJT5; 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 S1730107AbfGHK12 (ORCPT + 99 others); Mon, 8 Jul 2019 06:27:28 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36304 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730078AbfGHK1T (ORCPT ); Mon, 8 Jul 2019 06:27:19 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x68ARBXf118524; Mon, 8 Jul 2019 05:27:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562581631; bh=lMpw70wzgXRddxylMnjFZez3adtd5wWViru0eP3oWv4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Vkl7NJT5viByd33Timp5MUb/aoNybG7DPggyp1yNvT4OHO9UMX62sG+CZrQ7h62nb plgpHRlqe6ybCKfosDiyeGvVhsFh6ilVM74XTK/TzivuxxcbGejud4gexYWOpIYZb/ CYTvIRUE6WGgjXum6IrR9PWm2Gk0yQ5DKkfdx5vM= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x68ARBHV009832 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jul 2019 05:27:11 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 8 Jul 2019 05:27:10 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Mon, 8 Jul 2019 05:27:11 -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 x68ARAvE027118; Mon, 8 Jul 2019 05:27:10 -0500 From: Jean-Jacques Hiblot To: , , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH v2 3/4] dt-bindings: backlight: Add led-backlight binding Date: Mon, 8 Jul 2019 12:26:59 +0200 Message-ID: <20190708102700.23138-4-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190708102700.23138-1-jjhiblot@ti.com> References: <20190708102700.23138-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 | 29 +++++++++++++++++++ 1 file changed, 29 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..4f545316b288 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt @@ -0,0 +1,29 @@ +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. These + are in the range from 0 to 255. The actual brightness + level programmed in each LED will be adjusted based on + its maximum brightness: + led brightness = (level * maximum brightness) / 255 + + - default-brightness-level: The default brightness level (index into the + array defined by the "brightness-levels" property). + +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