Received: by 10.213.65.68 with SMTP id h4csp3086735imn; Mon, 9 Apr 2018 14:10:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx48rpA+StIF2ag6Jjn93pM7Lczr9ogl7y2JOFQs1NEM8a3R4Xh0Wp3mLHJx73CcnHYFV+HlV X-Received: by 2002:a17:902:7804:: with SMTP id p4-v6mr40891786pll.17.1523308253425; Mon, 09 Apr 2018 14:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523308253; cv=none; d=google.com; s=arc-20160816; b=tD2DJp6KYhq3i5tpoMut+uppyLHpt4FZziGZXuRBcNRR4EgsHCE3kyPAn32yN02ONA WvpHJQmOuxcn5BdFCejb5amJby7B0tkHFKUjZy/Gnc99ZM9Ua4knjLYxqLmJ/tYxNijp anOldo7Sl8dw/JL4kV0rLz87WUOycAP6xgi4zBcFpzQmTjLpp3HEhlIMtT8xitbFkf5b pZ8w8fsiWL9X/t9sbiY4xDva2+eULmDQayhPzzQ4JtU+69buyUSj/dgwA5kNmxabI1Oz JQfXx55/EDWoc0ZzJ0sSGvdu8qyYcpwXxlgQh9vQvL8gBZBh/8NGjcAjf3gp4s6w8rkS kw0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=OWRDp8kRe/fH4/vtyN2CEvM2T5tQxTeXpOPwR5q4dPg=; b=qFWY+izCuz0+bvtK+fFAf8ySxqgQGS+6uYJ6YQgBlGDvL3qtnXeBVgvNbv5nAm20Az QDL96vevsVhFLQJWnXR4iO4iN4+dBBZ6EzFCcHBonv/g7U8aynR4jAIUzIjpxc67K7u+ daYCueQ9nOdBBwT9LGgA4bNhF1N1JNrLw8GnMWjlb/h2x44T3G1nqzbW3J9hWk00PUdj Q6xNgXHk53NrVNazheXMxEmyHwFRFPQniDRd4WDky48sdtMMCzhncFSd7VPWVpBLD4PS Rrbuu/R8jtY3LdwpGWqWfW+6GYv/r/WVktTXLB7OSB5B5bzYqptciXPRY4tCHhT0j0Ig ydRg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si1042489plk.197.2018.04.09.14.10.16; Mon, 09 Apr 2018 14:10:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754625AbeDIVGq (ORCPT + 99 others); Mon, 9 Apr 2018 17:06:46 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:35438 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422AbeDIVGl (ORCPT ); Mon, 9 Apr 2018 17:06:41 -0400 Received: by mail-ot0-f193.google.com with SMTP id f47-v6so10293706oth.2; Mon, 09 Apr 2018 14:06:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OWRDp8kRe/fH4/vtyN2CEvM2T5tQxTeXpOPwR5q4dPg=; b=tcf6OYv6W/Qrc2uyWdnxfQg3rxAP0vtzK9Ys73wJJ1GG2Z7NgKmsSiv2L5ilheUBQw Lej4kbB/frJtLfP3EHI2t1lM8lVpFJ6daybKE6gq4SRNShN1BxefSunXqQ89yb5pKInw Eq8TdYkPJqNmonhlkceHLxUSPIfFe1RaF04qw0KZtV18+yYYYh2bBSgrCbmDOD/BuFji C1MH3QfO1D+9n5GmfipNc/BmPRmsIcLKcTLoPQWoJjBCZiiclmxdjIy1pMUF10zel3KN Vvnbsp2edwJAjJNTn5Dmko20m3tMIZ/87w2Y+/8LUAlc/K/CbFzgqbgby+nWTxEERLhT QpHg== X-Gm-Message-State: ALQs6tCLxzVz3jR4CkQgRtdmfvUcfnfj3c4x3713UEAoTQ3xO5jzxa9t JDO1puvfAm75kNsi3IhcE3EukYCp1w== X-Received: by 2002:a9d:6014:: with SMTP id h20-v6mr22536147otj.69.1523308000383; Mon, 09 Apr 2018 14:06:40 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id w73-v6sm776442oif.27.2018.04.09.14.06.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 14:06:39 -0700 (PDT) Date: Mon, 9 Apr 2018 16:06:38 -0500 From: Rob Herring To: Sebastian Reichel Cc: Sebastian Reichel , Milo Kim , Lee Jones , Daniel Thompson , Tony Lindgren , Jingoo Han , Mark Rutland , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCHv4 09/10] dt-bindings: mfd: ti-lmu: update for backlight Message-ID: <20180409210638.hugfap4ega3bwgou@rob-hp-laptop> References: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> <20180330172414.26575-10-sebastian.reichel@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180330172414.26575-10-sebastian.reichel@collabora.co.uk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 30, 2018 at 07:24:13PM +0200, Sebastian Reichel wrote: > 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>; Looks like it was already wrong, but these are missing the vendor prefixes. > }; > }; > > @@ -105,13 +124,10 @@ lm3631@29 { Are so many examples really needed? Examples aren't supposed to enumerate all possible options... Rob