diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-10 14:10:56 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-10 15:07:14 +0100 |
commit | 4b689ab6bccaf4fa65f71644d1ca4c9d8358385a (patch) | |
tree | d97fbd8510349db6cfa668ed6353c61ba0e71f9c /dts/Bindings/pinctrl/pinctrl-single.txt | |
parent | 9d115d95018b8025f0f35abfb88f78a42e103933 (diff) | |
parent | 85f8d17be5cc2708bd5f6414b8012d5b4c6821d2 (diff) | |
download | barebox-4b689ab6bccaf4fa65f71644d1ca4c9d8358385a.tar.gz barebox-4b689ab6bccaf4fa65f71644d1ca4c9d8358385a.tar.xz |
Merge branch 'for-next/dts'
Diffstat (limited to 'dts/Bindings/pinctrl/pinctrl-single.txt')
-rw-r--r-- | dts/Bindings/pinctrl/pinctrl-single.txt | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/dts/Bindings/pinctrl/pinctrl-single.txt b/dts/Bindings/pinctrl/pinctrl-single.txt index e705acd361..f903eb4471 100644 --- a/dts/Bindings/pinctrl/pinctrl-single.txt +++ b/dts/Bindings/pinctrl/pinctrl-single.txt @@ -94,16 +94,23 @@ pinctrl-single,bit-per-mux is set), and uses the common pinctrl bindings as specified in the pinctrl-bindings.txt document in this directory. The pin configuration nodes for pinctrl-single are specified as pinctrl -register offset and value pairs using pinctrl-single,pins. Only the bits -specified in pinctrl-single,function-mask are updated. For example, setting -a pin for a device could be done with: +register offset and values using pinctrl-single,pins. Only the bits specified +in pinctrl-single,function-mask are updated. + +When #pinctrl-cells = 1, then setting a pin for a device could be done with: pinctrl-single,pins = <0xdc 0x118>; -Where 0xdc is the offset from the pinctrl register base address for the -device pinctrl register, and 0x118 contains the desired value of the -pinctrl register. See the device example and static board pins example -below for more information. +Where 0xdc is the offset from the pinctrl register base address for the device +pinctrl register, and 0x118 contains the desired value of the pinctrl register. + +When #pinctrl-cells = 2, then setting a pin for a device could be done with: + + pinctrl-single,pins = <0xdc 0x30 0x07>; + +Where 0x30 is the pin configuration value and 0x07 is the pin mux mode value. +These two values are OR'd together to produce the value stored at offset 0xdc. +See the device example and static board pins example below for more information. In case when one register changes more than one pin's mux the pinctrl-single,bits need to be used which takes three parameters: |