[WIP] Possible ESD Enhancement for NRU-170-PPC to reset eDP

Memo

  • We added additional eDP HDP to Jetson GPI since ES2 (PZ.03)

  • We try to leverage two existing mechanism to reset the eDP display

    • gpio-keys

    • acpid

gpio-keys

A customized device tree to treat PZ.03 as SW_LID

sources/hardware/nvidia/platform/t23x/p3768/kernel-dts/cvb/nru160-a0.dtsi

 gpio-keys {
               ...
                // Fake eDP HDP as KEY_VOLUMEUP for acpid process to re-enable eDP for ESD
                // PY.04 to leverage PPS input for testing. PZ.03 the eDP HDP detectioneDP for ESD
                eDP_detection {
                        label = "eDP_detection";
                        // eDP HDP from ES2
                        gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(Z, 3) GPIO_ACTIVE_LOW>;

                        // Faking with GPS PPS for testing
                        // gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(Y, 4) GPIO_ACTIVE_LOW>;

                        linux,input-type = <EV_SW>;
                        linux,code = <SW_LID>;
                        // gpio-key,wakeup;
                };
                ...
        };

acpid

Installation

Scripts to Add

/etc/acpi/events/lid

/etc/acpi/lid.sh

/usr/src/eDP_reset.sh

Back to Terminal

Last updated