xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun	Binding for Xilinx Zynq Pinctrl
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "xlnx,zynq-pinctrl"
5*4882a593Smuzhiyun- syscon: phandle to SLCR
6*4882a593Smuzhiyun- reg: Offset and length of pinctrl space in SLCR
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunPlease refer to pinctrl-bindings.txt in this directory for details of the
9*4882a593Smuzhiyuncommon pinctrl bindings used by client devices, including the meaning of the
10*4882a593Smuzhiyunphrase "pin configuration node".
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunZynq's pin configuration nodes act as a container for an arbitrary number of
13*4882a593Smuzhiyunsubnodes. Each of these subnodes represents some desired configuration for a
14*4882a593Smuzhiyunpin, a group, or a list of pins or groups. This configuration can include the
15*4882a593Smuzhiyunmux function to select on those pin(s)/group(s), and various pin configuration
16*4882a593Smuzhiyunparameters, such as pull-up, slew rate, etc.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunEach configuration node can consist of multiple nodes describing the pinmux and
19*4882a593Smuzhiyunpinconf options. Those nodes can be pinmux nodes or pinconf nodes.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunThe name of each subnode is not important; all subnodes should be enumerated
22*4882a593Smuzhiyunand processed purely based on their content.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunRequired properties for pinmux nodes are:
25*4882a593Smuzhiyun - groups: A list of pinmux groups.
26*4882a593Smuzhiyun - function: The name of a pinmux function to activate for the specified set
27*4882a593Smuzhiyun   of groups.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunRequired properties for configuration nodes:
30*4882a593SmuzhiyunOne of:
31*4882a593Smuzhiyun - pins: a list of pin names
32*4882a593Smuzhiyun - groups: A list of pinmux groups.
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunThe following generic properties as defined in pinctrl-bindings.txt are valid
35*4882a593Smuzhiyunto specify in a pinmux subnode:
36*4882a593Smuzhiyun groups, function
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunThe following generic properties as defined in pinctrl-bindings.txt are valid
39*4882a593Smuzhiyunto specify in a pinconf subnode:
40*4882a593Smuzhiyun groups, pins, bias-disable, bias-high-impedance, bias-pull-up, slew-rate,
41*4882a593Smuzhiyun low-power-disable, low-power-enable
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun Valid arguments for 'slew-rate' are '0' and '1' to select between slow and fast
44*4882a593Smuzhiyun respectively.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun Valid values for groups are:
47*4882a593Smuzhiyun   ethernet0_0_grp, ethernet1_0_grp, mdio0_0_grp, mdio1_0_grp,
48*4882a593Smuzhiyun   qspi0_0_grp, qspi1_0_grp, qspi_fbclk, qspi_cs1_grp, spi0_0_grp - spi0_2_grp,
49*4882a593Smuzhiyun   spi0_X_ssY (X=0..2, Y=0..2), spi1_0_grp - spi1_3_grp,
50*4882a593Smuzhiyun   spi1_X_ssY (X=0..3, Y=0..2), sdio0_0_grp - sdio0_2_grp,
51*4882a593Smuzhiyun   sdio1_0_grp - sdio1_3_grp, sdio0_emio_wp, sdio0_emio_cd, sdio1_emio_wp,
52*4882a593Smuzhiyun   sdio1_emio_cd, smc0_nor, smc0_nor_cs1_grp, smc0_nor_addr25_grp, smc0_nand,
53*4882a593Smuzhiyun   can0_0_grp - can0_10_grp, can1_0_grp - can1_11_grp, uart0_0_grp - uart0_10_grp,
54*4882a593Smuzhiyun   uart1_0_grp - uart1_11_grp, i2c0_0_grp - i2c0_10_grp, i2c1_0_grp - i2c1_10_grp,
55*4882a593Smuzhiyun   ttc0_0_grp - ttc0_2_grp, ttc1_0_grp - ttc1_2_grp, swdt0_0_grp - swdt0_4_grp,
56*4882a593Smuzhiyun   gpio0_0_grp - gpio0_53_grp, usb0_0_grp, usb1_0_grp
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun Valid values for pins are:
59*4882a593Smuzhiyun   MIO0 - MIO53
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun Valid values for function are:
62*4882a593Smuzhiyun   ethernet0, ethernet1, mdio0, mdio1, qspi0, qspi1, qspi_fbclk, qspi_cs1,
63*4882a593Smuzhiyun   spi0, spi0_ss, spi1, spi1_ss, sdio0, sdio0_pc, sdio0_cd, sdio0_wp,
64*4882a593Smuzhiyun   sdio1, sdio1_pc, sdio1_cd, sdio1_wp,
65*4882a593Smuzhiyun   smc0_nor, smc0_nor_cs1, smc0_nor_addr25, smc0_nand, can0, can1, uart0, uart1,
66*4882a593Smuzhiyun   i2c0, i2c1, ttc0, ttc1, swdt0, gpio0, usb0, usb1
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunThe following driver-specific properties as defined here are valid to specify in
69*4882a593Smuzhiyuna pin configuration subnode:
70*4882a593Smuzhiyun - io-standard: Configure the pin to use the selected IO standard according to
71*4882a593Smuzhiyun   this mapping:
72*4882a593Smuzhiyun    1: LVCMOS18
73*4882a593Smuzhiyun    2: LVCMOS25
74*4882a593Smuzhiyun    3: LVCMOS33
75*4882a593Smuzhiyun    4: HSTL
76*4882a593Smuzhiyun
77*4882a593SmuzhiyunExample:
78*4882a593Smuzhiyun	pinctrl0: pinctrl@700 {
79*4882a593Smuzhiyun		compatible = "xlnx,pinctrl-zynq";
80*4882a593Smuzhiyun		reg = <0x700 0x200>;
81*4882a593Smuzhiyun		syscon = <&slcr>;
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun		pinctrl_uart1_default: uart1-default {
84*4882a593Smuzhiyun			mux {
85*4882a593Smuzhiyun				groups = "uart1_10_grp";
86*4882a593Smuzhiyun				function = "uart1";
87*4882a593Smuzhiyun			};
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun			conf {
90*4882a593Smuzhiyun				groups = "uart1_10_grp";
91*4882a593Smuzhiyun				slew-rate = <0>;
92*4882a593Smuzhiyun				io-standard = <1>;
93*4882a593Smuzhiyun			};
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun			conf-rx {
96*4882a593Smuzhiyun				pins = "MIO49";
97*4882a593Smuzhiyun				bias-high-impedance;
98*4882a593Smuzhiyun			};
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun			conf-tx {
101*4882a593Smuzhiyun				pins = "MIO48";
102*4882a593Smuzhiyun				bias-disable;
103*4882a593Smuzhiyun			};
104*4882a593Smuzhiyun		};
105*4882a593Smuzhiyun	};
106