Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Grate nvec paz00 #2

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

kwizart
Copy link

@kwizart kwizart commented Nov 25, 2022

NVEC keyboard patches for paz00
(tested on paz00)

TODO:
There is a need to review the new specific patches to build NVEC, specially the Kconfig enablement and dependencies.
Verify if DM_KEYBOARD is really needed. (or can be dropped).

Also I wonder if anyone already tested edid support for tegra display (in u-boot context) ? as this may ease some or us with the non-default display panel...

jonasschwoebel and others added 30 commits November 25, 2022 09:20
This driver allows use a set of GPIO buttons as input device.
It may be useful for bootmenu navigation if device has GPIO
based volume and power buttons (like tablets).

Signed-off-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
On popular request make the display driver from T20 work on T30 as
well. Turned out to be quite straight forward. However a few notes
about some things encountered during porting: Of course the T30 device
tree was completely missing host1x as well as PWM support but it turns
out this can simply be copied from T20. The only trouble compiling the
Tegra video driver for T30 had to do with some hard-coded PWM pin
muxing for T20 which is quite ugly anyway. On T30 this gets handled by
a board specific complete pin muxing table. The older Chromium U-Boot
2011.06 which to my knowledge was the only prior attempt at enabling a
display driver for T30 for whatever reason got some clocking stuff
mixed up. Turns out at least for a single display controller T20 and
T30 can be clocked quite similar. Enjoy.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
All Nvidia boards use the same manufacturer, vendor ID and product ID
for the gadgets. Make them the defaults to remove some boilerplate from
the defconfigs.

Inspired by commit e02687b ("sunxi: provide default USB gadget
setup") which did the same for Allwinner boards.

Signed-off-by: Maxim Schwalm <maxim.schwalm@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Add support for encryption, decryption and signinig with
non-zero key saving backward compatibility.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Ramin Khonsari <raminterex@yahoo.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Ramin Khonsari <raminterex@yahoo.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Tegra devices on Android have proprietary partition table based on GPT.

Signed-off-by: Tobias Zagorni <tobias@zagorni.eu>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit implements "fastboot getvar all" listing
by iterating the existing dispatchers that don't require
parameters (as we pass NULL), uses fastboot multiresponse.
console_record_isempty as avail doesn't serve to know
output has been read fully with readline's
added this behavior as optional and documented properly
Add device-tree and config for Tegra20 QEMU.

Link: https://github.com/grate-driver/tegra2_qemu
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
clamor-s and others added 15 commits November 25, 2022 09:20
Board derives from Ventana board.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Includes 3 devices:
- Asus Eee Pad Transformer TF101 and TF101G
- Asus Eee Pad Slider SL101

Tested-by: Antoni Aloy Torrens <aaloytorrens@gmail.com> # ASUS TF101
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Board derives from Cardhu board.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Includes 7 ASUS devices:
- Transformer Prime TF201
- Transformer Pad TF300T/TF300TG/TF300TL
- VivoTab RT TF600T (Windows RT based)
- Transformer Infinity TF700T
- Transformer AiO P1801-T

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # all devices
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Enum clock_osc_freq was designed to use only with T20.
This patch remaps it to use additional frequencies, added in
T30+ SoC while maintaining backwards compatibility with T20.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS TF600T T30
Tested-by: Jonas Schwöbel <jonasschwoebel@yahoo.de> # Surface RT T30
Tested-by: Robert Eckelmann <longnoserob@gmail.com> # ASUS TF101 T20
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Add timer support for T20/T30/T114 and T124 based devices.
Driver is based on DM, has device tree support and can be
used on SPL and early boot stage.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS TF600T T30
Tested-by: Jonas Schwöbel <jonasschwoebel@yahoo.de> # Surface RT T30
Tested-by: Robert Eckelmann <longnoserob@gmail.com> # ASUS TF101 T20
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30
Co-developed-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Jonas Schwöbel <jonasschwoebel@yahoo.de>
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Enable TIMER as default option for add Tegra devices and
enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally
enable SPL_TIMER if build as SPL part and drop deprecated
configs from common header.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Adopted version of nvec driver from linux kernel with
keyboard support only.

Signed-off-by: Andrey Danin <danindrey@mail.ru>
[squashed, forward ported, and cleaned up]
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Adopted version of nvec keyboard driver from linux kernel.

Signed-off-by: Andrey Danin <danindrey@mail.ru>
[squashed, forward ported, and cleaned up]
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Andrey Danin <danindrey@mail.ru>
[squashed, forward ported, and cleaned up]
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
@kwizart kwizart mentioned this pull request Nov 25, 2022
@clamor-s
Copy link
Collaborator

@kwizart greetings and thanks for this contribution. It is nice to see someone is working with paz00 and t20 in general.

If this patch allows paz00 keyboard to work it is fantastic but I would suggest next:

  • nvec and nvec kbd need to be strictly in dm form with native dts parsing
  • there should be one commit for nvec implementation, one for nvec kbd and one for paz00 to enable it
  • code formatting should be improved to pass patchcheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants