* [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD @ 2014-03-28 21:20 Rob Herring 2014-03-28 21:20 ` [PATCH 2/2] misc: arm-charlcd: add DT probe support Rob Herring 2014-03-28 21:35 ` [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Dinh Nguyen 0 siblings, 2 replies; 5+ messages in thread From: Rob Herring @ 2014-03-28 21:20 UTC (permalink / raw) To: linux-kernel, devicetree, linux-arm-kernel Cc: Arnd Bergmann, Greg Kroah-Hartman, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala From: Rob Herring <robh@kernel.org> Add binding doc for Versatile platforms character LCD controller interface. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Kumar Gala <galak@codeaurora.org> --- Documentation/devicetree/bindings/misc/arm-charlcd.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/arm-charlcd.txt diff --git a/Documentation/devicetree/bindings/misc/arm-charlcd.txt b/Documentation/devicetree/bindings/misc/arm-charlcd.txt new file mode 100644 index 0000000..e28e2aa --- /dev/null +++ b/Documentation/devicetree/bindings/misc/arm-charlcd.txt @@ -0,0 +1,18 @@ +ARM Versatile Character LCD +----------------------------------------------------- +This binding defines the character LCD interface found on ARM Versatile AB +and PB reference platforms. + +Required properties: +- compatible : "arm,versatile-clcd" +- reg : Location and size of character LCD registers + +Optional properties: +- interrupts - single interrupt for character LCD. The character LCD can + operate in polled mode without an interrupt. + +Example: + lcd@10008000 { + compatible = "arm,versatile-lcd"; + reg = <0x10008000 0x1000>; + }; -- 1.8.3.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] misc: arm-charlcd: add DT probe support 2014-03-28 21:20 [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Rob Herring @ 2014-03-28 21:20 ` Rob Herring 2014-03-28 21:35 ` [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Dinh Nguyen 1 sibling, 0 replies; 5+ messages in thread From: Rob Herring @ 2014-03-28 21:20 UTC (permalink / raw) To: linux-kernel, devicetree, linux-arm-kernel Cc: Arnd Bergmann, Greg Kroah-Hartman, Rob Herring From: Rob Herring <robh@kernel.org> Add the DT match table to enable DT based probe matching. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/misc/arm-charlcd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/arm-charlcd.c b/drivers/misc/arm-charlcd.c index b7ebf80..c72e96b 100644 --- a/drivers/misc/arm-charlcd.c +++ b/drivers/misc/arm-charlcd.c @@ -11,6 +11,7 @@ #include <linux/module.h> #include <linux/interrupt.h> #include <linux/platform_device.h> +#include <linux/of.h> #include <linux/completion.h> #include <linux/delay.h> #include <linux/io.h> @@ -366,11 +367,17 @@ static const struct dev_pm_ops charlcd_pm_ops = { .resume = charlcd_resume, }; +static const struct of_device_id charlcd_match[] = { + { .compatible = "arm,versatile-lcd", }, + {} +}; + static struct platform_driver charlcd_driver = { .driver = { .name = DRIVERNAME, .owner = THIS_MODULE, .pm = &charlcd_pm_ops, + .of_match_table = of_match_ptr(charlcd_match), }, .remove = __exit_p(charlcd_remove), }; -- 1.8.3.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD 2014-03-28 21:20 [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Rob Herring 2014-03-28 21:20 ` [PATCH 2/2] misc: arm-charlcd: add DT probe support Rob Herring @ 2014-03-28 21:35 ` Dinh Nguyen 2014-03-28 21:48 ` Rob Herring 1 sibling, 1 reply; 5+ messages in thread From: Dinh Nguyen @ 2014-03-28 21:35 UTC (permalink / raw) To: Rob Herring Cc: linux-kernel, devicetree, linux-arm-kernel, Mark Rutland, Rob Herring, Arnd Bergmann, Pawel Moll, Ian Campbell, Greg Kroah-Hartman, Kumar Gala On Fri, 2014-03-28 at 16:20 -0500, Rob Herring wrote: > From: Rob Herring <robh@kernel.org> > > Add binding doc for Versatile platforms character LCD controller > interface. > > Signed-off-by: Rob Herring <robh@kernel.org> > Cc: Pawel Moll <pawel.moll@arm.com> > Cc: Mark Rutland <mark.rutland@arm.com> > Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> > Cc: Kumar Gala <galak@codeaurora.org> > --- > Documentation/devicetree/bindings/misc/arm-charlcd.txt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 Documentation/devicetree/bindings/misc/arm-charlcd.txt > > diff --git a/Documentation/devicetree/bindings/misc/arm-charlcd.txt b/Documentation/devicetree/bindings/misc/arm-charlcd.txt > new file mode 100644 > index 0000000..e28e2aa > --- /dev/null > +++ b/Documentation/devicetree/bindings/misc/arm-charlcd.txt > @@ -0,0 +1,18 @@ > +ARM Versatile Character LCD > +----------------------------------------------------- > +This binding defines the character LCD interface found on ARM Versatile AB > +and PB reference platforms. > + > +Required properties: > +- compatible : "arm,versatile-clcd" Should this be "arm,versatile-lcd"? Dinh > +- reg : Location and size of character LCD registers > + > +Optional properties: > +- interrupts - single interrupt for character LCD. The character LCD can > + operate in polled mode without an interrupt. > + > +Example: > + lcd@10008000 { > + compatible = "arm,versatile-lcd"; > + reg = <0x10008000 0x1000>; > + }; ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD 2014-03-28 21:35 ` [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Dinh Nguyen @ 2014-03-28 21:48 ` Rob Herring 2014-03-28 21:57 ` Dinh Nguyen 0 siblings, 1 reply; 5+ messages in thread From: Rob Herring @ 2014-03-28 21:48 UTC (permalink / raw) To: Dinh Nguyen Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Rutland, Arnd Bergmann, Pawel Moll, Ian Campbell, Greg Kroah-Hartman, Kumar Gala On Fri, Mar 28, 2014 at 4:35 PM, Dinh Nguyen <dinguyen@altera.com> wrote: > On Fri, 2014-03-28 at 16:20 -0500, Rob Herring wrote: >> From: Rob Herring <robh@kernel.org> >> >> Add binding doc for Versatile platforms character LCD controller >> interface. >> >> Signed-off-by: Rob Herring <robh@kernel.org> >> Cc: Pawel Moll <pawel.moll@arm.com> >> Cc: Mark Rutland <mark.rutland@arm.com> >> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> >> Cc: Kumar Gala <galak@codeaurora.org> >> --- >> Documentation/devicetree/bindings/misc/arm-charlcd.txt | 18 ++++++++++++++++++ >> 1 file changed, 18 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/misc/arm-charlcd.txt >> >> diff --git a/Documentation/devicetree/bindings/misc/arm-charlcd.txt b/Documentation/devicetree/bindings/misc/arm-charlcd.txt >> new file mode 100644 >> index 0000000..e28e2aa >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/misc/arm-charlcd.txt >> @@ -0,0 +1,18 @@ >> +ARM Versatile Character LCD >> +----------------------------------------------------- >> +This binding defines the character LCD interface found on ARM Versatile AB >> +and PB reference platforms. >> + >> +Required properties: >> +- compatible : "arm,versatile-clcd" > > Should this be "arm,versatile-lcd"? Make up your mind. ;) -lcd is what is already used in the dts, but since there was no driver support it should be okay to change the dts. If we're changing, I think I'll change it to "arm,versatile-char-lcd". 'c' alone could just mean color. Rob ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD 2014-03-28 21:48 ` Rob Herring @ 2014-03-28 21:57 ` Dinh Nguyen 0 siblings, 0 replies; 5+ messages in thread From: Dinh Nguyen @ 2014-03-28 21:57 UTC (permalink / raw) To: Rob Herring Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Rutland, Arnd Bergmann, Pawel Moll, Ian Campbell, Greg Kroah-Hartman, Kumar Gala On Fri, 2014-03-28 at 16:48 -0500, Rob Herring wrote: > On Fri, Mar 28, 2014 at 4:35 PM, Dinh Nguyen <dinguyen@altera.com> wrote: > > On Fri, 2014-03-28 at 16:20 -0500, Rob Herring wrote: > >> From: Rob Herring <robh@kernel.org> > >> > >> Add binding doc for Versatile platforms character LCD controller > >> interface. > >> > >> Signed-off-by: Rob Herring <robh@kernel.org> > >> Cc: Pawel Moll <pawel.moll@arm.com> > >> Cc: Mark Rutland <mark.rutland@arm.com> > >> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> > >> Cc: Kumar Gala <galak@codeaurora.org> > >> --- > >> Documentation/devicetree/bindings/misc/arm-charlcd.txt | 18 ++++++++++++++++++ > >> 1 file changed, 18 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/misc/arm-charlcd.txt > >> > >> diff --git a/Documentation/devicetree/bindings/misc/arm-charlcd.txt b/Documentation/devicetree/bindings/misc/arm-charlcd.txt > >> new file mode 100644 > >> index 0000000..e28e2aa > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/misc/arm-charlcd.txt > >> @@ -0,0 +1,18 @@ > >> +ARM Versatile Character LCD > >> +----------------------------------------------------- > >> +This binding defines the character LCD interface found on ARM Versatile AB > >> +and PB reference platforms. > >> + > >> +Required properties: > >> +- compatible : "arm,versatile-clcd" > > > > Should this be "arm,versatile-lcd"? > > Make up your mind. ;) -lcd is what is already used in the dts, but > since there was no driver support it should be okay to change the dts. > If we're changing, I think I'll change it to "arm,versatile-char-lcd". > 'c' alone could just mean color. Sorry...what I meant was that in your patch, the examples was using "lcd", and here's its "clcd". Then your 2/2 patch is using "lcd". Dinh > > Rob ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-28 22:15 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-03-28 21:20 [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Rob Herring 2014-03-28 21:20 ` [PATCH 2/2] misc: arm-charlcd: add DT probe support Rob Herring 2014-03-28 21:35 ` [PATCH 1/2] dt/bindings: add binding for ARM Versatile character LCD Dinh Nguyen 2014-03-28 21:48 ` Rob Herring 2014-03-28 21:57 ` Dinh Nguyen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox