mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
intel-pinctrl for v7.3-1
* Enable CPLD pin control on UP Xtreme i12 board * Miscellaneous cleanup -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqaflIX74DDDzMJJtb7wzTHR8rCgFAmp7NiQACgkQb7wzTHR8 rCj76RAAtCBPugRp6vJ6I/CwOgFJ8tsjK+G8o8zTdmS646ogbw6urLck5Mepxh0S ouJ4zHDNCuOfyupLqAbHp7+VbaV2lOKYxYSM8+1BARNJVKfHhdukv5prjSxxwuqj mXC39WAi/hIiSup/NQkGXBKhR7DTg/tOonIkBUqT5vSCh9+MsCf80N0sNyqsbk06 aaiNURo6Mgt691oDVia5aZWAlohuKkdfh5qmQq8PDuxHodwYUMmL/VJNrFPpv9Eu Ro7RLKVBA8o8/ri+cGs3+aoWukfNieOPIw7gg7rF92pSzP85b0vXCh4SUIBdC7aq 3rW2zjJEK/cEJNT8owyqZInusOtg1EldgssFGND4NINUwgon/9sRHIT9/urfi56b /F2BpdzuwW60/OtBU64xCAmCOJeRmbNQLuw9d4c9gbGvMP7ImAn8YGHb4f7hM7Q5 OsvD0j9HX6Djnk0yNCdGeTs1O2GvuEYJBDl/R7sJl5S2ZT26zXLURstE3BgQNFh0 FBTSlGc4TjTILmRkV5BJANh5CdjUrLDhsUT0JW9Wwuom2zNUHMlAhpbsSvfvhPEC zKiwY62qQ6owPYekV9zdLwD22Sbj/cMCHnPaao2CJwThpGo4gN5XCFLlB7AlxGGc tJwYMgJOO9Fu/tsMO+ZG/rrHpucrHNCitboi1LakU7tV4vQ3YZA= =1E9e -----END PGP SIGNATURE----- Merge tag 'intel-pinctrl-v7.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/intel into devel intel-pinctrl for v7.3-1 * Enable CPLD pin control on UP Xtreme i12 board * Miscellaneous cleanup Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
commit
9e48545582
|
|
@ -1414,7 +1414,7 @@ static int intel_gpio_probe(struct intel_pinctrl *pctrl, int irq)
|
|||
IRQF_SHARED | IRQF_NO_THREAD,
|
||||
dev_name(pctrl->dev), pctrl);
|
||||
if (ret)
|
||||
return dev_err_probe(pctrl->dev, ret, "failed to request interrupt\n");
|
||||
return ret;
|
||||
|
||||
/* Setup IRQ chip */
|
||||
girq = &pctrl->chip.irq;
|
||||
|
|
|
|||
|
|
@ -330,6 +330,34 @@ static const struct pinctrl_pin_desc tgllp_pins[] = {
|
|||
PINCTRL_PIN(276, "SPI0_CLK_LOOPBK"),
|
||||
};
|
||||
|
||||
static const unsigned int tgllp_i2c0_pins[] = { 5, 6 };
|
||||
static const unsigned int tgllp_i2c1_pins[] = { 7, 8 };
|
||||
static const unsigned int tgllp_pwm0_pins[] = { 99 };
|
||||
static const unsigned int tgllp_uart1_pins[] = { 85, 86, 87, 88 };
|
||||
static const unsigned int tgllp_ssp2_pins[] = { 108, 109, 110, 111 };
|
||||
|
||||
static const struct intel_pingroup tgllp_groups[] = {
|
||||
PIN_GROUP("i2c0_grp", tgllp_i2c0_pins, 2),
|
||||
PIN_GROUP("i2c1_grp", tgllp_i2c1_pins, 2),
|
||||
PIN_GROUP("pwm0_grp", tgllp_pwm0_pins, 2),
|
||||
PIN_GROUP("uart1_grp", tgllp_uart1_pins, 2),
|
||||
PIN_GROUP("ssp2_grp", tgllp_ssp2_pins, 7),
|
||||
};
|
||||
|
||||
static const char * const tgllp_i2c0_groups[] = { "i2c0_grp" };
|
||||
static const char * const tgllp_i2c1_groups[] = { "i2c1_grp" };
|
||||
static const char * const tgllp_pwm0_groups[] = { "pwm0_grp" };
|
||||
static const char * const tgllp_uart1_groups[] = { "uart1_grp" };
|
||||
static const char * const tgllp_ssp2_groups[] = { "ssp2_grp" };
|
||||
|
||||
static const struct intel_function tgllp_functions[] = {
|
||||
FUNCTION("i2c0", tgllp_i2c0_groups),
|
||||
FUNCTION("i2c1", tgllp_i2c1_groups),
|
||||
FUNCTION("pwm0", tgllp_pwm0_groups),
|
||||
FUNCTION("uart1", tgllp_uart1_groups),
|
||||
FUNCTION("ssp2", tgllp_ssp2_groups),
|
||||
};
|
||||
|
||||
static const struct intel_padgroup tgllp_community0_gpps[] = {
|
||||
INTEL_GPP(0, 0, 25, 0), /* GPP_B */
|
||||
INTEL_GPP(1, 26, 41, 32), /* GPP_T */
|
||||
|
|
@ -367,6 +395,10 @@ static const struct intel_community tgllp_communities[] = {
|
|||
static const struct intel_pinctrl_soc_data tgllp_soc_data = {
|
||||
.pins = tgllp_pins,
|
||||
.npins = ARRAY_SIZE(tgllp_pins),
|
||||
.groups = tgllp_groups,
|
||||
.ngroups = ARRAY_SIZE(tgllp_groups),
|
||||
.functions = tgllp_functions,
|
||||
.nfunctions = ARRAY_SIZE(tgllp_functions),
|
||||
.communities = tgllp_communities,
|
||||
.ncommunities = ARRAY_SIZE(tgllp_communities),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -912,6 +912,19 @@ static const struct upboard_pinctrl_map upboard_pinctrl_map_apl01 = {
|
|||
.nmaps = ARRAY_SIZE(pinctrl_map_apl01),
|
||||
};
|
||||
|
||||
static const struct pinctrl_map pinctrl_map_adl[] = {
|
||||
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c0_grp", "i2c0"),
|
||||
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c1_grp", "i2c1"),
|
||||
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "pwm0_grp", "pwm0"),
|
||||
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "uart1_grp", "uart1"),
|
||||
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ssp2_grp", "ssp2"),
|
||||
};
|
||||
|
||||
static const struct upboard_pinctrl_map upboard_pinctrl_map_adl = {
|
||||
.maps = &pinctrl_map_adl[0],
|
||||
.nmaps = ARRAY_SIZE(pinctrl_map_adl),
|
||||
};
|
||||
|
||||
static const struct dmi_system_id dmi_platform_info[] = {
|
||||
{
|
||||
/* UP Squared */
|
||||
|
|
@ -921,6 +934,14 @@ static const struct dmi_system_id dmi_platform_info[] = {
|
|||
},
|
||||
.driver_data = (void *)&upboard_pinctrl_map_apl01,
|
||||
},
|
||||
{
|
||||
/* UP Xtreme i12 */
|
||||
.matches = {
|
||||
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
|
||||
DMI_EXACT_MATCH(DMI_BOARD_NAME, "UPX-ADLP01"),
|
||||
},
|
||||
.driver_data = (void *)&upboard_pinctrl_map_adl,
|
||||
},
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user