Skip to content

Commit 51ccf3e

Browse files
Villemoesr-vignesh
authored andcommitted
arm64: dts: ti: k3-pinctrl: consistently use tabs for alignment
Currently, there's a mix of spaces and tabs used for aligning the bodies of the macros, even within the same block. Use tabs throughout for consistency. No functional change; 'git diff -w' produces no output. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Link: https://patch.msgid.link/20260327141513.1250499-2-linux@rasmusvillemoes.dk Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
1 parent 8bafdf5 commit 51ccf3e

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

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

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
#ifndef DTS_ARM64_TI_K3_PINCTRL_H
99
#define DTS_ARM64_TI_K3_PINCTRL_H
1010

11-
#define WKUP_LVL_EN_SHIFT (7)
12-
#define WKUP_LVL_POL_SHIFT (8)
11+
#define WKUP_LVL_EN_SHIFT (7)
12+
#define WKUP_LVL_POL_SHIFT (8)
1313
#define ST_EN_SHIFT (14)
1414
#define PULLUDEN_SHIFT (16)
1515
#define PULLTYPESEL_SHIFT (17)
1616
#define RXACTIVE_SHIFT (18)
17-
#define DRV_STR_SHIFT (19)
18-
#define ISO_OVERRIDE_EN_SHIFT (22)
19-
#define ISO_BYPASS_EN_SHIFT (23)
17+
#define DRV_STR_SHIFT (19)
18+
#define ISO_OVERRIDE_EN_SHIFT (22)
19+
#define ISO_BYPASS_EN_SHIFT (23)
2020
#define DEBOUNCE_SHIFT (11)
2121
#define FORCE_DS_EN_SHIFT (15)
2222
#define DS_EN_SHIFT (24)
2323
#define DS_OUT_DIS_SHIFT (25)
2424
#define DS_OUT_VAL_SHIFT (26)
2525
#define DS_PULLUD_EN_SHIFT (27)
2626
#define DS_PULLTYPE_SEL_SHIFT (28)
27-
#define WKUP_EN_SHIFT (29)
27+
#define WKUP_EN_SHIFT (29)
2828

2929
/* Schmitt trigger configuration */
3030
#define ST_DISABLE (0 << ST_EN_SHIFT)
@@ -39,28 +39,28 @@
3939
#define INPUT_EN (1 << RXACTIVE_SHIFT)
4040
#define INPUT_DISABLE (0 << RXACTIVE_SHIFT)
4141

42-
#define DS_PULL_DISABLE (1 << DS_PULLUD_EN_SHIFT)
43-
#define DS_PULL_ENABLE (0 << DS_PULLUD_EN_SHIFT)
42+
#define DS_PULL_DISABLE (1 << DS_PULLUD_EN_SHIFT)
43+
#define DS_PULL_ENABLE (0 << DS_PULLUD_EN_SHIFT)
4444

45-
#define DS_PULL_UP (1 << DS_PULLTYPE_SEL_SHIFT | DS_PULL_ENABLE)
46-
#define DS_PULL_DOWN (0 << DS_PULLTYPE_SEL_SHIFT | DS_PULL_ENABLE)
45+
#define DS_PULL_UP (1 << DS_PULLTYPE_SEL_SHIFT | DS_PULL_ENABLE)
46+
#define DS_PULL_DOWN (0 << DS_PULLTYPE_SEL_SHIFT | DS_PULL_ENABLE)
4747

48-
#define DS_STATE_EN (1 << DS_EN_SHIFT)
49-
#define DS_STATE_DISABLE (0 << DS_EN_SHIFT)
48+
#define DS_STATE_EN (1 << DS_EN_SHIFT)
49+
#define DS_STATE_DISABLE (0 << DS_EN_SHIFT)
5050

51-
#define DS_INPUT_EN (1 << DS_OUT_DIS_SHIFT | DS_STATE_EN)
52-
#define DS_INPUT_DISABLE (0 << DS_OUT_DIS_SHIFT | DS_STATE_EN)
51+
#define DS_INPUT_EN (1 << DS_OUT_DIS_SHIFT | DS_STATE_EN)
52+
#define DS_INPUT_DISABLE (0 << DS_OUT_DIS_SHIFT | DS_STATE_EN)
5353

54-
#define DS_OUT_VALUE_ZERO (0 << DS_OUT_VAL_SHIFT)
55-
#define DS_OUT_VALUE_ONE (1 << DS_OUT_VAL_SHIFT)
54+
#define DS_OUT_VALUE_ZERO (0 << DS_OUT_VAL_SHIFT)
55+
#define DS_OUT_VALUE_ONE (1 << DS_OUT_VAL_SHIFT)
5656

5757
/* Configuration to enable wake-up on pin activity */
58-
#define WKUP_ENABLE (1 << WKUP_EN_SHIFT)
59-
#define WKUP_DISABLE (0 << WKUP_EN_SHIFT)
60-
#define WKUP_ON_LEVEL (1 << WKUP_LVL_EN_SHIFT)
61-
#define WKUP_ON_EDGE (0 << WKUP_LVL_EN_SHIFT)
62-
#define WKUP_LEVEL_LOW (0 << WKUP_LVL_POL_SHIFT)
63-
#define WKUP_LEVEL_HIGH (1 << WKUP_LVL_POL_SHIFT)
58+
#define WKUP_ENABLE (1 << WKUP_EN_SHIFT)
59+
#define WKUP_DISABLE (0 << WKUP_EN_SHIFT)
60+
#define WKUP_ON_LEVEL (1 << WKUP_LVL_EN_SHIFT)
61+
#define WKUP_ON_EDGE (0 << WKUP_LVL_EN_SHIFT)
62+
#define WKUP_LEVEL_LOW (0 << WKUP_LVL_POL_SHIFT)
63+
#define WKUP_LEVEL_HIGH (1 << WKUP_LVL_POL_SHIFT)
6464

6565
/* Only these macros are expected be used directly in device tree files */
6666
#define PIN_OUTPUT (INPUT_DISABLE | PULL_DISABLE)
@@ -82,14 +82,14 @@
8282
#define PIN_DEBOUNCE_CONF5 (5 << DEBOUNCE_SHIFT)
8383
#define PIN_DEBOUNCE_CONF6 (6 << DEBOUNCE_SHIFT)
8484

85-
#define PIN_DRIVE_STRENGTH_NOMINAL (0 << DRV_STR_SHIFT)
86-
#define PIN_DRIVE_STRENGTH_SLOW (1 << DRV_STR_SHIFT)
87-
#define PIN_DRIVE_STRENGTH_FAST (2 << DRV_STR_SHIFT)
85+
#define PIN_DRIVE_STRENGTH_NOMINAL (0 << DRV_STR_SHIFT)
86+
#define PIN_DRIVE_STRENGTH_SLOW (1 << DRV_STR_SHIFT)
87+
#define PIN_DRIVE_STRENGTH_FAST (2 << DRV_STR_SHIFT)
8888

8989
#define PIN_DS_FORCE_DISABLE (0 << FORCE_DS_EN_SHIFT)
9090
#define PIN_DS_FORCE_ENABLE (1 << FORCE_DS_EN_SHIFT)
91-
#define PIN_DS_ISO_OVERRIDE_DISABLE (0 << ISO_OVERRIDE_EN_SHIFT)
92-
#define PIN_DS_ISO_OVERRIDE_ENABLE (1 << ISO_OVERRIDE_EN_SHIFT)
91+
#define PIN_DS_ISO_OVERRIDE_DISABLE (0 << ISO_OVERRIDE_EN_SHIFT)
92+
#define PIN_DS_ISO_OVERRIDE_ENABLE (1 << ISO_OVERRIDE_EN_SHIFT)
9393
#define PIN_DS_OUT_ENABLE (0 << DS_OUT_DIS_SHIFT)
9494
#define PIN_DS_OUT_DISABLE (1 << DS_OUT_DIS_SHIFT)
9595
#define PIN_DS_OUT_VALUE_ZERO (0 << DS_OUT_VAL_SHIFT)
@@ -98,18 +98,18 @@
9898
#define PIN_DS_PULLUD_DISABLE (1 << DS_PULLUD_EN_SHIFT)
9999
#define PIN_DS_PULL_DOWN (0 << DS_PULLTYPE_SEL_SHIFT)
100100
#define PIN_DS_PULL_UP (1 << DS_PULLTYPE_SEL_SHIFT)
101-
#define PIN_DS_ISO_BYPASS (1 << ISO_BYPASS_EN_SHIFT)
102-
#define PIN_DS_ISO_BYPASS_DISABLE (0 << ISO_BYPASS_EN_SHIFT)
103-
104-
#define PIN_DS_OUTPUT_LOW (DS_INPUT_DISABLE | DS_OUT_VALUE_ZERO)
105-
#define PIN_DS_OUTPUT_HIGH (DS_INPUT_DISABLE | DS_OUT_VALUE_ONE)
106-
#define PIN_DS_INPUT (DS_INPUT_EN | DS_PULL_DISABLE)
107-
#define PIN_DS_INPUT_PULLUP (DS_INPUT_EN | DS_PULL_UP)
108-
#define PIN_DS_INPUT_PULLDOWN (DS_INPUT_EN | DS_PULL_DOWN)
109-
110-
#define PIN_WKUP_EN_LEVEL_LOW (WKUP_ENABLE | WKUP_ON_LEVEL | WKUP_LEVEL_LOW)
111-
#define PIN_WKUP_EN_LEVEL_HIGH (WKUP_ENABLE | WKUP_ON_LEVEL | WKUP_LEVEL_HIGH)
112-
#define PIN_WKUP_EN (WKUP_ENABLE | WKUP_ON_EDGE)
101+
#define PIN_DS_ISO_BYPASS (1 << ISO_BYPASS_EN_SHIFT)
102+
#define PIN_DS_ISO_BYPASS_DISABLE (0 << ISO_BYPASS_EN_SHIFT)
103+
104+
#define PIN_DS_OUTPUT_LOW (DS_INPUT_DISABLE | DS_OUT_VALUE_ZERO)
105+
#define PIN_DS_OUTPUT_HIGH (DS_INPUT_DISABLE | DS_OUT_VALUE_ONE)
106+
#define PIN_DS_INPUT (DS_INPUT_EN | DS_PULL_DISABLE)
107+
#define PIN_DS_INPUT_PULLUP (DS_INPUT_EN | DS_PULL_UP)
108+
#define PIN_DS_INPUT_PULLDOWN (DS_INPUT_EN | DS_PULL_DOWN)
109+
110+
#define PIN_WKUP_EN_LEVEL_LOW (WKUP_ENABLE | WKUP_ON_LEVEL | WKUP_LEVEL_LOW)
111+
#define PIN_WKUP_EN_LEVEL_HIGH (WKUP_ENABLE | WKUP_ON_LEVEL | WKUP_LEVEL_HIGH)
112+
#define PIN_WKUP_EN (WKUP_ENABLE | WKUP_ON_EDGE)
113113

114114
/* Default mux configuration for gpio-ranges to use with pinctrl */
115115
#define PIN_GPIO_RANGE_IOPAD (PIN_INPUT | 7)

0 commit comments

Comments
 (0)