Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2409810imu; Tue, 6 Nov 2018 14:09:57 -0800 (PST) X-Google-Smtp-Source: AJdET5fK1kQuiRdAOHXFcAKn3TxtPag74FK3kcGoS1NSD8lnQ9Aof8n0QQnrPiE1iFuPmliZo3aw X-Received: by 2002:a63:fe0a:: with SMTP id p10mr21794277pgh.265.1541542197593; Tue, 06 Nov 2018 14:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541542197; cv=none; d=google.com; s=arc-20160816; b=bCWWFD694NbkG+Alm34R89y5VU6GNEgZWgFFSXP/O8yIog21Jeeu7Sq1Lvyxd4vWqF sQ4DdTEnau2S8OJtY19U4k9k4Sr1p4/vtle74xIt+yhIp38P9Ng9SjDKal6aPRFuqrr+ kzAiZ10/cRWf7HVGE8IZNR3eGCOANXwPVQe6BqH16aqVGJ49It68kpgwJwpnn/cZ7zkw gAWBgYcs1TMxx9MDbcPwRpPA/wWoRoY3UmNRc60968KZhvc9RFpWlHXLVwuBT7LySiAU zJ7864614v1oaqjQ1ReS5c89Vx1sghycpTE7N1HxHp/lrgqiPIgYwT/JCWrAIPnxIrfj qebw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=vlwsrV2QyTJUzObVwZ18fp/1TPHYR35WeuoO5dQfamc=; b=VJeg22ZBSPfl+icUIjj/fpvpRjQXtTTuDPhDS3eJ7RUz9YUZRXRMl99pFHZ3qKICRJ U87JjXZvyLBl4H/lv5U4iU+kbIQeXCEbOI8qlm5My1TZymaf4N1A8ZPKkwsdvk2WD/F7 lfDvfvJJ9ZaonbIJGIOqdoab4cijvRwvgKBYSS9o3V/muH1rD6kMwAWqIkWrCARFdqWv LnfvopsbLQhDKddulY59CtB6nzGOXFQNfr+0hNgy7CRlyUzc7axQdY6aITEeSImuFEVQ 7Xq1Jjne6GAFiY3bI6JgLC9eIcP8OtRFfXFctkLOcsF2qeOKrrDukLxkhsw/BKD+hDue 6CXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="USwtiE//"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z66-v6si13967983pfb.104.2018.11.06.14.09.42; Tue, 06 Nov 2018 14:09:57 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="USwtiE//"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388873AbeKGHfk (ORCPT + 99 others); Wed, 7 Nov 2018 02:35:40 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46494 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388363AbeKGHfj (ORCPT ); Wed, 7 Nov 2018 02:35:39 -0500 Received: by mail-lj1-f196.google.com with SMTP id v15-v6so4298071ljh.13; Tue, 06 Nov 2018 14:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vlwsrV2QyTJUzObVwZ18fp/1TPHYR35WeuoO5dQfamc=; b=USwtiE//BMhUzzcJB5mIUCTMoA8lcl6rXTQFauSOHEzI3GD8BRsv/586DTCZxUP1DL rVbXlzAxm5HI1MajiuDe0jZrpCE1Jbp0CnP5eT2UXY+rLYcFm48tXYomaH4L1IRrCpWZ ihQGxslcNgIb3oxGbuqytN07RPSvJ7emUisgfdAMpsmvzvqCh2M+9M6WMWdFnM2NScVp pPu+1/96HF/5lV9PLvsFPWnV2fIkSXfDtKKxnDEHIFr1TjfduPL6WRD2lPA5we1T3tNH KxeCDtTNBUkZbK8G/BhKtiEBA+4riWWTgLn9zES6NXdjukeHN1zerN6C6ZnWqlJhT3Ar VQrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vlwsrV2QyTJUzObVwZ18fp/1TPHYR35WeuoO5dQfamc=; b=b59JG32tLlraVTd5PWEkJqdWAYzyRq83/7wxe34V5YR542hzb/9+a0qjnVRNElHLfg ndLEXrVQMKXeeYFdwx++uryTOaxdkMr7VyIRJGW+eAZROuW9PAzHHWaDc03rDb5i1YGI qJxMBlMqbMhJkvEWHw8+22VtCD9y3gxn++s0LHwmH/94Y9Uvxbd/sFzRJ1PBtl4nHxc3 bCNfLza/ZPU707h6O8TYD+h2T1LxNfeBc28UXuafsO3NYZ0MXrMRPFP/AICyWdaTWIP3 j3Wfzy18NQnzhhsYU7ho+i2Qpr+g5PU8eJ6kUhq+DSBttCz0yvjkroj/ruAuDT8n/GvZ lTkg== X-Gm-Message-State: AGRZ1gLrbO6wddL94aihVsv2WM7vuBC/1lyU0eTKJRk5eSF9M0uGL/g4 G/tdTaURAmWKEfrChLmQPRfTk5QCAJQ= X-Received: by 2002:a2e:90ca:: with SMTP id o10-v6mr7529010ljg.134.1541542095067; Tue, 06 Nov 2018 14:08:15 -0800 (PST) Received: from i4790k.home (bgp86.neoplus.adsl.tpnet.pl. [83.28.79.86]) by smtp.gmail.com with ESMTPSA id c20sm3185654lfj.67.2018.11.06.14.08.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Nov 2018 14:08:14 -0800 (PST) From: Jacek Anaszewski To: linux-leds@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, robh@kernel.org, jacek.anaszewski@gmail.com Subject: [PATCH 17/24] dt-bindings: aat1290: Add function and color properties Date: Tue, 6 Nov 2018 23:07:25 +0100 Message-Id: <1541542052-10081-18-git-send-email-jacek.anaszewski@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> References: <1541542052-10081-1-git-send-email-jacek.anaszewski@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Refer to new "function" and "color" properties and mark "label" as deprecated. Signed-off-by: Jacek Anaszewski --- Documentation/devicetree/bindings/leds/leds-aat1290.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-aat1290.txt b/Documentation/devicetree/bindings/leds/leds-aat1290.txt index 85c0c58..baa33d1 100644 --- a/Documentation/devicetree/bindings/leds/leds-aat1290.txt +++ b/Documentation/devicetree/bindings/leds/leds-aat1290.txt @@ -32,15 +32,18 @@ Required properties of the LED child node: formula: T = 8.82 * 10^9 * Ct. Optional properties of the LED child node: -- label : see Documentation/devicetree/bindings/leds/common.txt +- function : see Documentation/devicetree/bindings/leds/common.txt +- color : see Documentation/devicetree/bindings/leds/common.txt +- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated) Example (by Ct = 220nF, Rset = 160kohm and exynos4412-trats2 board with a switch that allows for routing strobe signal either from the host or from the camera sensor): #include "exynos4412.dtsi" +#include -aat1290 { +led-controller { compatible = "skyworks,aat1290"; flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; @@ -50,8 +53,9 @@ aat1290 { pinctrl-1 = <&camera_flash_host>; pinctrl-2 = <&camera_flash_isp>; - camera_flash: flash-led { - label = "aat1290-flash"; + camera_flash: led { + function = LED_FUNCTION_FLASH; + color = "white"; led-max-microamp = <520833>; flash-max-microamp = <1012500>; flash-max-timeout-us = <1940000>; -- 2.1.4