mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 1/8] dt-bindings: input: mtk-pmic-keys: add MT6359 binding definition
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-28  7:53   ` Krzysztof Kozlowski
  2022-04-26 13:53 ` [PATCH v2 2/8] mfd: add missing defines necessary for mtk-pmic-keys support Fabien Parent
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Matthias Brugger
  Cc: Fabien Parent, linux-input, devicetree, linux-arm-kernel,
	linux-mediatek, linux-kernel

Add binding definition for the support of the MT6359 keyboard driver.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: no changes

 Documentation/devicetree/bindings/input/mtk-pmic-keys.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/input/mtk-pmic-keys.txt b/Documentation/devicetree/bindings/input/mtk-pmic-keys.txt
index 9d00f2a8e13a..afe9062a4dc7 100644
--- a/Documentation/devicetree/bindings/input/mtk-pmic-keys.txt
+++ b/Documentation/devicetree/bindings/input/mtk-pmic-keys.txt
@@ -13,6 +13,7 @@ Required properties:
 	- "mediatek,mt6397-keys"
 	- "mediatek,mt6323-keys"
 	- "mediatek,mt6358-keys"
+	- "mediatek,mt6359-keys"
 - linux,keycodes: See Documentation/devicetree/bindings/input/input.yaml
 
 Optional Properties:
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 2/8] mfd: add missing defines necessary for mtk-pmic-keys support
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
  2022-04-26 13:53 ` [PATCH v2 1/8] dt-bindings: input: mtk-pmic-keys: add MT6359 binding definition Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-27  6:10   ` Macpaul Lin
  2022-04-26 13:53 ` [PATCH v2 3/8] mfd: mt6397-core: add resources for PMIC keys for MT6359 Fabien Parent
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Lee Jones, Matthias Brugger
  Cc: Fabien Parent, linux-arm-kernel, linux-mediatek, linux-kernel

Add 2 missing MT6359 registers that are needed to implement
the keyboard driver.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: no changes

 include/linux/mfd/mt6359/registers.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/mfd/mt6359/registers.h b/include/linux/mfd/mt6359/registers.h
index 2135c9695918..2a4394a27b1c 100644
--- a/include/linux/mfd/mt6359/registers.h
+++ b/include/linux/mfd/mt6359/registers.h
@@ -8,6 +8,8 @@
 
 /* PMIC Registers */
 #define MT6359_SWCID                         0xa
+#define MT6359_TOPSTATUS                     0x2a
+#define MT6359_TOP_RST_MISC                  0x14c
 #define MT6359_MISC_TOP_INT_CON0             0x188
 #define MT6359_MISC_TOP_INT_STATUS0          0x194
 #define MT6359_TOP_INT_STATUS0               0x19e
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 3/8] mfd: mt6397-core: add resources for PMIC keys for MT6359
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
  2022-04-26 13:53 ` [PATCH v2 1/8] dt-bindings: input: mtk-pmic-keys: add MT6359 binding definition Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 2/8] mfd: add missing defines necessary for mtk-pmic-keys support Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 4/8] Input: mtk-pmic-keys: rename platform data struct Fabien Parent
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Lee Jones, Matthias Brugger
  Cc: Fabien Parent, linux-arm-kernel, linux-mediatek, linux-kernel

Add the MFD resources in order to be able to probe and use the keyboard
driver for the MT6359 PMIC.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: no changes

 drivers/mfd/mt6397-core.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c
index bddb40054b9e..1a368ad08f58 100644
--- a/drivers/mfd/mt6397-core.c
+++ b/drivers/mfd/mt6397-core.c
@@ -54,6 +54,13 @@ static const struct resource mt6358_keys_resources[] = {
 	DEFINE_RES_IRQ_NAMED(MT6358_IRQ_HOMEKEY_R, "homekey_r"),
 };
 
+static const struct resource mt6359_keys_resources[] = {
+	DEFINE_RES_IRQ_NAMED(MT6359_IRQ_PWRKEY, "powerkey"),
+	DEFINE_RES_IRQ_NAMED(MT6359_IRQ_HOMEKEY, "homekey"),
+	DEFINE_RES_IRQ_NAMED(MT6359_IRQ_PWRKEY_R, "powerkey_r"),
+	DEFINE_RES_IRQ_NAMED(MT6359_IRQ_HOMEKEY_R, "homekey_r"),
+};
+
 static const struct resource mt6323_keys_resources[] = {
 	DEFINE_RES_IRQ_NAMED(MT6323_IRQ_STATUS_PWRKEY, "powerkey"),
 	DEFINE_RES_IRQ_NAMED(MT6323_IRQ_STATUS_FCHRKEY, "homekey"),
@@ -122,6 +129,12 @@ static const struct mfd_cell mt6359_devs[] = {
 		.of_compatible = "mediatek,mt6358-rtc",
 	},
 	{ .name = "mt6359-sound", },
+	{
+		.name = "mtk-pmic-keys",
+		.num_resources = ARRAY_SIZE(mt6359_keys_resources),
+		.resources = mt6359_keys_resources,
+		.of_compatible = "mediatek,mt6359-keys"
+	},
 };
 
 static const struct mfd_cell mt6397_devs[] = {
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 4/8] Input: mtk-pmic-keys: rename platform data struct
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
                   ` (2 preceding siblings ...)
  2022-04-26 13:53 ` [PATCH v2 3/8] mfd: mt6397-core: add resources for PMIC keys for MT6359 Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 5/8] Input: mtk-pmic-keys: add field to store if PMIC has key release IRQs Fabien Parent
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Dmitry Torokhov, Matthias Brugger
  Cc: Fabien Parent, Mattijs Korpershoek, linux-input,
	linux-arm-kernel, linux-mediatek, linux-kernel

Rename the struct that is given to the .data field of the of_device_id
entries to reflect that this structure will not only contain register
definitions but also other platform data.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on mt8183-pumpkin
---
v2: no changes

 drivers/input/keyboard/mtk-pmic-keys.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/input/keyboard/mtk-pmic-keys.c b/drivers/input/keyboard/mtk-pmic-keys.c
index c31ab4368388..a0da644fe93d 100644
--- a/drivers/input/keyboard/mtk-pmic-keys.c
+++ b/drivers/input/keyboard/mtk-pmic-keys.c
@@ -50,12 +50,12 @@ struct mtk_pmic_keys_regs {
 	.intsel_mask		= _intsel_mask,		\
 }
 
-struct mtk_pmic_regs {
+struct mtk_pmic_keys_pdata {
 	const struct mtk_pmic_keys_regs keys_regs[MTK_PMIC_MAX_KEY_COUNT];
 	u32 pmic_rst_reg;
 };
 
-static const struct mtk_pmic_regs mt6397_regs = {
+static const struct mtk_pmic_keys_pdata mt6397_pdata = {
 	.keys_regs[MTK_PMIC_PWRKEY_INDEX] =
 		MTK_PMIC_KEYS_REGS(MT6397_CHRSTATUS,
 		0x8, MT6397_INT_RSV, 0x10),
@@ -65,7 +65,7 @@ static const struct mtk_pmic_regs mt6397_regs = {
 	.pmic_rst_reg = MT6397_TOP_RST_MISC,
 };
 
-static const struct mtk_pmic_regs mt6323_regs = {
+static const struct mtk_pmic_keys_pdata mt6323_pdata = {
 	.keys_regs[MTK_PMIC_PWRKEY_INDEX] =
 		MTK_PMIC_KEYS_REGS(MT6323_CHRSTATUS,
 		0x2, MT6323_INT_MISC_CON, 0x10),
@@ -75,7 +75,7 @@ static const struct mtk_pmic_regs mt6323_regs = {
 	.pmic_rst_reg = MT6323_TOP_RST_MISC,
 };
 
-static const struct mtk_pmic_regs mt6358_regs = {
+static const struct mtk_pmic_keys_pdata mt6358_pdata = {
 	.keys_regs[MTK_PMIC_PWRKEY_INDEX] =
 		MTK_PMIC_KEYS_REGS(MT6358_TOPSTATUS,
 				   0x2, MT6358_PSC_TOP_INT_CON0, 0x5),
@@ -255,13 +255,13 @@ static SIMPLE_DEV_PM_OPS(mtk_pmic_keys_pm_ops, mtk_pmic_keys_suspend,
 static const struct of_device_id of_mtk_pmic_keys_match_tbl[] = {
 	{
 		.compatible = "mediatek,mt6397-keys",
-		.data = &mt6397_regs,
+		.data = &mt6397_pdata,
 	}, {
 		.compatible = "mediatek,mt6323-keys",
-		.data = &mt6323_regs,
+		.data = &mt6323_pdata,
 	}, {
 		.compatible = "mediatek,mt6358-keys",
-		.data = &mt6358_regs,
+		.data = &mt6358_pdata,
 	}, {
 		/* sentinel */
 	}
@@ -277,7 +277,7 @@ static int mtk_pmic_keys_probe(struct platform_device *pdev)
 	static const char *const irqnames[] = { "powerkey", "homekey" };
 	static const char *const irqnames_r[] = { "powerkey_r", "homekey_r" };
 	struct mtk_pmic_keys *keys;
-	const struct mtk_pmic_regs *mtk_pmic_regs;
+	const struct mtk_pmic_keys_pdata *mtk_pmic_keys_pdata;
 	struct input_dev *input_dev;
 	const struct of_device_id *of_id =
 		of_match_device(of_mtk_pmic_keys_match_tbl, &pdev->dev);
@@ -288,7 +288,7 @@ static int mtk_pmic_keys_probe(struct platform_device *pdev)
 
 	keys->dev = &pdev->dev;
 	keys->regmap = pmic_chip->regmap;
-	mtk_pmic_regs = of_id->data;
+	mtk_pmic_keys_pdata = of_id->data;
 
 	keys->input_dev = input_dev = devm_input_allocate_device(keys->dev);
 	if (!input_dev) {
@@ -310,7 +310,7 @@ static int mtk_pmic_keys_probe(struct platform_device *pdev)
 	}
 
 	for_each_child_of_node(node, child) {
-		keys->keys[index].regs = &mtk_pmic_regs->keys_regs[index];
+		keys->keys[index].regs = &mtk_pmic_keys_pdata->keys_regs[index];
 
 		keys->keys[index].irq =
 			platform_get_irq_byname(pdev, irqnames[index]);
@@ -358,7 +358,7 @@ static int mtk_pmic_keys_probe(struct platform_device *pdev)
 		return error;
 	}
 
-	mtk_pmic_keys_lp_reset_setup(keys, mtk_pmic_regs->pmic_rst_reg);
+	mtk_pmic_keys_lp_reset_setup(keys, mtk_pmic_keys_pdata->pmic_rst_reg);
 
 	platform_set_drvdata(pdev, keys);
 
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 5/8] Input: mtk-pmic-keys: add field to store if PMIC has key release IRQs
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
                   ` (3 preceding siblings ...)
  2022-04-26 13:53 ` [PATCH v2 4/8] Input: mtk-pmic-keys: rename platform data struct Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 6/8] Input: keyboard: mtk-pmic-keys: add support for MT6359 Fabien Parent
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Dmitry Torokhov, Matthias Brugger
  Cc: Fabien Parent, Mattijs Korpershoek, linux-input,
	linux-arm-kernel, linux-mediatek, linux-kernel

The MT6358 PMIC is not the only PMIC to have release IRQs. In order to
support more PMIC that supports release IRQs, such as MT6357, MT6359,
and possibly others, let's add some field in the platform data to
indicate whether a PMIC support release keys.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on mt8183-pumpkin
---
v2: no changes

 drivers/input/keyboard/mtk-pmic-keys.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/mtk-pmic-keys.c b/drivers/input/keyboard/mtk-pmic-keys.c
index a0da644fe93d..609b87afd020 100644
--- a/drivers/input/keyboard/mtk-pmic-keys.c
+++ b/drivers/input/keyboard/mtk-pmic-keys.c
@@ -53,6 +53,7 @@ struct mtk_pmic_keys_regs {
 struct mtk_pmic_keys_pdata {
 	const struct mtk_pmic_keys_regs keys_regs[MTK_PMIC_MAX_KEY_COUNT];
 	u32 pmic_rst_reg;
+	bool has_key_release_irqs;
 };
 
 static const struct mtk_pmic_keys_pdata mt6397_pdata = {
@@ -83,6 +84,7 @@ static const struct mtk_pmic_keys_pdata mt6358_pdata = {
 		MTK_PMIC_KEYS_REGS(MT6358_TOPSTATUS,
 				   0x8, MT6358_PSC_TOP_INT_CON0, 0xa),
 	.pmic_rst_reg = MT6358_TOP_RST_MISC,
+	.has_key_release_irqs = true,
 };
 
 struct mtk_pmic_keys_info {
@@ -319,7 +321,7 @@ static int mtk_pmic_keys_probe(struct platform_device *pdev)
 			return keys->keys[index].irq;
 		}
 
-		if (of_device_is_compatible(node, "mediatek,mt6358-keys")) {
+		if (mtk_pmic_keys_pdata->has_key_release_irqs) {
 			keys->keys[index].irq_r = platform_get_irq_byname(pdev,
 									  irqnames_r[index]);
 
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 6/8] Input: keyboard: mtk-pmic-keys: add support for MT6359
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
                   ` (4 preceding siblings ...)
  2022-04-26 13:53 ` [PATCH v2 5/8] Input: mtk-pmic-keys: add field to store if PMIC has key release IRQs Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 7/8] arm64: dts: mediatek: mt6359: add node for PMIC keys support Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 8/8] arm64: dts: mediatek: mt8195-demo: define PMIC keys available Fabien Parent
  7 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Dmitry Torokhov, Matthias Brugger
  Cc: Fabien Parent, linux-input, linux-arm-kernel, linux-mediatek,
	linux-kernel

Add support for the MT6359 PMIC.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: no changes

 drivers/input/keyboard/mtk-pmic-keys.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/drivers/input/keyboard/mtk-pmic-keys.c b/drivers/input/keyboard/mtk-pmic-keys.c
index 609b87afd020..115ed4aaae81 100644
--- a/drivers/input/keyboard/mtk-pmic-keys.c
+++ b/drivers/input/keyboard/mtk-pmic-keys.c
@@ -10,6 +10,7 @@
 #include <linux/kernel.h>
 #include <linux/mfd/mt6323/registers.h>
 #include <linux/mfd/mt6358/registers.h>
+#include <linux/mfd/mt6359/registers.h>
 #include <linux/mfd/mt6397/core.h>
 #include <linux/mfd/mt6397/registers.h>
 #include <linux/module.h>
@@ -87,6 +88,17 @@ static const struct mtk_pmic_keys_pdata mt6358_pdata = {
 	.has_key_release_irqs = true,
 };
 
+static const struct mtk_pmic_keys_pdata mt6359_pdata = {
+	.keys_regs[MTK_PMIC_PWRKEY_INDEX] =
+		MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS,
+		0x2, MT6359_PSC_TOP_INT_CON0, 0x5),
+	.keys_regs[MTK_PMIC_HOMEKEY_INDEX] =
+		MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS,
+		0x8, MT6359_PSC_TOP_INT_CON0, 0xa),
+	.pmic_rst_reg = MT6359_TOP_RST_MISC,
+	.has_key_release_irqs = true,
+};
+
 struct mtk_pmic_keys_info {
 	struct mtk_pmic_keys *keys;
 	const struct mtk_pmic_keys_regs *regs;
@@ -264,6 +276,9 @@ static const struct of_device_id of_mtk_pmic_keys_match_tbl[] = {
 	}, {
 		.compatible = "mediatek,mt6358-keys",
 		.data = &mt6358_pdata,
+	}, {
+		.compatible = "mediatek,mt6359-keys",
+		.data = &mt6359_pdata,
 	}, {
 		/* sentinel */
 	}
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 7/8] arm64: dts: mediatek: mt6359: add node for PMIC keys support
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
                   ` (5 preceding siblings ...)
  2022-04-26 13:53 ` [PATCH v2 6/8] Input: keyboard: mtk-pmic-keys: add support for MT6359 Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  2022-04-26 13:53 ` [PATCH v2 8/8] arm64: dts: mediatek: mt8195-demo: define PMIC keys available Fabien Parent
  7 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Matthias Brugger
  Cc: Fabien Parent, devicetree, linux-arm-kernel, linux-mediatek,
	linux-kernel

Add node for the MT6359 PMIC keyboard in mt6359.dtsi.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: remove key definitions from dtsi

 arch/arm64/boot/dts/mediatek/mt6359.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt6359.dtsi b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
index df3e822232d3..c09cbd8e81ce 100644
--- a/arch/arm64/boot/dts/mediatek/mt6359.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
@@ -294,5 +294,9 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub {
 		mt6359rtc: mt6359rtc {
 			compatible = "mediatek,mt6358-rtc";
 		};
+
+		mt6359keys: keyboard {
+			compatible = "mediatek,mt6359-keys";
+		};
 	};
 };
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 8/8] arm64: dts: mediatek: mt8195-demo: define PMIC keys available
       [not found] <20220426135313.245466-1-fparent@baylibre.com>
                   ` (6 preceding siblings ...)
  2022-04-26 13:53 ` [PATCH v2 7/8] arm64: dts: mediatek: mt6359: add node for PMIC keys support Fabien Parent
@ 2022-04-26 13:53 ` Fabien Parent
  7 siblings, 0 replies; 10+ messages in thread
From: Fabien Parent @ 2022-04-26 13:53 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Matthias Brugger
  Cc: Fabien Parent, devicetree, linux-arm-kernel, linux-mediatek,
	linux-kernel

The MT8195 Demo board has two push buttons connected to the PMIC: Home
button and Power button. This commit adds support for both.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
v2: new patch

 arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
index aa41df865c9c..810e69c5f7e0 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
@@ -246,6 +246,17 @@ &mmc1 {
 	status = "okay";
 };
 
+&mt6359keys {
+	key-0 {
+		linux,keycodes = <KEY_POWER>;
+		wakeup-source;
+	};
+
+	key-1 {
+		linux,keycodes = <KEY_HOME>;
+	};
+};
+
 &mt6359_vbbck_ldo_reg {
 	regulator-always-on;
 };
-- 
2.36.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 2/8] mfd: add missing defines necessary for mtk-pmic-keys support
  2022-04-26 13:53 ` [PATCH v2 2/8] mfd: add missing defines necessary for mtk-pmic-keys support Fabien Parent
@ 2022-04-27  6:10   ` Macpaul Lin
  0 siblings, 0 replies; 10+ messages in thread
From: Macpaul Lin @ 2022-04-27  6:10 UTC (permalink / raw)
  To: Fabien Parent, Lee Jones, Matthias Brugger
  Cc: linux-arm-kernel, linux-mediatek, linux-kernel

On Tue, 2022-04-26 at 15:53 +0200, Fabien Parent wrote:
> Add 2 missing MT6359 registers that are needed to implement
> the keyboard driver.
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
> ---
> v2: no changes
> 
>  include/linux/mfd/mt6359/registers.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/linux/mfd/mt6359/registers.h
> b/include/linux/mfd/mt6359/registers.h
> index 2135c9695918..2a4394a27b1c 100644
> --- a/include/linux/mfd/mt6359/registers.h
> +++ b/include/linux/mfd/mt6359/registers.h
> @@ -8,6 +8,8 @@
>  
>  /* PMIC Registers */
>  #define MT6359_SWCID                         0xa
> +#define MT6359_TOPSTATUS                     0x2a
> +#define MT6359_TOP_RST_MISC                  0x14c
>  #define MT6359_MISC_TOP_INT_CON0             0x188
>  #define MT6359_MISC_TOP_INT_STATUS0          0x194
>  #define MT6359_TOP_INT_STATUS0               0x19e

Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>

Regards,
Macpaul Lin


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 1/8] dt-bindings: input: mtk-pmic-keys: add MT6359 binding definition
  2022-04-26 13:53 ` [PATCH v2 1/8] dt-bindings: input: mtk-pmic-keys: add MT6359 binding definition Fabien Parent
@ 2022-04-28  7:53   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-28  7:53 UTC (permalink / raw)
  To: Fabien Parent, Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski,
	Matthias Brugger
  Cc: linux-input, devicetree, linux-arm-kernel, linux-mediatek, linux-kernel

On 26/04/2022 15:53, Fabien Parent wrote:
> Add binding definition for the support of the MT6359 keyboard driver.
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
> ---
> v2: no changes


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-04-28  7:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220426135313.245466-1-fparent@baylibre.com>
2022-04-26 13:53 ` [PATCH v2 1/8] dt-bindings: input: mtk-pmic-keys: add MT6359 binding definition Fabien Parent
2022-04-28  7:53   ` Krzysztof Kozlowski
2022-04-26 13:53 ` [PATCH v2 2/8] mfd: add missing defines necessary for mtk-pmic-keys support Fabien Parent
2022-04-27  6:10   ` Macpaul Lin
2022-04-26 13:53 ` [PATCH v2 3/8] mfd: mt6397-core: add resources for PMIC keys for MT6359 Fabien Parent
2022-04-26 13:53 ` [PATCH v2 4/8] Input: mtk-pmic-keys: rename platform data struct Fabien Parent
2022-04-26 13:53 ` [PATCH v2 5/8] Input: mtk-pmic-keys: add field to store if PMIC has key release IRQs Fabien Parent
2022-04-26 13:53 ` [PATCH v2 6/8] Input: keyboard: mtk-pmic-keys: add support for MT6359 Fabien Parent
2022-04-26 13:53 ` [PATCH v2 7/8] arm64: dts: mediatek: mt6359: add node for PMIC keys support Fabien Parent
2022-04-26 13:53 ` [PATCH v2 8/8] arm64: dts: mediatek: mt8195-demo: define PMIC keys available Fabien Parent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®