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: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
86d64dce9e
commit
5757bfe51e
@ -137,12 +137,16 @@ groups - the list of groups to select with this function
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
state_0_node_a {
|
state_0_node_a {
|
||||||
function = "uart0";
|
uart0 {
|
||||||
groups = "u0rxtx", "u0rtscts";
|
function = "uart0";
|
||||||
|
groups = "u0rxtx", "u0rtscts";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
state_1_node_a {
|
state_1_node_a {
|
||||||
function = "spi0";
|
spi0 {
|
||||||
groups = "spi0pins";
|
function = "spi0";
|
||||||
|
groups = "spi0pins";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
== Generic pin configuration node content ==
|
== Generic pin configuration node content ==
|
||||||
@ -188,16 +192,22 @@ slew-rate - set the slew rate
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
state_0_node_a {
|
state_0_node_a {
|
||||||
pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
|
cts_rxd {
|
||||||
bias-pull-up;
|
pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
state_1_node_a {
|
state_1_node_a {
|
||||||
pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */
|
rts_txd {
|
||||||
output-high;
|
pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */
|
||||||
|
output-high;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
state_2_node_a {
|
state_2_node_a {
|
||||||
group = "foo-group";
|
foo {
|
||||||
bias-pull-up;
|
group = "foo-group";
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Some of the generic properties take arguments. For those that do, the
|
Some of the generic properties take arguments. For those that do, the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user