Hi all, Here a repost of some pinctrl changes to introduce #pinctrl-cells and a generic parser pinctrl_parse_index_with_args that the drivers can optionally use.
Regards, Tony Changes from v1: - Update based on comments from Linus Walleij to not pass #pinctrl-cells as an argument and improve the binding documentation Tony Lindgren (4): pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,pins pinctrl: single: Use generic parser and #pinctrl-cells for pinctrl-single,bits ARM: dts: Add #pinctrl-cells for pinctrl-single instances .../bindings/pinctrl/pinctrl-bindings.txt | 44 +++++- .../devicetree/bindings/pinctrl/pinctrl-single.txt | 3 + arch/arm/boot/dts/am33xx.dtsi | 2 + arch/arm/boot/dts/am3517.dtsi | 1 + arch/arm/boot/dts/am4372.dtsi | 1 + arch/arm/boot/dts/da850.dtsi | 1 + arch/arm/boot/dts/dm814x.dtsi | 1 + arch/arm/boot/dts/dm816x.dtsi | 2 + arch/arm/boot/dts/dra7.dtsi | 1 + arch/arm/boot/dts/hi3620.dtsi | 2 + arch/arm/boot/dts/keystone-k2g.dtsi | 1 + arch/arm/boot/dts/keystone-k2l.dtsi | 1 + arch/arm/boot/dts/omap2420.dtsi | 2 + arch/arm/boot/dts/omap2430.dtsi | 2 + arch/arm/boot/dts/omap3.dtsi | 2 + arch/arm/boot/dts/omap34xx.dtsi | 1 + arch/arm/boot/dts/omap36xx.dtsi | 1 + arch/arm/boot/dts/omap4.dtsi | 2 + arch/arm/boot/dts/omap5.dtsi | 2 + arch/arm/boot/dts/pxa3xx.dtsi | 1 + arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 3 + drivers/pinctrl/devicetree.c | 144 +++++++++++++++++++ drivers/pinctrl/devicetree.h | 21 +++ drivers/pinctrl/pinctrl-single.c | 159 +++++++++++++++------ 24 files changed, 357 insertions(+), 43 deletions(-) -- 2.10.2