phanlde references in dtb for tx2/i

Hi,

I want to add gpio node in “hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-cvb-slt-common-p2598-1099-a00.dtsi” & same i want to use in camera dts as “&gpio_$bus_$addr”

for example :- &gpio_i2c_0_24

but problem is when I compile dtbs, im getting following error

DTC     arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-c03-00-ar1335-tricam.dtb
ERROR (phandle_references): Reference to non-existent node or label "gpio_i2c_0_24"

ERROR (phandle_references): Reference to non-existent node or label "gpio_i2c_0_24"

What should I do so that changes done in “hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-cvb-slt-common-p2598-1099-a00.dtsi” & same i want to use in camera dts as “&gpio_$bus_$addr” should reflect in final dtb ??

thanks

Hi,
Please refer to below gpio_i2c_0_21 and add your gpio_i2c_0_24 to the device tree:

107 		gpio_i2c_0_21: gpio@21 {
108 			compatible = "ti,tca6408";
109 			status = "disabled";
110 			reg = <0x21>;
111 			gpio-controller;
112 			#gpio-cells = <2>;
113 			vcc-supply = <&battery_reg>;
114 		};

Hi,

I tried same thing as mentioned above, but still same issue

gpio_i2c_0_25: gpio@25 {
			compatible = "ti,tca9539";
			reg = <0x25>;
			gpio-controller;
			#gpio-cells = <2>;
			vcc-supply = <&battery_reg>;
		};

thanks

Hi,
Please put it in tegra186-cvb-prod-p2597-b00-p3310-1000-a00-00.dtsi and try again.
tegra186-cvb-slt-common-p2598-1099-a00.dtsi looks not referred.