forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt
....@@ -94,16 +94,23 @@
9494 specified in the pinctrl-bindings.txt document in this directory.
9595
9696 The pin configuration nodes for pinctrl-single are specified as pinctrl
97
-register offset and value pairs using pinctrl-single,pins. Only the bits
98
-specified in pinctrl-single,function-mask are updated. For example, setting
99
-a pin for a device could be done with:
97
+register offset and values using pinctrl-single,pins. Only the bits specified
98
+in pinctrl-single,function-mask are updated.
99
+
100
+When #pinctrl-cells = 1, then setting a pin for a device could be done with:
100101
101102 pinctrl-single,pins = <0xdc 0x118>;
102103
103
-Where 0xdc is the offset from the pinctrl register base address for the
104
-device pinctrl register, and 0x118 contains the desired value of the
105
-pinctrl register. See the device example and static board pins example
106
-below for more information.
104
+Where 0xdc is the offset from the pinctrl register base address for the device
105
+pinctrl register, and 0x118 contains the desired value of the pinctrl register.
106
+
107
+When #pinctrl-cells = 2, then setting a pin for a device could be done with:
108
+
109
+ pinctrl-single,pins = <0xdc 0x30 0x07>;
110
+
111
+Where 0x30 is the pin configuration value and 0x07 is the pin mux mode value.
112
+These two values are OR'd together to produce the value stored at offset 0xdc.
113
+See the device example and static board pins example below for more information.
107114
108115 In case when one register changes more than one pin's mux the
109116 pinctrl-single,bits need to be used which takes three parameters: