Skip to contentSkip to conversation

ARM: DT: tegra: add DT entry for KBC controller

PATCH In review Laxman Dewangan 2 participants 3 messages Jan 4, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: DT: tegra: add DT entry for KBC controller

NVIDIA's Tegra SoCs have the matrix keyboard controller which supports 16x8 type of matrix. The number of rows and columns are configurable.

Add DT entry for KBC controller.

---
 arch/arm/boot/dts/tegra20.dtsi |    7 +++++++
 arch/arm/boot/dts/tegra30.dtsi |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
arch/arm/boot/dts/tegra20.dtsi +7 -0
index fe35c72..133d00d 100644
@@ -352,6 +352,13 @@
 		status = "disabled";
 	};
 
+	kbc {
+		compatible = "nvidia,tegra20-kbc";
+		reg = <0x7000e200 0x100>;
+		interrupts = <0 85 0x04>;
+		status = "disabled";
+	};
+
 	pmc {
 		compatible = "nvidia,tegra20-pmc";
 		reg = <0x7000e400 0x400>;
arch/arm/boot/dts/tegra30.dtsi +7 -0
index f534a50..bc9f702 100644
@@ -368,6 +368,13 @@
 		status = "disabled";
 	};
 
+	kbc {
+		compatible = "nvidia,tegra30-kbc", nvidia,tegra20-kbc";
+		reg = <0x7000e200 0x100>;
+		interrupts = <0 85 0x04>;
+		status = "disabled";
+	};
+
 	pmc {
 		compatible = "nvidia,tegra20-pmc", "nvidia,tegra30-pmc";
 		reg = <0x7000e400 0x400>;
Signature · 1 line
1.7.1.1
#1 lore raw

PATCH 1/1 ARM: tegra: config: enable KEYBOARD_TEGRA

---
 arch/arm/configs/tegra_defconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/configs/tegra_defconfig +1 -0
index 0becd9f..c14a9fb 100644
@@ -106,6 +106,7 @@ CONFIG_BRCMFMAC=m
 CONFIG_RT2X00=y
 CONFIG_RT2800USB=m
 CONFIG_INPUT_EVDEV=y
+CONFIG_KEYBOARD_TEGRA=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_MPU3050=y
 # CONFIG_LEGACY_PTYS is not set
Signature · 1 line
1.7.1.1
#2 lore raw
In reply to Laxman Dewangan
Quoted 5 lines · Laxman Dewangan

NVIDIA's Tegra SoCs have the matrix keyboard controller which supports 16x8 type of matrix. The number of rows and columns are configurable.

Add DT entry for KBC controller.

These two look OK. Ping me once the related KBC driver changes are checked in and I'll apply them.