Re: Recommendations for a new MFD device driver?

2015-02-11 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 03:20:39PM +0800, Lee Jones wrote: > On Fri, 06 Feb 2015, Sascha Hauer wrote: > > > Hi All, > > > > We are adding support for a new pretty typical MFD device, the MediaTek > > MT6397. Initial patches are already posted. It's a PMIC which among other > > things has

Re: Recommendations for a new MFD device driver?

2015-02-11 Thread Sascha Hauer
On Tue, Feb 10, 2015 at 03:20:39PM +0800, Lee Jones wrote: On Fri, 06 Feb 2015, Sascha Hauer wrote: Hi All, We are adding support for a new pretty typical MFD device, the MediaTek MT6397. Initial patches are already posted. It's a PMIC which among other things has regulators and a

Re: Recommendations for a new MFD device driver?

2015-02-09 Thread Lee Jones
On Fri, 06 Feb 2015, Sascha Hauer wrote: > Hi All, > > We are adding support for a new pretty typical MFD device, the MediaTek > MT6397. Initial patches are already posted. It's a PMIC which among other > things has regulators and a RTC. The same RTC is reused on another PMIC, > but with another

Re: Recommendations for a new MFD device driver?

2015-02-09 Thread Lee Jones
On Fri, 06 Feb 2015, Sascha Hauer wrote: Hi All, We are adding support for a new pretty typical MFD device, the MediaTek MT6397. Initial patches are already posted. It's a PMIC which among other things has regulators and a RTC. The same RTC is reused on another PMIC, but with another

Re: Recommendations for a new MFD device driver?

2015-02-07 Thread Mark Brown
On Fri, Feb 06, 2015 at 08:55:12PM +0800, Yingjoe Chen wrote: > I think we should create a dtsi file, say mt6397.dtsi, the regulator > device nodes are already too much to duplicate into every board using > mt6397. Please bear in mind that the regulator bindings are all about what is being done

Re: Recommendations for a new MFD device driver?

2015-02-07 Thread Mark Brown
On Fri, Feb 06, 2015 at 08:55:12PM +0800, Yingjoe Chen wrote: I think we should create a dtsi file, say mt6397.dtsi, the regulator device nodes are already too much to duplicate into every board using mt6397. Please bear in mind that the regulator bindings are all about what is being done to

Re: Recommendations for a new MFD device driver?

2015-02-06 Thread Yingjoe Chen
On Fri, 2015-02-06 at 11:54 +, Mark Brown wrote: > On Fri, Feb 06, 2015 at 11:10:06AM +0100, Sascha Hauer wrote: > > > 1) Put it into the RTC device driver. > > 2) Put it into the .resource field of struct mfd_cell > > 3) Put it into the device tree using standard reg, interrupt properties

Re: Recommendations for a new MFD device driver?

2015-02-06 Thread Mark Brown
On Fri, Feb 06, 2015 at 11:10:06AM +0100, Sascha Hauer wrote: > 1) Put it into the RTC device driver. > 2) Put it into the .resource field of struct mfd_cell > 3) Put it into the device tree using standard reg, interrupt properties and >a) Let the RTC driver interpret these >b) Let the

Recommendations for a new MFD device driver?

2015-02-06 Thread Sascha Hauer
Hi All, We are adding support for a new pretty typical MFD device, the MediaTek MT6397. Initial patches are already posted. It's a PMIC which among other things has regulators and a RTC. The same RTC is reused on another PMIC, but with another register offset and another interrupt. Now the

Recommendations for a new MFD device driver?

2015-02-06 Thread Sascha Hauer
Hi All, We are adding support for a new pretty typical MFD device, the MediaTek MT6397. Initial patches are already posted. It's a PMIC which among other things has regulators and a RTC. The same RTC is reused on another PMIC, but with another register offset and another interrupt. Now the

Re: Recommendations for a new MFD device driver?

2015-02-06 Thread Mark Brown
On Fri, Feb 06, 2015 at 11:10:06AM +0100, Sascha Hauer wrote: 1) Put it into the RTC device driver. 2) Put it into the .resource field of struct mfd_cell 3) Put it into the device tree using standard reg, interrupt properties and a) Let the RTC driver interpret these b) Let the MFD

Re: Recommendations for a new MFD device driver?

2015-02-06 Thread Yingjoe Chen
On Fri, 2015-02-06 at 11:54 +, Mark Brown wrote: On Fri, Feb 06, 2015 at 11:10:06AM +0100, Sascha Hauer wrote: 1) Put it into the RTC device driver. 2) Put it into the .resource field of struct mfd_cell 3) Put it into the device tree using standard reg, interrupt properties and