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

Commit 9e726bc2 authored by Chetan C R's avatar Chetan C R Committed by Naitik Bharadiya
Browse files

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



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

Change-Id: I1196fa0c5e53fc588cb2f3ddfb35e6c28e7a6fdf
Signed-off-by: default avatarChetan C R <cchinnad@codeaurora.org>
parent 92fc776b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ Properties:
		"qcom,mpm-gic-qcs405"
		"qcom,mpm-gic-trinket"
		"qcom,mpm-gic-mdm9607"
		"qcom,mpm-gic-sdm660"

- interrupts:
	Usage: required
@@ -83,6 +84,7 @@ properties:
		"qcom,mpm-gpio-qcs405"
		"qcom,mpm-gpio-trinket",
		"qcom,mpm-gpio-mdm9607"
		"qcom,mpm-gpio-sdm660"

- interrupt-parent:
	Usage: required
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@ obj-$(CONFIG_QTI_PDC_SDMMAGPIE) += pdc-sdmmagpie.o
obj-$(CONFIG_QTI_PDC_SDXPRAIRIE)	+= pdc-sdxprairie.o
obj-$(CONFIG_QTI_PDC_ATOLL)		+= pdc-atoll.o
obj-$(CONFIG_QTI_MPM)			+= mpm.o mpm-8937.o mpm-qcs405.o mpm-trinket.o \
					   mpm-9607.o
					   mpm-9607.o mpm-sdm660.o
+95 −0
Original line number Diff line number Diff line
/* Copyright (c) 2020, 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_sdm660_gic_chip_data[] = {
	{2, 216}, /* tsens1_tsens_upper_lower_int */
	{52, 275}, /* qmp_usb3_lfps_rxterm_irq_cx */
	{61, 209}, /* lpi_dir_conn_irq_apps[1] */
	{79, 379}, /* qusb2phy_intr for Dm */
	{80, 380}, /* qusb2phy_intr for Dm for secondary PHY */
	{81, 379}, /* qusb2phy_intr for Dp */
	{82, 380}, /* qusb2phy_intr for Dp for secondary PHY */
	{87, 358}, /* ee0_apps_hlos_spmi_periph_irq */
	{91, 519}, /* lpass_pmu_tmr_timeout_irq_cx */
	{-1},
};

const struct mpm_pin mpm_sdm660_gpio_chip_data[] = {
	{3, 1},
	{4, 5},
	{5, 9},
	{6, 10},
	{7, 66},
	{8, 22},
	{9, 25},
	{10, 28},
	{11, 58},
	{13, 41},
	{14, 43},
	{15, 40},
	{16, 42},
	{17, 46},
	{18, 50},
	{19, 44},
	{21, 56},
	{22, 45},
	{23, 68},
	{24, 69},
	{25, 70},
	{26, 71},
	{27, 72},
	{28, 73},
	{29, 64},
	{30, 2},
	{31, 13},
	{32, 111},
	{33, 74},
	{34, 75},
	{35, 76},
	{36, 82},
	{37, 17},
	{38, 77},
	{39, 47},
	{40, 54},
	{41, 48},
	{42, 101},
	{43, 49},
	{44, 51},
	{45, 86},
	{46, 90},
	{47, 91},
	{48, 52},
	{50, 55},
	{51, 6},
	{53, 65},
	{55, 67},
	{56, 83},
	{57, 84},
	{58, 85},
	{59, 87},
	{63, 21},
	{64, 78},
	{65, 113},
	{66, 60},
	{67, 98},
	{68, 30},
	{70, 31},
	{71, 29},
	{76, 107},
	{83, 109},
	{84, 103},
	{85, 105},
	{-1},
};
+9 −1
Original line number Diff line number Diff line
/* Copyright (c) 2010-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2020, 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
@@ -617,6 +617,10 @@ static const struct of_device_id mpm_gic_chip_data_table[] = {
		.compatible = "qcom,mpm-gic-trinket",
		.data = mpm_trinket_gic_chip_data,
	},
	{
		.compatible = "qcom,mpm-gic-sdm660",
		.data = mpm_sdm660_gic_chip_data,
	},
	{}
};
MODULE_DEVICE_TABLE(of, mpm_gic_chip_data_table);
@@ -638,6 +642,10 @@ static const struct of_device_id mpm_gpio_chip_data_table[] = {
		.compatible = "qcom,mpm-gpio-trinket",
		.data = mpm_trinket_gpio_chip_data,
	},
	{
		.compatible = "qcom,mpm-gpio-sdm660",
		.data = mpm_sdm660_gpio_chip_data,
	},
	{}
};

+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2020, 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
@@ -32,4 +32,6 @@ extern const struct mpm_pin mpm_trinket_gpio_chip_data[];
extern const struct mpm_pin mpm_mdm9607_gic_chip_data[];
extern const struct mpm_pin mpm_mdm9607_gpio_chip_data[];

extern const struct mpm_pin mpm_sdm660_gic_chip_data[];
extern const struct mpm_pin mpm_sdm660_gpio_chip_data[];
#endif /* __QCOM_MPM_H__ */