* [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT @ 2013-02-23 17:35 Markus Pargmann [not found] ` <1361640958-1876-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-02-23 21:18 ` Sergei Shtylyov 0 siblings, 2 replies; 5+ messages in thread From: Markus Pargmann @ 2013-02-23 17:35 UTC (permalink / raw) To: zbr-i6C2adt8DTjR7s880joybQ, grant.likely-s3s/WqlpOiPyB63q8FvJNQ, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ Cc: fabio.estevam-KZfg59tc24xl57MIdRCFDg, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, Markus Pargmann, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Add devicetree support for mxc_w1 driver. Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> --- Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt | 13 +++++++++++++ drivers/w1/masters/mxc_w1.c | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt diff --git a/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt new file mode 100644 index 0000000..686ced4 --- /dev/null +++ b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt @@ -0,0 +1,13 @@ +Freescale driver for Dalla's 1-wire bus master on imx chips + +This driver supports imx21,27,31,35. + +Required properties: +- compatible : "fsl,<chip>-w1" +- reg : Should be the memory range. + +Example: + w1: w1@10009000 { + compatible = "fsl,imx27-w1"; + reg = <0x10009000 0x1000>; + }; diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index 708a25f..827ff7f 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b/drivers/w1/masters/mxc_w1.c @@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev) return 0; } +struct of_device_id mxc_w1_of_ids[] = { + { .compatible = "fsl,imx21-w1", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, mxc_w1_of_ids); + static struct platform_driver mxc_w1_driver = { .driver = { .name = "mxc_w1", + .of_match_table = mxc_w1_of_ids, }, .probe = mxc_w1_probe, .remove = mxc_w1_remove, -- 1.8.1.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1361640958-1876-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* [PATCH 2/2] Drivers: w1: mxc_w1, Add driver owner [not found] ` <1361640958-1876-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2013-02-23 17:35 ` Markus Pargmann 2013-02-24 11:37 ` [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT Martin Fuzzey 1 sibling, 0 replies; 5+ messages in thread From: Markus Pargmann @ 2013-02-23 17:35 UTC (permalink / raw) To: zbr-i6C2adt8DTjR7s880joybQ, grant.likely-s3s/WqlpOiPyB63q8FvJNQ, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ Cc: fabio.estevam-KZfg59tc24xl57MIdRCFDg, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, Markus Pargmann, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Driver owner was missing. Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> --- drivers/w1/masters/mxc_w1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index 827ff7f..7589970 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b/drivers/w1/masters/mxc_w1.c @@ -195,6 +195,7 @@ MODULE_DEVICE_TABLE(of, mxc_w1_of_ids); static struct platform_driver mxc_w1_driver = { .driver = { .name = "mxc_w1", + .owner = THIS_MODULE, .of_match_table = mxc_w1_of_ids, }, .probe = mxc_w1_probe, -- 1.8.1.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT [not found] ` <1361640958-1876-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-02-23 17:35 ` [PATCH 2/2] Drivers: w1: mxc_w1, Add driver owner Markus Pargmann @ 2013-02-24 11:37 ` Martin Fuzzey [not found] ` <CALBypN4+ioS=YDrw7YnvtS1AeS+UH=FidYd2zG1_NsBWDh9bgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Martin Fuzzey @ 2013-02-24 11:37 UTC (permalink / raw) To: Markus Pargmann Cc: fabio.estevam-KZfg59tc24xl57MIdRCFDg, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, Sascha Hauer, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, zbr-i6C2adt8DTjR7s880joybQ, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org [-- Attachment #1.1: Type: text/plain, Size: 2629 bytes --] Hi Markus, I've already submitted basically this and it's in linux-next: http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=28c55dc1acc863cb29832b5be2464ebcdafdc3d5 Also: +Example: + w1: w1@10009000 { + compatible = "fsl,imx27-w1"; + reg = <0x10009000 0x1000>; + }; ... +struct of_device_id mxc_w1_of_ids[] = { + { .compatible = "fsl,imx21-w1", }, + { /* sentinel */ } +}; Isn't there a mismatch imx27 vs imx21 here? Regards, Martin On Sat, Feb 23, 2013 at 6:35 PM, Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote: > Add devicetree support for mxc_w1 driver. > > Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > --- > Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt | 13 +++++++++++++ > drivers/w1/masters/mxc_w1.c | 7 +++++++ > 2 files changed, 20 insertions(+) > create mode 100644 Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > > diff --git a/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > new file mode 100644 > index 0000000..686ced4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > @@ -0,0 +1,13 @@ > +Freescale driver for Dalla's 1-wire bus master on imx chips > + > +This driver supports imx21,27,31,35. > + > +Required properties: > +- compatible : "fsl,<chip>-w1" > +- reg : Should be the memory range. > + > +Example: > + w1: w1@10009000 { > + compatible = "fsl,imx27-w1"; > + reg = <0x10009000 0x1000>; > + }; > diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c > index 708a25f..827ff7f 100644 > --- a/drivers/w1/masters/mxc_w1.c > +++ b/drivers/w1/masters/mxc_w1.c > @@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev) > return 0; > } > > +struct of_device_id mxc_w1_of_ids[] = { > + { .compatible = "fsl,imx21-w1", }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(of, mxc_w1_of_ids); > + > static struct platform_driver mxc_w1_driver = { > .driver = { > .name = "mxc_w1", > + .of_match_table = mxc_w1_of_ids, > }, > .probe = mxc_w1_probe, > .remove = mxc_w1_remove, > -- > 1.8.1.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > [-- Attachment #1.2: Type: text/html, Size: 5087 bytes --] [-- Attachment #2: Type: text/plain, Size: 192 bytes --] _______________________________________________ devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org https://lists.ozlabs.org/listinfo/devicetree-discuss ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CALBypN4+ioS=YDrw7YnvtS1AeS+UH=FidYd2zG1_NsBWDh9bgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT [not found] ` <CALBypN4+ioS=YDrw7YnvtS1AeS+UH=FidYd2zG1_NsBWDh9bgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-02-24 12:36 ` Markus Pargmann 0 siblings, 0 replies; 5+ messages in thread From: Markus Pargmann @ 2013-02-24 12:36 UTC (permalink / raw) To: Martin Fuzzey Cc: fabio.estevam-KZfg59tc24xl57MIdRCFDg, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, Sascha Hauer, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, zbr-i6C2adt8DTjR7s880joybQ, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Hi Martin, On Sun, Feb 24, 2013 at 12:37:17PM +0100, Martin Fuzzey wrote: > Hi Markus, > > I've already submitted basically this and it's in linux-next: > http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h= > 28c55dc1acc863cb29832b5be2464ebcdafdc3d5 Ok, but 2/2 is still needed. > > Also: > +Example: > + w1: w1@10009000 { > + compatible = "fsl,imx27-w1"; > + reg = <0x10009000 0x1000>; > + }; > ... > +struct of_device_id mxc_w1_of_ids[] = { > + { .compatible = "fsl,imx21-w1", }, > + { /* sentinel */ } > +}; > > Isn't there a mismatch imx27 vs imx21 here? Yes that's a mismatch from a previous version. Thanks Markus > > Regards, > > Martin > > > > On Sat, Feb 23, 2013 at 6:35 PM, Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote: > > Add devicetree support for mxc_w1 driver. > > Signed-off-by: Markus Pargmann <mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > --- > Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt | 13 +++++++++++++ > drivers/w1/masters/mxc_w1.c | 7 +++++++ > 2 files changed, 20 insertions(+) > create mode 100644 Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > > diff --git a/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt b/ > Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > new file mode 100644 > index 0000000..686ced4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > @@ -0,0 +1,13 @@ > +Freescale driver for Dalla's 1-wire bus master on imx chips > + > +This driver supports imx21,27,31,35. > + > +Required properties: > +- compatible : "fsl,<chip>-w1" > +- reg : Should be the memory range. > + > +Example: > + w1: w1@10009000 { > + compatible = "fsl,imx27-w1"; > + reg = <0x10009000 0x1000>; > + }; > diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c > index 708a25f..827ff7f 100644 > --- a/drivers/w1/masters/mxc_w1.c > +++ b/drivers/w1/masters/mxc_w1.c > @@ -186,9 +186,16 @@ static int mxc_w1_remove(struct platform_device *pdev) > return 0; > } > > +struct of_device_id mxc_w1_of_ids[] = { > + { .compatible = "fsl,imx21-w1", }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(of, mxc_w1_of_ids); > + > static struct platform_driver mxc_w1_driver = { > .driver = { > .name = "mxc_w1", > + .of_match_table = mxc_w1_of_ids, > }, > .probe = mxc_w1_probe, > .remove = mxc_w1_remove, > -- > 1.8.1.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT 2013-02-23 17:35 [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT Markus Pargmann [not found] ` <1361640958-1876-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2013-02-23 21:18 ` Sergei Shtylyov 1 sibling, 0 replies; 5+ messages in thread From: Sergei Shtylyov @ 2013-02-23 21:18 UTC (permalink / raw) To: Markus Pargmann Cc: fabio.estevam, gregkh, s.hauer, rob.herring, grant.likely, kernel, zbr, devicetree-discuss, linux-arm-kernel Hello. On 23-02-2013 21:35, Markus Pargmann wrote: > Add devicetree support for mxc_w1 driver. > Signed-off-by: Markus Pargmann <mpa@pengutronix.de> > --- > Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt | 13 +++++++++++++ > drivers/w1/masters/mxc_w1.c | 7 +++++++ > 2 files changed, 20 insertions(+) > create mode 100644 Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > diff --git a/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > new file mode 100644 > index 0000000..686ced4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/w1/fsl,mxc-w1.txt > @@ -0,0 +1,13 @@ > +Freescale driver for Dalla's 1-wire bus master on imx chips You meant "Dallas'". WBR, Sergei ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-02-24 12:36 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-02-23 17:35 [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT Markus Pargmann [not found] ` <1361640958-1876-1-git-send-email-mpa-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2013-02-23 17:35 ` [PATCH 2/2] Drivers: w1: mxc_w1, Add driver owner Markus Pargmann 2013-02-24 11:37 ` [PATCH 1/2] Drivers: w1: mxc_w1, Add support for DT Martin Fuzzey [not found] ` <CALBypN4+ioS=YDrw7YnvtS1AeS+UH=FidYd2zG1_NsBWDh9bgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2013-02-24 12:36 ` Markus Pargmann 2013-02-23 21:18 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).