2012-12-14 14:24:01 +07:00
|
|
|
CSR SiRFprimaII pinmux controller
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible : "sirf,prima2-pinctrl"
|
|
|
|
- reg : Address range of the pinctrl registers
|
|
|
|
- interrupts : Interrupts used by every GPIO group
|
|
|
|
- gpio-controller : Indicates this device is a GPIO controller
|
|
|
|
- interrupt-controller : Marks the device node as an interrupt controller
|
2012-12-14 16:15:59 +07:00
|
|
|
Optional properties:
|
|
|
|
- sirf,pullups : if n-th bit of m-th bank is set, set a pullup on GPIO-n of bank m
|
|
|
|
- sirf,pulldowns : if n-th bit of m-th bank is set, set a pulldown on GPIO-n of bank m
|
2012-12-14 14:24:01 +07:00
|
|
|
|
|
|
|
Please refer to pinctrl-bindings.txt in this directory for details of the common
|
|
|
|
pinctrl bindings used by client devices.
|
|
|
|
|
2014-11-06 22:38:51 +07:00
|
|
|
SiRFprimaII's pinmux nodes act as a container for an arbitrary number of subnodes.
|
2012-12-14 14:24:01 +07:00
|
|
|
Each of these subnodes represents some desired configuration for a group of pins.
|
|
|
|
|
|
|
|
Required subnode-properties:
|
|
|
|
- sirf,pins : An array of strings. Each string contains the name of a group.
|
|
|
|
- sirf,function: A string containing the name of the function to mux to the
|
|
|
|
group.
|
|
|
|
|
|
|
|
Valid values for group and function names can be found from looking at the
|
|
|
|
group and function arrays in driver files:
|
|
|
|
drivers/pinctrl/pinctrl-sirf.c
|
|
|
|
|
|
|
|
For example, pinctrl might have subnodes like the following:
|
|
|
|
uart2_pins_a: uart2@0 {
|
|
|
|
uart {
|
|
|
|
sirf,pins = "uart2grp";
|
|
|
|
sirf,function = "uart2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
uart2_noflow_pins_a: uart2@1 {
|
|
|
|
uart {
|
|
|
|
sirf,pins = "uart2_nostreamctrlgrp";
|
|
|
|
sirf,function = "uart2_nostreamctrl";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
For a specific board, if it wants to use uart2 without hardware flow control,
|
|
|
|
it can add the following to its board-specific .dts file.
|
2017-11-30 03:55:15 +07:00
|
|
|
uart2: uart@b0070000 {
|
2012-12-14 14:24:01 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart2_noflow_pins_a>;
|
|
|
|
}
|