162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Intel Meteor Lake PCH pinctrl/GPIO driver 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2022, Intel Corporation 662306a36Sopenharmony_ci * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/mod_devicetable.h> 1062306a36Sopenharmony_ci#include <linux/module.h> 1162306a36Sopenharmony_ci#include <linux/platform_device.h> 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#include "pinctrl-intel.h" 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define MTL_P_PAD_OWN 0x0b0 1862306a36Sopenharmony_ci#define MTL_P_PADCFGLOCK 0x110 1962306a36Sopenharmony_ci#define MTL_P_HOSTSW_OWN 0x140 2062306a36Sopenharmony_ci#define MTL_P_GPI_IS 0x200 2162306a36Sopenharmony_ci#define MTL_P_GPI_IE 0x210 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#define MTL_S_PAD_OWN 0x0b0 2462306a36Sopenharmony_ci#define MTL_S_PADCFGLOCK 0x0f0 2562306a36Sopenharmony_ci#define MTL_S_HOSTSW_OWN 0x110 2662306a36Sopenharmony_ci#define MTL_S_GPI_IS 0x200 2762306a36Sopenharmony_ci#define MTL_S_GPI_IE 0x210 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#define MTL_GPP(r, s, e, g) \ 3062306a36Sopenharmony_ci { \ 3162306a36Sopenharmony_ci .reg_num = (r), \ 3262306a36Sopenharmony_ci .base = (s), \ 3362306a36Sopenharmony_ci .size = ((e) - (s) + 1), \ 3462306a36Sopenharmony_ci .gpio_base = (g), \ 3562306a36Sopenharmony_ci } 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci#define MTL_P_COMMUNITY(b, s, e, g) \ 3862306a36Sopenharmony_ci INTEL_COMMUNITY_GPPS(b, s, e, g, MTL_P) 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci#define MTL_S_COMMUNITY(b, s, e, g) \ 4162306a36Sopenharmony_ci INTEL_COMMUNITY_GPPS(b, s, e, g, MTL_S) 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci/* Meteor Lake-P */ 4462306a36Sopenharmony_cistatic const struct pinctrl_pin_desc mtlp_pins[] = { 4562306a36Sopenharmony_ci /* CPU */ 4662306a36Sopenharmony_ci PINCTRL_PIN(0, "PECI"), 4762306a36Sopenharmony_ci PINCTRL_PIN(1, "UFS_RESET_B"), 4862306a36Sopenharmony_ci PINCTRL_PIN(2, "VIDSOUT"), 4962306a36Sopenharmony_ci PINCTRL_PIN(3, "VIDSCK"), 5062306a36Sopenharmony_ci PINCTRL_PIN(4, "VIDALERT_B"), 5162306a36Sopenharmony_ci /* GPP_V */ 5262306a36Sopenharmony_ci PINCTRL_PIN(5, "BATLOW_B"), 5362306a36Sopenharmony_ci PINCTRL_PIN(6, "AC_PRESENT"), 5462306a36Sopenharmony_ci PINCTRL_PIN(7, "SOC_WAKE_B"), 5562306a36Sopenharmony_ci PINCTRL_PIN(8, "PWRBTN_B"), 5662306a36Sopenharmony_ci PINCTRL_PIN(9, "SLP_S3_B"), 5762306a36Sopenharmony_ci PINCTRL_PIN(10, "SLP_S4_B"), 5862306a36Sopenharmony_ci PINCTRL_PIN(11, "SLP_A_B"), 5962306a36Sopenharmony_ci PINCTRL_PIN(12, "GPP_V_7"), 6062306a36Sopenharmony_ci PINCTRL_PIN(13, "SUSCLK"), 6162306a36Sopenharmony_ci PINCTRL_PIN(14, "SLP_WLAN_B"), 6262306a36Sopenharmony_ci PINCTRL_PIN(15, "SLP_S5_B"), 6362306a36Sopenharmony_ci PINCTRL_PIN(16, "LANPHYPC"), 6462306a36Sopenharmony_ci PINCTRL_PIN(17, "SLP_LAN_B"), 6562306a36Sopenharmony_ci PINCTRL_PIN(18, "GPP_V_13"), 6662306a36Sopenharmony_ci PINCTRL_PIN(19, "WAKE_B"), 6762306a36Sopenharmony_ci PINCTRL_PIN(20, "GPP_V_15"), 6862306a36Sopenharmony_ci PINCTRL_PIN(21, "GPP_V_16"), 6962306a36Sopenharmony_ci PINCTRL_PIN(22, "GPP_V_17"), 7062306a36Sopenharmony_ci PINCTRL_PIN(23, "GPP_V_18"), 7162306a36Sopenharmony_ci PINCTRL_PIN(24, "CATERR_B"), 7262306a36Sopenharmony_ci PINCTRL_PIN(25, "PROCHOT_B"), 7362306a36Sopenharmony_ci PINCTRL_PIN(26, "THERMTRIP_B"), 7462306a36Sopenharmony_ci PINCTRL_PIN(27, "DSI_DE_TE_2_GENLOCK_REF"), 7562306a36Sopenharmony_ci PINCTRL_PIN(28, "DSI_DE_TE_1_DISP_UTILS"), 7662306a36Sopenharmony_ci /* GPP_C */ 7762306a36Sopenharmony_ci PINCTRL_PIN(29, "SMBCLK"), 7862306a36Sopenharmony_ci PINCTRL_PIN(30, "SMBDATA"), 7962306a36Sopenharmony_ci PINCTRL_PIN(31, "SMBALERT_B"), 8062306a36Sopenharmony_ci PINCTRL_PIN(32, "SML0CLK"), 8162306a36Sopenharmony_ci PINCTRL_PIN(33, "SML0DATA"), 8262306a36Sopenharmony_ci PINCTRL_PIN(34, "GPP_C_5"), 8362306a36Sopenharmony_ci PINCTRL_PIN(35, "GPP_C_6"), 8462306a36Sopenharmony_ci PINCTRL_PIN(36, "GPP_C_7"), 8562306a36Sopenharmony_ci PINCTRL_PIN(37, "GPP_C_8"), 8662306a36Sopenharmony_ci PINCTRL_PIN(38, "GPP_C_9"), 8762306a36Sopenharmony_ci PINCTRL_PIN(39, "GPP_C_10"), 8862306a36Sopenharmony_ci PINCTRL_PIN(40, "GPP_C_11"), 8962306a36Sopenharmony_ci PINCTRL_PIN(41, "GPP_C_12"), 9062306a36Sopenharmony_ci PINCTRL_PIN(42, "GPP_C_13"), 9162306a36Sopenharmony_ci PINCTRL_PIN(43, "GPP_C_14"), 9262306a36Sopenharmony_ci PINCTRL_PIN(44, "GPP_C_15"), 9362306a36Sopenharmony_ci PINCTRL_PIN(45, "GPP_C_16"), 9462306a36Sopenharmony_ci PINCTRL_PIN(46, "GPP_C_17"), 9562306a36Sopenharmony_ci PINCTRL_PIN(47, "GPP_C_18"), 9662306a36Sopenharmony_ci PINCTRL_PIN(48, "GPP_C_19"), 9762306a36Sopenharmony_ci PINCTRL_PIN(49, "GPP_C_20"), 9862306a36Sopenharmony_ci PINCTRL_PIN(50, "GPP_C_21"), 9962306a36Sopenharmony_ci PINCTRL_PIN(51, "GPP_C_22"), 10062306a36Sopenharmony_ci PINCTRL_PIN(52, "GPP_C_23"), 10162306a36Sopenharmony_ci /* GPP_A */ 10262306a36Sopenharmony_ci PINCTRL_PIN(53, "ESPI_IO_0"), 10362306a36Sopenharmony_ci PINCTRL_PIN(54, "ESPI_IO_1"), 10462306a36Sopenharmony_ci PINCTRL_PIN(55, "ESPI_IO_2"), 10562306a36Sopenharmony_ci PINCTRL_PIN(56, "ESPI_IO_3"), 10662306a36Sopenharmony_ci PINCTRL_PIN(57, "ESPI_CS0_B"), 10762306a36Sopenharmony_ci PINCTRL_PIN(58, "ESPI_CLK"), 10862306a36Sopenharmony_ci PINCTRL_PIN(59, "ESPI_RESET_B"), 10962306a36Sopenharmony_ci PINCTRL_PIN(60, "GPP_A_7"), 11062306a36Sopenharmony_ci PINCTRL_PIN(61, "GPP_A_8"), 11162306a36Sopenharmony_ci PINCTRL_PIN(62, "GPP_A_9"), 11262306a36Sopenharmony_ci PINCTRL_PIN(63, "GPP_A_10"), 11362306a36Sopenharmony_ci PINCTRL_PIN(64, "GPP_A_11"), 11462306a36Sopenharmony_ci PINCTRL_PIN(65, "GPP_A_12"), 11562306a36Sopenharmony_ci PINCTRL_PIN(66, "ESPI_CS1_B"), 11662306a36Sopenharmony_ci PINCTRL_PIN(67, "ESPI_CS2_B"), 11762306a36Sopenharmony_ci PINCTRL_PIN(68, "ESPI_CS3_B"), 11862306a36Sopenharmony_ci PINCTRL_PIN(69, "ESPI_ALERT0_B"), 11962306a36Sopenharmony_ci PINCTRL_PIN(70, "ESPI_ALERT1_B"), 12062306a36Sopenharmony_ci PINCTRL_PIN(71, "ESPI_ALERT2_B"), 12162306a36Sopenharmony_ci PINCTRL_PIN(72, "ESPI_ALERT3_B"), 12262306a36Sopenharmony_ci PINCTRL_PIN(73, "GPP_A_20"), 12362306a36Sopenharmony_ci PINCTRL_PIN(74, "GPP_A_21"), 12462306a36Sopenharmony_ci PINCTRL_PIN(75, "GPP_A_22"), 12562306a36Sopenharmony_ci PINCTRL_PIN(76, "GPP_A_23"), 12662306a36Sopenharmony_ci PINCTRL_PIN(77, "ESPI_CLK_LOOPBK"), 12762306a36Sopenharmony_ci /* GPP_E */ 12862306a36Sopenharmony_ci PINCTRL_PIN(78, "GPP_E_0"), 12962306a36Sopenharmony_ci PINCTRL_PIN(79, "GPP_E_1"), 13062306a36Sopenharmony_ci PINCTRL_PIN(80, "GPP_E_2"), 13162306a36Sopenharmony_ci PINCTRL_PIN(81, "GPP_E_3"), 13262306a36Sopenharmony_ci PINCTRL_PIN(82, "GPP_E_4"), 13362306a36Sopenharmony_ci PINCTRL_PIN(83, "GPP_E_5"), 13462306a36Sopenharmony_ci PINCTRL_PIN(84, "GPP_E_6"), 13562306a36Sopenharmony_ci PINCTRL_PIN(85, "GPP_E_7"), 13662306a36Sopenharmony_ci PINCTRL_PIN(86, "GPP_E_8"), 13762306a36Sopenharmony_ci PINCTRL_PIN(87, "GPP_E_9"), 13862306a36Sopenharmony_ci PINCTRL_PIN(88, "GPP_E_10"), 13962306a36Sopenharmony_ci PINCTRL_PIN(89, "GPP_E_11"), 14062306a36Sopenharmony_ci PINCTRL_PIN(90, "GPP_E_12"), 14162306a36Sopenharmony_ci PINCTRL_PIN(91, "GPP_E_13"), 14262306a36Sopenharmony_ci PINCTRL_PIN(92, "GPP_E_14"), 14362306a36Sopenharmony_ci PINCTRL_PIN(93, "SLP_DRAM_B"), 14462306a36Sopenharmony_ci PINCTRL_PIN(94, "GPP_E_16"), 14562306a36Sopenharmony_ci PINCTRL_PIN(95, "GPP_E_17"), 14662306a36Sopenharmony_ci PINCTRL_PIN(96, "GPP_E_18"), 14762306a36Sopenharmony_ci PINCTRL_PIN(97, "GPP_E_19"), 14862306a36Sopenharmony_ci PINCTRL_PIN(98, "GPP_E_20"), 14962306a36Sopenharmony_ci PINCTRL_PIN(99, "GPP_E_21"), 15062306a36Sopenharmony_ci PINCTRL_PIN(100, "DNX_FORCE_RELOAD"), 15162306a36Sopenharmony_ci PINCTRL_PIN(101, "GPP_E_23"), 15262306a36Sopenharmony_ci PINCTRL_PIN(102, "THC0_GSPI0_CLK_LOOPBK"), 15362306a36Sopenharmony_ci /* GPP_H */ 15462306a36Sopenharmony_ci PINCTRL_PIN(103, "GPP_H_0"), 15562306a36Sopenharmony_ci PINCTRL_PIN(104, "GPP_H_1"), 15662306a36Sopenharmony_ci PINCTRL_PIN(105, "GPP_H_2"), 15762306a36Sopenharmony_ci PINCTRL_PIN(106, "GPP_H_3"), 15862306a36Sopenharmony_ci PINCTRL_PIN(107, "GPP_H_4"), 15962306a36Sopenharmony_ci PINCTRL_PIN(108, "GPP_H_5"), 16062306a36Sopenharmony_ci PINCTRL_PIN(109, "GPP_H_6"), 16162306a36Sopenharmony_ci PINCTRL_PIN(110, "GPP_H_7"), 16262306a36Sopenharmony_ci PINCTRL_PIN(111, "GPP_H_8"), 16362306a36Sopenharmony_ci PINCTRL_PIN(112, "GPP_H_9"), 16462306a36Sopenharmony_ci PINCTRL_PIN(113, "GPP_H_10"), 16562306a36Sopenharmony_ci PINCTRL_PIN(114, "GPP_H_11"), 16662306a36Sopenharmony_ci PINCTRL_PIN(115, "GPP_H_12"), 16762306a36Sopenharmony_ci PINCTRL_PIN(116, "CPU_C10_GATE_B"), 16862306a36Sopenharmony_ci PINCTRL_PIN(117, "GPP_H_14"), 16962306a36Sopenharmony_ci PINCTRL_PIN(118, "GPP_H_15"), 17062306a36Sopenharmony_ci PINCTRL_PIN(119, "GPP_H_16"), 17162306a36Sopenharmony_ci PINCTRL_PIN(120, "GPP_H_17"), 17262306a36Sopenharmony_ci PINCTRL_PIN(121, "GPP_H_18"), 17362306a36Sopenharmony_ci PINCTRL_PIN(122, "GPP_H_19"), 17462306a36Sopenharmony_ci PINCTRL_PIN(123, "GPP_H_20"), 17562306a36Sopenharmony_ci PINCTRL_PIN(124, "GPP_H_21"), 17662306a36Sopenharmony_ci PINCTRL_PIN(125, "GPP_H_22"), 17762306a36Sopenharmony_ci PINCTRL_PIN(126, "GPP_H_23"), 17862306a36Sopenharmony_ci PINCTRL_PIN(127, "LPI3C1_CLK_LOOPBK"), 17962306a36Sopenharmony_ci PINCTRL_PIN(128, "I3C0_CLK_LOOPBK"), 18062306a36Sopenharmony_ci /* GPP_F */ 18162306a36Sopenharmony_ci PINCTRL_PIN(129, "CNV_BRI_DT"), 18262306a36Sopenharmony_ci PINCTRL_PIN(130, "CNV_BRI_RSP"), 18362306a36Sopenharmony_ci PINCTRL_PIN(131, "CNV_RGI_DT"), 18462306a36Sopenharmony_ci PINCTRL_PIN(132, "CNV_RGI_RSP"), 18562306a36Sopenharmony_ci PINCTRL_PIN(133, "CNV_RF_RESET_B"), 18662306a36Sopenharmony_ci PINCTRL_PIN(134, "CRF_CLKREQ"), 18762306a36Sopenharmony_ci PINCTRL_PIN(135, "GPP_F_6"), 18862306a36Sopenharmony_ci PINCTRL_PIN(136, "FUSA_DIAGTEST_EN"), 18962306a36Sopenharmony_ci PINCTRL_PIN(137, "FUSA_DIAGTEST_MODE"), 19062306a36Sopenharmony_ci PINCTRL_PIN(138, "BOOTMPC"), 19162306a36Sopenharmony_ci PINCTRL_PIN(139, "GPP_F_10"), 19262306a36Sopenharmony_ci PINCTRL_PIN(140, "GPP_F_11"), 19362306a36Sopenharmony_ci PINCTRL_PIN(141, "GSXDOUT"), 19462306a36Sopenharmony_ci PINCTRL_PIN(142, "GSXSLOAD"), 19562306a36Sopenharmony_ci PINCTRL_PIN(143, "GSXDIN"), 19662306a36Sopenharmony_ci PINCTRL_PIN(144, "GSXSRESETB"), 19762306a36Sopenharmony_ci PINCTRL_PIN(145, "GSXCLK"), 19862306a36Sopenharmony_ci PINCTRL_PIN(146, "GMII_MDC_0"), 19962306a36Sopenharmony_ci PINCTRL_PIN(147, "GMII_MDIO_0"), 20062306a36Sopenharmony_ci PINCTRL_PIN(148, "GPP_F_19"), 20162306a36Sopenharmony_ci PINCTRL_PIN(149, "GPP_F_20"), 20262306a36Sopenharmony_ci PINCTRL_PIN(150, "GPP_F_21"), 20362306a36Sopenharmony_ci PINCTRL_PIN(151, "GPP_F_22"), 20462306a36Sopenharmony_ci PINCTRL_PIN(152, "GPP_F_23"), 20562306a36Sopenharmony_ci PINCTRL_PIN(153, "THC1_GSPI1_CLK_LOOPBK"), 20662306a36Sopenharmony_ci PINCTRL_PIN(154, "GSPI0A_CLK_LOOPBK"), 20762306a36Sopenharmony_ci /* SPI0 */ 20862306a36Sopenharmony_ci PINCTRL_PIN(155, "SPI0_IO_2"), 20962306a36Sopenharmony_ci PINCTRL_PIN(156, "SPI0_IO_3"), 21062306a36Sopenharmony_ci PINCTRL_PIN(157, "SPI0_MOSI_IO_0"), 21162306a36Sopenharmony_ci PINCTRL_PIN(158, "SPI0_MISO_IO_1"), 21262306a36Sopenharmony_ci PINCTRL_PIN(159, "SPI0_TPM_CS_B"), 21362306a36Sopenharmony_ci PINCTRL_PIN(160, "SPI0_FLASH_0_CS_B"), 21462306a36Sopenharmony_ci PINCTRL_PIN(161, "SPI0_FLASH_1_CS_B"), 21562306a36Sopenharmony_ci PINCTRL_PIN(162, "SPI0_CLK"), 21662306a36Sopenharmony_ci PINCTRL_PIN(163, "L_BKLTEN"), 21762306a36Sopenharmony_ci PINCTRL_PIN(164, "L_BKLTCTL"), 21862306a36Sopenharmony_ci PINCTRL_PIN(165, "L_VDDEN"), 21962306a36Sopenharmony_ci PINCTRL_PIN(166, "SYS_PWROK"), 22062306a36Sopenharmony_ci PINCTRL_PIN(167, "SYS_RESET_B"), 22162306a36Sopenharmony_ci PINCTRL_PIN(168, "MLK_RST_B"), 22262306a36Sopenharmony_ci PINCTRL_PIN(169, "SPI0_CLK_LOOPBK"), 22362306a36Sopenharmony_ci /* vGPIO_3 */ 22462306a36Sopenharmony_ci PINCTRL_PIN(170, "ESPI_USB_OCB_0"), 22562306a36Sopenharmony_ci PINCTRL_PIN(171, "ESPI_USB_OCB_1"), 22662306a36Sopenharmony_ci PINCTRL_PIN(172, "ESPI_USB_OCB_2"), 22762306a36Sopenharmony_ci PINCTRL_PIN(173, "ESPI_USB_OCB_3"), 22862306a36Sopenharmony_ci PINCTRL_PIN(174, "USB_CPU_OCB_0"), 22962306a36Sopenharmony_ci PINCTRL_PIN(175, "USB_CPU_OCB_1"), 23062306a36Sopenharmony_ci PINCTRL_PIN(176, "USB_CPU_OCB_2"), 23162306a36Sopenharmony_ci PINCTRL_PIN(177, "USB_CPU_OCB_3"), 23262306a36Sopenharmony_ci PINCTRL_PIN(178, "TS0_IN_INT"), 23362306a36Sopenharmony_ci PINCTRL_PIN(179, "TS1_IN_INT"), 23462306a36Sopenharmony_ci PINCTRL_PIN(180, "THC0_WOT_INT"), 23562306a36Sopenharmony_ci PINCTRL_PIN(181, "THC1_WOT_INT"), 23662306a36Sopenharmony_ci PINCTRL_PIN(182, "THC0_WHC_INT"), 23762306a36Sopenharmony_ci PINCTRL_PIN(183, "THC1_WHC_INT"), 23862306a36Sopenharmony_ci /* GPP_S */ 23962306a36Sopenharmony_ci PINCTRL_PIN(184, "GPP_S_0"), 24062306a36Sopenharmony_ci PINCTRL_PIN(185, "GPP_S_1"), 24162306a36Sopenharmony_ci PINCTRL_PIN(186, "GPP_S_2"), 24262306a36Sopenharmony_ci PINCTRL_PIN(187, "GPP_S_3"), 24362306a36Sopenharmony_ci PINCTRL_PIN(188, "GPP_S_4"), 24462306a36Sopenharmony_ci PINCTRL_PIN(189, "GPP_S_5"), 24562306a36Sopenharmony_ci PINCTRL_PIN(190, "GPP_S_6"), 24662306a36Sopenharmony_ci PINCTRL_PIN(191, "GPP_S_7"), 24762306a36Sopenharmony_ci /* JTAG */ 24862306a36Sopenharmony_ci PINCTRL_PIN(192, "JTAG_MBPB0"), 24962306a36Sopenharmony_ci PINCTRL_PIN(193, "JTAG_MBPB1"), 25062306a36Sopenharmony_ci PINCTRL_PIN(194, "JTAG_MBPB2"), 25162306a36Sopenharmony_ci PINCTRL_PIN(195, "JTAG_MBPB3"), 25262306a36Sopenharmony_ci PINCTRL_PIN(196, "JTAG_TDO"), 25362306a36Sopenharmony_ci PINCTRL_PIN(197, "PRDY_B"), 25462306a36Sopenharmony_ci PINCTRL_PIN(198, "PREQ_B"), 25562306a36Sopenharmony_ci PINCTRL_PIN(199, "JTAG_TDI"), 25662306a36Sopenharmony_ci PINCTRL_PIN(200, "JTAG_TMS"), 25762306a36Sopenharmony_ci PINCTRL_PIN(201, "JTAG_TCK"), 25862306a36Sopenharmony_ci PINCTRL_PIN(202, "DBG_PMODE"), 25962306a36Sopenharmony_ci PINCTRL_PIN(203, "JTAG_TRST_B"), 26062306a36Sopenharmony_ci /* GPP_B */ 26162306a36Sopenharmony_ci PINCTRL_PIN(204, "ADM_VID_0"), 26262306a36Sopenharmony_ci PINCTRL_PIN(205, "ADM_VID_1"), 26362306a36Sopenharmony_ci PINCTRL_PIN(206, "GPP_B_2"), 26462306a36Sopenharmony_ci PINCTRL_PIN(207, "GPP_B_3"), 26562306a36Sopenharmony_ci PINCTRL_PIN(208, "GPP_B_4"), 26662306a36Sopenharmony_ci PINCTRL_PIN(209, "GPP_B_5"), 26762306a36Sopenharmony_ci PINCTRL_PIN(210, "GPP_B_6"), 26862306a36Sopenharmony_ci PINCTRL_PIN(211, "GPP_B_7"), 26962306a36Sopenharmony_ci PINCTRL_PIN(212, "GPP_B_8"), 27062306a36Sopenharmony_ci PINCTRL_PIN(213, "GPP_B_9"), 27162306a36Sopenharmony_ci PINCTRL_PIN(214, "GPP_B_10"), 27262306a36Sopenharmony_ci PINCTRL_PIN(215, "GPP_B_11"), 27362306a36Sopenharmony_ci PINCTRL_PIN(216, "SLP_S0_B"), 27462306a36Sopenharmony_ci PINCTRL_PIN(217, "PLTRST_B"), 27562306a36Sopenharmony_ci PINCTRL_PIN(218, "GPP_B_14"), 27662306a36Sopenharmony_ci PINCTRL_PIN(219, "GPP_B_15"), 27762306a36Sopenharmony_ci PINCTRL_PIN(220, "GPP_B_16"), 27862306a36Sopenharmony_ci PINCTRL_PIN(221, "GPP_B_17"), 27962306a36Sopenharmony_ci PINCTRL_PIN(222, "GPP_B_18"), 28062306a36Sopenharmony_ci PINCTRL_PIN(223, "GPP_B_19"), 28162306a36Sopenharmony_ci PINCTRL_PIN(224, "GPP_B_20"), 28262306a36Sopenharmony_ci PINCTRL_PIN(225, "GPP_B_21"), 28362306a36Sopenharmony_ci PINCTRL_PIN(226, "GPP_B_22"), 28462306a36Sopenharmony_ci PINCTRL_PIN(227, "GPP_B_23"), 28562306a36Sopenharmony_ci PINCTRL_PIN(228, "ISH_I3C0_CLK_LOOPBK"), 28662306a36Sopenharmony_ci /* GPP_D */ 28762306a36Sopenharmony_ci PINCTRL_PIN(229, "GPP_D_0"), 28862306a36Sopenharmony_ci PINCTRL_PIN(230, "GPP_D_1"), 28962306a36Sopenharmony_ci PINCTRL_PIN(231, "GPP_D_2"), 29062306a36Sopenharmony_ci PINCTRL_PIN(232, "GPP_D_3"), 29162306a36Sopenharmony_ci PINCTRL_PIN(233, "GPP_D_4"), 29262306a36Sopenharmony_ci PINCTRL_PIN(234, "GPP_D_5"), 29362306a36Sopenharmony_ci PINCTRL_PIN(235, "GPP_D_6"), 29462306a36Sopenharmony_ci PINCTRL_PIN(236, "GPP_D_7"), 29562306a36Sopenharmony_ci PINCTRL_PIN(237, "GPP_D_8"), 29662306a36Sopenharmony_ci PINCTRL_PIN(238, "GPP_D_9"), 29762306a36Sopenharmony_ci PINCTRL_PIN(239, "HDA_BCLK"), 29862306a36Sopenharmony_ci PINCTRL_PIN(240, "HDA_SYNC"), 29962306a36Sopenharmony_ci PINCTRL_PIN(241, "HDA_SDO"), 30062306a36Sopenharmony_ci PINCTRL_PIN(242, "HDA_SDI_0"), 30162306a36Sopenharmony_ci PINCTRL_PIN(243, "GPP_D_14"), 30262306a36Sopenharmony_ci PINCTRL_PIN(244, "GPP_D_15"), 30362306a36Sopenharmony_ci PINCTRL_PIN(245, "GPP_D_16"), 30462306a36Sopenharmony_ci PINCTRL_PIN(246, "HDA_RST_B"), 30562306a36Sopenharmony_ci PINCTRL_PIN(247, "GPP_D_18"), 30662306a36Sopenharmony_ci PINCTRL_PIN(248, "GPP_D_19"), 30762306a36Sopenharmony_ci PINCTRL_PIN(249, "GPP_D_20"), 30862306a36Sopenharmony_ci PINCTRL_PIN(250, "UFS_REFCLK"), 30962306a36Sopenharmony_ci PINCTRL_PIN(251, "BPKI3C_SDA"), 31062306a36Sopenharmony_ci PINCTRL_PIN(252, "BPKI3C_SCL"), 31162306a36Sopenharmony_ci PINCTRL_PIN(253, "BOOTHALT_B"), 31262306a36Sopenharmony_ci /* vGPIO */ 31362306a36Sopenharmony_ci PINCTRL_PIN(254, "CNV_BTEN"), 31462306a36Sopenharmony_ci PINCTRL_PIN(255, "CNV_BT_HOST_WAKEB"), 31562306a36Sopenharmony_ci PINCTRL_PIN(256, "CNV_BT_IF_SELECT"), 31662306a36Sopenharmony_ci PINCTRL_PIN(257, "vCNV_BT_UART_TXD"), 31762306a36Sopenharmony_ci PINCTRL_PIN(258, "vCNV_BT_UART_RXD"), 31862306a36Sopenharmony_ci PINCTRL_PIN(259, "vCNV_BT_UART_CTS_B"), 31962306a36Sopenharmony_ci PINCTRL_PIN(260, "vCNV_BT_UART_RTS_B"), 32062306a36Sopenharmony_ci PINCTRL_PIN(261, "vCNV_MFUART1_TXD"), 32162306a36Sopenharmony_ci PINCTRL_PIN(262, "vCNV_MFUART1_RXD"), 32262306a36Sopenharmony_ci PINCTRL_PIN(263, "vCNV_MFUART1_CTS_B"), 32362306a36Sopenharmony_ci PINCTRL_PIN(264, "vCNV_MFUART1_RTS_B"), 32462306a36Sopenharmony_ci PINCTRL_PIN(265, "vUART0_TXD"), 32562306a36Sopenharmony_ci PINCTRL_PIN(266, "vUART0_RXD"), 32662306a36Sopenharmony_ci PINCTRL_PIN(267, "vUART0_CTS_B"), 32762306a36Sopenharmony_ci PINCTRL_PIN(268, "vUART0_RTS_B"), 32862306a36Sopenharmony_ci PINCTRL_PIN(269, "vISH_UART0_TXD"), 32962306a36Sopenharmony_ci PINCTRL_PIN(270, "vISH_UART0_RXD"), 33062306a36Sopenharmony_ci PINCTRL_PIN(271, "vISH_UART0_CTS_B"), 33162306a36Sopenharmony_ci PINCTRL_PIN(272, "vISH_UART0_RTS_B"), 33262306a36Sopenharmony_ci PINCTRL_PIN(273, "vCNV_BT_I2S_BCLK"), 33362306a36Sopenharmony_ci PINCTRL_PIN(274, "vCNV_BT_I2S_WS_SYNC"), 33462306a36Sopenharmony_ci PINCTRL_PIN(275, "vCNV_BT_I2S_SDO"), 33562306a36Sopenharmony_ci PINCTRL_PIN(276, "vCNV_BT_I2S_SDI"), 33662306a36Sopenharmony_ci PINCTRL_PIN(277, "vI2S2_SCLK"), 33762306a36Sopenharmony_ci PINCTRL_PIN(278, "vI2S2_SFRM"), 33862306a36Sopenharmony_ci PINCTRL_PIN(279, "vI2S2_TXD"), 33962306a36Sopenharmony_ci PINCTRL_PIN(280, "vI2S2_RXD"), 34062306a36Sopenharmony_ci PINCTRL_PIN(281, "vCNV_BT_I2S_BCLK_2"), 34162306a36Sopenharmony_ci PINCTRL_PIN(282, "vCNV_BT_I2S_WS_SYNC_2"), 34262306a36Sopenharmony_ci PINCTRL_PIN(283, "vCNV_BT_I2S_SDO_2"), 34362306a36Sopenharmony_ci PINCTRL_PIN(284, "vCNV_BT_I2S_SDI_2"), 34462306a36Sopenharmony_ci PINCTRL_PIN(285, "vI2S2_SCLK_2"), 34562306a36Sopenharmony_ci PINCTRL_PIN(286, "vI2S2_SFRM_2"), 34662306a36Sopenharmony_ci PINCTRL_PIN(287, "vI2S2_TXD_2"), 34762306a36Sopenharmony_ci PINCTRL_PIN(288, "vI2S2_RXD_2"), 34862306a36Sopenharmony_ci}; 34962306a36Sopenharmony_ci 35062306a36Sopenharmony_cistatic const struct intel_padgroup mtlp_community0_gpps[] = { 35162306a36Sopenharmony_ci MTL_GPP(0, 0, 4, 0), /* CPU */ 35262306a36Sopenharmony_ci MTL_GPP(1, 5, 28, 32), /* GPP_V */ 35362306a36Sopenharmony_ci MTL_GPP(2, 29, 52, 64), /* GPP_C */ 35462306a36Sopenharmony_ci}; 35562306a36Sopenharmony_ci 35662306a36Sopenharmony_cistatic const struct intel_padgroup mtlp_community1_gpps[] = { 35762306a36Sopenharmony_ci MTL_GPP(0, 53, 77, 96), /* GPP_A */ 35862306a36Sopenharmony_ci MTL_GPP(1, 78, 102, 128), /* GPP_E */ 35962306a36Sopenharmony_ci}; 36062306a36Sopenharmony_ci 36162306a36Sopenharmony_cistatic const struct intel_padgroup mtlp_community3_gpps[] = { 36262306a36Sopenharmony_ci MTL_GPP(0, 103, 128, 160), /* GPP_H */ 36362306a36Sopenharmony_ci MTL_GPP(1, 129, 154, 192), /* GPP_F */ 36462306a36Sopenharmony_ci MTL_GPP(2, 155, 169, 224), /* SPI0 */ 36562306a36Sopenharmony_ci MTL_GPP(3, 170, 183, 256), /* vGPIO_3 */ 36662306a36Sopenharmony_ci}; 36762306a36Sopenharmony_ci 36862306a36Sopenharmony_cistatic const struct intel_padgroup mtlp_community4_gpps[] = { 36962306a36Sopenharmony_ci MTL_GPP(0, 184, 191, 288), /* GPP_S */ 37062306a36Sopenharmony_ci MTL_GPP(1, 192, 203, 320), /* JTAG */ 37162306a36Sopenharmony_ci}; 37262306a36Sopenharmony_ci 37362306a36Sopenharmony_cistatic const struct intel_padgroup mtlp_community5_gpps[] = { 37462306a36Sopenharmony_ci MTL_GPP(0, 204, 228, 352), /* GPP_B */ 37562306a36Sopenharmony_ci MTL_GPP(1, 229, 253, 384), /* GPP_D */ 37662306a36Sopenharmony_ci MTL_GPP(2, 254, 285, 416), /* vGPIO_0 */ 37762306a36Sopenharmony_ci MTL_GPP(3, 286, 288, 448), /* vGPIO_1 */ 37862306a36Sopenharmony_ci}; 37962306a36Sopenharmony_ci 38062306a36Sopenharmony_cistatic const struct intel_community mtlp_communities[] = { 38162306a36Sopenharmony_ci MTL_P_COMMUNITY(0, 0, 52, mtlp_community0_gpps), 38262306a36Sopenharmony_ci MTL_P_COMMUNITY(1, 53, 102, mtlp_community1_gpps), 38362306a36Sopenharmony_ci MTL_P_COMMUNITY(2, 103, 183, mtlp_community3_gpps), 38462306a36Sopenharmony_ci MTL_P_COMMUNITY(3, 184, 203, mtlp_community4_gpps), 38562306a36Sopenharmony_ci MTL_P_COMMUNITY(4, 204, 288, mtlp_community5_gpps), 38662306a36Sopenharmony_ci}; 38762306a36Sopenharmony_ci 38862306a36Sopenharmony_cistatic const struct intel_pinctrl_soc_data mtlp_soc_data = { 38962306a36Sopenharmony_ci .pins = mtlp_pins, 39062306a36Sopenharmony_ci .npins = ARRAY_SIZE(mtlp_pins), 39162306a36Sopenharmony_ci .communities = mtlp_communities, 39262306a36Sopenharmony_ci .ncommunities = ARRAY_SIZE(mtlp_communities), 39362306a36Sopenharmony_ci}; 39462306a36Sopenharmony_ci 39562306a36Sopenharmony_ci/* Meteor Lake-S */ 39662306a36Sopenharmony_cistatic const struct pinctrl_pin_desc mtls_pins[] = { 39762306a36Sopenharmony_ci /* GPP_A */ 39862306a36Sopenharmony_ci PINCTRL_PIN(0, "DIR_ESPI_IO_0"), 39962306a36Sopenharmony_ci PINCTRL_PIN(1, "DIR_ESPI_IO_1"), 40062306a36Sopenharmony_ci PINCTRL_PIN(2, "DIR_ESPI_IO_2"), 40162306a36Sopenharmony_ci PINCTRL_PIN(3, "DIR_ESPI_IO_3"), 40262306a36Sopenharmony_ci PINCTRL_PIN(4, "DIR_ESPI_CS0_B"), 40362306a36Sopenharmony_ci PINCTRL_PIN(5, "DIR_ESPI_CLK"), 40462306a36Sopenharmony_ci PINCTRL_PIN(6, "DIR_ESPI_RCLK"), 40562306a36Sopenharmony_ci PINCTRL_PIN(7, "DIR_ESPI_RESET_B"), 40662306a36Sopenharmony_ci PINCTRL_PIN(8, "SLP_S0_B"), 40762306a36Sopenharmony_ci PINCTRL_PIN(9, "DMI_PERSTB"), 40862306a36Sopenharmony_ci PINCTRL_PIN(10, "CATERR_B"), 40962306a36Sopenharmony_ci PINCTRL_PIN(11, "THERMTRIP_B"), 41062306a36Sopenharmony_ci PINCTRL_PIN(12, "CPU_C10_GATE_B"), 41162306a36Sopenharmony_ci PINCTRL_PIN(13, "PS_ONB"), 41262306a36Sopenharmony_ci PINCTRL_PIN(14, "GPP_SA_14"), 41362306a36Sopenharmony_ci PINCTRL_PIN(15, "GPP_SA_15"), 41462306a36Sopenharmony_ci PINCTRL_PIN(16, "GPP_SA_16"), 41562306a36Sopenharmony_ci PINCTRL_PIN(17, "GPP_SA_17"), 41662306a36Sopenharmony_ci PINCTRL_PIN(18, "GPP_SA_18"), 41762306a36Sopenharmony_ci PINCTRL_PIN(19, "GPP_SA_19"), 41862306a36Sopenharmony_ci PINCTRL_PIN(20, "GPP_SA_20"), 41962306a36Sopenharmony_ci PINCTRL_PIN(21, "GPP_SA_21"), 42062306a36Sopenharmony_ci PINCTRL_PIN(22, "FUSA_DIAGTEST_EN"), 42162306a36Sopenharmony_ci PINCTRL_PIN(23, "FUSA_DIAGTEST_MODE"), 42262306a36Sopenharmony_ci PINCTRL_PIN(24, "RTCCLKIN"), 42362306a36Sopenharmony_ci PINCTRL_PIN(25, "RESET_SYNC_B"), 42462306a36Sopenharmony_ci PINCTRL_PIN(26, "PCH_PWROK"), 42562306a36Sopenharmony_ci PINCTRL_PIN(27, "DIR_ESPI_CLK_LOOPBACK"), 42662306a36Sopenharmony_ci /* vGPIO_0 */ 42762306a36Sopenharmony_ci PINCTRL_PIN(28, "LPC_ME_FTPM_ENABLE"), 42862306a36Sopenharmony_ci PINCTRL_PIN(29, "LPC_DTFUS_CORE_SPITPM_DIS"), 42962306a36Sopenharmony_ci PINCTRL_PIN(30, "LPC_SPI_STRAP_TOS"), 43062306a36Sopenharmony_ci PINCTRL_PIN(31, "ITSS_KU1_SHTDWN"), 43162306a36Sopenharmony_ci PINCTRL_PIN(32, "LPC_PRR_TS_OVR"), 43262306a36Sopenharmony_ci PINCTRL_PIN(33, "ESPI_PMC_EC_SCI"), 43362306a36Sopenharmony_ci PINCTRL_PIN(34, "ESPI_PMC_EC_SCI1"), 43462306a36Sopenharmony_ci PINCTRL_PIN(35, "vGPIO_SPARE0"), 43562306a36Sopenharmony_ci PINCTRL_PIN(36, "vGPIO_SPARE1"), 43662306a36Sopenharmony_ci PINCTRL_PIN(37, "vGPIO_SPARE2"), 43762306a36Sopenharmony_ci PINCTRL_PIN(38, "vGPIO_SPARE3"), 43862306a36Sopenharmony_ci PINCTRL_PIN(39, "vGPIO_SPARE8"), 43962306a36Sopenharmony_ci PINCTRL_PIN(40, "vGPIO_SPARE9"), 44062306a36Sopenharmony_ci PINCTRL_PIN(41, "vGPIO_SPARE10"), 44162306a36Sopenharmony_ci PINCTRL_PIN(42, "vGPIO_SPARE11"), 44262306a36Sopenharmony_ci PINCTRL_PIN(43, "vGPIO_SPARE12"), 44362306a36Sopenharmony_ci PINCTRL_PIN(44, "vGPIO_SPARE13"), 44462306a36Sopenharmony_ci PINCTRL_PIN(45, "vGPIO_SPARE14"), 44562306a36Sopenharmony_ci PINCTRL_PIN(46, "vGPIO_SPARE15"), 44662306a36Sopenharmony_ci /* GPP_C */ 44762306a36Sopenharmony_ci PINCTRL_PIN(47, "GPP_SC_0"), 44862306a36Sopenharmony_ci PINCTRL_PIN(48, "GPP_SC_1"), 44962306a36Sopenharmony_ci PINCTRL_PIN(49, "GPP_SC_2"), 45062306a36Sopenharmony_ci PINCTRL_PIN(50, "GPP_SC_3"), 45162306a36Sopenharmony_ci PINCTRL_PIN(51, "GPP_SC_4"), 45262306a36Sopenharmony_ci PINCTRL_PIN(52, "GPP_SC_5"), 45362306a36Sopenharmony_ci PINCTRL_PIN(53, "GPP_SC_6"), 45462306a36Sopenharmony_ci PINCTRL_PIN(54, "GPP_SC_7"), 45562306a36Sopenharmony_ci PINCTRL_PIN(55, "GPP_SC_8"), 45662306a36Sopenharmony_ci PINCTRL_PIN(56, "GPP_SC_9"), 45762306a36Sopenharmony_ci PINCTRL_PIN(57, "GPP_SC_10"), 45862306a36Sopenharmony_ci PINCTRL_PIN(58, "GPP_SC_11"), 45962306a36Sopenharmony_ci PINCTRL_PIN(59, "GPP_SC_12"), 46062306a36Sopenharmony_ci PINCTRL_PIN(60, "GPP_SC_13"), 46162306a36Sopenharmony_ci PINCTRL_PIN(61, "GPP_SC_14"), 46262306a36Sopenharmony_ci PINCTRL_PIN(62, "GPP_SC_15"), 46362306a36Sopenharmony_ci PINCTRL_PIN(63, "GPP_SC_16"), 46462306a36Sopenharmony_ci PINCTRL_PIN(64, "GPP_SC_17"), 46562306a36Sopenharmony_ci PINCTRL_PIN(65, "GPP_SC_18"), 46662306a36Sopenharmony_ci PINCTRL_PIN(66, "GPP_SC_19"), 46762306a36Sopenharmony_ci PINCTRL_PIN(67, "GPP_SC_20"), 46862306a36Sopenharmony_ci PINCTRL_PIN(68, "GPP_SC_21"), 46962306a36Sopenharmony_ci PINCTRL_PIN(69, "GPP_SC_22"), 47062306a36Sopenharmony_ci PINCTRL_PIN(70, "GPP_SC_23"), 47162306a36Sopenharmony_ci PINCTRL_PIN(71, "GPP_SC_24"), 47262306a36Sopenharmony_ci PINCTRL_PIN(72, "GPP_SC_25"), 47362306a36Sopenharmony_ci PINCTRL_PIN(73, "GPP_SC_26"), 47462306a36Sopenharmony_ci /* GPP_B */ 47562306a36Sopenharmony_ci PINCTRL_PIN(74, "GPP_SB_0"), 47662306a36Sopenharmony_ci PINCTRL_PIN(75, "GPP_SB_1"), 47762306a36Sopenharmony_ci PINCTRL_PIN(76, "GPP_SB_2"), 47862306a36Sopenharmony_ci PINCTRL_PIN(77, "GPP_SB_3"), 47962306a36Sopenharmony_ci PINCTRL_PIN(78, "GPP_SB_4"), 48062306a36Sopenharmony_ci PINCTRL_PIN(79, "GPP_SB_5"), 48162306a36Sopenharmony_ci PINCTRL_PIN(80, "GPP_SB_6"), 48262306a36Sopenharmony_ci PINCTRL_PIN(81, "GPP_SB_7"), 48362306a36Sopenharmony_ci PINCTRL_PIN(82, "GPP_SB_8"), 48462306a36Sopenharmony_ci PINCTRL_PIN(83, "GPP_SB_9"), 48562306a36Sopenharmony_ci PINCTRL_PIN(84, "GPP_SB_10"), 48662306a36Sopenharmony_ci PINCTRL_PIN(85, "GPP_SB_11"), 48762306a36Sopenharmony_ci PINCTRL_PIN(86, "GPP_SB_12"), 48862306a36Sopenharmony_ci PINCTRL_PIN(87, "GPP_SB_13"), 48962306a36Sopenharmony_ci PINCTRL_PIN(88, "GPP_SB_14"), 49062306a36Sopenharmony_ci PINCTRL_PIN(89, "GPP_SB_15"), 49162306a36Sopenharmony_ci PINCTRL_PIN(90, "GPP_SB_16"), 49262306a36Sopenharmony_ci PINCTRL_PIN(91, "PROCHOT_B"), 49362306a36Sopenharmony_ci PINCTRL_PIN(92, "BPKI3C_SDA"), 49462306a36Sopenharmony_ci PINCTRL_PIN(93, "BPKI3C_SCL"), 49562306a36Sopenharmony_ci /* vGPIO_3 */ 49662306a36Sopenharmony_ci PINCTRL_PIN(94, "TS0_IN_INT"), 49762306a36Sopenharmony_ci PINCTRL_PIN(95, "TS1_IN_INT"), 49862306a36Sopenharmony_ci /* GPP_D */ 49962306a36Sopenharmony_ci PINCTRL_PIN(96, "TIME_SYNC_0"), 50062306a36Sopenharmony_ci PINCTRL_PIN(97, "TIME_SYNC_1"), 50162306a36Sopenharmony_ci PINCTRL_PIN(98, "DSI_DE_TE_2_GENLOCK_REF"), 50262306a36Sopenharmony_ci PINCTRL_PIN(99, "DSI_DE_TE_1_DISP_UTILS"), 50362306a36Sopenharmony_ci PINCTRL_PIN(100, "DSI_GENLOCK_2"), 50462306a36Sopenharmony_ci PINCTRL_PIN(101, "DSI_GENLOCK_3"), 50562306a36Sopenharmony_ci PINCTRL_PIN(102, "SRCCLKREQ2_B"), 50662306a36Sopenharmony_ci PINCTRL_PIN(103, "SRCCLKREQ3_B"), 50762306a36Sopenharmony_ci PINCTRL_PIN(104, "GPP_SD_8"), 50862306a36Sopenharmony_ci PINCTRL_PIN(105, "GPP_SD_9"), 50962306a36Sopenharmony_ci PINCTRL_PIN(106, "GPP_SD_10"), 51062306a36Sopenharmony_ci PINCTRL_PIN(107, "GPP_SD_11"), 51162306a36Sopenharmony_ci PINCTRL_PIN(108, "GPP_SD_12"), 51262306a36Sopenharmony_ci PINCTRL_PIN(109, "GPP_SD_13"), 51362306a36Sopenharmony_ci PINCTRL_PIN(110, "GPP_SD_14"), 51462306a36Sopenharmony_ci PINCTRL_PIN(111, "GPP_SD_15"), 51562306a36Sopenharmony_ci PINCTRL_PIN(112, "GPP_SD_16"), 51662306a36Sopenharmony_ci PINCTRL_PIN(113, "GPP_SD_17"), 51762306a36Sopenharmony_ci PINCTRL_PIN(114, "BOOTHALT_B"), 51862306a36Sopenharmony_ci PINCTRL_PIN(115, "GPP_SD_19"), 51962306a36Sopenharmony_ci PINCTRL_PIN(116, "GPP_SD_20"), 52062306a36Sopenharmony_ci PINCTRL_PIN(117, "AUDCLK"), 52162306a36Sopenharmony_ci PINCTRL_PIN(118, "AUDIN"), 52262306a36Sopenharmony_ci PINCTRL_PIN(119, "AUDOUT"), 52362306a36Sopenharmony_ci /* JTAG_CPU */ 52462306a36Sopenharmony_ci PINCTRL_PIN(120, "PECI"), 52562306a36Sopenharmony_ci PINCTRL_PIN(121, "VIDSOUT"), 52662306a36Sopenharmony_ci PINCTRL_PIN(122, "VIDSCK"), 52762306a36Sopenharmony_ci PINCTRL_PIN(123, "VIDALERT_B"), 52862306a36Sopenharmony_ci PINCTRL_PIN(124, "JTAG_MBPB0"), 52962306a36Sopenharmony_ci PINCTRL_PIN(125, "JTAG_MBPB1"), 53062306a36Sopenharmony_ci PINCTRL_PIN(126, "JTAG_MBPB2"), 53162306a36Sopenharmony_ci PINCTRL_PIN(127, "JTAG_MBPB3"), 53262306a36Sopenharmony_ci PINCTRL_PIN(128, "JTAG_TDO"), 53362306a36Sopenharmony_ci PINCTRL_PIN(129, "PRDY_B"), 53462306a36Sopenharmony_ci PINCTRL_PIN(130, "PREQ_B"), 53562306a36Sopenharmony_ci PINCTRL_PIN(131, "JTAG_TDI"), 53662306a36Sopenharmony_ci PINCTRL_PIN(132, "JTAG_TMS"), 53762306a36Sopenharmony_ci PINCTRL_PIN(133, "JTAG_TCK"), 53862306a36Sopenharmony_ci PINCTRL_PIN(134, "DBG_PMODE"), 53962306a36Sopenharmony_ci PINCTRL_PIN(135, "JTAG_TRST_B"), 54062306a36Sopenharmony_ci /* vGPIO_4 */ 54162306a36Sopenharmony_ci PINCTRL_PIN(136, "ISCLK_ESPI_XTAL_CLKREQ"), 54262306a36Sopenharmony_ci PINCTRL_PIN(137, "ESPI_ISCLK_XTAL_CLKACK"), 54362306a36Sopenharmony_ci PINCTRL_PIN(138, "vGPIO_SPARE4"), 54462306a36Sopenharmony_ci PINCTRL_PIN(139, "vGPIO_SPARE5"), 54562306a36Sopenharmony_ci PINCTRL_PIN(140, "vGPIO_SPARE6"), 54662306a36Sopenharmony_ci PINCTRL_PIN(141, "vGPIO_SPARE7"), 54762306a36Sopenharmony_ci PINCTRL_PIN(142, "vGPIO_SPARE16"), 54862306a36Sopenharmony_ci PINCTRL_PIN(143, "vGPIO_SPARE17"), 54962306a36Sopenharmony_ci PINCTRL_PIN(144, "vGPIO_SPARE18"), 55062306a36Sopenharmony_ci PINCTRL_PIN(145, "vGPIO_SPARE19"), 55162306a36Sopenharmony_ci PINCTRL_PIN(146, "vGPIO_SPARE20"), 55262306a36Sopenharmony_ci PINCTRL_PIN(147, "vGPIO_SPARE21"), 55362306a36Sopenharmony_ci}; 55462306a36Sopenharmony_ci 55562306a36Sopenharmony_cistatic const struct intel_padgroup mtls_community0_gpps[] = { 55662306a36Sopenharmony_ci MTL_GPP(0, 0, 27, 0), /* GPP_A */ 55762306a36Sopenharmony_ci MTL_GPP(1, 28, 46, 32), /* vGPIO_0 */ 55862306a36Sopenharmony_ci MTL_GPP(2, 47, 73, 64), /* GPP_C */ 55962306a36Sopenharmony_ci}; 56062306a36Sopenharmony_ci 56162306a36Sopenharmony_cistatic const struct intel_padgroup mtls_community1_gpps[] = { 56262306a36Sopenharmony_ci MTL_GPP(0, 74, 93, 96), /* GPP_B */ 56362306a36Sopenharmony_ci MTL_GPP(1, 94, 95, 128), /* vGPIO_3 */ 56462306a36Sopenharmony_ci MTL_GPP(2, 96, 119, 160), /* GPP_D */ 56562306a36Sopenharmony_ci}; 56662306a36Sopenharmony_ci 56762306a36Sopenharmony_cistatic const struct intel_padgroup mtls_community3_gpps[] = { 56862306a36Sopenharmony_ci MTL_GPP(0, 120, 135, 192), /* JTAG_CPU */ 56962306a36Sopenharmony_ci MTL_GPP(1, 136, 147, 224), /* vGPIO_4 */ 57062306a36Sopenharmony_ci}; 57162306a36Sopenharmony_ci 57262306a36Sopenharmony_cistatic const struct intel_community mtls_communities[] = { 57362306a36Sopenharmony_ci MTL_S_COMMUNITY(0, 0, 73, mtls_community0_gpps), 57462306a36Sopenharmony_ci MTL_S_COMMUNITY(1, 74, 119, mtls_community1_gpps), 57562306a36Sopenharmony_ci MTL_S_COMMUNITY(2, 120, 147, mtls_community3_gpps), 57662306a36Sopenharmony_ci}; 57762306a36Sopenharmony_ci 57862306a36Sopenharmony_cistatic const struct intel_pinctrl_soc_data mtls_soc_data = { 57962306a36Sopenharmony_ci .pins = mtls_pins, 58062306a36Sopenharmony_ci .npins = ARRAY_SIZE(mtls_pins), 58162306a36Sopenharmony_ci .communities = mtls_communities, 58262306a36Sopenharmony_ci .ncommunities = ARRAY_SIZE(mtls_communities), 58362306a36Sopenharmony_ci}; 58462306a36Sopenharmony_ci 58562306a36Sopenharmony_cistatic const struct acpi_device_id mtl_pinctrl_acpi_match[] = { 58662306a36Sopenharmony_ci { "INTC1083", (kernel_ulong_t)&mtlp_soc_data }, 58762306a36Sopenharmony_ci { "INTC1082", (kernel_ulong_t)&mtls_soc_data }, 58862306a36Sopenharmony_ci { } 58962306a36Sopenharmony_ci}; 59062306a36Sopenharmony_ciMODULE_DEVICE_TABLE(acpi, mtl_pinctrl_acpi_match); 59162306a36Sopenharmony_ci 59262306a36Sopenharmony_cistatic INTEL_PINCTRL_PM_OPS(mtl_pinctrl_pm_ops); 59362306a36Sopenharmony_ci 59462306a36Sopenharmony_cistatic struct platform_driver mtl_pinctrl_driver = { 59562306a36Sopenharmony_ci .probe = intel_pinctrl_probe_by_hid, 59662306a36Sopenharmony_ci .driver = { 59762306a36Sopenharmony_ci .name = "meteorlake-pinctrl", 59862306a36Sopenharmony_ci .acpi_match_table = mtl_pinctrl_acpi_match, 59962306a36Sopenharmony_ci .pm = &mtl_pinctrl_pm_ops, 60062306a36Sopenharmony_ci }, 60162306a36Sopenharmony_ci}; 60262306a36Sopenharmony_cimodule_platform_driver(mtl_pinctrl_driver); 60362306a36Sopenharmony_ci 60462306a36Sopenharmony_ciMODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); 60562306a36Sopenharmony_ciMODULE_DESCRIPTION("Intel Meteor Lake PCH pinctrl/GPIO driver"); 60662306a36Sopenharmony_ciMODULE_LICENSE("GPL v2"); 60762306a36Sopenharmony_ciMODULE_IMPORT_NS(PINCTRL_INTEL); 608