Skip to content

Commit 546ee7b

Browse files
committed
Merge tag 'intel-pinctrl-v6.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/intel into devel
intel-pinctrl for v6.13-2 This includes following Intel pinctrl changes for v6.13 merge window: - Expose DSW community on Elkhart Lake. - Elaborate in the code comment the pull bias settings. Both have been in linux-next with no reported issues. Signed-off-by: Linus Walleij <[email protected]>
2 parents f52f40b + c6235c4 commit 546ee7b

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

drivers/pinctrl/intel/pinctrl-elkhartlake.c

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,43 @@ static const struct intel_pinctrl_soc_data ehl_community1_soc_data = {
264264
.ncommunities = ARRAY_SIZE(ehl_community1),
265265
};
266266

267+
static const struct pinctrl_pin_desc ehl_community2_pins[] = {
268+
/* DSW */
269+
PINCTRL_PIN(0, "BATLOWB"),
270+
PINCTRL_PIN(1, "ACPRESENT"),
271+
PINCTRL_PIN(2, "LAN_WAKEB"),
272+
PINCTRL_PIN(3, "PWRBTNB"),
273+
PINCTRL_PIN(4, "SLP_S3B"),
274+
PINCTRL_PIN(5, "SLP_S4B"),
275+
PINCTRL_PIN(6, "SLP_AB"),
276+
PINCTRL_PIN(7, "GPD_7"),
277+
PINCTRL_PIN(8, "SUSCLK"),
278+
PINCTRL_PIN(9, "SLP_WLANB"),
279+
PINCTRL_PIN(10, "SLP_S5B"),
280+
PINCTRL_PIN(11, "LANPHYPC"),
281+
PINCTRL_PIN(12, "INPUT3VSEL"),
282+
PINCTRL_PIN(13, "SLP_LANB"),
283+
PINCTRL_PIN(14, "SLP_SUSB"),
284+
PINCTRL_PIN(15, "WAKEB"),
285+
PINCTRL_PIN(16, "DRAM_RESETB"),
286+
};
287+
288+
static const struct intel_padgroup ehl_community2_gpps[] = {
289+
EHL_GPP(0, 0, 16), /* DSW */
290+
};
291+
292+
static const struct intel_community ehl_community2[] = {
293+
EHL_COMMUNITY(0, 0, 16, ehl_community2_gpps),
294+
};
295+
296+
static const struct intel_pinctrl_soc_data ehl_community2_soc_data = {
297+
.uid = "2",
298+
.pins = ehl_community2_pins,
299+
.npins = ARRAY_SIZE(ehl_community2_pins),
300+
.communities = ehl_community2,
301+
.ncommunities = ARRAY_SIZE(ehl_community2),
302+
};
303+
267304
static const struct pinctrl_pin_desc ehl_community3_pins[] = {
268305
/* CPU */
269306
PINCTRL_PIN(0, "HDACPU_SDI"),
@@ -474,6 +511,7 @@ static const struct intel_pinctrl_soc_data ehl_community5_soc_data = {
474511
static const struct intel_pinctrl_soc_data *ehl_soc_data_array[] = {
475512
&ehl_community0_soc_data,
476513
&ehl_community1_soc_data,
514+
&ehl_community2_soc_data,
477515
&ehl_community3_soc_data,
478516
&ehl_community4_soc_data,
479517
&ehl_community5_soc_data,

drivers/pinctrl/intel/pinctrl-intel.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@
8585
#define PADCFG1_TERM_UP BIT(13)
8686
#define PADCFG1_TERM_SHIFT 10
8787
#define PADCFG1_TERM_MASK GENMASK(12, 10)
88+
/*
89+
* Bit 0 Bit 1 Bit 2 Value, Ohms
90+
*
91+
* 0 0 0 -
92+
* 0 0 1 20000
93+
* 0 1 0 5000
94+
* 0 1 1 ~4000
95+
* 1 0 0 1000 (if supported)
96+
* 1 0 1 ~952 (if supported)
97+
* 1 1 0 ~833 (if supported)
98+
* 1 1 1 ~800 (if supported)
99+
*/
88100
#define PADCFG1_TERM_20K BIT(2)
89101
#define PADCFG1_TERM_5K BIT(1)
90102
#define PADCFG1_TERM_4K (BIT(2) | BIT(1))

0 commit comments

Comments
 (0)