From patchwork Mon Jul 1 15:14:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 168213 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3045416ilk; Mon, 1 Jul 2019 08:15:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQjAxfMtj+cheI5Fp6JJALtyBWL/57s95znIaUEWCVqZ4LP2KPfXKiOd2RBmGUe8w8kwbt X-Received: by 2002:a63:6981:: with SMTP id e123mr24972340pgc.136.1561994105588; Mon, 01 Jul 2019 08:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561994105; cv=none; d=google.com; s=arc-20160816; b=UDYMrWydRrkefzz89n7pbrJo9xRv6W+q9Ut3HwvV+SbeETgBUZ8D0Nhxq2Uhngw6kQ znoZ1n70XraRY562kd2MjR7O6hV54O7facKLlsWNOHvd98QKTnYfK8tooLbE5GG7Fmdb 0lrr3TD87H5CLWmx/8v4pEXLweBgggg0hDe6ILrD93IA5PCQBtDCVRFDsCo6rYAHpbnp apgxtX3hFIjLu7UpBdRE7U0QPl+E1LLGvBTIoc1As9MwLQOMCAR9NNaMY4MBjFuGE8UI EBiWUkxRK7UqD3k8UbWFxztIkOVZ+/1ORKEZVxoNAi5FSJ+vECwaefGFKJ0ayoYHOvN9 HXjw== 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=JcG9gVVC9mwkIN0YqGoNDTpuvdgqaymnMY5JFYhSq/s=; b=Q3WV9CfUlKaewpRFT4hDkmwSpKA/+kKaLRnHdsrlpaxHvrlGYUSvXGsy5iRNAKSp6s lduPYz+wsONR1tTMmdM0Qd4BdDHZts/VkZvtLs4fHu7glB1bFsPoQ3d5dR1Pzy3uk3VN bMnp6oQVAseIUgYyhSSx/b26veaLq/ky/LgRWA/Wwpmh0H2vZ/O8d9L2FzncamtCeiG8 rQYIUVPYsCGxkxccfTLstgco45kfzMnFh2g/1eUquxUIuK3uBaWUifoEJCI//RqH6bqf ONyGo6328zneSyr9peHJz9pVRn0tDA7tr9aey3cRLtOdZhJ/TOqgNuLlTvAt3ktifEe4 KZ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="O4tR6/E3"; 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 l186si3055146pgd.455.2019.07.01.08.15.05; Mon, 01 Jul 2019 08:15: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="O4tR6/E3"; 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 S1730282AbfGAPPD (ORCPT + 30 others); Mon, 1 Jul 2019 11:15:03 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:36212 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730212AbfGAPOn (ORCPT ); Mon, 1 Jul 2019 11:14:43 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x61FEWVw124747; Mon, 1 Jul 2019 10:14:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561994072; bh=JcG9gVVC9mwkIN0YqGoNDTpuvdgqaymnMY5JFYhSq/s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=O4tR6/E3/HWD8H/zU7izLsJxcg7wBVDnGv5aKXwvZEgEKxcY0earzKKrNLQ0j8qaG EnaNXgC1P88RzAwuCuo90x+1ROuI1p0Wsm5Egb9tdUgnhJXDh8WCvPGpl2BH4RPxxj Rhh1Qr/uCaVK5sTWUnej4DWzQLhmNLpGFATPHpO8= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x61FEW75055584 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Jul 2019 10:14:32 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Jul 2019 10:14:31 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE107.ent.ti.com (10.64.6.28) 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, 1 Jul 2019 10:14:31 -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 x61FEV8U063793; Mon, 1 Jul 2019 10:14:31 -0500 From: Jean-Jacques Hiblot To: , , , , , , CC: , , , , , Jean-Jacques Hiblot , Subject: [PATCH 4/4] devicetree: Add led-backlight binding Date: Mon, 1 Jul 2019 17:14:23 +0200 Message-ID: <20190701151423.30768-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190701151423.30768-1-jjhiblot@ti.com> References: <20190701151423.30768-1-jjhiblot@ti.com> MIME-Version: 1.0 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 From: Tomi Valkeinen Add DT binding for led-backlight. Signed-off-by: Tomi Valkeinen Signed-off-by: Jean-Jacques Hiblot Cc: devicetree@vger.kernel.org --- .../video/backlight/led-backlight.txt | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/backlight/led-backlight.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/video/backlight/led-backlight.txt b/Documentation/devicetree/bindings/video/backlight/led-backlight.txt new file mode 100644 index 000000000000..216cd52d624a --- /dev/null +++ b/Documentation/devicetree/bindings/video/backlight/led-backlight.txt @@ -0,0 +1,39 @@ +led-backlight bindings + +The node of the backlight driver IS the node of the LED. + +Required properties: + - compatible: "led-backlight" + - brightness-levels: Array of distinct LED brightness levels. These + are in the range from 0 to 255, passed to the LED class driver. + - default-brightness-level: the default brightness level (index into the + array defined by the "brightness-levels" property) + +Optional properties: + - power-supply: regulator for supply voltage + - enable-gpios: contains a single GPIO specifier for the GPIO which enables + and disables the backlight (see GPIO binding[0]) + +[0]: Documentation/devicetree/bindings/gpio/gpio.txt + +Example: + +led_ctrl { + red_led@1 { + label = "red"; + reg = <1>; + } + + backlight_led@2 { + function = LED_FUNCTION_BACKLIGHT; + reg = <2>; + + compatible = "led-backlight"; + + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + + power-supply = <&vdd_bl_reg>; + enable-gpios = <&gpio 58 0>; + }; +};