From patchwork Fri Jan 6 20:48:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olimpiu Dejeu X-Patchwork-Id: 9501775 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 EFDAD60413 for ; Fri, 6 Jan 2017 20:49:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E523628509 for ; Fri, 6 Jan 2017 20:49:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7F4828520; Fri, 6 Jan 2017 20:49:01 +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 5226A28509 for ; Fri, 6 Jan 2017 20:49:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938286AbdAFUso (ORCPT ); Fri, 6 Jan 2017 15:48:44 -0500 Received: from mail-qk0-f170.google.com ([209.85.220.170]:34571 "EHLO mail-qk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936934AbdAFUsj (ORCPT ); Fri, 6 Jan 2017 15:48:39 -0500 Received: by mail-qk0-f170.google.com with SMTP id a20so87397695qkc.1 for ; Fri, 06 Jan 2017 12:48:39 -0800 (PST) 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=K9WwWCoslAhQgB4n2JGUSZyrqbkQhJnZF+uZ0eKdLmU=; b=Fy4VNtKZ6n+mWRUVI9TNAk/OfV/TC7iRw/nKE82rmiJ1tbbbmwvYSXVLgVu75ZdKRK qPgVANTanjmQFmEuWbej6yf6etVgmch16wiSnwgKBgIDvwzR6kc0XAWYcMiZmVgfJ4gC oFEbmtY81md26vej1TGtvKa7ZFydI7Q2g46Wer1OR6hkMcRjNwm+ZVaCLUAiMemQqJJW psBb40cXdU327raUKDjRM2VlhUv/MEeRP0a0CT/Tb9QECHPa/fxo1wHOYXKHJt8rQXkS c2f2NW/LUr4pgqNkZ2alaTElrK0fKXgL7kWhduknXn05l5ghs+fXDUao/ykWSExK3Boq DZIw== 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=K9WwWCoslAhQgB4n2JGUSZyrqbkQhJnZF+uZ0eKdLmU=; b=pPJRg4pRRL2lRv3NoMORmZdBd3RXC27QUJMJtxOh+mWI/H9/ZTVOzOoHtsKl3K8MPy NgbkpyYXr6Vi2vzAhYawpKzvfj2ZnKUluZBlOUMFOGzN4KzNM4+hYscZwz3a3AXCHua4 GkoUZDDv5MVp7w5m0L8L6+0ar9fuMNjV+1dXGQP858CoyN9VxevkQRcDYRkWjuPXCJW3 RfrHkMB1g9EfF/nlCNiX6n6gNuuNbABAQrNUNcxjBvVHldRtuUGAt3q6ZxIxYQtFkEhQ 4yNfRr+auXYwUUFSq/1u9uopzx2Ly9b3imY47yb88ObT+6BrNa5Zr5emQKIll6kBv5/E BK1g== X-Gm-Message-State: AIkVDXIae7jLUxcysiYhRC9KOfznHAJ7asxwy2EADsmwKcMpxVdV3U99NN19AniF3NPOPg== X-Received: by 10.55.163.17 with SMTP id m17mr64741144qke.285.1483735718193; Fri, 06 Jan 2017 12:48:38 -0800 (PST) Received: from drivertest.arctic.local (96-81-105-169-static.hfc.comcastbusiness.net. [96.81.105.169]) by smtp.gmail.com with ESMTPSA id 14sm51173998qtp.19.2017.01.06.12.48.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jan 2017 12:48:36 -0800 (PST) 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, Olimpiu Dejeu Subject: [PATCH v3 2/2] backlight arcxcnn devicetree bindings for ArcticSand Date: Fri, 6 Jan 2017 15:48:34 -0500 Message-Id: <1483735714-5500-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 Signed-off-by: Olimpiu Dejeu --- 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 | 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,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>; +}; +