* Re: [PATCH v6 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD [not found] ` <20160929171540.GB2844@dell> @ 2016-09-29 19:15 ` Stefan Wahren 2016-09-29 23:14 ` Lee Jones 0 siblings, 1 reply; 2+ messages in thread From: Stefan Wahren @ 2016-09-29 19:15 UTC (permalink / raw) To: Lee Jones Cc: Ksenija Stanojevic, linux-input-u79uwXL29TY76Z2rM5mHXA, pmeerw-jW+XmwGofnusTnJN9+BGXg, jic23-DgEjT+Ai2ygdnm+yROfE0A, linux-kernel-u79uwXL29TY76Z2rM5mHXA, knaack.h-Mmb7MZpHnFY, lars-Qo5EllUWu/uELgA04lAiVw, dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w, harald-95f8Dae0BrPYtjvyW6yDsg, fabio.estevam-KZfg59tc24xl57MIdRCFDg, linux-iio-u79uwXL29TY76Z2rM5mHXA, marex-ynQEQJNshbs, Rob Herring, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA Hi Lee, [add Rob and Mark] > Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> hat am 29. September 2016 um 19:15 > geschrieben: > > > On Thu, 29 Sep 2016, Stefan Wahren wrote: > > > Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> hat am 28. September 2016 um 03:05 > > > geschrieben: > > > > > > > > > On Sat, 17 Sep 2016, Ksenija Stanojevic wrote: > > > > > > > + > > > > +static int mxs_lradc_probe(struct platform_device *pdev) > > > > +{ > > > > + const struct of_device_id *of_id; > > > > + struct device *dev = &pdev->dev; > > > > + struct device_node *node = dev->of_node; > > > > + struct mxs_lradc *lradc; > > > > + struct mfd_cell *cells = NULL; > > > > + int ret = 0; > > > > + u32 ts_wires = 0; > > > > + > > > > + lradc = devm_kzalloc(&pdev->dev, sizeof(*lradc), GFP_KERNEL); > > > > + if (!lradc) > > > > + return -ENOMEM; > > > > + > > > > + of_id = of_match_device(mxs_lradc_dt_ids, &pdev->dev); > > > > + lradc->soc = (enum mxs_lradc_id)of_id->data; > > > > + > > > > + lradc->clk = devm_clk_get(&pdev->dev, NULL); > > > > + if (IS_ERR(lradc->clk)) { > > > > + dev_err(dev, "Failed to get the delay unit clock\n"); > > > > + return PTR_ERR(lradc->clk); > > > > + } > > > > + > > > > + ret = clk_prepare_enable(lradc->clk); > > > > + if (ret) { > > > > + dev_err(dev, "Failed to enable the delay unit clock\n"); > > > > + return ret; > > > > + } > > > > + > > > > + ret = of_property_read_u32(node, "fsl,lradc-touchscreen-wires", > > > > > > Have you moved the documentation into devicetree/bindings/mfd? > > > > > > > i hope it's okay if i answer. The binding has moved to > > devicetree/binding/iio/adc/ [1] > > > > Should it move completely to mfd or split too? > > > > I'm asking myself how we keep DT ABI in the latter case. > > > > [1] - > > http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/iio/adc/mxs-lradc.txt > > I haven't read into the documentation too to deeply, but it stands to > reason that the bindings which are now being used in MFD should be > documented in the MFD binding document, and the ones which are no longer > used in the IIO driver should be removed. sure, that isn't a problem. The more interesting question would be: do we need a new compatible string for the mfd driver? In that case the ADC won't probe for the combination of old devicetree blobs and new kernel. Regards Stefan > > -- > Lee Jones > Linaro STMicroelectronics Landing Team Lead > Linaro.org │ Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v6 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD 2016-09-29 19:15 ` [PATCH v6 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD Stefan Wahren @ 2016-09-29 23:14 ` Lee Jones 0 siblings, 0 replies; 2+ messages in thread From: Lee Jones @ 2016-09-29 23:14 UTC (permalink / raw) To: Stefan Wahren Cc: Ksenija Stanojevic, linux-input, pmeerw, jic23, linux-kernel, knaack.h, lars, dmitry.torokhov, harald, fabio.estevam, linux-iio, marex, Rob Herring, Mark Rutland, devicetree On Thu, 29 Sep 2016, Stefan Wahren wrote: > Hi Lee, > > [add Rob and Mark] > > > Lee Jones <lee.jones@linaro.org> hat am 29. September 2016 um 19:15 > > geschrieben: > > > > > > On Thu, 29 Sep 2016, Stefan Wahren wrote: > > > > Lee Jones <lee.jones@linaro.org> hat am 28. September 2016 um 03:05 > > > > geschrieben: > > > > > > > > > > > > On Sat, 17 Sep 2016, Ksenija Stanojevic wrote: > > > > > > > > > + > > > > > +static int mxs_lradc_probe(struct platform_device *pdev) > > > > > +{ > > > > > + const struct of_device_id *of_id; > > > > > + struct device *dev = &pdev->dev; > > > > > + struct device_node *node = dev->of_node; > > > > > + struct mxs_lradc *lradc; > > > > > + struct mfd_cell *cells = NULL; > > > > > + int ret = 0; > > > > > + u32 ts_wires = 0; > > > > > + > > > > > + lradc = devm_kzalloc(&pdev->dev, sizeof(*lradc), GFP_KERNEL); > > > > > + if (!lradc) > > > > > + return -ENOMEM; > > > > > + > > > > > + of_id = of_match_device(mxs_lradc_dt_ids, &pdev->dev); > > > > > + lradc->soc = (enum mxs_lradc_id)of_id->data; > > > > > + > > > > > + lradc->clk = devm_clk_get(&pdev->dev, NULL); > > > > > + if (IS_ERR(lradc->clk)) { > > > > > + dev_err(dev, "Failed to get the delay unit clock\n"); > > > > > + return PTR_ERR(lradc->clk); > > > > > + } > > > > > + > > > > > + ret = clk_prepare_enable(lradc->clk); > > > > > + if (ret) { > > > > > + dev_err(dev, "Failed to enable the delay unit clock\n"); > > > > > + return ret; > > > > > + } > > > > > + > > > > > + ret = of_property_read_u32(node, "fsl,lradc-touchscreen-wires", > > > > > > > > Have you moved the documentation into devicetree/bindings/mfd? > > > > > > > > > > i hope it's okay if i answer. The binding has moved to > > > devicetree/binding/iio/adc/ [1] > > > > > > Should it move completely to mfd or split too? > > > > > > I'm asking myself how we keep DT ABI in the latter case. > > > > > > [1] - > > > http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/iio/adc/mxs-lradc.txt > > > > I haven't read into the documentation too to deeply, but it stands to > > reason that the bindings which are now being used in MFD should be > > documented in the MFD binding document, and the ones which are no longer > > used in the IIO driver should be removed. > > sure, that isn't a problem. > > The more interesting question would be: do we need a new compatible string for > the mfd driver? No, I don't think that is necessary. > In that case the ADC won't probe for the combination of old devicetree blobs and > new kernel. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-29 23:14 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <cover.1474108510.git.ksenija.stanojevic@gmail.com> [not found] ` <b50209289b241995c6fd5e23c7343448857fc301.1474108510.git.ksenija.stanojevic@gmail.com> [not found] ` <20160928010533.GQ21388@dell> [not found] ` <1882238802.204734.75f5f595-10ac-4107-8738-e75dfde001f1.open-xchange@email.1und1.de> [not found] ` <20160929171540.GB2844@dell> 2016-09-29 19:15 ` [PATCH v6 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD Stefan Wahren 2016-09-29 23:14 ` Lee Jones
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).