[v8,01/12] gpio: add gpio offset in gpio range cells property

Haojian Zhuang haojian.zhuang at linaro.org
Mon Apr 29 12:49:03 EDT 2013


On 30 April 2013 00:00, James Hogan <james.hogan at imgtec.com> wrote:
> On 02/02/13 17:25, Haojian Zhuang wrote:
>> Add gpio offset into "gpio-range-cells" property. It's used to support
>> sparse pinctrl range in gpio chip.
>>
>> Signed-off-by: Haojian Zhuang <haojian.zhuang at linaro.org>
>> Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
>
> This is an ABI breakage. I've been using the #gpio-range-cells = <2>
> since around October. Please can we try and maintain backward
> compatibility in future, even if it's only temporary.
>
> Thanks
> James
>

I've updated all code with #gpio-range-cells = <3> in kernel. If you change this
back to <2>, you'll break current pinctrl-single driver. I appended this because
there may be not 1-to-1 mapping between gpio pins & pinmux pins in some
SoC. So the new parameter is used to specify the gpio pin offset.

So it's not temporary.

Regards
Haojian



More information about the linux-arm-kernel mailing list