Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5757bfe5 authored by Baruch Siach's avatar Baruch Siach Committed by Linus Walleij
Browse files

pinctrl: dt-binding: fix generic pinmux/pinconf examples



pinconf_generic_dt_node_to_map() scans only subnodes of the pinctrl-0 pahndle,
not the referenced node itself. Change the example nodes to match.

Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 86d64dce
Loading
Loading
Loading
Loading
+20 −10
Original line number Diff line number Diff line
@@ -137,13 +137,17 @@ groups - the list of groups to select with this function
Example:

state_0_node_a {
	uart0 {
		function = "uart0";
		groups = "u0rxtx", "u0rtscts";
	};
};
state_1_node_a {
	spi0 {
		function = "spi0";
		groups = "spi0pins";
	};
};

== Generic pin configuration node content ==

@@ -188,17 +192,23 @@ slew-rate - set the slew rate
For example:

state_0_node_a {
	cts_rxd {
		pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
		bias-pull-up;
	};
};
state_1_node_a {
	rts_txd {
		pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */
		output-high;
	};
};
state_2_node_a {
	foo {
		group = "foo-group";
		bias-pull-up;
	};
};

Some of the generic properties take arguments. For those that do, the
arguments are described below.