Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933114AbaJ3Gnl (ORCPT ); Thu, 30 Oct 2014 02:43:41 -0400 Received: from mail-qa0-f53.google.com ([209.85.216.53]:40587 "EHLO mail-qa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932920AbaJ3GnD (ORCPT ); Thu, 30 Oct 2014 02:43:03 -0400 MIME-Version: 1.0 In-Reply-To: <4202809.cQlU8Tr5kS@lenovobook> References: <4202809.cQlU8Tr5kS@lenovobook> Date: Thu, 30 Oct 2014 07:43:02 +0100 Message-ID: Subject: Re: [PATCH v3 2/2] dt: bindings: tps65217: add compatible property for backlight subnode From: Johannes Pointner To: Lee Jones , Samuel Ortiz Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping 2014-10-08 23:20 GMT+02:00 Johannes Pointner : > Add documentation for compatible property of backlight subnode. > > Signed-off-by: Johannes Pointner > --- > Changes since v2: > 1. Removed the pmic part of the patch. > 2. Added newline before subnode in the example. > --- > .../devicetree/bindings/video/backlight/tps65217-backlight.txt | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt b/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt > index 5fb9279..63ef699 100644 > --- a/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt > +++ b/Documentation/devicetree/bindings/video/backlight/tps65217-backlight.txt > @@ -6,19 +6,23 @@ used to drive LEDs for use as backlights. > Required properties: > - compatible: "ti,tps65217" > - reg: I2C slave address > -- backlight: node for specifying WLED1 and WLED2 lines in TPS65217 > +- backlight: subnode for specifying WLED1 and WLED2 lines in TPS65217 > + > +Required subnode properties: > +- compatible: "ti,tps65217-bl" > - isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level) > - fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000 > - default-brightness: valid values: 0-100 > > -Each regulator is defined using the standard binding for regulators. > > Example: > > tps: tps@24 { > reg = <0x24>; > compatible = "ti,tps65217"; > - backlight { > + > + tps_bl: backlight { > + compatible = "ti,tps65217-bl"; > isel = <1>; /* 1 - ISET1, 2 ISET2 */ > fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ > default-brightness = <50>; > -- > 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/