Skip to content

Commit 50d9981

Browse files
nmenonr-vignesh
authored andcommitted
arm64: dts: ti: k3-pinctrl: Define a generic GPIO MUX Mode
Introduce a GPIO mux mode macro for easier readability. All K3 devices use mux mode 7 to switch to GPIO mux and this allows the gpio-ranges to be defined for pinctrl-single clearly. Signed-off-by: Nishanth Menon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vignesh Raghavendra <[email protected]>
1 parent c870321 commit 50d9981

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm64/boot/dts/ti/k3-pinctrl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
#define PIN_DEBOUNCE_CONF5 (5 << DEBOUNCE_SHIFT)
3939
#define PIN_DEBOUNCE_CONF6 (6 << DEBOUNCE_SHIFT)
4040

41+
/* Default mux configuration for gpio-ranges to use with pinctrl */
42+
#define PIN_GPIO_RANGE_IOPAD (PIN_INPUT | 7)
43+
4144
#define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
4245
#define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
4346

0 commit comments

Comments
 (0)