Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09c5e37d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: pinctrl: Add gpio to mpm mapping for holi"

parents c74230b2 dcf25bc7
Loading
Loading
Loading
Loading
+72 −0
Original line number Diff line number Diff line
@@ -1531,6 +1531,76 @@ static const struct msm_pingroup holi_groups[] = {
	[163] = SDC_QDSD_PINGROUP(sdc2_data, 0x1a2000, 9, 0),
};

static const struct msm_gpio_wakeirq_map holi_mpm_map[] = {
	{0, 84},
	{3, 6},
	{4, 7},
	{7, 8},
	{8, 9},
	{9, 10},
	{11, 11},
	{12, 13},
	{13, 14},
	{16, 16},
	{17, 17},
	{18, 18},
	{19, 19},
	{21, 20},
	{22, 21},
	{23, 23},
	{24, 24},
	{25, 25},
	{27, 26},
	{28, 27},
	{37, 28},
	{38, 29},
	{48, 30},
	{50, 31},
	{51, 32},
	{52, 33},
	{57, 34},
	{59, 35},
	{60, 37},
	{61, 38},
	{62, 39},
	{64, 40},
	{66, 41},
	{67, 42},
	{68, 43},
	{69, 44},
	{78, 45},
	{82, 36},
	{83, 47},
	{84, 48},
	{85, 49},
	{87, 50},
	{88, 51},
	{91, 52},
	{94, 53},
	{95, 54},
	{96, 55},
	{97, 56},
	{98, 57},
	{99, 58},
	{100, 59},
	{104, 60},
	{107, 61},
	{118, 62},
	{124, 63},
	{125, 64},
	{126, 65},
	{128, 66},
	{129, 67},
	{131, 69},
	{133, 70},
	{134, 71},
	{136, 73},
	{142, 74},
	{150, 75},
	{153, 76},
	{155, 77},
};

static const struct msm_pinctrl_soc_data holi_pinctrl = {
	.pins = holi_pins,
	.npins = ARRAY_SIZE(holi_pins),
@@ -1539,6 +1609,8 @@ static const struct msm_pinctrl_soc_data holi_pinctrl = {
	.groups = holi_groups,
	.ngroups = ARRAY_SIZE(holi_groups),
	.ngpios = 157,
	.wakeirq_map = holi_mpm_map,
	.nwakeirq_map = ARRAY_SIZE(holi_mpm_map),
};

static int holi_pinctrl_probe(struct platform_device *pdev)