linux/include/dt-bindings/pinctrl
Tony Lindgren 43a348ea53 ARM: dts: Add omap specific pinctrl defines to use padconf addresses
As we have one to three pinctrl-single instances for each SoC it is
a bit confusing to configure the padconf register offset from the
base of the padconf register base.

Let's add macros that allow using the physical address of the
padconf register directly, or in most cases, just the last 16-bits
of the address as they are shown in the documentation.

Note that most documentation shows two padconf registers for each
32-bit address, so adding 2 to the documentation address is needed for
the second padconf register as we treat them as 16-bit registers
for omap3+.

For example, omap36xx documentation shows sdmmc2_clk at 0x48002158,
so we can just use the last 16-bits of that value:

	pinctrl-single,pins = <
		OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0)
		...
	>;

And we don't need to separately calculate the offset from the 0x2030
base:

	pinctrl-single,pins = <
		0x128 (PIN_INPUT_PULLUP | MUX_MODE0)
		...
	>;

Naturally both ways of defining the registers can be used, and I'm
not saying we should replace all the existing defines. But it may
be handy to use these macros for new entries and when doing other
related .dts file clean-up.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[tony@atomide.com: updated for 3430 vs 3630 core2 range]
Signed-off-by: Tony Lindgren <tony@atomide.com>
2014-01-07 14:01:38 -08:00
..
am33xx.h pinctrl: am33xx dt binding: correct include path 2013-07-21 19:37:46 +02:00
am43xx.h ARM: dts: AM4372: Update Support for EPOS EVM 2013-10-20 19:16:55 +02:00
at91.h pinctrl: at91: fix typos 2013-09-27 14:10:09 +02:00
dra.h ARM: dts: DRA7: Add the dts files for dra7 SoC and dra7-evm board 2013-10-08 17:51:41 +02:00
nomadik.h ARM: u8540: Add Pinctrl Device Tree settings for uart0, uart2 2013-08-06 23:48:50 +02:00
omap.h ARM: dts: Add omap specific pinctrl defines to use padconf addresses 2014-01-07 14:01:38 -08:00
rockchip.h pinctrl: add pinctrl driver for Rockchip SoCs 2013-06-16 11:57:32 +02:00