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

Commit 7e2a13ad authored by Raghavendra Kakarla's avatar Raghavendra Kakarla
Browse files

drivers: irqchip: qcom: Add mpm pin data for trinket



Add mpm pin data for gic and gpio interrupts for trinket.

Change-Id: I09cf150ace488a669ee25f67a1faf1be0102749f
Signed-off-by: default avatarRaghavendra Kakarla <rkakarla@codeaurora.org>
parent 811f8d6f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ Properties:
		"qcom,mpm-gic-msm8953",
		"qcom,mpm-gic-msm8937",
		"qcom,mpm-gic-qcs405"
		"qcom,mpm-gic-trinket"

- interrupts:
	Usage: required
@@ -79,6 +80,7 @@ properties:
		"qcom,mpm-gpio-msm8953",
		"qcom,mpm-gpio-msm8937",
		"qcom,mpm-gpio-qcs405"
		"qcom,mpm-gpio-trinket",

- interrupt-parent:
	Usage: required
+1 −2
Original line number Diff line number Diff line
@@ -3,5 +3,4 @@ obj-$(CONFIG_QTI_PDC_SM8150) += pdc-sm8150.o
obj-$(CONFIG_QTI_PDC_SM6150)		+= pdc-sm6150.o
obj-$(CONFIG_QTI_PDC_SDMMAGPIE)		+= pdc-sdmmagpie.o
obj-$(CONFIG_QTI_PDC_SDXPRAIRIE)	+= pdc-sdxprairie.o
obj-$(CONFIG_QTI_MPM)			+= mpm.o
obj-$(CONFIG_QTI_MPM)			+= mpm.o mpm-8937.o mpm-qcs405.o
obj-$(CONFIG_QTI_MPM)			+= mpm.o mpm-8937.o mpm-qcs405.o mpm-trinket.o
+90 −0
Original line number Diff line number Diff line
/* Copyright (c) 2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#include "mpm.h"

const struct mpm_pin mpm_trinket_gic_chip_data[] = {
	{2, 222},
	{12, 454}, /* b3_lfps_rxterm_irq */
	{86, 215}, /* mpm_wake,spmi_m */
	{90, 286}, /* eud_p0_dpse_int_mx */
	{91, 286}, /* eud_p0_dmse_int_mx */
	{-1},
};

const struct mpm_pin mpm_trinket_gpio_chip_data[] = {
	{5, 43},
	{6, 45},
	{7, 59},
	{8, 72},
	{9, 83},
	{13, 124},
	{14, 1},
	{15, 3},
	{16, 4},
	{17, 9},
	{18, 13},
	{19, 15},
	{20, 17},
	{21, 19},
	{22, 21},
	{23, 14},
	{24, 25},
	{25, 26},
	{26, 27},
	{27, 29},
	{28, 33},
	{29, 36},
	{30, 42},
	{31, 44},
	{32, 47},
	{33, 50},
	{34, 70},
	{35, 75},
	{36, 79},
	{37, 80},
	{38, 81},
	{39, 82},
	{40, 85},
	{41, 86},
	{42, 88},
	{43, 89},
	{44, 91},
	{45, 92},
	{46, 93},
	{47, 94},
	{48, 95},
	{49, 96},
	{50, 98},
	{51, 99},
	{52, 101},
	{53, 102},
	{54, 105},
	{55, 107},
	{56, 110},
	{57, 111},
	{58, 112},
	{59, 118},
	{60, 122},
	{61, 123},
	{62, 126},
	{63, 128},
	{64, 100},
	{65, 130},
	{66, 131},
	{67, 132},
	{70, 97},
	{71, 120},
	{84, 22},
	{-1},
};
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2010-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -609,6 +609,10 @@ static const struct of_device_id mpm_gic_chip_data_table[] = {
		.compatible = "qcom,mpm-gic-qcs405",
		.data = mpm_qcs405_gic_chip_data,
	},
	{
		.compatible = "qcom,mpm-gic-trinket",
		.data = mpm_trinket_gic_chip_data,
	},
	{}
};
MODULE_DEVICE_TABLE(of, mpm_gic_chip_data_table);
@@ -622,6 +626,10 @@ static const struct of_device_id mpm_gpio_chip_data_table[] = {
		.compatible = "qcom,mpm-gpio-qcs405",
		.data = mpm_qcs405_gpio_chip_data,
	},
	{
		.compatible = "qcom,mpm-gpio-trinket",
		.data = mpm_trinket_gpio_chip_data,
	},
	{}
};

+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -26,4 +26,6 @@ extern const struct mpm_pin mpm_msm8937_gpio_chip_data[];

extern const struct mpm_pin mpm_qcs405_gic_chip_data[];
extern const struct mpm_pin mpm_qcs405_gpio_chip_data[];
extern const struct mpm_pin mpm_trinket_gic_chip_data[];
extern const struct mpm_pin mpm_trinket_gpio_chip_data[];
#endif /* __QCOM_MPM_H__ */