Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6873035ybe; Wed, 18 Sep 2019 10:24:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTsXooVI1B759Yky4WlywSbt92PyrO1EkIV6mlZLLsVLqAjFPDlBQaD7SlCNOXMQlnHmBJ X-Received: by 2002:a50:ac0d:: with SMTP id v13mr11443354edc.189.1568827443957; Wed, 18 Sep 2019 10:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568827443; cv=none; d=google.com; s=arc-20160816; b=aCf9cAnOZzmfXxJ2ue57aMKqRVAxnNuKJ0y7rWUAQ9tmJYWATwKeKdpuh2Z7UBwhhX go0Ez0ozItcdDLxP4hGnnEeRhbd8QBRSsZlF8CgxfH96NWwBIaOTv5jvLhikSMwQcw+k HoRVy40CWJssovat3+GeJNhE5GMimQpzR3PzojKGVjnDM5KIlA1wza2mfCXac3mt/5hI aYq/pcMVrRUoaYN05VOIqwdr4fdFYUJwvbKGjl3gTuIO1ANgN9LvMVqhl+bE5QOkxwMX UrqO4bUISG0QFNMbuI/IHzFUhd2ddvU//1msoq2TI2AUpajU8y6jAJaulCM4g61HyYlv IbbQ== 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=xj0+opvSb57Oq4cyfT/LuatO6uWuBH+7c6R3KhZ4eAlUjPXPKpcLu74bS+s3ZtPGab bWXvYVj2VLwD4MGcffXmVmNfs/3TW4gNVTYt4XhbbQQRxobNxAcOmXthZ6XMPLFF0GX7 heB3BUW5WKyI71tUmwMYjJaoubbQuv36iVEReNpfVmHmej6/Rq8SEewGaRfGbx2kiVV0 KytbU0u/VAngL0I5cA9W4QbhlY9Le/a2bw2QcW3VxdSp1XMebkzoodkiIwjlhAltKZDI 6tzrmXZFKoRRCxuV9M+G7kcNfFPO9FqaKnBZCnAd0nHBO2/hm0xkshXmyhNzlgR8dUob J2nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jF9IBC8Q; 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 j34si3705245ede.10.2019.09.18.10.23.40; Wed, 18 Sep 2019 10:24:03 -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=jF9IBC8Q; 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 S1731581AbfIRO6C (ORCPT + 99 others); Wed, 18 Sep 2019 10:58:02 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:35620 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731432AbfIRO5x (ORCPT ); Wed, 18 Sep 2019 10:57:53 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8IEvjaS084997; Wed, 18 Sep 2019 09:57:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568818665; bh=dPDBk1Y3qicoCPHxrSR9zQwbWp6dV0NX8yJNHPPSaTk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jF9IBC8Q9o1A3hSfq3yilZ2O8StfCgeOtcmZCJTnikFZyX2lZ6fzzX9ZvJxHN+TWa oDivgEzb1qSLf+g1nAamLeRx94Ygy3hJYRE+bCT8ccHzAXst3Fpd+Ls8UXGFxWcmlC 56SCUKI0JWly/o1ek0ovBVc14XCbw+JiEoyXl5lw= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8IEvj0h122465 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Sep 2019 09:57:45 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 18 Sep 2019 09:57:45 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) 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, 18 Sep 2019 09:57:45 -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 x8IEvi1r040639; Wed, 18 Sep 2019 09:57:45 -0500 From: Jean-Jacques Hiblot To: , , , , , CC: , , , , , Subject: [PATCH v7 4/5] dt-bindings: backlight: Add led-backlight binding Date: Wed, 18 Sep 2019 16:57:29 +0200 Message-ID: <20190918145730.22805-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190918145730.22805-1-jjhiblot@ti.com> References: <20190918145730.22805-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