| .. | .. |
|---|
| 94 | 94 | specified in the pinctrl-bindings.txt document in this directory. |
|---|
| 95 | 95 | |
|---|
| 96 | 96 | 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: |
|---|
| 100 | 101 | |
|---|
| 101 | 102 | pinctrl-single,pins = <0xdc 0x118>; |
|---|
| 102 | 103 | |
|---|
| 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. |
|---|
| 107 | 114 | |
|---|
| 108 | 115 | In case when one register changes more than one pin's mux the |
|---|
| 109 | 116 | pinctrl-single,bits need to be used which takes three parameters: |
|---|