xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/lantiq,pinctrl-xway.txt (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel VadotLantiq XWAY pinmux controller
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotRequired properties:
4*fac71e4eSEmmanuel Vadot- compatible:	"lantiq,<chip>-pinctrl", where <chip> is:
5c66ec88fSEmmanuel Vadot		"ase" (XWAY AMAZON Family)
6c66ec88fSEmmanuel Vadot		"danube" (XWAY DANUBE Family)
7c66ec88fSEmmanuel Vadot		"xrx100" (XWAY xRX100 Family)
8c66ec88fSEmmanuel Vadot		"xrx200" (XWAY xRX200 Family)
9c66ec88fSEmmanuel Vadot		"xrx300" (XWAY xRX300 Family)
10c66ec88fSEmmanuel Vadot- reg: Should contain the physical address and length of the gpio/pinmux
11c66ec88fSEmmanuel Vadot  register range
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel VadotPlease refer to pinctrl-bindings.txt in this directory for details of the
14c66ec88fSEmmanuel Vadotcommon pinctrl bindings used by client devices, including the meaning of the
15c66ec88fSEmmanuel Vadotphrase "pin configuration node".
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel VadotLantiq's pin configuration nodes act as a container for an arbitrary number of
18c66ec88fSEmmanuel Vadotsubnodes. Each of these subnodes represents some desired configuration for a
19c66ec88fSEmmanuel Vadotpin, a group, or a list of pins or groups. This configuration can include the
20c66ec88fSEmmanuel Vadotmux function to select on those group(s), and two pin configuration parameters:
21c66ec88fSEmmanuel Vadotpull-up and open-drain
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel VadotThe name of each subnode is not important as long as it is unique; all subnodes
24c66ec88fSEmmanuel Vadotshould be enumerated and processed purely based on their content.
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel VadotEach subnode only affects those parameters that are explicitly listed. In
27c66ec88fSEmmanuel Vadotother words, a subnode that lists a mux function but no pin configuration
28c66ec88fSEmmanuel Vadotparameters implies no information about any pin configuration parameters.
29c66ec88fSEmmanuel VadotSimilarly, a pin subnode that describes a pullup parameter implies no
30c66ec88fSEmmanuel Vadotinformation about e.g. the mux function.
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel VadotWe support 2 types of nodes.
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel VadotDefinition of mux function groups:
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel VadotRequired subnode-properties:
37c66ec88fSEmmanuel Vadot- lantiq,groups : An array of strings. Each string contains the name of a group.
38c66ec88fSEmmanuel Vadot  Valid values for these names are listed below.
39c66ec88fSEmmanuel Vadot- lantiq,function: A string containing the name of the function to mux to the
40c66ec88fSEmmanuel Vadot  group. Valid values for function names are listed below.
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel VadotValid values for group and function names:
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel VadotAMAZON:
45c66ec88fSEmmanuel Vadot  mux groups:
46c66ec88fSEmmanuel Vadot    exin0, exin1, exin2, jtag, spi_di, spi_do, spi_clk, spi_cs1, spi_cs2,
47c66ec88fSEmmanuel Vadot    spi_cs3, spi_cs4, spi_cs5, spi_cs6, asc, stp, gpt1, gpt2, gpt3, clkout0,
48c66ec88fSEmmanuel Vadot    clkout1, clkout2, mdio, dfe led0, dfe led1, ephy led0, ephy led1, ephy led2
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  functions:
51c66ec88fSEmmanuel Vadot    spi, asc, cgu, jtag, exin, stp, gpt, mdio, ephy, dfe
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel VadotDANUBE:
54c66ec88fSEmmanuel Vadot  mux groups:
55c66ec88fSEmmanuel Vadot    exin0, exin1, exin2, jtag, ebu a23, ebu a24, ebu a25, ebu clk, ebu cs1,
56c66ec88fSEmmanuel Vadot    ebu wait, nand ale, nand cs1, nand cle, spi_di, spi_do, spi_clk, spi_cs1,
57c66ec88fSEmmanuel Vadot    spi_cs2, spi_cs3, spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi,
58c66ec88fSEmmanuel Vadot    gpt1, gpt2, gpt3, clkout0, clkout1, clkout2, clkout3, gnt1, gnt2, gnt3,
59c66ec88fSEmmanuel Vadot    req1, req2, req3, dfe led0, dfe led1
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot  functions:
62c66ec88fSEmmanuel Vadot    spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, dfe
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel VadotxRX100:
65c66ec88fSEmmanuel Vadot  mux groups:
66c66ec88fSEmmanuel Vadot    exin0, exin1, exin2, exin3, exin4, ebu a23, ebu a24, ebu a25, ebu clk,
67c66ec88fSEmmanuel Vadot    ebu cs1, ebu wait, nand ale, nand cs1, nand cle, nand rdy, nand rd,
68c66ec88fSEmmanuel Vadot    spi_di, spi_do, spi_clk, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5,
69c66ec88fSEmmanuel Vadot    spi_cs6, asc0, asc0 cts rts, stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1,
70c66ec88fSEmmanuel Vadot    clkout2, clkout3, gnt1, gnt2, gnt3, gnt4, req1, req2, req3, req4, mdio,
71c66ec88fSEmmanuel Vadot    dfe led0, dfe led1
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadot  functions:
74c66ec88fSEmmanuel Vadot    spi, asc, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel VadotxRX200:
77c66ec88fSEmmanuel Vadot  mux groups:
78c66ec88fSEmmanuel Vadot    exin0, exin1, exin2, exin3, exin4, ebu a23, ebu a24, ebu a25, ebu clk,
79c66ec88fSEmmanuel Vadot    ebu cs1, ebu wait, nand ale, nand cs1, nand cle, nand rdy, nand rd,
80c66ec88fSEmmanuel Vadot    spi_di, spi_do, spi_clk, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5,
81c66ec88fSEmmanuel Vadot    spi_cs6, usif uart_rx, usif uart_tx, usif uart_rts, usif uart_cts,
82c66ec88fSEmmanuel Vadot    usif uart_dtr, usif uart_dsr, usif uart_dcd, usif uart_ri, usif spi_di,
83c66ec88fSEmmanuel Vadot    usif spi_do, usif spi_clk, usif spi_cs0, usif spi_cs1, usif spi_cs2,
84c66ec88fSEmmanuel Vadot    stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1, clkout2, clkout3, gnt1,
85c66ec88fSEmmanuel Vadot    gnt2, gnt3, gnt4, req1, req2, req3, req4, mdio, dfe led0, dfe led1,
86c66ec88fSEmmanuel Vadot    gphy0 led0, gphy0 led1, gphy0 led2, gphy1 led0, gphy1 led1, gphy1 led2
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot  functions:
89c66ec88fSEmmanuel Vadot    spi, usif, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe, gphy
90c66ec88fSEmmanuel Vadot
91c66ec88fSEmmanuel VadotxRX300:
92c66ec88fSEmmanuel Vadot  mux groups:
93c66ec88fSEmmanuel Vadot    exin0, exin1, exin2, exin4, nand ale, nand cs0, nand cs1, nand cle,
94c66ec88fSEmmanuel Vadot    nand rdy, nand rd, nand_d0, nand_d1, nand_d2, nand_d3, nand_d4, nand_d5,
95c66ec88fSEmmanuel Vadot    nand_d6, nand_d7, nand_d1, nand wr, nand wp, nand se, spi_di, spi_do,
96c66ec88fSEmmanuel Vadot    spi_clk, spi_cs1, spi_cs4, spi_cs6, usif uart_rx, usif uart_tx,
97c66ec88fSEmmanuel Vadot    usif spi_di, usif spi_do, usif spi_clk, usif spi_cs0, stp, clkout2,
98c66ec88fSEmmanuel Vadot    mdio, dfe led0, dfe led1, ephy0 led0, ephy0 led1, ephy1 led0, ephy1 led1
99c66ec88fSEmmanuel Vadot
100c66ec88fSEmmanuel Vadot  functions:
101c66ec88fSEmmanuel Vadot    spi, usif, cgu, exin, stp, ebu, mdio, dfe, ephy
102c66ec88fSEmmanuel Vadot
103c66ec88fSEmmanuel Vadot
104c66ec88fSEmmanuel VadotDefinition of pin configurations:
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel VadotRequired subnode-properties:
107c66ec88fSEmmanuel Vadot- lantiq,pins : An array of strings. Each string contains the name of a pin.
108c66ec88fSEmmanuel Vadot  Valid values for these names are listed below.
109c66ec88fSEmmanuel Vadot
110c66ec88fSEmmanuel VadotOptional subnode-properties:
111c66ec88fSEmmanuel Vadot- lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
112c66ec88fSEmmanuel Vadot    0: none, 1: down, 2: up.
113c66ec88fSEmmanuel Vadot- lantiq,open-drain: Boolean, enables open-drain on the defined pin.
114c66ec88fSEmmanuel Vadot
115c66ec88fSEmmanuel VadotValid values for AMAZON pin names:
116c66ec88fSEmmanuel Vadot  Pinconf pins can be referenced via the names io0-io31.
117c66ec88fSEmmanuel Vadot
118c66ec88fSEmmanuel VadotValid values for DANUBE pin names:
119c66ec88fSEmmanuel Vadot  Pinconf pins can be referenced via the names io0-io31.
120c66ec88fSEmmanuel Vadot
121c66ec88fSEmmanuel VadotValid values for xRX100 pin names:
122c66ec88fSEmmanuel Vadot  Pinconf pins can be referenced via the names io0-io55.
123c66ec88fSEmmanuel Vadot
124c66ec88fSEmmanuel VadotValid values for xRX200 pin names:
125c66ec88fSEmmanuel Vadot  Pinconf pins can be referenced via the names io0-io49.
126c66ec88fSEmmanuel Vadot
127c66ec88fSEmmanuel VadotValid values for xRX300 pin names:
128c66ec88fSEmmanuel Vadot  Pinconf pins can be referenced via the names io0-io1,io3-io6,io8-io11,
129c66ec88fSEmmanuel Vadot						io13-io19,io23-io27,io34-io36,
130c66ec88fSEmmanuel Vadot						io42-io43,io48-io61.
131c66ec88fSEmmanuel Vadot
132c66ec88fSEmmanuel VadotExample:
133c66ec88fSEmmanuel Vadot	gpio: pinmux@e100b10 {
134c66ec88fSEmmanuel Vadot		compatible = "lantiq,danube-pinctrl";
135c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
136c66ec88fSEmmanuel Vadot		pinctrl-0 = <&state_default>;
137c66ec88fSEmmanuel Vadot
138c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
139c66ec88fSEmmanuel Vadot		gpio-controller;
140c66ec88fSEmmanuel Vadot		reg = <0xE100B10 0xA0>;
141c66ec88fSEmmanuel Vadot
142c66ec88fSEmmanuel Vadot		state_default: pinmux {
143c66ec88fSEmmanuel Vadot			stp {
144c66ec88fSEmmanuel Vadot				lantiq,groups = "stp";
145c66ec88fSEmmanuel Vadot				lantiq,function = "stp";
146c66ec88fSEmmanuel Vadot			};
147c66ec88fSEmmanuel Vadot			pci {
148c66ec88fSEmmanuel Vadot				lantiq,groups = "gnt1";
149c66ec88fSEmmanuel Vadot				lantiq,function = "pci";
150c66ec88fSEmmanuel Vadot			};
151c66ec88fSEmmanuel Vadot			conf_out {
152c66ec88fSEmmanuel Vadot				lantiq,pins = "io4", "io5", "io6"; /* stp */
153c66ec88fSEmmanuel Vadot				lantiq,open-drain;
154c66ec88fSEmmanuel Vadot				lantiq,pull = <0>;
155c66ec88fSEmmanuel Vadot			};
156c66ec88fSEmmanuel Vadot		};
157c66ec88fSEmmanuel Vadot	};
158c66ec88fSEmmanuel Vadot
159