arm64: dts: mediatek: mt8183: add keyboard node
authorFabien Parent <fparent@baylibre.com>
Tue, 26 Jul 2022 12:56:11 +0000 (14:56 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 25 Aug 2022 13:05:23 +0000 (15:05 +0200)
MT8183 has an on-SoC keyboard controller commonly used for volume
up/down buttons.

List it in the SoC dts so that boards can enable/use it.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220720-mt8183-keypad-v2-6-6d42c357cb76@baylibre.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183.dtsi

index 1543876..7158948 100644 (file)
                        clock-names = "spi", "wrap";
                };
 
+               keyboard: keyboard@10010000 {
+                       compatible = "mediatek,mt6779-keypad";
+                       reg = <0 0x10010000 0 0x1000>;
+                       interrupts = <GIC_SPI 186 IRQ_TYPE_EDGE_FALLING>;
+                       clocks = <&clk26m>;
+                       clock-names = "kpd";
+                       status = "disabled";
+               };
+
                scp: scp@10500000 {
                        compatible = "mediatek,mt8183-scp";
                        reg = <0 0x10500000 0 0x80000>,