Received: by 10.213.65.68 with SMTP id h4csp546140imn; Fri, 30 Mar 2018 10:26:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49tN9cdYfGN3R77jTlibgwAJfzYnfzDqx4f9ATx8bcTQtyffSyqbsrtPTMrx5Nv8Q07BEkx X-Received: by 2002:a17:902:4003:: with SMTP id b3-v6mr14165820pld.15.1522430769558; Fri, 30 Mar 2018 10:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522430769; cv=none; d=google.com; s=arc-20160816; b=mELzcnnXmnAtTLk59JPaG9hC9X7cWzSLO2AlFgWCddOVtvKgFKzGziZozZIvjGqlQk PYzB2NSq6jfh176rMnMAEJ3+DhRBbnnFZLshIKeaZa3xxTsHeLuYfBOmix/wJaCru2Cm RufT/BYOLawbKLLqVpfZXpddFYK+oPOeyur97AhFetlK9hnJ9c9BebRuO8j161pDXVUM DO3zH66uX6L4LQqOR7bl5QFfUA7cOGF9Vrp4WE1FblIqiBY1gu+nr1KJaHfDlNGh7qmM kNRlCvNzvX4CZMkv83x39C1ODy7U3miwzSdZsrBWtj9JEFnnKFpe4bza9zK11miKhQKy B9hQ== 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:arc-authentication-results; bh=DhpTgSXsGNoNGhcbB/LF888J2QR8xWMnrQtuE7RCGGE=; b=E7W8Oc7xZBZ0T3nnA94asTfn+zNQ4EdTyXbSSVX4SDl47cB7SV4QMyTWl0Cu2L9isW erTxlYX/c5oW/Q2v8qfr4MagRxWO5pW0zJE1F9o7bEZImF0QhPRJeBrgI0oLY7G2dpj7 o16SYQVDbF68tF4Bfxl0+y+GgKrjjVMYDnTRloX9h9quf5qCRdwu0iapsaV4inNLwyra tIUVjzH+BQOCZSLWsw2rN8Qh1O83UyL9aGxTQveXZaxXz9RpWKys4MsN4xqfR1EVY/Qv MgtpuQGlFybYWFY28E08AJxTYoAzH+YFinCRRab/2R6njNYXj9uqShtUv/xjNn+p160I 3LFQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12-v6si8655092pls.74.2018.03.30.10.25.55; Fri, 30 Mar 2018 10:26:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752716AbeC3RYt (ORCPT + 99 others); Fri, 30 Mar 2018 13:24:49 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58994 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752431AbeC3RYp (ORCPT ); Fri, 30 Mar 2018 13:24:45 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 39ECA276418 From: Sebastian Reichel To: Sebastian Reichel , Milo Kim , Lee Jones , Daniel Thompson , Rob Herring , Tony Lindgren Cc: Jingoo Han , Mark Rutland , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Sebastian Reichel Subject: [PATCHv4 09/10] dt-bindings: mfd: ti-lmu: update for backlight Date: Fri, 30 Mar 2018 19:24:13 +0200 Message-Id: <20180330172414.26575-10-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> References: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update binding to integrate the backlight feature directly into the main node, as suggested by Rob Herring. Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/mfd/ti-lmu.txt | 119 ++++++++++++----------- 1 file changed, 60 insertions(+), 59 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/ti-lmu.txt b/Documentation/devicetree/bindings/mfd/ti-lmu.txt index c885cf89b8ce..b3433e95dfa5 100644 --- a/Documentation/devicetree/bindings/mfd/ti-lmu.txt +++ b/Documentation/devicetree/bindings/mfd/ti-lmu.txt @@ -28,10 +28,9 @@ Required properties: Optional property: - enable-gpios: A GPIO specifier for hardware enable pin. - -Required node: - - backlight: All LMU devices have backlight child nodes. - For the properties, please refer to [1]. + - pwm-names: Should be either "lmu-backlight" or unset + - pwm: This should be a PWM specifier following ../pwm/pwm.txt and must + only be specified, if the backlight should be used in PWM mode. Optional nodes: - fault-monitor: Hardware fault monitoring driver for LM3633 and LM3697. @@ -42,8 +41,31 @@ Optional nodes: - leds: LED properties for LM3633. Please refer to [2]. - regulators: Regulator properties for LM3631 and LM3632. Please refer to [3]. + - bank0, bank1, bank2: This contains the backlight configuration + for each backlight control bank. + +Required properties in the bank subnodes: + - label: A string describing the backlight. Should contain "keyboard" + for a keyboard backlight and "lcd" for LCD panel backlights. + - ti,led-sources: A list of channels, that should be driven. Each channel + should only be driven by one bank. + +Optional properties in the bank subnodes: + - default-brightness-level: Backlight initial brightness value. + Type is . It is set as soon as backlight + device is created. + 0 ~ 2047 = LM3631, LM3632, LM3633, LM3695 and + LM3697 + 0 ~ 255 = LM3532 + - ti,ramp-up-ms, ti,ramp-down-ms: Light dimming effect properties. + Type is . Unit is millisecond. + 0 ~ 65 ms = LM3532 + 0 ~ 4000 ms = LM3631 + 0 ~ 16000 ms = LM3633 and LM3697 + - pwm-period: PWM period. Only valid in PWM brightness mode. + Type is . If this property is missing, then control + mode is set to I2C by default. -[1] ../leds/backlight/ti-lmu-backlight.txt [2] ../leds/leds-lm3633.txt [3] ../regulator/lm363x-regulator.txt @@ -53,14 +75,11 @@ lm3532@38 { enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; - backlight { - compatible = "ti,lm3532-backlight"; - - lcd { - led-sources = <0 1 2>; - ramp-up-msec = <30>; - ramp-down-msec = <0>; - }; + bank0 { + label = "lcd"; + led-sources = <0 1 2>; + ramp-up-msec = <30>; + ramp-down-msec = <0>; }; }; @@ -105,13 +124,10 @@ lm3631@29 { }; }; - backlight { - compatible = "ti,lm3631-backlight"; - - lcd_bl { - led-sources = <0 1>; - ramp-up-msec = <300>; - }; + bank0 { + label = "lcd_bl"; + led-sources = <0 1>; + ramp-up-msec = <300>; }; }; @@ -147,16 +163,13 @@ lm3632@11 { }; }; - backlight { - compatible = "ti,lm3632-backlight"; - - pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */ - pwm-names = "lmu-backlight"; + pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */ + pwm-names = "lmu-backlight"; - lcd { - led-sources = <0 1>; - pwm-period = <10000>; - }; + bank0 { + label = "lcd"; + led-sources = <0 1>; + pwm-period = <10000>; }; }; @@ -166,22 +179,18 @@ lm3633@36 { enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; - backlight { - compatible = "ti,lm3633-backlight"; - - main { - label = "main_lcd"; - led-sources = <1 2>; - ramp-up-msec = <500>; - ramp-down-msec = <500>; - }; + bank0 { + label = "main_lcd"; + led-sources = <1 2>; + ramp-up-msec = <500>; + ramp-down-msec = <500>; + }; - front { - label = "front_lcd"; - led-sources = <0>; - ramp-up-msec = <1000>; - ramp-down-msec = <0>; - }; + bank1 { + label = "front_lcd"; + led-sources = <0>; + ramp-up-msec = <1000>; + ramp-down-msec = <0>; }; leds { @@ -211,13 +220,9 @@ lm3695@63 { enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; - backlight { - compatible = "ti,lm3695-backlight"; - - lcd { - label = "bl"; - led-sources = <0 1>; - }; + bank0 { + label = "lcd_bl"; + led-sources = <0 1>; }; }; @@ -227,14 +232,10 @@ lm3697@36 { enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; - backlight { - compatible = "ti,lm3697-backlight"; - - lcd { - led-sources = <0 1 2>; - ramp-up-msec = <200>; - ramp-down-msec = <200>; - }; + bank0 { + led-sources = <0 1 2>; + ramp-up-msec = <200>; + ramp-down-msec = <200>; }; fault-monitor { -- 2.16.2