162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2013, Sony Mobile Communications AB. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/module.h> 762306a36Sopenharmony_ci#include <linux/of.h> 862306a36Sopenharmony_ci#include <linux/platform_device.h> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include "pinctrl-msm.h" 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistatic const struct pinctrl_pin_desc msm8x74_pins[] = { 1362306a36Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 1462306a36Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 1562306a36Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 1662306a36Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 1762306a36Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 1862306a36Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 1962306a36Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 2062306a36Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 2162306a36Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 2262306a36Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 2362306a36Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 2462306a36Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 2562306a36Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 2662306a36Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 2762306a36Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 2862306a36Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 2962306a36Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 3062306a36Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 3162306a36Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 3262306a36Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 3362306a36Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 3462306a36Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 3562306a36Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 3662306a36Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 3762306a36Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 3862306a36Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 3962306a36Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 4062306a36Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 4162306a36Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 4262306a36Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 4362306a36Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 4462306a36Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 4562306a36Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 4662306a36Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 4762306a36Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 4862306a36Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 4962306a36Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 5062306a36Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 5162306a36Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 5262306a36Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 5362306a36Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 5462306a36Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 5562306a36Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 5662306a36Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 5762306a36Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 5862306a36Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 5962306a36Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 6062306a36Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 6162306a36Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 6262306a36Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 6362306a36Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 6462306a36Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 6562306a36Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 6662306a36Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 6762306a36Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 6862306a36Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 6962306a36Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 7062306a36Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 7162306a36Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 7262306a36Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 7362306a36Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 7462306a36Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 7562306a36Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 7662306a36Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 7762306a36Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 7862306a36Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 7962306a36Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 8062306a36Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 8162306a36Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 8262306a36Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 8362306a36Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 8462306a36Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 8562306a36Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 8662306a36Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 8762306a36Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 8862306a36Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 8962306a36Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 9062306a36Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 9162306a36Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 9262306a36Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 9362306a36Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 9462306a36Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 9562306a36Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 9662306a36Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 9762306a36Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 9862306a36Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 9962306a36Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 10062306a36Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 10162306a36Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 10262306a36Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 10362306a36Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 10462306a36Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 10562306a36Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 10662306a36Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 10762306a36Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 10862306a36Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 10962306a36Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 11062306a36Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 11162306a36Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 11262306a36Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 11362306a36Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 11462306a36Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 11562306a36Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 11662306a36Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 11762306a36Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 11862306a36Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 11962306a36Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 12062306a36Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 12162306a36Sopenharmony_ci PINCTRL_PIN(108, "GPIO_108"), 12262306a36Sopenharmony_ci PINCTRL_PIN(109, "GPIO_109"), 12362306a36Sopenharmony_ci PINCTRL_PIN(110, "GPIO_110"), 12462306a36Sopenharmony_ci PINCTRL_PIN(111, "GPIO_111"), 12562306a36Sopenharmony_ci PINCTRL_PIN(112, "GPIO_112"), 12662306a36Sopenharmony_ci PINCTRL_PIN(113, "GPIO_113"), 12762306a36Sopenharmony_ci PINCTRL_PIN(114, "GPIO_114"), 12862306a36Sopenharmony_ci PINCTRL_PIN(115, "GPIO_115"), 12962306a36Sopenharmony_ci PINCTRL_PIN(116, "GPIO_116"), 13062306a36Sopenharmony_ci PINCTRL_PIN(117, "GPIO_117"), 13162306a36Sopenharmony_ci PINCTRL_PIN(118, "GPIO_118"), 13262306a36Sopenharmony_ci PINCTRL_PIN(119, "GPIO_119"), 13362306a36Sopenharmony_ci PINCTRL_PIN(120, "GPIO_120"), 13462306a36Sopenharmony_ci PINCTRL_PIN(121, "GPIO_121"), 13562306a36Sopenharmony_ci PINCTRL_PIN(122, "GPIO_122"), 13662306a36Sopenharmony_ci PINCTRL_PIN(123, "GPIO_123"), 13762306a36Sopenharmony_ci PINCTRL_PIN(124, "GPIO_124"), 13862306a36Sopenharmony_ci PINCTRL_PIN(125, "GPIO_125"), 13962306a36Sopenharmony_ci PINCTRL_PIN(126, "GPIO_126"), 14062306a36Sopenharmony_ci PINCTRL_PIN(127, "GPIO_127"), 14162306a36Sopenharmony_ci PINCTRL_PIN(128, "GPIO_128"), 14262306a36Sopenharmony_ci PINCTRL_PIN(129, "GPIO_129"), 14362306a36Sopenharmony_ci PINCTRL_PIN(130, "GPIO_130"), 14462306a36Sopenharmony_ci PINCTRL_PIN(131, "GPIO_131"), 14562306a36Sopenharmony_ci PINCTRL_PIN(132, "GPIO_132"), 14662306a36Sopenharmony_ci PINCTRL_PIN(133, "GPIO_133"), 14762306a36Sopenharmony_ci PINCTRL_PIN(134, "GPIO_134"), 14862306a36Sopenharmony_ci PINCTRL_PIN(135, "GPIO_135"), 14962306a36Sopenharmony_ci PINCTRL_PIN(136, "GPIO_136"), 15062306a36Sopenharmony_ci PINCTRL_PIN(137, "GPIO_137"), 15162306a36Sopenharmony_ci PINCTRL_PIN(138, "GPIO_138"), 15262306a36Sopenharmony_ci PINCTRL_PIN(139, "GPIO_139"), 15362306a36Sopenharmony_ci PINCTRL_PIN(140, "GPIO_140"), 15462306a36Sopenharmony_ci PINCTRL_PIN(141, "GPIO_141"), 15562306a36Sopenharmony_ci PINCTRL_PIN(142, "GPIO_142"), 15662306a36Sopenharmony_ci PINCTRL_PIN(143, "GPIO_143"), 15762306a36Sopenharmony_ci PINCTRL_PIN(144, "GPIO_144"), 15862306a36Sopenharmony_ci PINCTRL_PIN(145, "GPIO_145"), 15962306a36Sopenharmony_ci 16062306a36Sopenharmony_ci PINCTRL_PIN(146, "SDC1_CLK"), 16162306a36Sopenharmony_ci PINCTRL_PIN(147, "SDC1_CMD"), 16262306a36Sopenharmony_ci PINCTRL_PIN(148, "SDC1_DATA"), 16362306a36Sopenharmony_ci PINCTRL_PIN(149, "SDC2_CLK"), 16462306a36Sopenharmony_ci PINCTRL_PIN(150, "SDC2_CMD"), 16562306a36Sopenharmony_ci PINCTRL_PIN(151, "SDC2_DATA"), 16662306a36Sopenharmony_ci PINCTRL_PIN(152, "HSIC_STROBE"), 16762306a36Sopenharmony_ci PINCTRL_PIN(153, "HSIC_DATA"), 16862306a36Sopenharmony_ci}; 16962306a36Sopenharmony_ci 17062306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } 17162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 17262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 17362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 17462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 17562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 17662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 17762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 17862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 17962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 18062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 18162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 18262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 18362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 18462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 18562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 18662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 18762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 18862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 18962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 19062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 19162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 19262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 19362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 19462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 19562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 19662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 19762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 19862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 19962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 20062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 20162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 20262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 20362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 20462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 20562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 20662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 20762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 20862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 20962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 21062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 21162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 21262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 21362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 21462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 21562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 21662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 21762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 21862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 21962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 22062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 22162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 22262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 22362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 22462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 22562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 22662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 22762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 22862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 22962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 23062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 23162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 23262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 23362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 23462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 23562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 23662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 23762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 23862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 23962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 24062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108); 28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109); 28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110); 28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111); 28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112); 28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113); 28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114); 28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115); 28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116); 28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117); 28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118); 29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119); 29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120); 29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121); 29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122); 29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123); 29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124); 29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125); 29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126); 29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127); 29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128); 30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129); 30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130); 30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131); 30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132); 30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133); 30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134); 30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135); 30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136); 30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137); 30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138); 31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139); 31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140); 31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141); 31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142); 31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143); 31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144); 31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145); 31762306a36Sopenharmony_ci 31862306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 146 }; 31962306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 147 }; 32062306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 148 }; 32162306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 149 }; 32262306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 150 }; 32362306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 151 }; 32462306a36Sopenharmony_cistatic const unsigned int hsic_strobe_pins[] = { 152 }; 32562306a36Sopenharmony_cistatic const unsigned int hsic_data_pins[] = { 153 }; 32662306a36Sopenharmony_ci 32762306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7) \ 32862306a36Sopenharmony_ci { \ 32962306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP("gpio" #id, \ 33062306a36Sopenharmony_ci gpio##id##_pins, \ 33162306a36Sopenharmony_ci ARRAY_SIZE(gpio##id##_pins)), \ 33262306a36Sopenharmony_ci .funcs = (int[]){ \ 33362306a36Sopenharmony_ci msm_mux_gpio, \ 33462306a36Sopenharmony_ci msm_mux_##f1, \ 33562306a36Sopenharmony_ci msm_mux_##f2, \ 33662306a36Sopenharmony_ci msm_mux_##f3, \ 33762306a36Sopenharmony_ci msm_mux_##f4, \ 33862306a36Sopenharmony_ci msm_mux_##f5, \ 33962306a36Sopenharmony_ci msm_mux_##f6, \ 34062306a36Sopenharmony_ci msm_mux_##f7 \ 34162306a36Sopenharmony_ci }, \ 34262306a36Sopenharmony_ci .nfuncs = 8, \ 34362306a36Sopenharmony_ci .ctl_reg = 0x1000 + 0x10 * id, \ 34462306a36Sopenharmony_ci .io_reg = 0x1004 + 0x10 * id, \ 34562306a36Sopenharmony_ci .intr_cfg_reg = 0x1008 + 0x10 * id, \ 34662306a36Sopenharmony_ci .intr_status_reg = 0x100c + 0x10 * id, \ 34762306a36Sopenharmony_ci .intr_target_reg = 0x1008 + 0x10 * id, \ 34862306a36Sopenharmony_ci .mux_bit = 2, \ 34962306a36Sopenharmony_ci .pull_bit = 0, \ 35062306a36Sopenharmony_ci .drv_bit = 6, \ 35162306a36Sopenharmony_ci .oe_bit = 9, \ 35262306a36Sopenharmony_ci .in_bit = 0, \ 35362306a36Sopenharmony_ci .out_bit = 1, \ 35462306a36Sopenharmony_ci .intr_enable_bit = 0, \ 35562306a36Sopenharmony_ci .intr_status_bit = 0, \ 35662306a36Sopenharmony_ci .intr_target_bit = 5, \ 35762306a36Sopenharmony_ci .intr_target_kpss_val = 4, \ 35862306a36Sopenharmony_ci .intr_raw_status_bit = 4, \ 35962306a36Sopenharmony_ci .intr_polarity_bit = 1, \ 36062306a36Sopenharmony_ci .intr_detection_bit = 2, \ 36162306a36Sopenharmony_ci .intr_detection_width = 2, \ 36262306a36Sopenharmony_ci } 36362306a36Sopenharmony_ci 36462306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv) \ 36562306a36Sopenharmony_ci { \ 36662306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 36762306a36Sopenharmony_ci pg_name##_pins, \ 36862306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 36962306a36Sopenharmony_ci .ctl_reg = ctl, \ 37062306a36Sopenharmony_ci .io_reg = 0, \ 37162306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 37262306a36Sopenharmony_ci .intr_status_reg = 0, \ 37362306a36Sopenharmony_ci .intr_target_reg = 0, \ 37462306a36Sopenharmony_ci .mux_bit = -1, \ 37562306a36Sopenharmony_ci .pull_bit = pull, \ 37662306a36Sopenharmony_ci .drv_bit = drv, \ 37762306a36Sopenharmony_ci .oe_bit = -1, \ 37862306a36Sopenharmony_ci .in_bit = -1, \ 37962306a36Sopenharmony_ci .out_bit = -1, \ 38062306a36Sopenharmony_ci .intr_enable_bit = -1, \ 38162306a36Sopenharmony_ci .intr_status_bit = -1, \ 38262306a36Sopenharmony_ci .intr_target_bit = -1, \ 38362306a36Sopenharmony_ci .intr_target_kpss_val = -1, \ 38462306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 38562306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 38662306a36Sopenharmony_ci .intr_detection_bit = -1, \ 38762306a36Sopenharmony_ci .intr_detection_width = -1, \ 38862306a36Sopenharmony_ci } 38962306a36Sopenharmony_ci 39062306a36Sopenharmony_ci#define HSIC_PINGROUP(pg_name, ctl) \ 39162306a36Sopenharmony_ci { \ 39262306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 39362306a36Sopenharmony_ci pg_name##_pins, \ 39462306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 39562306a36Sopenharmony_ci .funcs = (int[]){ \ 39662306a36Sopenharmony_ci msm_mux_gpio, \ 39762306a36Sopenharmony_ci msm_mux_hsic_ctl, \ 39862306a36Sopenharmony_ci }, \ 39962306a36Sopenharmony_ci .nfuncs = 2, \ 40062306a36Sopenharmony_ci .ctl_reg = ctl, \ 40162306a36Sopenharmony_ci .io_reg = 0, \ 40262306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 40362306a36Sopenharmony_ci .intr_status_reg = 0, \ 40462306a36Sopenharmony_ci .intr_target_reg = 0, \ 40562306a36Sopenharmony_ci .mux_bit = 25, \ 40662306a36Sopenharmony_ci .pull_bit = -1, \ 40762306a36Sopenharmony_ci .drv_bit = -1, \ 40862306a36Sopenharmony_ci .oe_bit = -1, \ 40962306a36Sopenharmony_ci .in_bit = -1, \ 41062306a36Sopenharmony_ci .out_bit = -1, \ 41162306a36Sopenharmony_ci .intr_enable_bit = -1, \ 41262306a36Sopenharmony_ci .intr_status_bit = -1, \ 41362306a36Sopenharmony_ci .intr_target_bit = -1, \ 41462306a36Sopenharmony_ci .intr_target_kpss_val = -1, \ 41562306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 41662306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 41762306a36Sopenharmony_ci .intr_detection_bit = -1, \ 41862306a36Sopenharmony_ci .intr_detection_width = -1, \ 41962306a36Sopenharmony_ci } 42062306a36Sopenharmony_ci 42162306a36Sopenharmony_ci/* 42262306a36Sopenharmony_ci * TODO: Add the rest of the possible functions and fill out 42362306a36Sopenharmony_ci * the pingroup table below. 42462306a36Sopenharmony_ci */ 42562306a36Sopenharmony_cienum msm8x74_functions { 42662306a36Sopenharmony_ci msm_mux_gpio, 42762306a36Sopenharmony_ci msm_mux_cci_i2c0, 42862306a36Sopenharmony_ci msm_mux_cci_i2c1, 42962306a36Sopenharmony_ci msm_mux_blsp_i2c1, 43062306a36Sopenharmony_ci msm_mux_blsp_i2c2, 43162306a36Sopenharmony_ci msm_mux_blsp_i2c3, 43262306a36Sopenharmony_ci msm_mux_blsp_i2c4, 43362306a36Sopenharmony_ci msm_mux_blsp_i2c5, 43462306a36Sopenharmony_ci msm_mux_blsp_i2c6, 43562306a36Sopenharmony_ci msm_mux_blsp_i2c7, 43662306a36Sopenharmony_ci msm_mux_blsp_i2c8, 43762306a36Sopenharmony_ci msm_mux_blsp_i2c9, 43862306a36Sopenharmony_ci msm_mux_blsp_i2c10, 43962306a36Sopenharmony_ci msm_mux_blsp_i2c11, 44062306a36Sopenharmony_ci msm_mux_blsp_i2c12, 44162306a36Sopenharmony_ci msm_mux_blsp_spi1, 44262306a36Sopenharmony_ci msm_mux_blsp_spi1_cs1, 44362306a36Sopenharmony_ci msm_mux_blsp_spi1_cs2, 44462306a36Sopenharmony_ci msm_mux_blsp_spi1_cs3, 44562306a36Sopenharmony_ci msm_mux_blsp_spi2, 44662306a36Sopenharmony_ci msm_mux_blsp_spi2_cs1, 44762306a36Sopenharmony_ci msm_mux_blsp_spi2_cs2, 44862306a36Sopenharmony_ci msm_mux_blsp_spi2_cs3, 44962306a36Sopenharmony_ci msm_mux_blsp_spi3, 45062306a36Sopenharmony_ci msm_mux_blsp_spi4, 45162306a36Sopenharmony_ci msm_mux_blsp_spi5, 45262306a36Sopenharmony_ci msm_mux_blsp_spi6, 45362306a36Sopenharmony_ci msm_mux_blsp_spi7, 45462306a36Sopenharmony_ci msm_mux_blsp_spi8, 45562306a36Sopenharmony_ci msm_mux_blsp_spi9, 45662306a36Sopenharmony_ci msm_mux_blsp_spi10, 45762306a36Sopenharmony_ci msm_mux_blsp_spi10_cs1, 45862306a36Sopenharmony_ci msm_mux_blsp_spi10_cs2, 45962306a36Sopenharmony_ci msm_mux_blsp_spi10_cs3, 46062306a36Sopenharmony_ci msm_mux_blsp_spi11, 46162306a36Sopenharmony_ci msm_mux_blsp_spi12, 46262306a36Sopenharmony_ci msm_mux_blsp_uart1, 46362306a36Sopenharmony_ci msm_mux_blsp_uart2, 46462306a36Sopenharmony_ci msm_mux_blsp_uart3, 46562306a36Sopenharmony_ci msm_mux_blsp_uart4, 46662306a36Sopenharmony_ci msm_mux_blsp_uart5, 46762306a36Sopenharmony_ci msm_mux_blsp_uart6, 46862306a36Sopenharmony_ci msm_mux_blsp_uart7, 46962306a36Sopenharmony_ci msm_mux_blsp_uart8, 47062306a36Sopenharmony_ci msm_mux_blsp_uart9, 47162306a36Sopenharmony_ci msm_mux_blsp_uart10, 47262306a36Sopenharmony_ci msm_mux_blsp_uart11, 47362306a36Sopenharmony_ci msm_mux_blsp_uart12, 47462306a36Sopenharmony_ci msm_mux_blsp_uim1, 47562306a36Sopenharmony_ci msm_mux_blsp_uim2, 47662306a36Sopenharmony_ci msm_mux_blsp_uim3, 47762306a36Sopenharmony_ci msm_mux_blsp_uim4, 47862306a36Sopenharmony_ci msm_mux_blsp_uim5, 47962306a36Sopenharmony_ci msm_mux_blsp_uim6, 48062306a36Sopenharmony_ci msm_mux_blsp_uim7, 48162306a36Sopenharmony_ci msm_mux_blsp_uim8, 48262306a36Sopenharmony_ci msm_mux_blsp_uim9, 48362306a36Sopenharmony_ci msm_mux_blsp_uim10, 48462306a36Sopenharmony_ci msm_mux_blsp_uim11, 48562306a36Sopenharmony_ci msm_mux_blsp_uim12, 48662306a36Sopenharmony_ci msm_mux_uim1, 48762306a36Sopenharmony_ci msm_mux_uim2, 48862306a36Sopenharmony_ci msm_mux_uim_batt_alarm, 48962306a36Sopenharmony_ci msm_mux_sdc3, 49062306a36Sopenharmony_ci msm_mux_sdc4, 49162306a36Sopenharmony_ci msm_mux_gcc_gp_clk1, 49262306a36Sopenharmony_ci msm_mux_gcc_gp_clk2, 49362306a36Sopenharmony_ci msm_mux_gcc_gp_clk3, 49462306a36Sopenharmony_ci msm_mux_qua_mi2s, 49562306a36Sopenharmony_ci msm_mux_pri_mi2s, 49662306a36Sopenharmony_ci msm_mux_spkr_mi2s, 49762306a36Sopenharmony_ci msm_mux_ter_mi2s, 49862306a36Sopenharmony_ci msm_mux_sec_mi2s, 49962306a36Sopenharmony_ci msm_mux_hdmi_cec, 50062306a36Sopenharmony_ci msm_mux_hdmi_ddc, 50162306a36Sopenharmony_ci msm_mux_hdmi_hpd, 50262306a36Sopenharmony_ci msm_mux_edp_hpd, 50362306a36Sopenharmony_ci msm_mux_mdp_vsync, 50462306a36Sopenharmony_ci msm_mux_cam_mclk0, 50562306a36Sopenharmony_ci msm_mux_cam_mclk1, 50662306a36Sopenharmony_ci msm_mux_cam_mclk2, 50762306a36Sopenharmony_ci msm_mux_cam_mclk3, 50862306a36Sopenharmony_ci msm_mux_cci_timer0, 50962306a36Sopenharmony_ci msm_mux_cci_timer1, 51062306a36Sopenharmony_ci msm_mux_cci_timer2, 51162306a36Sopenharmony_ci msm_mux_cci_timer3, 51262306a36Sopenharmony_ci msm_mux_cci_timer4, 51362306a36Sopenharmony_ci msm_mux_cci_async_in0, 51462306a36Sopenharmony_ci msm_mux_cci_async_in1, 51562306a36Sopenharmony_ci msm_mux_cci_async_in2, 51662306a36Sopenharmony_ci msm_mux_gp_pdm0, 51762306a36Sopenharmony_ci msm_mux_gp_pdm1, 51862306a36Sopenharmony_ci msm_mux_gp_pdm2, 51962306a36Sopenharmony_ci msm_mux_gp0_clk, 52062306a36Sopenharmony_ci msm_mux_gp1_clk, 52162306a36Sopenharmony_ci msm_mux_gp_mn, 52262306a36Sopenharmony_ci msm_mux_tsif1, 52362306a36Sopenharmony_ci msm_mux_tsif2, 52462306a36Sopenharmony_ci msm_mux_hsic, 52562306a36Sopenharmony_ci msm_mux_grfc, 52662306a36Sopenharmony_ci msm_mux_audio_ref_clk, 52762306a36Sopenharmony_ci msm_mux_bt, 52862306a36Sopenharmony_ci msm_mux_fm, 52962306a36Sopenharmony_ci msm_mux_wlan, 53062306a36Sopenharmony_ci msm_mux_slimbus, 53162306a36Sopenharmony_ci msm_mux_hsic_ctl, 53262306a36Sopenharmony_ci msm_mux_NA, 53362306a36Sopenharmony_ci}; 53462306a36Sopenharmony_ci 53562306a36Sopenharmony_cistatic const char * const gpio_groups[] = { 53662306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 53762306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 53862306a36Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 53962306a36Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 54062306a36Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 54162306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 54262306a36Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 54362306a36Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 54462306a36Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 54562306a36Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 54662306a36Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 54762306a36Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 54862306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 54962306a36Sopenharmony_ci "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 55062306a36Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 55162306a36Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 55262306a36Sopenharmony_ci "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 55362306a36Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 55462306a36Sopenharmony_ci "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 55562306a36Sopenharmony_ci "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", 55662306a36Sopenharmony_ci "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", 55762306a36Sopenharmony_ci "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "hsic_data", 55862306a36Sopenharmony_ci "hsic_strobe", 55962306a36Sopenharmony_ci}; 56062306a36Sopenharmony_ci 56162306a36Sopenharmony_cistatic const char * const blsp_uart1_groups[] = { 56262306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3" 56362306a36Sopenharmony_ci}; 56462306a36Sopenharmony_cistatic const char * const blsp_uim1_groups[] = { "gpio0", "gpio1" }; 56562306a36Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = { "gpio2", "gpio3" }; 56662306a36Sopenharmony_cistatic const char * const blsp_spi1_groups[] = { 56762306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3" 56862306a36Sopenharmony_ci}; 56962306a36Sopenharmony_cistatic const char * const blsp_spi1_cs1_groups[] = { "gpio8" }; 57062306a36Sopenharmony_cistatic const char * const blsp_spi1_cs2_groups[] = { "gpio9", "gpio11" }; 57162306a36Sopenharmony_cistatic const char * const blsp_spi1_cs3_groups[] = { "gpio10" }; 57262306a36Sopenharmony_ci 57362306a36Sopenharmony_cistatic const char * const blsp_uart2_groups[] = { 57462306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7" 57562306a36Sopenharmony_ci}; 57662306a36Sopenharmony_cistatic const char * const blsp_uim2_groups[] = { "gpio4", "gpio5" }; 57762306a36Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = { "gpio6", "gpio7" }; 57862306a36Sopenharmony_cistatic const char * const blsp_spi2_groups[] = { 57962306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7" 58062306a36Sopenharmony_ci}; 58162306a36Sopenharmony_cistatic const char * const blsp_spi2_cs1_groups[] = { "gpio53", "gpio62" }; 58262306a36Sopenharmony_cistatic const char * const blsp_spi2_cs2_groups[] = { "gpio54", "gpio63" }; 58362306a36Sopenharmony_cistatic const char * const blsp_spi2_cs3_groups[] = { "gpio66" }; 58462306a36Sopenharmony_ci 58562306a36Sopenharmony_cistatic const char * const blsp_uart3_groups[] = { 58662306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11" 58762306a36Sopenharmony_ci}; 58862306a36Sopenharmony_cistatic const char * const blsp_uim3_groups[] = { "gpio8", "gpio9" }; 58962306a36Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = { "gpio10", "gpio11" }; 59062306a36Sopenharmony_cistatic const char * const blsp_spi3_groups[] = { 59162306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11" 59262306a36Sopenharmony_ci}; 59362306a36Sopenharmony_ci 59462306a36Sopenharmony_cistatic const char * const cci_i2c0_groups[] = { "gpio19", "gpio20" }; 59562306a36Sopenharmony_cistatic const char * const cci_i2c1_groups[] = { "gpio21", "gpio22" }; 59662306a36Sopenharmony_ci 59762306a36Sopenharmony_cistatic const char * const blsp_uart4_groups[] = { 59862306a36Sopenharmony_ci "gpio19", "gpio20", "gpio21", "gpio22" 59962306a36Sopenharmony_ci}; 60062306a36Sopenharmony_cistatic const char * const blsp_uim4_groups[] = { "gpio19", "gpio20" }; 60162306a36Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = { "gpio21", "gpio22" }; 60262306a36Sopenharmony_cistatic const char * const blsp_spi4_groups[] = { 60362306a36Sopenharmony_ci "gpio19", "gpio20", "gpio21", "gpio22" 60462306a36Sopenharmony_ci}; 60562306a36Sopenharmony_ci 60662306a36Sopenharmony_cistatic const char * const blsp_uart5_groups[] = { 60762306a36Sopenharmony_ci "gpio23", "gpio24", "gpio25", "gpio26" 60862306a36Sopenharmony_ci}; 60962306a36Sopenharmony_cistatic const char * const blsp_uim5_groups[] = { "gpio23", "gpio24" }; 61062306a36Sopenharmony_cistatic const char * const blsp_i2c5_groups[] = { "gpio25", "gpio26" }; 61162306a36Sopenharmony_cistatic const char * const blsp_spi5_groups[] = { 61262306a36Sopenharmony_ci "gpio23", "gpio24", "gpio25", "gpio26" 61362306a36Sopenharmony_ci}; 61462306a36Sopenharmony_ci 61562306a36Sopenharmony_cistatic const char * const blsp_uart6_groups[] = { 61662306a36Sopenharmony_ci "gpio27", "gpio28", "gpio29", "gpio30" 61762306a36Sopenharmony_ci}; 61862306a36Sopenharmony_cistatic const char * const blsp_uim6_groups[] = { "gpio27", "gpio28" }; 61962306a36Sopenharmony_cistatic const char * const blsp_i2c6_groups[] = { "gpio29", "gpio30" }; 62062306a36Sopenharmony_cistatic const char * const blsp_spi6_groups[] = { 62162306a36Sopenharmony_ci "gpio27", "gpio28", "gpio29", "gpio30" 62262306a36Sopenharmony_ci}; 62362306a36Sopenharmony_ci 62462306a36Sopenharmony_cistatic const char * const blsp_uart7_groups[] = { 62562306a36Sopenharmony_ci "gpio41", "gpio42", "gpio43", "gpio44" 62662306a36Sopenharmony_ci}; 62762306a36Sopenharmony_cistatic const char * const blsp_uim7_groups[] = { "gpio41", "gpio42" }; 62862306a36Sopenharmony_cistatic const char * const blsp_i2c7_groups[] = { "gpio43", "gpio44" }; 62962306a36Sopenharmony_cistatic const char * const blsp_spi7_groups[] = { 63062306a36Sopenharmony_ci "gpio41", "gpio42", "gpio43", "gpio44" 63162306a36Sopenharmony_ci}; 63262306a36Sopenharmony_ci 63362306a36Sopenharmony_cistatic const char * const blsp_uart8_groups[] = { 63462306a36Sopenharmony_ci "gpio45", "gpio46", "gpio47", "gpio48" 63562306a36Sopenharmony_ci}; 63662306a36Sopenharmony_cistatic const char * const blsp_uim8_groups[] = { "gpio45", "gpio46" }; 63762306a36Sopenharmony_cistatic const char * const blsp_i2c8_groups[] = { "gpio47", "gpio48" }; 63862306a36Sopenharmony_cistatic const char * const blsp_spi8_groups[] = { 63962306a36Sopenharmony_ci "gpio45", "gpio46", "gpio47", "gpio48" 64062306a36Sopenharmony_ci}; 64162306a36Sopenharmony_ci 64262306a36Sopenharmony_cistatic const char * const blsp_uart9_groups[] = { 64362306a36Sopenharmony_ci "gpio49", "gpio50", "gpio51", "gpio52" 64462306a36Sopenharmony_ci}; 64562306a36Sopenharmony_cistatic const char * const blsp_uim9_groups[] = { "gpio49", "gpio50" }; 64662306a36Sopenharmony_cistatic const char * const blsp_i2c9_groups[] = { "gpio51", "gpio52" }; 64762306a36Sopenharmony_cistatic const char * const blsp_spi9_groups[] = { 64862306a36Sopenharmony_ci "gpio49", "gpio50", "gpio51", "gpio52" 64962306a36Sopenharmony_ci}; 65062306a36Sopenharmony_ci 65162306a36Sopenharmony_cistatic const char * const blsp_uart10_groups[] = { 65262306a36Sopenharmony_ci "gpio53", "gpio54", "gpio55", "gpio56" 65362306a36Sopenharmony_ci}; 65462306a36Sopenharmony_cistatic const char * const blsp_uim10_groups[] = { "gpio53", "gpio54" }; 65562306a36Sopenharmony_cistatic const char * const blsp_i2c10_groups[] = { "gpio55", "gpio56" }; 65662306a36Sopenharmony_cistatic const char * const blsp_spi10_groups[] = { 65762306a36Sopenharmony_ci "gpio53", "gpio54", "gpio55", "gpio56" 65862306a36Sopenharmony_ci}; 65962306a36Sopenharmony_cistatic const char * const blsp_spi10_cs1_groups[] = { "gpio47", "gpio67" }; 66062306a36Sopenharmony_cistatic const char * const blsp_spi10_cs2_groups[] = { "gpio48", "gpio68" }; 66162306a36Sopenharmony_cistatic const char * const blsp_spi10_cs3_groups[] = { "gpio90" }; 66262306a36Sopenharmony_ci 66362306a36Sopenharmony_cistatic const char * const blsp_uart11_groups[] = { 66462306a36Sopenharmony_ci "gpio81", "gpio82", "gpio83", "gpio84" 66562306a36Sopenharmony_ci}; 66662306a36Sopenharmony_cistatic const char * const blsp_uim11_groups[] = { "gpio81", "gpio82" }; 66762306a36Sopenharmony_cistatic const char * const blsp_i2c11_groups[] = { "gpio83", "gpio84" }; 66862306a36Sopenharmony_cistatic const char * const blsp_spi11_groups[] = { 66962306a36Sopenharmony_ci "gpio81", "gpio82", "gpio83", "gpio84" 67062306a36Sopenharmony_ci}; 67162306a36Sopenharmony_ci 67262306a36Sopenharmony_cistatic const char * const blsp_uart12_groups[] = { 67362306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88" 67462306a36Sopenharmony_ci}; 67562306a36Sopenharmony_cistatic const char * const blsp_uim12_groups[] = { "gpio85", "gpio86" }; 67662306a36Sopenharmony_cistatic const char * const blsp_i2c12_groups[] = { "gpio87", "gpio88" }; 67762306a36Sopenharmony_cistatic const char * const blsp_spi12_groups[] = { 67862306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88" 67962306a36Sopenharmony_ci}; 68062306a36Sopenharmony_ci 68162306a36Sopenharmony_cistatic const char * const uim1_groups[] = { 68262306a36Sopenharmony_ci "gpio97", "gpio98", "gpio99", "gpio100" 68362306a36Sopenharmony_ci}; 68462306a36Sopenharmony_ci 68562306a36Sopenharmony_cistatic const char * const uim2_groups[] = { 68662306a36Sopenharmony_ci "gpio49", "gpio50", "gpio51", "gpio52" 68762306a36Sopenharmony_ci}; 68862306a36Sopenharmony_ci 68962306a36Sopenharmony_cistatic const char * const uim_batt_alarm_groups[] = { "gpio101" }; 69062306a36Sopenharmony_ci 69162306a36Sopenharmony_cistatic const char * const sdc3_groups[] = { 69262306a36Sopenharmony_ci "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40" 69362306a36Sopenharmony_ci}; 69462306a36Sopenharmony_ci 69562306a36Sopenharmony_cistatic const char * const sdc4_groups[] = { 69662306a36Sopenharmony_ci "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96" 69762306a36Sopenharmony_ci}; 69862306a36Sopenharmony_ci 69962306a36Sopenharmony_cistatic const char * const gp0_clk_groups[] = { "gpio26" }; 70062306a36Sopenharmony_cistatic const char * const gp1_clk_groups[] = { "gpio27", "gpio57", "gpio78" }; 70162306a36Sopenharmony_cistatic const char * const gp_mn_groups[] = { "gpio29" }; 70262306a36Sopenharmony_cistatic const char * const gcc_gp_clk1_groups[] = { "gpio57", "gpio78" }; 70362306a36Sopenharmony_cistatic const char * const gcc_gp_clk2_groups[] = { "gpio58", "gpio81" }; 70462306a36Sopenharmony_cistatic const char * const gcc_gp_clk3_groups[] = { "gpio59", "gpio82" }; 70562306a36Sopenharmony_ci 70662306a36Sopenharmony_cistatic const char * const qua_mi2s_groups[] = { 70762306a36Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 70862306a36Sopenharmony_ci}; 70962306a36Sopenharmony_ci 71062306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = { 71162306a36Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68" 71262306a36Sopenharmony_ci}; 71362306a36Sopenharmony_ci 71462306a36Sopenharmony_cistatic const char * const spkr_mi2s_groups[] = { 71562306a36Sopenharmony_ci "gpio69", "gpio70", "gpio71", "gpio72" 71662306a36Sopenharmony_ci}; 71762306a36Sopenharmony_ci 71862306a36Sopenharmony_cistatic const char * const ter_mi2s_groups[] = { 71962306a36Sopenharmony_ci "gpio73", "gpio74", "gpio75", "gpio76", "gpio77" 72062306a36Sopenharmony_ci}; 72162306a36Sopenharmony_ci 72262306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = { 72362306a36Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82" 72462306a36Sopenharmony_ci}; 72562306a36Sopenharmony_ci 72662306a36Sopenharmony_cistatic const char * const hdmi_cec_groups[] = { "gpio31" }; 72762306a36Sopenharmony_cistatic const char * const hdmi_ddc_groups[] = { "gpio32", "gpio33" }; 72862306a36Sopenharmony_cistatic const char * const hdmi_hpd_groups[] = { "gpio34" }; 72962306a36Sopenharmony_cistatic const char * const edp_hpd_groups[] = { "gpio102" }; 73062306a36Sopenharmony_ci 73162306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = { "gpio12", "gpio13", "gpio14" }; 73262306a36Sopenharmony_cistatic const char * const cam_mclk0_groups[] = { "gpio15" }; 73362306a36Sopenharmony_cistatic const char * const cam_mclk1_groups[] = { "gpio16" }; 73462306a36Sopenharmony_cistatic const char * const cam_mclk2_groups[] = { "gpio17" }; 73562306a36Sopenharmony_cistatic const char * const cam_mclk3_groups[] = { "gpio18" }; 73662306a36Sopenharmony_ci 73762306a36Sopenharmony_cistatic const char * const cci_timer0_groups[] = { "gpio23" }; 73862306a36Sopenharmony_cistatic const char * const cci_timer1_groups[] = { "gpio24" }; 73962306a36Sopenharmony_cistatic const char * const cci_timer2_groups[] = { "gpio25" }; 74062306a36Sopenharmony_cistatic const char * const cci_timer3_groups[] = { "gpio26" }; 74162306a36Sopenharmony_cistatic const char * const cci_timer4_groups[] = { "gpio27" }; 74262306a36Sopenharmony_cistatic const char * const cci_async_in0_groups[] = { "gpio28" }; 74362306a36Sopenharmony_cistatic const char * const cci_async_in1_groups[] = { "gpio26" }; 74462306a36Sopenharmony_cistatic const char * const cci_async_in2_groups[] = { "gpio27" }; 74562306a36Sopenharmony_ci 74662306a36Sopenharmony_cistatic const char * const gp_pdm0_groups[] = { "gpio54", "gpio68" }; 74762306a36Sopenharmony_cistatic const char * const gp_pdm1_groups[] = { "gpio74", "gpio86" }; 74862306a36Sopenharmony_cistatic const char * const gp_pdm2_groups[] = { "gpio63", "gpio79" }; 74962306a36Sopenharmony_ci 75062306a36Sopenharmony_cistatic const char * const tsif1_groups[] = { 75162306a36Sopenharmony_ci "gpio89", "gpio90", "gpio91", "gpio92" 75262306a36Sopenharmony_ci}; 75362306a36Sopenharmony_ci 75462306a36Sopenharmony_cistatic const char * const tsif2_groups[] = { 75562306a36Sopenharmony_ci "gpio93", "gpio94", "gpio95", "gpio96" 75662306a36Sopenharmony_ci}; 75762306a36Sopenharmony_ci 75862306a36Sopenharmony_cistatic const char * const hsic_groups[] = { "gpio144", "gpio145" }; 75962306a36Sopenharmony_cistatic const char * const grfc_groups[] = { 76062306a36Sopenharmony_ci "gpio104", "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", 76162306a36Sopenharmony_ci "gpio110", "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", 76262306a36Sopenharmony_ci "gpio116", "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", 76362306a36Sopenharmony_ci "gpio122", "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", 76462306a36Sopenharmony_ci "gpio128", "gpio136", "gpio137", "gpio141", "gpio143" 76562306a36Sopenharmony_ci}; 76662306a36Sopenharmony_ci 76762306a36Sopenharmony_cistatic const char * const audio_ref_clk_groups[] = { "gpio69" }; 76862306a36Sopenharmony_ci 76962306a36Sopenharmony_cistatic const char * const bt_groups[] = { "gpio35", "gpio43", "gpio44" }; 77062306a36Sopenharmony_ci 77162306a36Sopenharmony_cistatic const char * const fm_groups[] = { "gpio41", "gpio42" }; 77262306a36Sopenharmony_ci 77362306a36Sopenharmony_cistatic const char * const wlan_groups[] = { 77462306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40" 77562306a36Sopenharmony_ci}; 77662306a36Sopenharmony_ci 77762306a36Sopenharmony_cistatic const char * const slimbus_groups[] = { "gpio70", "gpio71" }; 77862306a36Sopenharmony_cistatic const char * const hsic_ctl_groups[] = { "hsic_strobe", "hsic_data" }; 77962306a36Sopenharmony_ci 78062306a36Sopenharmony_cistatic const struct pinfunction msm8x74_functions[] = { 78162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gpio), 78262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_i2c0), 78362306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_i2c1), 78462306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1), 78562306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2), 78662306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim_batt_alarm), 78762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim1), 78862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim2), 78962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim3), 79062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim4), 79162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim5), 79262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim6), 79362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim7), 79462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim8), 79562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim9), 79662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim10), 79762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim11), 79862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim12), 79962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c1), 80062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c2), 80162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c3), 80262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c4), 80362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c5), 80462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c6), 80562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c7), 80662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c8), 80762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c9), 80862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c10), 80962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c11), 81062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c12), 81162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1), 81262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1_cs1), 81362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1_cs2), 81462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1_cs3), 81562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2), 81662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2_cs1), 81762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2_cs2), 81862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2_cs3), 81962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi3), 82062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi4), 82162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi5), 82262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi6), 82362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi7), 82462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi8), 82562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi9), 82662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi10), 82762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi10_cs1), 82862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi10_cs2), 82962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi10_cs3), 83062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi11), 83162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi12), 83262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart1), 83362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart2), 83462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart3), 83562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart4), 83662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart5), 83762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart6), 83862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart7), 83962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart8), 84062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart9), 84162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart10), 84262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart11), 84362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart12), 84462306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc3), 84562306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc4), 84662306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp_clk1), 84762306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp_clk2), 84862306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp_clk3), 84962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qua_mi2s), 85062306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s), 85162306a36Sopenharmony_ci MSM_PIN_FUNCTION(spkr_mi2s), 85262306a36Sopenharmony_ci MSM_PIN_FUNCTION(ter_mi2s), 85362306a36Sopenharmony_ci MSM_PIN_FUNCTION(sec_mi2s), 85462306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync), 85562306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk0), 85662306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk1), 85762306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk2), 85862306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk3), 85962306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer0), 86062306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer1), 86162306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer2), 86262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer3), 86362306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer4), 86462306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_async_in0), 86562306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_async_in1), 86662306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_async_in2), 86762306a36Sopenharmony_ci MSM_PIN_FUNCTION(hdmi_cec), 86862306a36Sopenharmony_ci MSM_PIN_FUNCTION(hdmi_ddc), 86962306a36Sopenharmony_ci MSM_PIN_FUNCTION(hdmi_hpd), 87062306a36Sopenharmony_ci MSM_PIN_FUNCTION(edp_hpd), 87162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_pdm0), 87262306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_pdm1), 87362306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_pdm2), 87462306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp0_clk), 87562306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp1_clk), 87662306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_mn), 87762306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1), 87862306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif2), 87962306a36Sopenharmony_ci MSM_PIN_FUNCTION(hsic), 88062306a36Sopenharmony_ci MSM_PIN_FUNCTION(grfc), 88162306a36Sopenharmony_ci MSM_PIN_FUNCTION(audio_ref_clk), 88262306a36Sopenharmony_ci MSM_PIN_FUNCTION(bt), 88362306a36Sopenharmony_ci MSM_PIN_FUNCTION(fm), 88462306a36Sopenharmony_ci MSM_PIN_FUNCTION(wlan), 88562306a36Sopenharmony_ci MSM_PIN_FUNCTION(slimbus), 88662306a36Sopenharmony_ci MSM_PIN_FUNCTION(hsic_ctl), 88762306a36Sopenharmony_ci}; 88862306a36Sopenharmony_ci 88962306a36Sopenharmony_cistatic const struct msm_pingroup msm8x74_groups[] = { 89062306a36Sopenharmony_ci PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA), 89162306a36Sopenharmony_ci PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA), 89262306a36Sopenharmony_ci PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA), 89362306a36Sopenharmony_ci PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA), 89462306a36Sopenharmony_ci PINGROUP(4, blsp_spi2, blsp_uart2, blsp_uim2, NA, NA, NA, NA), 89562306a36Sopenharmony_ci PINGROUP(5, blsp_spi2, blsp_uart2, blsp_uim2, NA, NA, NA, NA), 89662306a36Sopenharmony_ci PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA), 89762306a36Sopenharmony_ci PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA), 89862306a36Sopenharmony_ci PINGROUP(8, blsp_spi3, blsp_uart3, blsp_uim3, blsp_spi1_cs1, NA, NA, NA), 89962306a36Sopenharmony_ci PINGROUP(9, blsp_spi3, blsp_uart3, blsp_uim3, blsp_spi1_cs2, NA, NA, NA), 90062306a36Sopenharmony_ci PINGROUP(10, blsp_spi3, blsp_uart3, blsp_i2c3, blsp_spi1_cs3, NA, NA, NA), 90162306a36Sopenharmony_ci PINGROUP(11, blsp_spi3, blsp_uart3, blsp_i2c3, blsp_spi1_cs2, NA, NA, NA), 90262306a36Sopenharmony_ci PINGROUP(12, mdp_vsync, NA, NA, NA, NA, NA, NA), 90362306a36Sopenharmony_ci PINGROUP(13, mdp_vsync, NA, NA, NA, NA, NA, NA), 90462306a36Sopenharmony_ci PINGROUP(14, mdp_vsync, NA, NA, NA, NA, NA, NA), 90562306a36Sopenharmony_ci PINGROUP(15, cam_mclk0, NA, NA, NA, NA, NA, NA), 90662306a36Sopenharmony_ci PINGROUP(16, cam_mclk1, NA, NA, NA, NA, NA, NA), 90762306a36Sopenharmony_ci PINGROUP(17, cam_mclk2, NA, NA, NA, NA, NA, NA), 90862306a36Sopenharmony_ci PINGROUP(18, cam_mclk3, NA, NA, NA, NA, NA, NA), 90962306a36Sopenharmony_ci PINGROUP(19, cci_i2c0, blsp_spi4, blsp_uart4, blsp_uim4, NA, NA, NA), 91062306a36Sopenharmony_ci PINGROUP(20, cci_i2c0, blsp_spi4, blsp_uart4, blsp_uim4, NA, NA, NA), 91162306a36Sopenharmony_ci PINGROUP(21, cci_i2c1, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA), 91262306a36Sopenharmony_ci PINGROUP(22, cci_i2c1, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA), 91362306a36Sopenharmony_ci PINGROUP(23, cci_timer0, blsp_spi5, blsp_uart5, blsp_uim5, NA, NA, NA), 91462306a36Sopenharmony_ci PINGROUP(24, cci_timer1, blsp_spi5, blsp_uart5, blsp_uim5, NA, NA, NA), 91562306a36Sopenharmony_ci PINGROUP(25, cci_timer2, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA), 91662306a36Sopenharmony_ci PINGROUP(26, cci_timer3, cci_async_in1, blsp_spi5, blsp_uart5, blsp_i2c5, gp0_clk, NA), 91762306a36Sopenharmony_ci PINGROUP(27, cci_timer4, cci_async_in2, blsp_spi6, blsp_uart6, blsp_i2c6, gp1_clk, NA), 91862306a36Sopenharmony_ci PINGROUP(28, cci_async_in0, blsp_spi6, blsp_uart6, blsp_uim6, NA, NA, NA), 91962306a36Sopenharmony_ci PINGROUP(29, blsp_spi6, blsp_uart6, blsp_i2c6, gp_mn, NA, NA, NA), 92062306a36Sopenharmony_ci PINGROUP(30, blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA), 92162306a36Sopenharmony_ci PINGROUP(31, hdmi_cec, NA, NA, NA, NA, NA, NA), 92262306a36Sopenharmony_ci PINGROUP(32, hdmi_ddc, NA, NA, NA, NA, NA, NA), 92362306a36Sopenharmony_ci PINGROUP(33, hdmi_ddc, NA, NA, NA, NA, NA, NA), 92462306a36Sopenharmony_ci PINGROUP(34, hdmi_hpd, NA, NA, NA, NA, NA, NA), 92562306a36Sopenharmony_ci PINGROUP(35, bt, sdc3, NA, NA, NA, NA, NA), 92662306a36Sopenharmony_ci PINGROUP(36, wlan, sdc3, NA, NA, NA, NA, NA), 92762306a36Sopenharmony_ci PINGROUP(37, wlan, sdc3, NA, NA, NA, NA, NA), 92862306a36Sopenharmony_ci PINGROUP(38, wlan, sdc3, NA, NA, NA, NA, NA), 92962306a36Sopenharmony_ci PINGROUP(39, wlan, sdc3, NA, NA, NA, NA, NA), 93062306a36Sopenharmony_ci PINGROUP(40, wlan, sdc3, NA, NA, NA, NA, NA), 93162306a36Sopenharmony_ci PINGROUP(41, fm, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA, NA), 93262306a36Sopenharmony_ci PINGROUP(42, fm, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA, NA), 93362306a36Sopenharmony_ci PINGROUP(43, bt, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA), 93462306a36Sopenharmony_ci PINGROUP(44, bt, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA), 93562306a36Sopenharmony_ci PINGROUP(45, blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA), 93662306a36Sopenharmony_ci PINGROUP(46, blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA), 93762306a36Sopenharmony_ci PINGROUP(47, blsp_spi8, blsp_uart8, blsp_i2c8, blsp_spi10_cs1, NA, NA, NA), 93862306a36Sopenharmony_ci PINGROUP(48, blsp_spi8, blsp_uart8, blsp_i2c8, blsp_spi10_cs2, NA, NA, NA), 93962306a36Sopenharmony_ci PINGROUP(49, uim2, blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA), 94062306a36Sopenharmony_ci PINGROUP(50, uim2, blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA), 94162306a36Sopenharmony_ci PINGROUP(51, uim2, blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA), 94262306a36Sopenharmony_ci PINGROUP(52, uim2, blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA), 94362306a36Sopenharmony_ci PINGROUP(53, blsp_spi10, blsp_uart10, blsp_uim10, blsp_spi2_cs1, NA, NA, NA), 94462306a36Sopenharmony_ci PINGROUP(54, blsp_spi10, blsp_uart10, blsp_uim10, blsp_spi2_cs2, gp_pdm0, NA, NA), 94562306a36Sopenharmony_ci PINGROUP(55, blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA, NA, NA), 94662306a36Sopenharmony_ci PINGROUP(56, blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA, NA, NA), 94762306a36Sopenharmony_ci PINGROUP(57, qua_mi2s, gcc_gp_clk1, NA, NA, NA, NA, NA), 94862306a36Sopenharmony_ci PINGROUP(58, qua_mi2s, gcc_gp_clk2, NA, NA, NA, NA, NA), 94962306a36Sopenharmony_ci PINGROUP(59, qua_mi2s, gcc_gp_clk3, NA, NA, NA, NA, NA), 95062306a36Sopenharmony_ci PINGROUP(60, qua_mi2s, NA, NA, NA, NA, NA, NA), 95162306a36Sopenharmony_ci PINGROUP(61, qua_mi2s, NA, NA, NA, NA, NA, NA), 95262306a36Sopenharmony_ci PINGROUP(62, qua_mi2s, blsp_spi2_cs1, NA, NA, NA, NA, NA), 95362306a36Sopenharmony_ci PINGROUP(63, qua_mi2s, blsp_spi2_cs2, gp_pdm2, NA, NA, NA, NA), 95462306a36Sopenharmony_ci PINGROUP(64, pri_mi2s, NA, NA, NA, NA, NA, NA), 95562306a36Sopenharmony_ci PINGROUP(65, pri_mi2s, NA, NA, NA, NA, NA, NA), 95662306a36Sopenharmony_ci PINGROUP(66, pri_mi2s, blsp_spi2_cs3, NA, NA, NA, NA, NA), 95762306a36Sopenharmony_ci PINGROUP(67, pri_mi2s, blsp_spi10_cs1, NA, NA, NA, NA, NA), 95862306a36Sopenharmony_ci PINGROUP(68, pri_mi2s, blsp_spi10_cs2, gp_pdm0, NA, NA, NA, NA), 95962306a36Sopenharmony_ci PINGROUP(69, spkr_mi2s, audio_ref_clk, NA, NA, NA, NA, NA), 96062306a36Sopenharmony_ci PINGROUP(70, slimbus, spkr_mi2s, NA, NA, NA, NA, NA), 96162306a36Sopenharmony_ci PINGROUP(71, slimbus, spkr_mi2s, NA, NA, NA, NA, NA), 96262306a36Sopenharmony_ci PINGROUP(72, spkr_mi2s, NA, NA, NA, NA, NA, NA), 96362306a36Sopenharmony_ci PINGROUP(73, ter_mi2s, NA, NA, NA, NA, NA, NA), 96462306a36Sopenharmony_ci PINGROUP(74, ter_mi2s, gp_pdm1, NA, NA, NA, NA, NA), 96562306a36Sopenharmony_ci PINGROUP(75, ter_mi2s, NA, NA, NA, NA, NA, NA), 96662306a36Sopenharmony_ci PINGROUP(76, ter_mi2s, NA, NA, NA, NA, NA, NA), 96762306a36Sopenharmony_ci PINGROUP(77, ter_mi2s, NA, NA, NA, NA, NA, NA), 96862306a36Sopenharmony_ci PINGROUP(78, sec_mi2s, gcc_gp_clk1, NA, NA, NA, NA, NA), 96962306a36Sopenharmony_ci PINGROUP(79, sec_mi2s, gp_pdm2, NA, NA, NA, NA, NA), 97062306a36Sopenharmony_ci PINGROUP(80, sec_mi2s, NA, NA, NA, NA, NA, NA), 97162306a36Sopenharmony_ci PINGROUP(81, sec_mi2s, blsp_spi11, blsp_uart11, blsp_uim11, gcc_gp_clk2, NA, NA), 97262306a36Sopenharmony_ci PINGROUP(82, sec_mi2s, blsp_spi11, blsp_uart11, blsp_uim11, gcc_gp_clk3, NA, NA), 97362306a36Sopenharmony_ci PINGROUP(83, blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA), 97462306a36Sopenharmony_ci PINGROUP(84, blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA), 97562306a36Sopenharmony_ci PINGROUP(85, blsp_spi12, blsp_uart12, blsp_uim12, NA, NA, NA, NA), 97662306a36Sopenharmony_ci PINGROUP(86, blsp_spi12, blsp_uart12, blsp_uim12, gp_pdm1, NA, NA, NA), 97762306a36Sopenharmony_ci PINGROUP(87, blsp_spi12, blsp_uart12, blsp_i2c12, NA, NA, NA, NA), 97862306a36Sopenharmony_ci PINGROUP(88, blsp_spi12, blsp_uart12, blsp_i2c12, NA, NA, NA, NA), 97962306a36Sopenharmony_ci PINGROUP(89, tsif1, NA, NA, NA, NA, NA, NA), 98062306a36Sopenharmony_ci PINGROUP(90, tsif1, blsp_spi10_cs3, NA, NA, NA, NA, NA), 98162306a36Sopenharmony_ci PINGROUP(91, tsif1, sdc4, NA, NA, NA, NA, NA), 98262306a36Sopenharmony_ci PINGROUP(92, tsif1, sdc4, NA, NA, NA, NA, NA), 98362306a36Sopenharmony_ci PINGROUP(93, tsif2, sdc4, NA, NA, NA, NA, NA), 98462306a36Sopenharmony_ci PINGROUP(94, tsif2, sdc4, NA, NA, NA, NA, NA), 98562306a36Sopenharmony_ci PINGROUP(95, tsif2, sdc4, NA, NA, NA, NA, NA), 98662306a36Sopenharmony_ci PINGROUP(96, tsif2, sdc4, NA, NA, NA, NA, NA), 98762306a36Sopenharmony_ci PINGROUP(97, uim1, NA, NA, NA, NA, NA, NA), 98862306a36Sopenharmony_ci PINGROUP(98, uim1, NA, NA, NA, NA, NA, NA), 98962306a36Sopenharmony_ci PINGROUP(99, uim1, NA, NA, NA, NA, NA, NA), 99062306a36Sopenharmony_ci PINGROUP(100, uim1, NA, NA, NA, NA, NA, NA), 99162306a36Sopenharmony_ci PINGROUP(101, uim_batt_alarm, NA, NA, NA, NA, NA, NA), 99262306a36Sopenharmony_ci PINGROUP(102, edp_hpd, NA, NA, NA, NA, NA, NA), 99362306a36Sopenharmony_ci PINGROUP(103, NA, NA, NA, NA, NA, NA, NA), 99462306a36Sopenharmony_ci PINGROUP(104, grfc, NA, NA, NA, NA, NA, NA), 99562306a36Sopenharmony_ci PINGROUP(105, grfc, NA, NA, NA, NA, NA, NA), 99662306a36Sopenharmony_ci PINGROUP(106, grfc, NA, NA, NA, NA, NA, NA), 99762306a36Sopenharmony_ci PINGROUP(107, grfc, NA, NA, NA, NA, NA, NA), 99862306a36Sopenharmony_ci PINGROUP(108, grfc, NA, NA, NA, NA, NA, NA), 99962306a36Sopenharmony_ci PINGROUP(109, grfc, NA, NA, NA, NA, NA, NA), 100062306a36Sopenharmony_ci PINGROUP(110, grfc, NA, NA, NA, NA, NA, NA), 100162306a36Sopenharmony_ci PINGROUP(111, grfc, NA, NA, NA, NA, NA, NA), 100262306a36Sopenharmony_ci PINGROUP(112, grfc, NA, NA, NA, NA, NA, NA), 100362306a36Sopenharmony_ci PINGROUP(113, grfc, NA, NA, NA, NA, NA, NA), 100462306a36Sopenharmony_ci PINGROUP(114, grfc, NA, NA, NA, NA, NA, NA), 100562306a36Sopenharmony_ci PINGROUP(115, grfc, NA, NA, NA, NA, NA, NA), 100662306a36Sopenharmony_ci PINGROUP(116, grfc, NA, NA, NA, NA, NA, NA), 100762306a36Sopenharmony_ci PINGROUP(117, grfc, NA, NA, NA, NA, NA, NA), 100862306a36Sopenharmony_ci PINGROUP(118, grfc, NA, NA, NA, NA, NA, NA), 100962306a36Sopenharmony_ci PINGROUP(119, grfc, NA, NA, NA, NA, NA, NA), 101062306a36Sopenharmony_ci PINGROUP(120, grfc, NA, NA, NA, NA, NA, NA), 101162306a36Sopenharmony_ci PINGROUP(121, grfc, NA, NA, NA, NA, NA, NA), 101262306a36Sopenharmony_ci PINGROUP(122, grfc, NA, NA, NA, NA, NA, NA), 101362306a36Sopenharmony_ci PINGROUP(123, grfc, NA, NA, NA, NA, NA, NA), 101462306a36Sopenharmony_ci PINGROUP(124, grfc, NA, NA, NA, NA, NA, NA), 101562306a36Sopenharmony_ci PINGROUP(125, grfc, NA, NA, NA, NA, NA, NA), 101662306a36Sopenharmony_ci PINGROUP(126, grfc, NA, NA, NA, NA, NA, NA), 101762306a36Sopenharmony_ci PINGROUP(127, grfc, NA, NA, NA, NA, NA, NA), 101862306a36Sopenharmony_ci PINGROUP(128, NA, grfc, NA, NA, NA, NA, NA), 101962306a36Sopenharmony_ci PINGROUP(129, NA, NA, NA, NA, NA, NA, NA), 102062306a36Sopenharmony_ci PINGROUP(130, NA, NA, NA, NA, NA, NA, NA), 102162306a36Sopenharmony_ci PINGROUP(131, NA, NA, NA, NA, NA, NA, NA), 102262306a36Sopenharmony_ci PINGROUP(132, NA, NA, NA, NA, NA, NA, NA), 102362306a36Sopenharmony_ci PINGROUP(133, NA, NA, NA, NA, NA, NA, NA), 102462306a36Sopenharmony_ci PINGROUP(134, NA, NA, NA, NA, NA, NA, NA), 102562306a36Sopenharmony_ci PINGROUP(135, NA, NA, NA, NA, NA, NA, NA), 102662306a36Sopenharmony_ci PINGROUP(136, NA, grfc, NA, NA, NA, NA, NA), 102762306a36Sopenharmony_ci PINGROUP(137, NA, grfc, NA, NA, NA, NA, NA), 102862306a36Sopenharmony_ci PINGROUP(138, NA, NA, NA, NA, NA, NA, NA), 102962306a36Sopenharmony_ci PINGROUP(139, NA, NA, NA, NA, NA, NA, NA), 103062306a36Sopenharmony_ci PINGROUP(140, NA, NA, NA, NA, NA, NA, NA), 103162306a36Sopenharmony_ci PINGROUP(141, NA, grfc, NA, NA, NA, NA, NA), 103262306a36Sopenharmony_ci PINGROUP(142, NA, NA, NA, NA, NA, NA, NA), 103362306a36Sopenharmony_ci PINGROUP(143, NA, grfc, NA, NA, NA, NA, NA), 103462306a36Sopenharmony_ci PINGROUP(144, hsic, NA, NA, NA, NA, NA, NA), 103562306a36Sopenharmony_ci PINGROUP(145, hsic, NA, NA, NA, NA, NA, NA), 103662306a36Sopenharmony_ci SDC_PINGROUP(sdc1_clk, 0x2044, 13, 6), 103762306a36Sopenharmony_ci SDC_PINGROUP(sdc1_cmd, 0x2044, 11, 3), 103862306a36Sopenharmony_ci SDC_PINGROUP(sdc1_data, 0x2044, 9, 0), 103962306a36Sopenharmony_ci SDC_PINGROUP(sdc2_clk, 0x2048, 14, 6), 104062306a36Sopenharmony_ci SDC_PINGROUP(sdc2_cmd, 0x2048, 11, 3), 104162306a36Sopenharmony_ci SDC_PINGROUP(sdc2_data, 0x2048, 9, 0), 104262306a36Sopenharmony_ci HSIC_PINGROUP(hsic_strobe, 0x2050), 104362306a36Sopenharmony_ci HSIC_PINGROUP(hsic_data, 0x2054), 104462306a36Sopenharmony_ci}; 104562306a36Sopenharmony_ci 104662306a36Sopenharmony_ci#define NUM_GPIO_PINGROUPS 146 104762306a36Sopenharmony_ci 104862306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8x74_pinctrl = { 104962306a36Sopenharmony_ci .pins = msm8x74_pins, 105062306a36Sopenharmony_ci .npins = ARRAY_SIZE(msm8x74_pins), 105162306a36Sopenharmony_ci .functions = msm8x74_functions, 105262306a36Sopenharmony_ci .nfunctions = ARRAY_SIZE(msm8x74_functions), 105362306a36Sopenharmony_ci .groups = msm8x74_groups, 105462306a36Sopenharmony_ci .ngroups = ARRAY_SIZE(msm8x74_groups), 105562306a36Sopenharmony_ci .ngpios = NUM_GPIO_PINGROUPS, 105662306a36Sopenharmony_ci}; 105762306a36Sopenharmony_ci 105862306a36Sopenharmony_cistatic int msm8x74_pinctrl_probe(struct platform_device *pdev) 105962306a36Sopenharmony_ci{ 106062306a36Sopenharmony_ci return msm_pinctrl_probe(pdev, &msm8x74_pinctrl); 106162306a36Sopenharmony_ci} 106262306a36Sopenharmony_ci 106362306a36Sopenharmony_cistatic const struct of_device_id msm8x74_pinctrl_of_match[] = { 106462306a36Sopenharmony_ci { .compatible = "qcom,msm8974-pinctrl", }, 106562306a36Sopenharmony_ci { }, 106662306a36Sopenharmony_ci}; 106762306a36Sopenharmony_ci 106862306a36Sopenharmony_cistatic struct platform_driver msm8x74_pinctrl_driver = { 106962306a36Sopenharmony_ci .driver = { 107062306a36Sopenharmony_ci .name = "msm8x74-pinctrl", 107162306a36Sopenharmony_ci .of_match_table = msm8x74_pinctrl_of_match, 107262306a36Sopenharmony_ci }, 107362306a36Sopenharmony_ci .probe = msm8x74_pinctrl_probe, 107462306a36Sopenharmony_ci .remove = msm_pinctrl_remove, 107562306a36Sopenharmony_ci}; 107662306a36Sopenharmony_ci 107762306a36Sopenharmony_cistatic int __init msm8x74_pinctrl_init(void) 107862306a36Sopenharmony_ci{ 107962306a36Sopenharmony_ci return platform_driver_register(&msm8x74_pinctrl_driver); 108062306a36Sopenharmony_ci} 108162306a36Sopenharmony_ciarch_initcall(msm8x74_pinctrl_init); 108262306a36Sopenharmony_ci 108362306a36Sopenharmony_cistatic void __exit msm8x74_pinctrl_exit(void) 108462306a36Sopenharmony_ci{ 108562306a36Sopenharmony_ci platform_driver_unregister(&msm8x74_pinctrl_driver); 108662306a36Sopenharmony_ci} 108762306a36Sopenharmony_cimodule_exit(msm8x74_pinctrl_exit); 108862306a36Sopenharmony_ci 108962306a36Sopenharmony_ciMODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@sonymobile.com>"); 109062306a36Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm MSM8x74 pinctrl driver"); 109162306a36Sopenharmony_ciMODULE_LICENSE("GPL v2"); 109262306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8x74_pinctrl_of_match); 109362306a36Sopenharmony_ci 1094