Hello,
I want to test how the HTE driver works, I am creating a node based on what I see in the driver code:
diff --git a/hardware/nvidia/t23x/nv-public/tegra234.dtsi b/hardware/nvidia/t23x/nv-public/tegra234.dtsi
index f909b93..626c5d2 100644
--- a/hardware/nvidia/t23x/nv-public/tegra234.dtsi
+++ b/hardware/nvidia/t23x/nv-public/tegra234.dtsi
@@ -1766,6 +1766,19 @@
nvidia,gpio-controller = <&gpio_aon>;
#timestamp-cells = <1>;
};
+
+#define GPIO_IN TEGRA234_AON_GPIO(AA, 0)
+#define GPIO_OUT TEGRA234_AON_GPIO(AA, 1)
+
+ hte_test {
+ status = "okay";
+ compatible = "nvidia,tegra194-hte-test";
+ in-gpios = <&gpio_aon GPIO_IN GPIO_ACTIVE_HIGH>;
+ out-gpios = <&gpio_aon GPIO_OUT GPIO_ACTIVE_HIGH>;
+ timestamps = <&hte_aon 0>;
+ };
But based on the errors, it seems is not defining the GPIOs correctly:
[ 7.716209] tegra_hte_test bus@0:hte_test: failed to get gpio out
[ 7.716212] tegra_hte_test: probe of bus@0:hte_test failed with error -22
I don’t understand why there is an error in the GPIO definition, Does someone know what the error is or Is there some reference to enable the tegra194-hte-test driver?
Thanks.