1003910ebSNishanth Menon* Pin configuration for TI IODELAY controller
2003910ebSNishanth Menon
3003910ebSNishanth MenonTI dra7 based SoCs such as am57xx have a controller for setting the IO delay
4003910ebSNishanth Menonfor each pin. For most part the IO delay values are programmed by the bootloader,
5003910ebSNishanth Menonbut some pins need to be configured dynamically by the kernel such as the
6003910ebSNishanth MenonMMC pins.
7003910ebSNishanth Menon
8003910ebSNishanth MenonRequired Properties:
9003910ebSNishanth Menon
10003910ebSNishanth Menon  - compatible: Must be "ti,dra7-iodelay"
11003910ebSNishanth Menon  - reg: Base address and length of the memory resource used
12003910ebSNishanth Menon  - #address-cells: Number of address cells
13003910ebSNishanth Menon  - #size-cells: Size of cells
14003910ebSNishanth Menon  - #pinctrl-cells: Number of pinctrl cells, must be 2. See also
15003910ebSNishanth Menon    Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
16003910ebSNishanth Menon
17003910ebSNishanth MenonExample
18003910ebSNishanth Menon-------
19003910ebSNishanth Menon
20003910ebSNishanth MenonIn the SoC specific dtsi file:
21003910ebSNishanth Menon
22003910ebSNishanth Menon	dra7_iodelay_core: padconf@4844a000 {
23003910ebSNishanth Menon		compatible = "ti,dra7-iodelay";
24003910ebSNishanth Menon		reg = <0x4844a000 0x0d1c>;
25003910ebSNishanth Menon		#address-cells = <1>;
26003910ebSNishanth Menon		#size-cells = <0>;
27003910ebSNishanth Menon		#pinctrl-cells = <2>;
28003910ebSNishanth Menon	};
29003910ebSNishanth Menon
30003910ebSNishanth MenonIn board-specific file:
31003910ebSNishanth Menon
32003910ebSNishanth Menon&dra7_iodelay_core {
33003910ebSNishanth Menon	mmc2_iodelay_3v3_conf: mmc2_iodelay_3v3_conf {
34003910ebSNishanth Menon		pinctrl-pin-array = <
35003910ebSNishanth Menon		0x18c A_DELAY_PS(0) G_DELAY_PS(120)	/* CFG_GPMC_A19_IN */
36003910ebSNishanth Menon		0x1a4 A_DELAY_PS(265) G_DELAY_PS(360)	/* CFG_GPMC_A20_IN */
37003910ebSNishanth Menon		0x1b0 A_DELAY_PS(0) G_DELAY_PS(120)	/* CFG_GPMC_A21_IN */
38003910ebSNishanth Menon		0x1bc A_DELAY_PS(0) G_DELAY_PS(120)	/* CFG_GPMC_A22_IN */
39003910ebSNishanth Menon		0x1c8 A_DELAY_PS(287) G_DELAY_PS(420)	/* CFG_GPMC_A23_IN */
40003910ebSNishanth Menon		0x1d4 A_DELAY_PS(144) G_DELAY_PS(240)	/* CFG_GPMC_A24_IN */
41003910ebSNishanth Menon		0x1e0 A_DELAY_PS(0) G_DELAY_PS(0)	/* CFG_GPMC_A25_IN */
42003910ebSNishanth Menon		0x1ec A_DELAY_PS(120) G_DELAY_PS(0)	/* CFG_GPMC_A26_IN */
43003910ebSNishanth Menon		0x1f8 A_DELAY_PS(120) G_DELAY_PS(180)	/* CFG_GPMC_A27_IN */
44003910ebSNishanth Menon		0x360 A_DELAY_PS(0) G_DELAY_PS(0)	/* CFG_GPMC_CS1_IN */
45003910ebSNishanth Menon		>;
46003910ebSNishanth Menon	};
47003910ebSNishanth Menon};
48