Skip to content

Commit aededbc

Browse files
marvintwentyfourkwizart
authored andcommitted
ARM: tegra: paz00: enable nvec keyboard support
Signed-off-by: Andrey Danin <danindrey@mail.ru> [squashed, forward ported, and cleaned up] Signed-off-by: Marc Dietrich <marvin24@gmx.de>
1 parent 1269b2f commit aededbc

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

arch/arm/dts/tegra20-paz00.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,4 +633,19 @@
633633
<&tegra_car TEGRA20_CLK_CDEV1>;
634634
clock-names = "pll_a", "pll_a_out0", "mclk";
635635
};
636+
637+
nvec {
638+
compatible = "nvidia,tegra20-nvec";
639+
reg = <0x7000c500 0x100>;
640+
clock-frequency = <80000>;
641+
request-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
642+
slave-addr = <138>;
643+
#address-cells = <1>;
644+
#size-cells = <1>;
645+
646+
kbc@0x1 {
647+
reg = <0x0 0x0>;
648+
compatible = "nvidia,tegra20-nvec-kbc";
649+
};
650+
};
636651
};

configs/paz00_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CONFIG_ENV_OFFSET=0xFFFFE000
88
CONFIG_DEFAULT_DEVICE_TREE="tegra20-paz00"
99
CONFIG_SPL_TEXT_BASE=0x00108000
1010
CONFIG_TEGRA20=y
11+
CONFIG_DM_I2C=y
1112
CONFIG_TARGET_PAZ00=y
1213
CONFIG_SYS_LOAD_ADDR=0x1000000
1314
CONFIG_OF_SYSTEM_SETUP=y

include/configs/paz00.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@
2121

2222
/* Environment in eMMC, at the end of 2nd "boot sector" */
2323

24+
/* Keyboard support */
25+
#define CONFIG_KEYBOARD
26+
#define CONFIG_TEGRA_NVEC_KEYBOARD
27+
/* NVEC support */
28+
#define CONFIG_CMD_I2C
29+
#define CONFIG_SYS_I2C_INIT_BOARD
30+
#define CONFIG_TEGRA_NVEC
31+
#define BOARD_EXTRA_ENV_SETTINGS \
32+
"i2c dev 0" "\0" \
33+
"i2c dev 1" "\0" \
34+
"i2c dev 2" "\0"
35+
2436
#include "tegra-common-post.h"
2537

2638
#endif /* __CONFIG_H */

include/configs/tegra-common-post.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
#ifdef CONFIG_TEGRA_KEYBOARD
3434
#define STDIN_KBD_KBC ",tegra-kbc"
35+
#elif defined(CONFIG_TEGRA_NVEC_KEYBOARD)
36+
#define STDIN_KBD_KBC ",tegra-nvec-kbc"
3537
#else
3638
#define STDIN_KBD_KBC ""
3739
#endif

0 commit comments

Comments
 (0)