From: fengping yu <fengping.yu@mediatek.com> To: Matthias Brugger <matthias.bgg@gmail.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, "Will Deacon" <will@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Olof Johansson <olof@lixom.net>, Aisheng Dong <aisheng.dong@nxp.com>, Anson Huang <Anson.Huang@nxp.com>, Maxime Ripard <mripard@kernel.org>, Leonard Crestez <leonard.crestez@nxp.com>, Dinh Nguyen <dinguyen@kernel.org>, "Marcin Juszkiewicz" <marcin.juszkiewicz@linaro.org>, Valentin Schneider <valentin.schneider@arm.com>, Arnd Bergmann <arnd@arndb.de>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Mark Brown <broonie@kernel.org>, Thierry Reding <treding@nvidia.com>, YueHaibing <yuehaibing@huawei.com>, Stefan Agner <stefan@agner.cn>, Jacky Bai <ping.bai@nxp.com>, Marco Felsch <m.felsch@pengutronix.de> Cc: devicetree@vger.kernel.org, wsd_upstream@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-input@vger.kernel.org, "fengping.yu" <fengping.yu@mediatek.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 1/2] Documentation: devicetree: bindings: input Date: Wed, 8 Jan 2020 14:29:22 +0800 [thread overview] Message-ID: <20200108062923.14684-2-fengping.yu@mediatek.com> (raw) In-Reply-To: <20200108062923.14684-1-fengping.yu@mediatek.com> From: "fengping.yu" <fengping.yu@mediatek.com> Add mtk keypad device tree documentation. Change-Id: I415b76ee980784992763c768829b2dda76699dea Signed-off-by: fengping.yu <fengping.yu@mediatek.com> --- .../devicetree/bindings/input/mtk-kpd.txt | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mtk-kpd.txt diff --git a/Documentation/devicetree/bindings/input/mtk-kpd.txt b/Documentation/devicetree/bindings/input/mtk-kpd.txt new file mode 100644 index 000000000000..2af81e696159 --- /dev/null +++ b/Documentation/devicetree/bindings/input/mtk-kpd.txt @@ -0,0 +1,45 @@ +* Mediatek's Keypad Controller device tree binding + +Mediatek's Keypad controller is used to interface a SoC with a matrix-type +keypad device. The keypad controller supports multiple row and column lines. +A key can be placed at each intersection of a unique row and a unique column. +The keypad controller can sense a key-press and key-release and report the +event using a interrupt to the cpu. + +Required properties: +- compatible should contain: + * "mediatek,mt6779-keypad" for MT6779 keypad + * "mediatek,kp" for common keypad + +- reg: The base address of the Keypad register bank. + +- interrupts: A single interrupt specifier. + +- mediatek,key-debounce-ms: Debounce interval in milliseconds, maximum value + is 256ms + +- mediatek,hw-map-num: Number of entries of keycode in mediatek,hw-init-map + +- mediatek,hw-init-map: An array of packed 1-cell entries containing the + equivalent of hw-map-num linux key-code. Each cell is Linux keymap of + corresponding row/col, arrange like this: + + row0col0, row0col1, row0col2,...row0col8, + row1col0, row1col1, row1col2,...row1col8, + ... + row7col0, row7col1, row7col2,...row7col8. + +Example: + + keypad: kp@10010000 { + compatible = "mediatek,mt6779-keypad", "mediatek,kp"; + reg = <0 0x10010000 0 0x1000>; + interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_FALLING>; + }; + + &keypad { + mediatek,key-debounce-ms = <1024>; + /*HW Keycode [0~71] -> Linux Keycode*/ + mediatek,khw-map-num = <72>; + mediatek,hw-init-map = <114 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >; + }; -- 2.18.0 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek
WARNING: multiple messages have this Message-ID (diff)
From: fengping yu <fengping.yu@mediatek.com> To: Matthias Brugger <matthias.bgg@gmail.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, "Will Deacon" <will@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Olof Johansson <olof@lixom.net>, Aisheng Dong <aisheng.dong@nxp.com>, Anson Huang <Anson.Huang@nxp.com>, Maxime Ripard <mripard@kernel.org>, Leonard Crestez <leonard.crestez@nxp.com>, Dinh Nguyen <dinguyen@kernel.org>, "Marcin Juszkiewicz" <marcin.juszkiewicz@linaro.org>, Valentin Schneider <valentin.schneider@arm.com>, Arnd Bergmann <arnd@arndb.de>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Mark Brown <broonie@kernel.org>, Thierry Reding <treding@nvidia.com>, YueHaibing <yuehaibing@huawei.com>, Stefan Agner <stefan@agner.cn>, Jacky Bai <ping.bai@nxp.com>, Marco Felsch <m.felsch@pengutronix.de> Cc: devicetree@vger.kernel.org, wsd_upstream@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-input@vger.kernel.org, "fengping.yu" <fengping.yu@mediatek.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 1/2] Documentation: devicetree: bindings: input Date: Wed, 8 Jan 2020 14:29:22 +0800 [thread overview] Message-ID: <20200108062923.14684-2-fengping.yu@mediatek.com> (raw) In-Reply-To: <20200108062923.14684-1-fengping.yu@mediatek.com> From: "fengping.yu" <fengping.yu@mediatek.com> Add mtk keypad device tree documentation. Change-Id: I415b76ee980784992763c768829b2dda76699dea Signed-off-by: fengping.yu <fengping.yu@mediatek.com> --- .../devicetree/bindings/input/mtk-kpd.txt | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mtk-kpd.txt diff --git a/Documentation/devicetree/bindings/input/mtk-kpd.txt b/Documentation/devicetree/bindings/input/mtk-kpd.txt new file mode 100644 index 000000000000..2af81e696159 --- /dev/null +++ b/Documentation/devicetree/bindings/input/mtk-kpd.txt @@ -0,0 +1,45 @@ +* Mediatek's Keypad Controller device tree binding + +Mediatek's Keypad controller is used to interface a SoC with a matrix-type +keypad device. The keypad controller supports multiple row and column lines. +A key can be placed at each intersection of a unique row and a unique column. +The keypad controller can sense a key-press and key-release and report the +event using a interrupt to the cpu. + +Required properties: +- compatible should contain: + * "mediatek,mt6779-keypad" for MT6779 keypad + * "mediatek,kp" for common keypad + +- reg: The base address of the Keypad register bank. + +- interrupts: A single interrupt specifier. + +- mediatek,key-debounce-ms: Debounce interval in milliseconds, maximum value + is 256ms + +- mediatek,hw-map-num: Number of entries of keycode in mediatek,hw-init-map + +- mediatek,hw-init-map: An array of packed 1-cell entries containing the + equivalent of hw-map-num linux key-code. Each cell is Linux keymap of + corresponding row/col, arrange like this: + + row0col0, row0col1, row0col2,...row0col8, + row1col0, row1col1, row1col2,...row1col8, + ... + row7col0, row7col1, row7col2,...row7col8. + +Example: + + keypad: kp@10010000 { + compatible = "mediatek,mt6779-keypad", "mediatek,kp"; + reg = <0 0x10010000 0 0x1000>; + interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_FALLING>; + }; + + &keypad { + mediatek,key-debounce-ms = <1024>; + /*HW Keycode [0~71] -> Linux Keycode*/ + mediatek,khw-map-num = <72>; + mediatek,hw-init-map = <114 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >; + }; -- 2.18.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-01-08 6:40 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-08 6:29 Resend [PATCH V2] dt-bindings:input:keyboard:add MediaTek keypad controller binding fengping yu 2020-01-08 6:29 ` fengping yu 2020-01-08 6:29 ` fengping yu 2020-01-08 6:29 ` fengping yu [this message] 2020-01-08 6:29 ` [PATCH V2 1/2] Documentation: devicetree: bindings: input fengping yu 2020-01-10 1:16 ` Dmitry Torokhov 2020-01-10 1:16 ` Dmitry Torokhov 2020-01-10 1:16 ` Dmitry Torokhov 2020-01-08 6:29 ` [PATCH V2 2/2] drivers: input: keyboard fengping yu 2020-01-08 6:29 ` fengping yu 2020-01-08 7:11 ` Marco Felsch 2020-01-08 7:11 ` Marco Felsch 2020-01-08 7:11 ` Marco Felsch 2020-01-08 7:23 ` Marco Felsch 2020-01-08 7:23 ` Marco Felsch 2020-01-08 7:23 ` Marco Felsch 2020-01-08 8:46 ` Yingjoe Chen 2020-01-08 8:46 ` Yingjoe Chen 2020-01-08 11:26 ` Andy Shevchenko 2020-01-08 11:26 ` Andy Shevchenko 2020-01-08 11:26 ` Andy Shevchenko 2020-01-10 1:20 ` Dmitry Torokhov 2020-01-10 1:20 ` Dmitry Torokhov 2020-01-10 1:20 ` Dmitry Torokhov 2020-01-08 11:22 ` Andy Shevchenko 2020-01-08 11:22 ` Andy Shevchenko 2020-01-08 11:22 ` Andy Shevchenko 2020-01-10 1:32 ` Dmitry Torokhov 2020-01-10 1:32 ` Dmitry Torokhov 2020-01-10 1:32 ` Dmitry Torokhov 2020-01-10 7:35 ` Andy Shevchenko 2020-01-10 7:35 ` Andy Shevchenko 2020-01-10 7:35 ` Andy Shevchenko 2020-01-08 6:38 ` Resend [PATCH V2] dt-bindings:input:keyboard:add MediaTek keypad controller binding Marco Felsch 2020-01-08 6:38 ` Marco Felsch 2020-01-08 6:38 ` Marco Felsch -- strict thread matches above, loose matches on Subject: below -- 2019-12-27 1:37 [PATCH V2] drivers: input: keyboard: add mediatek matrix keypad driver fengping yu 2019-12-27 1:37 ` [PATCH V2 1/2] Documentation: devicetree: bindings: input fengping yu 2020-01-07 7:49 ` Yingjoe Chen 2019-12-27 1:34 [patch v2] drivers: input: keyboard: add mediatek matrix keypad drivers fengping.yu 2019-12-27 1:34 ` [PATCH V2 1/2] Documentation: devicetree: bindings: input fengping.yu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200108062923.14684-2-fengping.yu@mediatek.com \ --to=fengping.yu@mediatek.com \ --cc=Anson.Huang@nxp.com \ --cc=aisheng.dong@nxp.com \ --cc=andriy.shevchenko@linux.intel.com \ --cc=arnd@arndb.de \ --cc=broonie@kernel.org \ --cc=catalin.marinas@arm.com \ --cc=devicetree@vger.kernel.org \ --cc=dinguyen@kernel.org \ --cc=dmitry.torokhov@gmail.com \ --cc=leonard.crestez@nxp.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=m.felsch@pengutronix.de \ --cc=marcin.juszkiewicz@linaro.org \ --cc=mark.rutland@arm.com \ --cc=matthias.bgg@gmail.com \ --cc=mripard@kernel.org \ --cc=olof@lixom.net \ --cc=ping.bai@nxp.com \ --cc=robh+dt@kernel.org \ --cc=shawnguo@kernel.org \ --cc=stefan@agner.cn \ --cc=treding@nvidia.com \ --cc=valentin.schneider@arm.com \ --cc=will@kernel.org \ --cc=wsd_upstream@mediatek.com \ --cc=yuehaibing@huawei.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.