Tab5 ST7121 variant + fixes (#605)

Added the newest variant to the tab5, St7121.
Fixed variant detection reliability
Fixed tab5 camera WHO_AM_I failing sometimes
Fixed tab5 keyboard live rotation on boot and after stopping/starting lvgl
This commit is contained in:
Shadowtrance
2026-08-02 04:50:55 +10:00
committed by GitHub
parent d72d5a0ef2
commit 85fe1a319a
31 changed files with 1531 additions and 222 deletions
+7 -8
View File
@@ -71,12 +71,12 @@
pin-sda = <&gpio0 31 GPIO_FLAG_PULL_UP>;
pin-scl = <&gpio0 32 GPIO_FLAG_PULL_UP>;
io_expander0: io_expander0 {
io_expander0 {
compatible = "diodes,pi4ioe5v6408";
reg = <0x43>;
};
io_expander1: io_expander1 {
io_expander1 {
compatible = "diodes,pi4ioe5v6408";
reg = <0x44>;
};
@@ -123,6 +123,11 @@
sc2356 {
compatible = "smartsens,sc2356";
reg = <0x36>;
// Pulsed by the sc2356 driver itself in start_device, not a gpio-hog: the driver's
// I2C probe otherwise races a bare hog's pin release with no settle delay (the hog
// also only starts after this node, since it's a root-level sibling declared later
// in this file - always too late).
pin-reset = <&io_expander0 6 GPIO_FLAG_ACTIVE_LOW>;
};
};
@@ -138,12 +143,6 @@
mode = <GPIO_HOG_MODE_OUTPUT_HIGH>;
};
exp0_camera_reset {
compatible = "gpio-hog";
pin = <&io_expander0 6 GPIO_FLAG_NONE>;
mode = <GPIO_HOG_MODE_OUTPUT_HIGH>;
};
exp1_c6_wlan_enable {
compatible = "gpio-hog";
pin = <&io_expander1 0 GPIO_FLAG_NONE>;