xref: /openbmc/linux/Documentation/devicetree/bindings/pinctrl/ti,da850-pupd.txt (revision 9095bf25ea08135a5b74875dd0e3eeaddc4218a0)
1*342030c7SDavid Lechner* Pin configuration for TI DA850/OMAP-L138/AM18x
2*342030c7SDavid Lechner
3*342030c7SDavid LechnerThese SoCs have a separate controller for setting bias (internal pullup/down).
4*342030c7SDavid LechnerBias can only be selected for groups rather than individual pins.
5*342030c7SDavid Lechner
6*342030c7SDavid LechnerRequired Properties:
7*342030c7SDavid Lechner
8*342030c7SDavid Lechner  - compatible: Must be "ti,da850-pupd"
9*342030c7SDavid Lechner  - reg: Base address and length of the memory resource used by the pullup/down
10*342030c7SDavid Lechner    controller hardware module.
11*342030c7SDavid Lechner
12*342030c7SDavid LechnerThe controller node also acts as a container for pin group configuration nodes.
13*342030c7SDavid LechnerThe names of these groups are ignored.
14*342030c7SDavid Lechner
15*342030c7SDavid LechnerPin Group Node Properties:
16*342030c7SDavid Lechner
17*342030c7SDavid Lechner- groups: An array of strings, each string containing the name of a pin group.
18*342030c7SDavid Lechner          Valid names are "cp0".."cp31".
19*342030c7SDavid Lechner
20*342030c7SDavid LechnerThe pin configuration parameters use the generic pinconf bindings defined in
21*342030c7SDavid Lechnerpinctrl-bindings.txt in this directory. The supported parameters are
22*342030c7SDavid Lechnerbias-disable, bias-pull-up, bias-pull-down.
23*342030c7SDavid Lechner
24*342030c7SDavid Lechner
25*342030c7SDavid LechnerExample
26*342030c7SDavid Lechner-------
27*342030c7SDavid Lechner
28*342030c7SDavid LechnerIn common dtsi file:
29*342030c7SDavid Lechner
30*342030c7SDavid Lechner	pinconf: pin-controller@22c00c {
31*342030c7SDavid Lechner		compatible = "ti,da850-pupd";
32*342030c7SDavid Lechner		reg = <0x22c00c 0x8>;
33*342030c7SDavid Lechner	};
34*342030c7SDavid Lechner
35*342030c7SDavid LechnerIn board-specific file:
36*342030c7SDavid Lechner
37*342030c7SDavid Lechner	&pinconf {
38*342030c7SDavid Lechner		pinctrl-0 = <&pinconf_bias_groups>;
39*342030c7SDavid Lechner		pinctrl-names = "default";
40*342030c7SDavid Lechner
41*342030c7SDavid Lechner		pinconf_bias_groups: bias-groups {
42*342030c7SDavid Lechner			pull-up {
43*342030c7SDavid Lechner				groups = "cp30", "cp31";
44*342030c7SDavid Lechner				bias-pull-up;
45*342030c7SDavid Lechner			};
46*342030c7SDavid Lechner			pull-down {
47*342030c7SDavid Lechner				groups = "cp29", "cp28";
48*342030c7SDavid Lechner				bias-pull-down;
49*342030c7SDavid Lechner			};
50*342030c7SDavid Lechner			disable {
51*342030c7SDavid Lechner				groups = "cp27", "cp26";
52*342030c7SDavid Lechner				bias-disable;
53*342030c7SDavid Lechner			};
54*342030c7SDavid Lechner		};
55*342030c7SDavid Lechner	};
56