From patchwork Mon Mar 13 18:21:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olimpiu Dejeu X-Patchwork-Id: 9621729 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C0B560492 for ; Mon, 13 Mar 2017 18:21:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2159128047 for ; Mon, 13 Mar 2017 18:21:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13FC1284ED; Mon, 13 Mar 2017 18:21:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A8BE28047 for ; Mon, 13 Mar 2017 18:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751703AbdCMSV6 (ORCPT ); Mon, 13 Mar 2017 14:21:58 -0400 Received: from mail-qt0-f169.google.com ([209.85.216.169]:35776 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbdCMSV5 (ORCPT ); Mon, 13 Mar 2017 14:21:57 -0400 Received: by mail-qt0-f169.google.com with SMTP id x35so38436538qtc.2 for ; Mon, 13 Mar 2017 11:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arcticsand-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=VW7+aHWTXwi5XPH0untrnjfCOy6MQ2FzhkG34WYKPAM=; b=EJyaH5uiqwHRFY76WjVg49pEI6FBgRyLATFTIon1uytb/ZvNfsEOJTPF3RFGVyyXgl W4P+00fsKWLmo39/gXNPszT86a2hLgSFE+F/LS03hdMxGOnNq7NXM0zg8aXiGIO3mnMi K4bOwhRms3ipAZKtMz9jan4XmxSem659OJIYzikQbnaRRmWm2gxamxsKozqtBs//p9z9 uOjN/Mu7Yb1GtHlDFs/TxxSQC4kocaNorVdVpjM/CsRMGwBoiffiwTcKCJrvghIDUOJO tdtIxfI3Hx25IlKPN7CKg4TGEw1dlcY2lKlYFfMVK3Ozv5ewa7HLcc/pxOq9IIRjXk+P FKaA== 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; bh=VW7+aHWTXwi5XPH0untrnjfCOy6MQ2FzhkG34WYKPAM=; b=QQEGRVgYBO0wTVI9gLPDeUHqBdP5YTJ1nI0CaXS53ZeQ0ThZhKT/i3xu4WBwZoq6Dg ws/nbE7lORaxoJThGR+xOySi3xwHaR4eOH4ii8pkRJwHUPtiR7+KZvxgpUFQ5Pj/ItIF awBrm3bEcwW5MVso3/BwIv6d7rSwPR1YDqoGxA07otTj65ISWftQvepIZeU9P1ru/sTW z6Z44/Y5scth3vgRmX1KmPaljNNr6ba4tVSrIhysEMk+mkksXIZYErpgKZ0+WhbXPvEn C7pNPmQhgZzc7SJZtYsXN1qpAPUbP+5kvSKjCllpcofOgmVsmqVPGpZhjtYAQuShbKcY z5Eg== X-Gm-Message-State: AMke39nFpckPJbV7Pd/34qn2AfU8JTqaR5pdNKB3uPFJcYFtkLNIhVLVFjVM+0+Fkjvr9A== X-Received: by 10.200.45.57 with SMTP id n54mr35284154qta.212.1489429315405; Mon, 13 Mar 2017 11:21:55 -0700 (PDT) Received: from drivertest.arctic.local (96-81-105-169-static.hfc.comcastbusiness.net. [96.81.105.169]) by smtp.gmail.com with ESMTPSA id h184sm12671227qkf.68.2017.03.13.11.21.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Mar 2017 11:21:54 -0700 (PDT) From: Olimpiu Dejeu To: robh@kernel.org Cc: lee.jones@linaro.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, jingoohan1@gmail.com, bdodge@arcticsand.com, joe@perches.com, medasaro@arcticsand.com, daniel.thompson@linaro.org, Olimpiu Dejeu Subject: [PATCH v7 1/2] backlight arcxcnn devicetree bindings for ArcticSand Date: Mon, 13 Mar 2017 14:21:50 -0400 Message-Id: <1489429310-6055-1-git-send-email-olimpiu@arcticsand.com> X-Mailer: git-send-email 2.7.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP backlight: Add devicetree bindings for the Arctic Sand backlight driver This patch provides devicetree bindings for the Arctic Sand driver submitted in the previous patch Acked-by: Rob Herring Acked-by: Daniel Thompson Signed-off-by: Olimpiu Dejeu --- v6 => v7: - Version updated to match other patch in set. No other changes. v5 => v6: - Version updated to match other patch in set. No other changes. v4 => v5: - Added spaces for increased readability per Lee Jones v3 => v4: - Added spaces for increased readability per Lee Jones v2 => v3: - Version updated to match other patch in set. No other changes. v1 => v2: - Version updated to match other patch in set. No other changes. .../bindings/leds/backlight/arcxcnn_bl.txt | 33 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/arcxcnn_bl.txt diff --git a/Documentation/devicetree/bindings/leds/backlight/arcxcnn_bl.txt b/Documentation/devicetree/bindings/leds/backlight/arcxcnn_bl.txt new file mode 100644 index 0000000..ecb7731 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/arcxcnn_bl.txt @@ -0,0 +1,33 @@ +Binding for ArcticSand arc2c0608 LED driver + +Required properties: +- compatible: should be "arc,arc2c0608" +- reg: slave address + +Optional properties: +- default-brightness: brightness value on boot, value from: 0-4095 +- label: The name of the backlight device + See Documentation/devicetree/bindings/leds/common.txt +- led-sources: List of enabled channels from 0 to 5. + See Documentation/devicetree/bindings/leds/common.txt + +- arc,led-config-0: setting for register ILED_CONFIG_0 +- arc,led-config-1: setting for register ILED_CONFIG_1 +- arc,dim-freq: PWM mode frequence setting (bits [3:0] used) +- arc,comp-config: setting for register CONFIG_COMP +- arc,filter-config: setting for register FILTER_CONFIG +- arc,trim-config: setting for register IMAXTUNE + +Note: Optional properties not specified will default to values in IC EPROM + +Example: + +arc2c0608@30 { + compatible = "arc,arc2c0608"; + reg = <0x30>; + default-brightness = <500>; + label = "lcd-backlight"; + linux,default-trigger = "backlight"; + led-sources = <0 1 2 5>; +}; +