From patchwork Wed Oct 26 20:30:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olimpiu Dejeu X-Patchwork-Id: 9398255 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 759FE60231 for ; Wed, 26 Oct 2016 20:30:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55EF129DF3 for ; Wed, 26 Oct 2016 20:30:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A3D629DF5; Wed, 26 Oct 2016 20:30:10 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 6A84229DF3 for ; Wed, 26 Oct 2016 20:30:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933497AbcJZUaH (ORCPT ); Wed, 26 Oct 2016 16:30:07 -0400 Received: from mail-qk0-f177.google.com ([209.85.220.177]:36034 "EHLO mail-qk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933844AbcJZUaG (ORCPT ); Wed, 26 Oct 2016 16:30:06 -0400 Received: by mail-qk0-f177.google.com with SMTP id o68so18798583qkf.3 for ; Wed, 26 Oct 2016 13:30:06 -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=R5bFmp2wpPannKA+12VFdVs+G1mPnhgbQ3F6vndJUJM=; b=bjQDr+Qb4jAlu2UPnE+zJRqvbORqYt6i5zQKuGYBpZjWpwEU1VcDYogIHCHceemIYJ /Ic4nzNRgas22omkAleLVIIVMv2MYBfFxP+eKOKL0OImldvgEwojoqrCFx7q413ooaoC pOPi/MLI8l9qBikaLhdRKeWVz0XoP9aaQnj+sifzpKsGO+OwTdp0nRzCFcte0AzmgDQH KkHiUzuISCmjCHrBxEfAbl4xzANCpr1Rb9DbrqsQhZNBgyQg3tc5UkheMv+j0Ilpm7G1 U3lqQpJgqR5C6BWgIbPxdZSDd3QhAeuYhxGMJXLKFQtqWOSatewKY7TN3q/0yK9WKJ7M xIaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=R5bFmp2wpPannKA+12VFdVs+G1mPnhgbQ3F6vndJUJM=; b=aF5I5dLN/WN7trwJqOt86kbYGXrmKtgXZezBA1f4cdoTdUFhAFwCGRlZNqguzlUecQ M6y7JA4EbPxNnYC0XYE3GDKcXmqmHEZlo/aum9C1kgblHCT821Ws+V2l2W1WmDxhMrV7 er+2+3WTuyuCO5Zyg1XYnbjds6g0tyQ9K2FcNWKccgEC/CYBAGe+WMtLdAJPbea3jPOY m/cmsF8NaMummqcSHU5ZrJ3QOSUcUH31VQHTcS3QNVZ33UuqDrfJ3zkSo4fIlEnlYTQE lsyH3Fg5dl9dZQWnRinS8Bxcuk8bJZYADqfP6sAEh8jiZZ2B0HmPopGHdyn9td9NPHcF M63g== X-Gm-Message-State: ABUngvcq5DEtYuirmzdh0p709wXxUX9+UnvqUyy4GFv1WFJZu57OCISLYGoHhG25SCKIuQ== X-Received: by 10.55.139.65 with SMTP id n62mr3128499qkd.150.1477513805355; Wed, 26 Oct 2016 13:30:05 -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 l73sm1859676qke.26.2016.10.26.13.30.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Oct 2016 13:30:04 -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, jg1.han@samsung.com, Olimpiu Dejeu Subject: [PATCH 2/2] backlight: arcxcnn: devicetree bindings for ArticSand devices Date: Wed, 26 Oct 2016 16:30:01 -0400 Message-Id: <1477513801-31350-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 Resubmition of arcxcnn backliught driver bindings with added register documentation Signed-off-by: Olimpiu Dejeu --- .../bindings/leds/backlight/arcxcnn_bl.txt | 31 ++++++++++++++++++++++ 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..a7b6ff2 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/arcxcnn_bl.txt @@ -0,0 +1,31 @@ +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 + +- arcticsand,led-config-0: setting for register ILED_CONFIG_0 +- arcticsand,led-config-1: setting for register ILED_CONFIG_1 +- arcticsand,dim-freq: PWM mode frequence setting (bits [3:0] used) +- arcticsand,comp-config: setting for register CONFIG_COMP +- arcticsand,filter-config: setting for register FILTER_CONFIG +- arcticsand,trim-config: setting for register IMAXTUNE + +Example: + +arc2c0608@30 { + compatible = "arc,arc2c0608"; + reg = <0x30>; + default-brightness = <500>; + label = "lcd-backlight"; + linux,default-trigger = "backlight"; + led-sources = <0 1 2 5>; +}; +