xref: /openbmc/linux/Documentation/devicetree/bindings/pinctrl/lantiq,pinctrl-falcon.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*0b34c1a4SThomas LangerLantiq FALCON pinmux controller
2*0b34c1a4SThomas Langer
3*0b34c1a4SThomas LangerRequired properties:
4*0b34c1a4SThomas Langer- compatible: "lantiq,pinctrl-falcon"
5*0b34c1a4SThomas Langer- reg: Should contain the physical address and length of the gpio/pinmux
6*0b34c1a4SThomas Langer  register range
7*0b34c1a4SThomas Langer
8*0b34c1a4SThomas LangerPlease refer to pinctrl-bindings.txt in this directory for details of the
9*0b34c1a4SThomas Langercommon pinctrl bindings used by client devices, including the meaning of the
10*0b34c1a4SThomas Langerphrase "pin configuration node".
11*0b34c1a4SThomas Langer
12*0b34c1a4SThomas LangerLantiq's pin configuration nodes act as a container for an arbitrary number of
13*0b34c1a4SThomas Langersubnodes. Each of these subnodes represents some desired configuration for a
14*0b34c1a4SThomas Langerpin, a group, or a list of pins or groups. This configuration can include the
15*0b34c1a4SThomas Langermux function to select on those group(s), and two pin configuration parameters:
16*0b34c1a4SThomas Langerpull-up and open-drain
17*0b34c1a4SThomas Langer
18*0b34c1a4SThomas LangerThe name of each subnode is not important as long as it is unique; all subnodes
19*0b34c1a4SThomas Langershould be enumerated and processed purely based on their content.
20*0b34c1a4SThomas Langer
21*0b34c1a4SThomas LangerEach subnode only affects those parameters that are explicitly listed. In
22*0b34c1a4SThomas Langerother words, a subnode that lists a mux function but no pin configuration
23*0b34c1a4SThomas Langerparameters implies no information about any pin configuration parameters.
24*0b34c1a4SThomas LangerSimilarly, a pin subnode that describes a pullup parameter implies no
25*0b34c1a4SThomas Langerinformation about e.g. the mux function.
26*0b34c1a4SThomas Langer
27*0b34c1a4SThomas LangerWe support 2 types of nodes.
28*0b34c1a4SThomas Langer
29*0b34c1a4SThomas LangerDefinition of mux function groups:
30*0b34c1a4SThomas Langer
31*0b34c1a4SThomas LangerRequired subnode-properties:
32*0b34c1a4SThomas Langer- lantiq,groups : An array of strings. Each string contains the name of a group.
33*0b34c1a4SThomas Langer  Valid values for these names are listed below.
34*0b34c1a4SThomas Langer- lantiq,function: A string containing the name of the function to mux to the
35*0b34c1a4SThomas Langer  group. Valid values for function names are listed below.
36*0b34c1a4SThomas Langer
37*0b34c1a4SThomas LangerValid values for group and function names:
38*0b34c1a4SThomas Langer
39*0b34c1a4SThomas Langer  mux groups:
40*0b34c1a4SThomas Langer    por, ntr, ntr8k, hrst, mdio, bootled, asc0, spi, spi cs0, spi cs1, i2c,
41*0b34c1a4SThomas Langer    jtag, slic, pcm, asc1
42*0b34c1a4SThomas Langer
43*0b34c1a4SThomas Langer  functions:
44*0b34c1a4SThomas Langer    rst, ntr, mdio, led, asc, spi, i2c, jtag, slic, pcm
45*0b34c1a4SThomas Langer
46*0b34c1a4SThomas Langer
47*0b34c1a4SThomas LangerDefinition of pin configurations:
48*0b34c1a4SThomas Langer
49*0b34c1a4SThomas LangerRequired subnode-properties:
50*0b34c1a4SThomas Langer- lantiq,pins : An array of strings. Each string contains the name of a pin.
51*0b34c1a4SThomas Langer  Valid values for these names are listed below.
52*0b34c1a4SThomas Langer
53*0b34c1a4SThomas LangerOptional subnode-properties:
54*0b34c1a4SThomas Langer- lantiq,pull: Integer, representing the pull-down/up to apply to the pin.
55*0b34c1a4SThomas Langer    0: none, 1: down
56*0b34c1a4SThomas Langer- lantiq,drive-current: Boolean, enables drive-current
57*0b34c1a4SThomas Langer- lantiq,slew-rate: Boolean, enables slew-rate
58*0b34c1a4SThomas Langer
59*0b34c1a4SThomas LangerExample:
60*0b34c1a4SThomas Langer	pinmux0 {
61*0b34c1a4SThomas Langer		compatible = "lantiq,pinctrl-falcon";
62*0b34c1a4SThomas Langer		pinctrl-names = "default";
63*0b34c1a4SThomas Langer		pinctrl-0 = <&state_default>;
64*0b34c1a4SThomas Langer
65*0b34c1a4SThomas Langer		state_default: pinmux {
66*0b34c1a4SThomas Langer			asc0 {
67*0b34c1a4SThomas Langer				lantiq,groups = "asc0";
68*0b34c1a4SThomas Langer				lantiq,function = "asc";
69*0b34c1a4SThomas Langer			};
70*0b34c1a4SThomas Langer			ntr {
71*0b34c1a4SThomas Langer				lantiq,groups = "ntr8k";
72*0b34c1a4SThomas Langer				lantiq,function = "ntr";
73*0b34c1a4SThomas Langer			};
74*0b34c1a4SThomas Langer			i2c {
75*0b34c1a4SThomas Langer				lantiq,groups = "i2c";
76*0b34c1a4SThomas Langer				lantiq,function = "i2c";
77*0b34c1a4SThomas Langer			};
78*0b34c1a4SThomas Langer			hrst {
79*0b34c1a4SThomas Langer				lantiq,groups = "hrst";
80*0b34c1a4SThomas Langer				lantiq,function = "rst";
81*0b34c1a4SThomas Langer			};
82*0b34c1a4SThomas Langer		};
83*0b34c1a4SThomas Langer	};
84