xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/oxnas,pinctrl.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Oxford Semiconductor OXNAS SoC Family Pin Controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotPlease refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and
4*c66ec88fSEmmanuel Vadot../interrupt-controller/interrupts.txt for generic information regarding
5*c66ec88fSEmmanuel Vadotpin controller, GPIO, and interrupt bindings.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotOXNAS 'pin configuration node' is a node of a group of pins which can be
8*c66ec88fSEmmanuel Vadotused for a specific device or function. This node represents configurations of
9*c66ec88fSEmmanuel Vadotpins, optional function, and optional mux related configuration.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotRequired properties for pin controller node:
12*c66ec88fSEmmanuel Vadot - compatible: "oxsemi,ox810se-pinctrl" or "oxsemi,ox820-pinctrl"
13*c66ec88fSEmmanuel Vadot - oxsemi,sys-ctrl: a phandle to the system controller syscon node
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotRequired properties for pin configuration sub-nodes:
16*c66ec88fSEmmanuel Vadot - pins: List of pins to which the configuration applies.
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotOptional properties for pin configuration sub-nodes:
19*c66ec88fSEmmanuel Vadot----------------------------------------------------
20*c66ec88fSEmmanuel Vadot - function: Mux function for the specified pins.
21*c66ec88fSEmmanuel Vadot - bias-pull-up: Enable weak pull-up.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadotpinctrl: pinctrl {
26*c66ec88fSEmmanuel Vadot	compatible = "oxsemi,ox810se-pinctrl";
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot	/* Regmap for sys registers */
29*c66ec88fSEmmanuel Vadot	oxsemi,sys-ctrl = <&sys>;
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot	pinctrl_uart2: pinctrl_uart2 {
32*c66ec88fSEmmanuel Vadot		uart2a {
33*c66ec88fSEmmanuel Vadot			pins = "gpio31";
34*c66ec88fSEmmanuel Vadot			function = "fct3";
35*c66ec88fSEmmanuel Vadot		};
36*c66ec88fSEmmanuel Vadot		uart2b {
37*c66ec88fSEmmanuel Vadot			pins = "gpio32";
38*c66ec88fSEmmanuel Vadot			function = "fct3";
39*c66ec88fSEmmanuel Vadot		};
40*c66ec88fSEmmanuel Vadot	};
41*c66ec88fSEmmanuel Vadot};
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadotuart2: serial@900000 {
44*c66ec88fSEmmanuel Vadot	compatible = "ns16550a";
45*c66ec88fSEmmanuel Vadot	reg = <0x900000 0x100000>;
46*c66ec88fSEmmanuel Vadot	clocks = <&sysclk>;
47*c66ec88fSEmmanuel Vadot	interrupts = <29>;
48*c66ec88fSEmmanuel Vadot	reg-shift = <0>;
49*c66ec88fSEmmanuel Vadot	fifo-size = <16>;
50*c66ec88fSEmmanuel Vadot	reg-io-width = <1>;
51*c66ec88fSEmmanuel Vadot	current-speed = <115200>;
52*c66ec88fSEmmanuel Vadot	no-loopback-test;
53*c66ec88fSEmmanuel Vadot	resets = <&reset 22>;
54*c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
55*c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart2>;
56*c66ec88fSEmmanuel Vadot};
57