Add MediaTek PMIC keys support
Subsystems (7)
v6 cover Add MediaTek PMIC keys support
MediaTek PMIC are multi-function devices that can handle key interrupts, typically there are two keys attached to PMIC, which called pwrkey and homekey. PWRKEY usually used to wake up system from sleep. Homekey can used as volume down key due to board design. Long press keys can shutdown PMIC, the mode can be choose to be one key only or two keys together. This series add support for key functions for MediaTek PMIC MT6397/MT6323.
Changes since v5:
- use __maybe_unused annotation instead of #ifdef guard
- use of_* API instead of device_* API
Changes since v4:
- rebase to Linux 4.14-rc1
- add a common keyboard binding document
- use child device tree node to define each key
Changes since v3:
- make the naming to be consistent as mtk_pmic or MTK_PMIC
- add suspend/resume functions to enable/disable irq
- change binding properties to define wakeup sources
Changes since v2:
- use standard properties for keycodes and debounce time
- change to use platform_get_irq in leaf drivers
- use better ways to define IRQ resources
Changes since v1:
- create irq mappings in mfd core driver instead of leaf drivers
- remove some unused parts in mtk-pmic-keys driver
Chen Zhong (6):
mfd: mt6397: create irq mappings in mfd core driver
dt-bindings: input: Add common keyboard document bindings
dt-bindings: input: Add document bindings for mtk-pmic-keys
dt-bindings: mfd: Add bindings for the keys as subnode of PMIC
input: Add MediaTek PMIC keys support
mfd: mt6397: Add PMIC keys support to MT6397 driver
Documentation/devicetree/bindings/input/keys.txt | 8 + .../devicetree/bindings/input/mtk-pmic-keys.txt | 43 +++ Documentation/devicetree/bindings/mfd/mt6397.txt | 6 + drivers/input/keyboard/Kconfig | 9 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-pmic-keys.c | 339 +++++++++++++++++++++ drivers/mfd/mt6397-core.c | 26 +- drivers/rtc/rtc-mt6397.c | 7 +- 8 files changed, 432 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/keys.txt create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic-keys.txt create mode 100644 drivers/input/keyboard/mtk-pmic-keys.c
Signature · 1 line
1.9.1
PATCH v6 1/6 mfd: mt6397: create irq mappings in mfd core driver
The core driver should create and manage irq mappings instead of leaf drivers. This patch change to pass irq domain to devm_mfd_add_devices() and it will create mapping for irq resources automatically. And remove irq mapping in rtc driver since this has been done in core driver.
--- drivers/mfd/mt6397-core.c | 4 ++-- drivers/rtc/rtc-mt6397.c | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-)
drivers/mfd/mt6397-core.c +2 -2
@@ -289,7 +289,7 @@ static int mt6397_probe(struct platform_device *pdev) ret =devm_mfd_add_devices (&pdev->dev,-1 , mt6323_devs,ARRAY_SIZE (mt6323_devs),NULL , -0 ,NULL ); +0 , pmic->irq_domain);break ;case MT6397_CID_CODE :
@@ -304,7 +304,7 @@ static int mt6397_probe(struct platform_device *pdev) ret =devm_mfd_add_devices (&pdev->dev,-1 , mt6397_devs,ARRAY_SIZE (mt6397_devs),NULL , -0 ,NULL ); +0 , pmic->irq_domain);break ;default :
drivers/rtc/rtc-mt6397.c +3 -4
@@ -322,10 +322,9 @@ static int mtk_rtc_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); rtc->addr_base = res->start; - res =platform_get_resource (pdev,IORESOURCE_IRQ ,0 ); - rtc->irq =irq_create_mapping (mt6397_chip->irq_domain, res->start); -if (rtc->irq <=0 ) -return -EINVAL ; + rtc->irq =platform_get_irq (pdev,0 ); +if (rtc->irq <0 ) +return rtc->irq; rtc->regmap = mt6397_chip->regmap; rtc->dev = &pdev->dev;
Signature · 1 line
1.7.9.5
PATCH v6 2/6 dt-bindings: input: Add common keyboard document bindings
In reply to Chen ZhongThis patch adds the device tree binding documentation for common keyboard.
--- Documentation/devicetree/bindings/input/keys.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/keys.txt
Documentation/devicetree/bindings/input/keys.txt new file +8 -0
@@ -0,0 +1,8 @@ +General Keys Properties: + +Optional properties for Keys: +- power-off-time-sec: Duration in seconds which the key should be kept + pressed for device to power off automatically. Device with key pressed + shutdown feature can specify this property. +- linux,keycodes: Specifies the numeric keycode values to be used for + reporting key presses.
Signature · 1 line
1.7.9.5
PATCH v6 3/6 dt-bindings: input: Add document bindings for mtk-pmic-keys
In reply to Chen ZhongThis patch adds the device tree binding documentation for the MediaTek pmic keys found on PMIC MT6397/MT6323.
--- .../devicetree/bindings/input/mtk-pmic-keys.txt | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic-keys.txt
Documentation/devicetree/bindings/input/mtk-pmic-keys.txt new file +43 -0
@@ -0,0 +1,43 @@ +MediaTek MT6397/MT6323 PMIC Keys Device Driver + +There are two key functions provided by MT6397/MT6323 PMIC, pwrkey +and homekey. The key functions are defined as the subnode of the function +node provided by MT6397/MT6323 PMIC that is being defined as one kind +of Muti-Function Device (MFD) + +For MT6397/MT6323 MFD bindings see: +Documentation/devicetree/bindings/mfd/mt6397.txt + +Required properties: +- compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys" +- linux,keycodes: See Documentation/devicetree/bindings/input/keys.txt + +Optional Properties: +- wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt +- mediatek,long-press-mode: Long press key shutdown setting, 1 for + pwrkey only, 2 for pwrkey/homekey together, others for disabled. +- power-off-time-sec: See Documentation/devicetree/bindings/input/keys.txt + +Example: + + pmic: mt6397 { + compatible = "mediatek,mt6397"; + + ... + + mt6397keys: mt6397keys { + compatible = "mediatek,mt6397-keys"; + mediatek,long-press-mode = <1>; + power-off-time-sec = <0>; + + power { + linux,keycodes = <116>; + wakeup-source; + }; + + home { + linux,keycodes = <114>; + }; + }; + + };
Signature · 1 line
1.7.9.5
PATCH v6 4/6 dt-bindings: mfd: Add bindings for the keys as subnode of PMIC
In reply to Chen ZhongThis patch adds documentation for device tree bindings for keys support as the subnode of MT6397/MT6323 PMIC.
--- Documentation/devicetree/bindings/mfd/mt6397.txt | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/mfd/mt6397.txt +6 -0
@@ -7,6 +7,7 @@ MT6397/MT6323 is a multifunction device with the following sub modules: - GPIO - Clock - LED +- Keys It is interfaced to host controller using SPI interface by a proprietary hardware called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap.
@@ -40,6 +41,11 @@ Optional subnodes: - compatible: "mediatek,mt6323-led" see Documentation/devicetree/bindings/leds/leds-mt6323.txt +- keys + Required properties: + - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys" + see Documentation/devicetree/bindings/input/mtk-pmic-keys.txt + Example: pwrap: pwrap at 1000f000 { compatible = "mediatek,mt8135-pwrap";
Signature · 1 line
1.7.9.5
PATCH v6 5/6 input: Add MediaTek PMIC keys support
In reply to Chen ZhongThis patch add support to handle MediaTek PMIC MT6397/MT6323 key interrupts including pwrkey and homekey, also add setting for long press key shutdown behavior.
--- drivers/input/keyboard/Kconfig | 9 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-pmic-keys.c | 339 ++++++++++++++++++++++++++++++++ 3 files changed, 349 insertions(+) create mode 100644 drivers/input/keyboard/mtk-pmic-keys.c
drivers/input/keyboard/Kconfig +9 -0
@@ -756,4 +756,13 @@ config KEYBOARD_BCM To compile this driver as a module, choose M here: the module will be called bcm-keypad. +config KEYBOARD_MTK_PMIC + tristate "MediaTek PMIC keys support" + depends on MFD_MT6397 + help + Say Y here if you want to use the pmic keys (powerkey/homekey). + + To compile this driver as a module, choose M here: the + module will be called pmic-keys. + endif
drivers/input/keyboard/Makefile +1 -0
@@ -40,6 +40,7 @@ obj-$(CONFIG_KEYBOARD_MATRIX) += matrix_keypad.o obj-$(CONFIG_KEYBOARD_MAX7359) += max7359_keypad.o obj-$(CONFIG_KEYBOARD_MCS) += mcs_touchkey.o obj-$(CONFIG_KEYBOARD_MPR121) += mpr121_touchkey.o +obj-$(CONFIG_KEYBOARD_MTK_PMIC) += mtk-pmic-keys.o obj-$(CONFIG_KEYBOARD_NEWTON) += newtonkbd.o obj-$(CONFIG_KEYBOARD_NOMADIK) += nomadik-ske-keypad.o obj-$(CONFIG_KEYBOARD_NSPIRE) += nspire-keypad.o
drivers/input/keyboard/mtk-pmic-keys.c new file +339 -0
339 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v6 6/6 mfd: mt6397: Add PMIC keys support to MT6397 driver
In reply to Chen ZhongThis patch adds compatible strings and interrupts for pmic keys which serves as child device of MFD.
--- drivers/mfd/mt6397-core.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)
drivers/mfd/mt6397-core.c +21 -1
@@ -43,6 +43,16 @@ }, }; +static const struct resource mt6323_keys_resources[] = { +DEFINE_RES_IRQ (MT6323_IRQ_STATUS_PWRKEY ), +DEFINE_RES_IRQ (MT6323_IRQ_STATUS_FCHRKEY ), +}; + +static const struct resource mt6397_keys_resources[] = { +DEFINE_RES_IRQ (MT6397_IRQ_PWRKEY ), +DEFINE_RES_IRQ (MT6397_IRQ_HOMEKEY ), +}; +static const struct mfd_cell mt6323_devs[] = { { .name ="mt6323-regulator" ,
@@ -50,6 +60,11 @@ }, { .name = "mt6323-led", .of_compatible ="mediatek,mt6323-led" + }, { + .name = "mtk-pmic-keys", + .num_resources = ARRAY_SIZE(mt6323_keys_resources), + .resources = mt6323_keys_resources, + .of_compatible ="mediatek,mt6323-keys" }, };
@@ -71,7 +86,12 @@ }, { .name = "mt6397-pinctrl", .of_compatible = "mediatek,mt6397-pinctrl", - }, + }, { + .name = "mtk-pmic-keys", + .num_resources = ARRAY_SIZE(mt6397_keys_resources), + .resources = mt6397_keys_resources, + .of_compatible = "mediatek,mt6397-keys" + } };static void mt6397_irq_lock (struct irq_data *data)
Signature · 1 line
1.7.9.5
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Sean
Quoted 82 lines · Sean Wang (???)
Quoted 82 lines
-----Original Message-----
From: Linux-mediatek [mailto:linux-mediatek-bounces at lists.infradead.org] On Behalf Of Chen Zhong
Sent: Wednesday, October 25, 2017 9:16 PM
To: Dmitry Torokhov <[email protected]>; Rob Herring <[email protected]>; Lee Jones <[email protected]>; Alexandre Belloni <[email protected]>
Cc: Mark Rutland <[email protected]>; Alessandro Zummo <[email protected]>; devicetree at vger.kernel.org; Linus Walleij <[email protected]>; Jaechul Lee <[email protected]>; linux- kernel at vger.kernel.org; Krzysztof Kozlowski <[email protected]>; Javier Martinez Canillas <[email protected]>; linux-
mediatek at lists.infradead.org; linux-arm-kernel at lists.infradead.org; linux- input at vger.kernel.org; Matthias Brugger <[email protected]>; Eddie Huang (S?) <[email protected]>; Chen Zhong (??) <[email protected]>; Beomho Seo <[email protected]>; linux-rtc at vger.kernel.org
Subject: [PATCH v6 0/6] Add MediaTek PMIC keys supportMediaTek PMIC are multi-function devices that can handle key interrupts, typically there are two keys attached to PMIC, which called pwrkey and homekey. PWRKEY usually used to wake up system from sleep. Homekey can used as volume down key due to board design. Long press keys can shutdown PMIC, the mode can be choose to be one key only or two keys together. This series add support for key functions for MediaTek PMIC MT6397/MT6323.
Changes since v5:
- use__maybe_unusedannotation instead of #ifdef guard
- use of_* API instead of device_* APIChanges since v4:
- rebase to Linux 4.14-rc1
- add a common keyboard binding document
- use child device tree node to define each keyChanges since v3:
- make the naming to be consistent asmtk_pmicorMTK_PMIC
- add suspend/resume functions to enable/disable irq
- change binding properties to define wakeup sourcesChanges since v2:
- use standard properties for keycodes and debounce time
- change to useplatform_get_irqin leaf drivers
- use better ways to define IRQ resourcesChanges since v1:
- create irq mappings in mfd core driver instead of leaf drivers
- remove some unused parts in mtk-pmic-keys driverChen Zhong (6):
mfd: mt6397: create irq mappings in mfd core driver
dt-bindings: input: Add common keyboard document bindings
dt-bindings: input: Add document bindings for mtk-pmic-keys
dt-bindings: mfd: Add bindings for the keys as subnode of PMIC
input: Add MediaTek PMIC keys support
mfd: mt6397: Add PMIC keys support to MT6397 driverDocumentation/devicetree/bindings/input/keys.txt | 8 + .../devicetree/bindings/input/mtk-pmic-keys.txt | 43 +++ Documentation/devicetree/bindings/mfd/mt6397.txt | 6 + drivers/input/keyboard/Kconfig | 9 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-pmic-keys.c | 339 +++++++++++++++++++++ drivers/mfd/mt6397-core.c | 26 +- drivers/rtc/rtc-mt6397.c | 7 +- 8 files changed, 432 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/keys.txt create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic- keys.txt create mode 100644 drivers/input/keyboard/mtk-pmic-keys.c--
1.9.1_______________________________________________
Linux-mediatek mailing list
Linux-mediatek at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Dmitry Torokhov
maintainerHi Sean,
Quoted 11 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Tested-by Sean Wang <[email protected]>
You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Thanks.
Quoted 89 lines
Sean
Quoted 82 lines · Sean Wang (???)
Quoted 82 lines
-----Original Message-----
From: Linux-mediatek [mailto:linux-mediatek-bounces at lists.infradead.org] On Behalf Of Chen Zhong
Sent: Wednesday, October 25, 2017 9:16 PM
To: Dmitry Torokhov <[email protected]>; Rob Herring <[email protected]>; Lee Jones <[email protected]>; Alexandre Belloni <[email protected]>
Cc: Mark Rutland <[email protected]>; Alessandro Zummo <[email protected]>; devicetree at vger.kernel.org; Linus Walleij <[email protected]>; Jaechul Lee <[email protected]>; linux- kernel at vger.kernel.org; Krzysztof Kozlowski <[email protected]>; Javier Martinez Canillas <[email protected]>; linux-
mediatek at lists.infradead.org; linux-arm-kernel at lists.infradead.org; linux- input at vger.kernel.org; Matthias Brugger <[email protected]>; Eddie Huang (S?) <[email protected]>; Chen Zhong (??) <[email protected]>; Beomho Seo <[email protected]>; linux-rtc at vger.kernel.org
Subject: [PATCH v6 0/6] Add MediaTek PMIC keys supportMediaTek PMIC are multi-function devices that can handle key interrupts, typically there are two keys attached to PMIC, which called pwrkey and homekey. PWRKEY usually used to wake up system from sleep. Homekey can used as volume down key due to board design. Long press keys can shutdown PMIC, the mode can be choose to be one key only or two keys together. This series add support for key functions for MediaTek PMIC MT6397/MT6323.
Changes since v5:
- use__maybe_unusedannotation instead of #ifdef guard
- use of_* API instead of device_* APIChanges since v4:
- rebase to Linux 4.14-rc1
- add a common keyboard binding document
- use child device tree node to define each keyChanges since v3:
- make the naming to be consistent asmtk_pmicorMTK_PMIC
- add suspend/resume functions to enable/disable irq
- change binding properties to define wakeup sourcesChanges since v2:
- use standard properties for keycodes and debounce time
- change to useplatform_get_irqin leaf drivers
- use better ways to define IRQ resourcesChanges since v1:
- create irq mappings in mfd core driver instead of leaf drivers
- remove some unused parts in mtk-pmic-keys driverChen Zhong (6):
mfd: mt6397: create irq mappings in mfd core driver
dt-bindings: input: Add common keyboard document bindings
dt-bindings: input: Add document bindings for mtk-pmic-keys
dt-bindings: mfd: Add bindings for the keys as subnode of PMIC
input: Add MediaTek PMIC keys support
mfd: mt6397: Add PMIC keys support to MT6397 driverDocumentation/devicetree/bindings/input/keys.txt | 8 + .../devicetree/bindings/input/mtk-pmic-keys.txt | 43 +++ Documentation/devicetree/bindings/mfd/mt6397.txt | 6 + drivers/input/keyboard/Kconfig | 9 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-pmic-keys.c | 339 +++++++++++++++++++++ drivers/mfd/mt6397-core.c | 26 +- drivers/rtc/rtc-mt6397.c | 7 +- 8 files changed, 432 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/keys.txt create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic- keys.txt create mode 100644 drivers/input/keyboard/mtk-pmic-keys.c--
1.9.1_______________________________________________
Linux-mediatek mailing list
Linux-mediatek at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Signature · 1 line
Dmitry
Quoted 11 lines · Dmitry Torokhov
Quoted 10 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Quoted 4 lines
Quoted 1 line
Tested-by Sean Wang <[email protected]>You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Are you happy for me to merge the Input dt-bindings without your Ack?
Signature · 4 lines
Lee Jones [???] Linaro Services Technical Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Matthias Brugger
maintainerQuoted 12 lines · Lee Jones
Quoted 11 lines · Dmitry Torokhov
Quoted 10 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Tested-by Sean Wang <[email protected]>You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Are you happy for me to merge the Input dt-bindings without your Ack?
They got both Acked in v5, but the commit message was not updated:
https://patchwork.kernel.org/patch/9973721/
https://patchwork.kernel.org/patch/9973723/
Regards,
Matthias
Quoted 20 lines · Matthias Brugger
Quoted 17 lines · Lee Jones
Quoted 15 lines · Dmitry Torokhov
Quoted 11 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Tested-by Sean Wang <[email protected]>You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Quoted 6 lines
Quoted 2 lines
Are you happy for me to merge the Input dt-bindings without your Ack?
They got both Acked in v5, but the commit message was not updated:
https://patchwork.kernel.org/patch/9973721/
https://patchwork.kernel.org/patch/9973723/
Thanks Matthias.
Chen, can you collect all the Acks and repost as a RESEND please?
Signature · 4 lines
Lee Jones [???] Linaro Services Technical Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 25 lines · Lee Jones
Quoted 23 lines · Matthias Brugger
Quoted 19 lines · Lee Jones
Quoted 11 lines · Dmitry Torokhov
Quoted 10 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Quoted 4 lines
Quoted 1 line
Tested-by Sean Wang <[email protected]>You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Are you happy for me to merge the Input dt-bindings without your Ack?
Quoted 8 lines
Quoted 3 lines
They got both Acked in v5, but the commit message was not updated:
https://patchwork.kernel.org/patch/9973721/
https://patchwork.kernel.org/patch/9973723/Thanks Matthias.
Chen, can you collect all the Acks and repost as a RESEND please?
Thanks Matthias, Lee, Dmitry and Sean for your comments.
Hi Lee,
I have collected the Acks by Rob and sent the v6:
https://patchwork.kernel.org/patch/10026705
https://patchwork.kernel.org/patch/10026707
Are they enough to be merged?
Thank you.
Quoted 37 lines · Chen Zhong
Quoted 25 lines · Lee Jones
Quoted 23 lines · Matthias Brugger
Quoted 19 lines · Lee Jones
Quoted 11 lines · Dmitry Torokhov
Quoted 10 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Quoted 4 lines
Quoted 1 line
Tested-by Sean Wang <[email protected]>You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Are you happy for me to merge the Input dt-bindings without your Ack?
Quoted 8 lines
Quoted 3 lines
They got both Acked in v5, but the commit message was not updated:
https://patchwork.kernel.org/patch/9973721/
https://patchwork.kernel.org/patch/9973723/Thanks Matthias.
Chen, can you collect all the Acks and repost as a RESEND please?
Thanks Matthias, Lee, Dmitry and Sean for your comments.
Quoted 7 lines
Hi Lee,
I have collected the Acks by Rob and sent the v6:
https://patchwork.kernel.org/patch/10026705
https://patchwork.kernel.org/patch/10026707Are they enough to be merged?
Oh, I see.
I was asking about Dmitry's Ack.
Signature · 4 lines
Lee Jones [???] Linaro Services Technical Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Dmitry Torokhov
maintainerQuoted 45 lines · Lee Jones
Quoted 43 lines · Chen Zhong
Quoted 25 lines · Lee Jones
Quoted 23 lines · Matthias Brugger
Quoted 19 lines · Lee Jones
Quoted 11 lines · Dmitry Torokhov
Quoted 10 lines · Sean Wang
Hi, Dmitry and Lee
The series seems not being got merged. Are they good enough to be ready into the your tree?
Recently I've tested the series with focusing on pwrkey event generated through interrupt when push and release the key on bpi-r2 board and then finally it's working fine. but for homekey it cannot be found on the board and thus I cannot have more tests more about it.
Quoted 4 lines
Quoted 1 line
Tested-by Sean Wang <[email protected]>You have my Ack on the input patch; I expect it go through Lee's tree as there are some dependencies on mfd core piece.
Are you happy for me to merge the Input dt-bindings without your Ack?
Quoted 8 lines
Quoted 3 lines
They got both Acked in v5, but the commit message was not updated:
https://patchwork.kernel.org/patch/9973721/
https://patchwork.kernel.org/patch/9973723/Thanks Matthias.
Chen, can you collect all the Acks and repost as a RESEND please?
Thanks Matthias, Lee, Dmitry and Sean for your comments.
Hi Lee,
I have collected the Acks by Rob and sent the v6:
https://patchwork.kernel.org/patch/10026705
https://patchwork.kernel.org/patch/10026707
Quoted 5 lines
Quoted 1 line
Are they enough to be merged?
Oh, I see.
I was asking about Dmitry's Ack.
Oh, sorry, I did not realize you wanted my Ack for bindings. I usually leave it to Rob and simply ack the driver itself when I am happy with the code.
I'll go and add my ack to the binding post if that will help merging the series.
Thanks.
Signature · 1 line
Dmitry
Re: [PATCH v6 2/6] dt-bindings: input: Add common keyboard document bindings
In reply to Chen ZhongQuoted 5 lines · Chen Zhong
This patch adds the device tree binding documentation for common keyboard.
Acked-by Rob Herring <[email protected]>Signed-off-by Chen Zhong <[email protected]>
Quoted 23 lines
--- Documentation/devicetree/bindings/input/keys.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/keys.txtDocumentation/devicetree/bindings/input/keys.txt new file +8
-0@@ -0,0 +1,8 @@ +General Keys Properties: + +Optional properties for Keys: +- power-off-time-sec: Duration in seconds which the key should be kept + pressed for device to power off automatically. Device with key pressed + shutdown feature can specify this property. +- linux,keycodes: Specifies the numeric keycode values to be used for + reporting key presses.Signature · 1 line
1.7.9.5
Signature · 1 line
Dmitry
Re: [PATCH v6 3/6] dt-bindings: input: Add document bindings for mtk-pmic-keys
In reply to Chen ZhongQuoted 5 lines · Chen Zhong
This patch adds the device tree binding documentation for the MediaTek pmic keys found on PMIC MT6397/MT6323.
Acked-by Rob Herring <[email protected]>Signed-off-by Chen Zhong <[email protected]>
Quoted 57 lines
--- .../devicetree/bindings/input/mtk-pmic-keys.txt | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic-keys.txtDocumentation/devicetree/bindings/input/mtk-pmic-keys.txt new file +43
-0@@ -0,0 +1,43 @@ +MediaTek MT6397/MT6323 PMIC Keys Device Driver + +There are two key functions provided by MT6397/MT6323 PMIC, pwrkey +and homekey. The key functions are defined as the subnode of the function +node provided by MT6397/MT6323 PMIC that is being defined as one kind +of Muti-Function Device (MFD) + +For MT6397/MT6323 MFD bindings see: +Documentation/devicetree/bindings/mfd/mt6397.txt + +Required properties: +- compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys" +- linux,keycodes: See Documentation/devicetree/bindings/input/keys.txt + +Optional Properties: +- wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt +- mediatek,long-press-mode: Long press key shutdown setting, 1 for + pwrkey only, 2 for pwrkey/homekey together, others for disabled. +- power-off-time-sec: See Documentation/devicetree/bindings/input/keys.txt + +Example: + + pmic: mt6397 { + compatible = "mediatek,mt6397"; + + ... + + mt6397keys: mt6397keys { + compatible = "mediatek,mt6397-keys"; + mediatek,long-press-mode = <1>; + power-off-time-sec = <0>; + + power { + linux,keycodes = <116>; + wakeup-source; + }; + + home { + linux,keycodes = <114>; + }; + }; + + };Signature · 1 line
1.7.9.5
Signature · 1 line
Dmitry
Quoted 10 lines · Dmitry Torokhov
Oh, sorry, I did not realize you wanted my Ack for bindings. I usually leave it to Rob and simply ack the driver itself when I am happy with the code.
I'll go and add my ack to the binding post if that will help merging the series.
Thanks.
Hi Lee,
May I know if I need to collect Dmitry's comments and send a new version for the merging?
Thank you.
[GIT PULL] Immutable branch between MFD, Input and RTC due for the v4.18 merge window
In reply to Chen ZhongEnjoy!
The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338:
Linux 4.17-rc1 (2018-04-15 18:24:20 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-input-rtc-v4.18
for you to fetch changes up to 55d1d1547ab5e52269988af5e7c553796ff68e97:
mfd: mt6397: Add PMIC keys support to MT6397 driver (2018-04-16 15:16:11 +0100)
----------------------------------------------------------------
Immutable branch between MFD, Input and RTC due for the v4.18 merge window
----------------------------------------------------------------
Chen Zhong (5):
mfd: mt6397: Create irq mappings in mfd core driver
dt-bindings: input: Add document bindings for mtk-pmic-keys
dt-bindings: mfd: Add bindings for the keys as subnode of PMIC
input: Add MediaTek PMIC keys support
mfd: mt6397: Add PMIC keys support to MT6397 driver
.../devicetree/bindings/input/mtk-pmic-keys.txt | 43 +++ Documentation/devicetree/bindings/mfd/mt6397.txt | 6 + drivers/input/keyboard/Kconfig | 9 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-pmic-keys.c | 339 +++++++++++++++++++++ drivers/mfd/mt6397-core.c | 26 +- drivers/rtc/rtc-mt6397.c | 7 +- 7 files changed, 424 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic-keys.txt create mode 100644 drivers/input/keyboard/mtk-pmic-keys.c
Signature · 4 lines
Lee Jones [???] Linaro Services Technical Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [GIT PULL] Immutable branch between MFD, Input and RTC due for the v4.18 merge window
Quoted 25 lines · Lee Jones
Enjoy!
The following changes since commit
60cc43fc888428bb2f18f08997432d426a243338:Linux 4.17-rc1 (2018-04-15 18:24:20 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.gitib-mfd-input-rtc-v4.18for you to fetch changes up to
55d1d1547ab5e52269988af5e7c553796ff68e97:mfd: mt6397: Add PMIC keys support to MT6397 driver (2018-04-16 15:16:11 +0100)
----------------------------------------------------------------
Immutable branch between MFD, Input and RTC due for the v4.18 merge window----------------------------------------------------------------
Chen Zhong (5):
mfd: mt6397: Create irq mappings in mfd core driver
dt-bindings: input: Add document bindings for mtk-pmic-keys
dt-bindings: mfd: Add bindings for the keys as subnode of PMIC
input: Add MediaTek PMIC keys support
mfd: mt6397: Add PMIC keys support to MT6397 driver
Quoted 11 lines
.../devicetree/bindings/input/mtk-pmic-keys.txt | 43 +++ Documentation/devicetree/bindings/mfd/mt6397.txt | 6 + drivers/input/keyboard/Kconfig | 9 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/mtk-pmic-keys.c | 339 +++++++++++++++++++++ drivers/mfd/mt6397-core.c | 26 +- drivers/rtc/rtc-mt6397.c | 7 +- 7 files changed, 424 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/mtk-pmic-keys.txt create mode 100644 drivers/input/keyboard/mtk-pmic-keys.c
Hi Lee,
I?m sorry that I found this patch
https://patchwork.kernel.org/patch/10026705/
is missing in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
ib-mfd-input-rtc-v4.18
Could you please take this patch up?
Thanks.
Best regards,
Chen Zhong