Compile device tree source file (dts) for Goodix

I am doing a projet which is to integrate the touch panel goodix9271 for jetson nano.
When compiling the device tree source file (which I wrote thanks to file goodix-overlay.dts from kernel of raspberrypi) in jetson.

/dts-v1/;
/plugin/;

/ {
overlay-name = “Goodix Overlay”;
jetson-header-name = “Jetson 40pin Header”;
compatible = “nvidia,p3449-0000-b00+p3448-0000-b00nvidia,jetson-nanonvidia,tegra210”;

fragment@0 {
	 target-path = "&gpio";
	 __overlay__ {
	 //my-custom-property = "This Is My Overlay";
 	goodix_pins: goodix_pins {
	 nvidia,pins = <79 50>; // interrupt and reset
	 nvidia,function = <0 0>; // in
	 nvidia,pull = <2 2>; // pull-up
	 };
    	};
};

fragment@1 {
 target-path = <&i2c1>;
 __overlay__ {
	 #address-cells = <1>;
	 #size-cells = <0>;
	 status = "okay";

	 gt9271: gt9271@14 {
		 compatible = "goodix,gt9271";
		 reg = <0x14>;
		 pinctrl-names = "default";
		 pinctrl-0 = <&goodix_pins>;
		 interrupt-parent = <&gpio>;
		 interrupts = <79 2>; // high-to-low edge triggered
		 irq-gpios = <&gpio 79 0>;
		 reset-gpios = <&gpio 50 0>;
	 };
 };
};

__overrides__ {
  interrupt = <&goodix_pins>,"nvidia,pins:0",
	  <&gt9271>,"interrupts:0",
	  <&gt9271>,"irq-gpios:79";
  reset = <&goodix_pins>,"nvidia,pins:79",
	  <&gt9271>,"reset-gpios:79";
};

};

I have found these warnings and errors but I can not find the solution.
bphan@bphan-desktop:~/Documents$ dtc -O dtb -o goodix.dtbo -@ goodix-overlay.dts

goodix.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property

goodix.dtbo: Warning (unit_address_vs_reg): Node /fragment@1 has a unit name, but no reg property

goodix.dtbo: Warning (gpios_property): Property ‘irq-gpios’, cell 1 is not a phandle reference in /fragment@1/overlay/gt9271@14

goodix.dtbo: Warning (gpios_property): Could not get phandle node for /fragment@1/overlay/gt9271@14:irq-gpios(cell 1)

goodix.dtbo: Warning (gpios_property): Property ‘reset-gpios’, cell 1 is not a phandle reference in /fragment@1/overlay/gt9271@14

goodix.dtbo: Warning (gpios_property): Could not get phandle node for /fragment@1/overlay/gt9271@14:reset-gpios(cell 1)

dtc: livetree.c:521: get_node_by_phandle: Assertion `(phandle != 0) && (phandle != -1)’ failed.

Aborted (core dumped)

Please try to download nvidia source code file and follow document to build.

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html#

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.