From: Lee Jones <lee.jones@linaro.org>
To: Olimpiu Dejeu <olimpiu-eV7fy4qpoLhpLGFMi4vTTA@public.gmane.org>
Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org
Subject: Re: [PATCH] backlight: arcxcnn: devicetree bindings for ArticSand devices
Date: Mon, 12 Sep 2016 13:58:55 +0000 [thread overview]
Message-ID: <20160912140015.GF9789@dell> (raw)
In-Reply-To: <CAF-XLW+v9c-+W2Jr2gjN+6ziijDHRtZ6_a9Rpb6TZ5+4CfALJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, 09 Sep 2016, Olimpiu Dejeu wrote:
> On Tue, Aug 23, 2016 at 2:20 PM, Rob Herring <robh@kernel.org> wrote:
>
> > On Mon, Aug 22, 2016 at 03:11:24PM -0400, Olimpiu Dejeu wrote:
> > > This is the device tree bindings documentation file
> > >
> > > Signed-off-by: Olimpiu Dejeu <olimpiu@arcticsand.com>
> > >
> > > ---
> > > .../bindings/video/backlight/arcxcnn.txt | 29
> > ++++++++++++++++++++++
> >
> >
> Check your directory location. Things have moved.
> >
> > Not sure what you mean. This seems to be the right place. Please advise.
What kernel version are you on?
Documentation/devicetree/bindings/leds/backlight
> > > 1 file changed, 29 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/video/backlight/
> > arcxcnn.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > b/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > > new file mode 100644
> > > index 0000000..9cd7315
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > > @@ -0,0 +1,29 @@
> > > +arcxcnn bindings
> > > +
> > > +Required properties:
> > > + - compatible: "arc,arcxcnn", "arc,arc2c0608"
> >
> > One per line please.
> >
> > Is arcxcnn a specific chip? If not drop it. No wildcards in compatible
> > strings.
> >
> > Wild-cards can be dropped but there could be a large family of similar
> chips that would be supported with this one driver. How would one add
> support for a range of chips, some of which don't exist yet?
If they do not exist, then do not mention them in this document.
Every other chip needs to be named individually.
[...]
> > > + - pwm-period: PWM period value. Set only PWM input mode used (u32)
> > > + - prg-addr: Register address of ROM area to be updated (u32) low 8
> > bits used
> > > + - prg-val: Register value to be updated (u32) low 8 bits used
> >
> > What is this for? This should be a specific property or properties to do
> > explicit things, not a generic fill registers/rom with magic values.
> >
> > We need to expose some registers for test without exposing underlying
> functionality. Do you suggest not documenting this in the bindings yet
> keeping the code in the driver? We followed the pattern from the lp855x_bl
> driver.
If you are supplying addresses, use the reg property.
> > > +
> > > +Example:
> > > +
> > > + /* ARC2C0608 */
> > > + backlight@30 {
> > > + compatible = "arc,arc2c0608";
> > > + reg = <0x30>;
> > > +
> > > + init-brt = <123>;
> > > +
> > > + /* LED0+1 string enabled */
> > > + prg_06h {
> > > + prg-addr = <0x06>;
> > > + prg-val = <0x83>;
> > > + };
> > > +
> > > + };
> > >
> >
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Olimpiu Dejeu <olimpiu-eV7fy4qpoLhpLGFMi4vTTA@public.gmane.org>
Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org
Subject: Re: [PATCH] backlight: arcxcnn: devicetree bindings for ArticSand devices
Date: Mon, 12 Sep 2016 15:00:15 +0100 [thread overview]
Message-ID: <20160912140015.GF9789@dell> (raw)
In-Reply-To: <CAF-XLW+v9c-+W2Jr2gjN+6ziijDHRtZ6_a9Rpb6TZ5+4CfALJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, 09 Sep 2016, Olimpiu Dejeu wrote:
> On Tue, Aug 23, 2016 at 2:20 PM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>
> > On Mon, Aug 22, 2016 at 03:11:24PM -0400, Olimpiu Dejeu wrote:
> > > This is the device tree bindings documentation file
> > >
> > > Signed-off-by: Olimpiu Dejeu <olimpiu-eV7fy4qpoLhpLGFMi4vTTA@public.gmane.org>
> > >
> > > ---
> > > .../bindings/video/backlight/arcxcnn.txt | 29
> > ++++++++++++++++++++++
> >
> >
> Check your directory location. Things have moved.
> >
> > Not sure what you mean. This seems to be the right place. Please advise.
What kernel version are you on?
Documentation/devicetree/bindings/leds/backlight
> > > 1 file changed, 29 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/video/backlight/
> > arcxcnn.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > b/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > > new file mode 100644
> > > index 0000000..9cd7315
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > > @@ -0,0 +1,29 @@
> > > +arcxcnn bindings
> > > +
> > > +Required properties:
> > > + - compatible: "arc,arcxcnn", "arc,arc2c0608"
> >
> > One per line please.
> >
> > Is arcxcnn a specific chip? If not drop it. No wildcards in compatible
> > strings.
> >
> > Wild-cards can be dropped but there could be a large family of similar
> chips that would be supported with this one driver. How would one add
> support for a range of chips, some of which don't exist yet?
If they do not exist, then do not mention them in this document.
Every other chip needs to be named individually.
[...]
> > > + - pwm-period: PWM period value. Set only PWM input mode used (u32)
> > > + - prg-addr: Register address of ROM area to be updated (u32) low 8
> > bits used
> > > + - prg-val: Register value to be updated (u32) low 8 bits used
> >
> > What is this for? This should be a specific property or properties to do
> > explicit things, not a generic fill registers/rom with magic values.
> >
> > We need to expose some registers for test without exposing underlying
> functionality. Do you suggest not documenting this in the bindings yet
> keeping the code in the driver? We followed the pattern from the lp855x_bl
> driver.
If you are supplying addresses, use the reg property.
> > > +
> > > +Example:
> > > +
> > > + /* ARC2C0608 */
> > > + backlight@30 {
> > > + compatible = "arc,arc2c0608";
> > > + reg = <0x30>;
> > > +
> > > + init-brt = <123>;
> > > +
> > > + /* LED0+1 string enabled */
> > > + prg_06h {
> > > + prg-addr = <0x06>;
> > > + prg-val = <0x83>;
> > > + };
> > > +
> > > + };
> > >
> >
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones@linaro.org>
To: Olimpiu Dejeu <olimpiu@arcticsand.com>
Cc: Rob Herring <robh@kernel.org>,
linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org,
devicetree@vger.kernel.org, jg1.han@samsung.com
Subject: Re: [PATCH] backlight: arcxcnn: devicetree bindings for ArticSand devices
Date: Mon, 12 Sep 2016 15:00:15 +0100 [thread overview]
Message-ID: <20160912140015.GF9789@dell> (raw)
In-Reply-To: <CAF-XLW+v9c-+W2Jr2gjN+6ziijDHRtZ6_a9Rpb6TZ5+4CfALJw@mail.gmail.com>
On Fri, 09 Sep 2016, Olimpiu Dejeu wrote:
> On Tue, Aug 23, 2016 at 2:20 PM, Rob Herring <robh@kernel.org> wrote:
>
> > On Mon, Aug 22, 2016 at 03:11:24PM -0400, Olimpiu Dejeu wrote:
> > > This is the device tree bindings documentation file
> > >
> > > Signed-off-by: Olimpiu Dejeu <olimpiu@arcticsand.com>
> > >
> > > ---
> > > .../bindings/video/backlight/arcxcnn.txt | 29
> > ++++++++++++++++++++++
> >
> >
> Check your directory location. Things have moved.
> >
> > Not sure what you mean. This seems to be the right place. Please advise.
What kernel version are you on?
Documentation/devicetree/bindings/leds/backlight
> > > 1 file changed, 29 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/video/backlight/
> > arcxcnn.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > b/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > > new file mode 100644
> > > index 0000000..9cd7315
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/video/backlight/arcxcnn.txt
> > > @@ -0,0 +1,29 @@
> > > +arcxcnn bindings
> > > +
> > > +Required properties:
> > > + - compatible: "arc,arcxcnn", "arc,arc2c0608"
> >
> > One per line please.
> >
> > Is arcxcnn a specific chip? If not drop it. No wildcards in compatible
> > strings.
> >
> > Wild-cards can be dropped but there could be a large family of similar
> chips that would be supported with this one driver. How would one add
> support for a range of chips, some of which don't exist yet?
If they do not exist, then do not mention them in this document.
Every other chip needs to be named individually.
[...]
> > > + - pwm-period: PWM period value. Set only PWM input mode used (u32)
> > > + - prg-addr: Register address of ROM area to be updated (u32) low 8
> > bits used
> > > + - prg-val: Register value to be updated (u32) low 8 bits used
> >
> > What is this for? This should be a specific property or properties to do
> > explicit things, not a generic fill registers/rom with magic values.
> >
> > We need to expose some registers for test without exposing underlying
> functionality. Do you suggest not documenting this in the bindings yet
> keeping the code in the driver? We followed the pattern from the lp855x_bl
> driver.
If you are supplying addresses, use the reg property.
> > > +
> > > +Example:
> > > +
> > > + /* ARC2C0608 */
> > > + backlight@30 {
> > > + compatible = "arc,arc2c0608";
> > > + reg = <0x30>;
> > > +
> > > + init-brt = <123>;
> > > +
> > > + /* LED0+1 string enabled */
> > > + prg_06h {
> > > + prg-addr = <0x06>;
> > > + prg-val = <0x83>;
> > > + };
> > > +
> > > + };
> > >
> >
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2016-09-12 13:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 19:11 [PATCH] backlight: arcxcnn: devicetree bindings for ArticSand devices Olimpiu Dejeu
2016-08-22 19:11 ` Olimpiu Dejeu
2016-08-22 19:11 ` Olimpiu Dejeu
[not found] ` <1471893084-4551-1-git-send-email-olimpiu-eV7fy4qpoLhpLGFMi4vTTA@public.gmane.org>
2016-08-23 18:20 ` Rob Herring
2016-08-23 18:20 ` Rob Herring
2016-08-23 18:20 ` Rob Herring
2016-09-09 18:18 ` Olimpiu Dejeu
[not found] ` <CAF-XLW+v9c-+W2Jr2gjN+6ziijDHRtZ6_a9Rpb6TZ5+4CfALJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-12 13:58 ` Lee Jones [this message]
2016-09-12 14:00 ` Lee Jones
2016-09-12 14:00 ` Lee Jones
2016-09-09 18:50 ` Olimpiu Dejeu
2016-09-09 18:50 ` Olimpiu Dejeu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160912140015.GF9789@dell \
--to=lee.jones@linaro.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olimpiu-eV7fy4qpoLhpLGFMi4vTTA@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.