Re: [PATCH V2] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-06-04 Thread Marek Vasut
On 06/04/2018 11:34 AM, Simon Horman wrote: > On Fri, May 25, 2018 at 10:05:08PM +0200, Marek Vasut wrote: >> Rather than hard-coding the quirk topology, which stopped scaling, >> parse the information from DT. The code looks for all compatible >> PMICs -- da9036 and da9210 -- and checks if their

Re: [PATCH V2] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-06-04 Thread Simon Horman
On Fri, May 25, 2018 at 10:05:08PM +0200, Marek Vasut wrote: > Rather than hard-coding the quirk topology, which stopped scaling, > parse the information from DT. The code looks for all compatible > PMICs -- da9036 and da9210 -- and checks if their IRQ line is tied > to the same pin. If so, the

[PATCH V2] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-05-25 Thread Marek Vasut
Rather than hard-coding the quirk topology, which stopped scaling, parse the information from DT. The code looks for all compatible PMICs -- da9036 and da9210 -- and checks if their IRQ line is tied to the same pin. If so, the code sends a matching sequence to the PMIC to deassert the IRQ.