Editing device tree for RPI V2.0 camera IMX219 without i2cmux

Hello @ShaneCCC so it’s sure what i need 3 regulators, of 1.2v 1.8v 2.8v.
For the names i have seen this in the tegra tegra186-quill-camera-e3322-a00.dtsi file
/home/eca/Desktop/kernel_src.nvidia.inpixal.nikita/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-camera-e3322-a00.dtsi
It’s the same like us:

i2c@3180000 {
		tca9548@77 {
			i2c@0 {
				imx219_a@10 {
					clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH1>;
					clock-names = "extperiph1";
					mclk = "extperiph1";
					reset-gpios = <&tca6408_21 0 GPIO_ACTIVE_HIGH>;
					vana-supply = <&en_vdd_cam_hv_2v8>;
					vdig-supply = <&en_vdd_sys>;
					dovdd-supply = <&en_vdd_cam>;

and I’ve fund this :

sudo ls /sys/kernel/debug/regulator/en-vdd-cam-hv-2v8/
ls: cannot access ‘/sys/kernel/debug/regulator/en-vdd-cam-hv-2v8/’: No such file or directory

sudo ls /sys/kernel/debug/regulator/
avdd_dsi_csi
avdd-ts-hv
dvdd-pex
en-vdd-sd
en-vdd-vcm-2v8
power_tree
rail_states
rail_voltages
reg-dummy-regulator-dummy
regulator_summary
spmic-ldo0
spmic-ldo1
spmic-ldo6
supply_map
vdd-1v8
vdd-1v8-ap
vdd-3v3
vdd-3v3-sys
vdd-ac-bat
vddio-3v3
vddio-ddr
vddio-sdmmc1
vdd-pex-1v05
vdd-rtc
vdd-sys-bl
vdd-usb0-5v
vdd-usb1-5v

So my en_vdd_cam_hv_2v8, en_vdd_sys, en_vdd_cam are non-existent in this repository, also the same in the decompiled dtb.

But these regulators are defined in :
/home/eca/Desktop/kernel_src.nvidia.inpixal.nikita/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-cvb-prod-p2597-b00-p3310-1000-a00-00.dtsi

tegra186-cvb-prod-p2597-b00-p3310-1000-a00-00.dtsi is called by tegra186-quill-power-tree-p3310-1000-a00-00.dtsi which is included in tegra186-quill-p3310-a00-00-base.dts

so it’s should be shown…

I’ve fund this


regulators nodes have gpio enable field

so i had slightly modified the tegra186-cvb-prod-p2597-b00-p3310-1000-a00-00.dtsi file:


		en_vdd_cam_hv_2v8: regulator@11 {
			compatible = "regulator-fixed-sync";
			reg = <11>;
			regulator-name = "en-vdd-cam-hv-2v8";
			regulator-min-microvolt = <2800000>;
			regulator-max-microvolt = <2800000>;
			gpio = <&tegra_main_gpio TEGRA_MAIN_GPIO(R, 5) 0>;
			enable-active-high;

tegra186-cvb-prod-p2597-b00-p3310-1000-a00-00.dtsi (8.1 KB)

What do you think about it ?