I2C Bus ID using TCA9548

Dear Forum,

Would someone be kind to explain how to identify the I2C bus ID of the sensor modules to be used in case of using the TCA9548, please ? Concretely, I would like to know how 30, 31, 32, 33, 34, 35 in the devname property are identified in the following example :

/ {
	tcp: tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";

		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		max_pixel_rate = <240000>;
		isp_peak_byte_per_pixel = <5>;
		isp_bw_margin_pct = <25>;

		modules {
			cam_module0: module0 {
				badge = "jakku_bottomleft_RBP194";
				position = "bottomleft";
				orientation = "1";
				cam_module0_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx219 30-0010";
					proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@0/rbpcv2_imx219_a@10";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
				};
			};
            cam_module1: module1 {
                badge = "jakku_bottomright_RBP194";
                position = "bottomright";
                orientation = "1";
                cam_module1_drivernode0: drivernode0 {
                    pcl_id = "v4l2_sensor";
                    devname = "imx219 31-0010";
                    proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@1/rbpcv2_imx219_c@10";
                };
                cam_module1_drivernode1: drivernode1 {
                    pcl_id = "v4l2_lens";
                    proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
                };
            };
            cam_module2: module2 {
                badge = "jakku_centerleft_RBP194";
                position = "centerleft";
                orientation = "1";
                cam_module2_drivernode0: drivernode0 {
                    pcl_id = "v4l2_sensor";
                    devname = "imx219 32-0010";
                    proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@2/rbpcv2_imx219_d@10";
                };
                cam_module2_drivernode1: drivernode1 {
                    pcl_id = "v4l2_lens";
                    proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
                };
            };
            cam_module3: module3 {
                badge = "jakku_centerright_RBP194";
                position = "centerright";
                orientation = "1";
                cam_module3_drivernode0: drivernode0 {
                    pcl_id = "v4l2_sensor";
                    devname = "imx219 33-0010";
                    proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@3/rbpcv2_imx219_e@10";
                };
                cam_module3_drivernode1: drivernode1 {
                    pcl_id = "v4l2_lens";
                    proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
                };
            };
            cam_module4: module4 {
                badge = "jakku_topleft_RBP194";
                position = "topleft";
                orientation = "1";
                cam_module4_drivernode0: drivernode0 {
                    pcl_id = "v4l2_sensor";
                    devname = "imx219 34-0010";
                    proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@4/rbpcv2_imx219_g@10";
                };
                cam_module4_drivernode1: drivernode1 {
                    pcl_id = "v4l2_lens";
                    proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
                };
            };
            cam_module5: module5 {
                badge = "jakku_topright_RBP194";
                position = "topright";
                orientation = "1";
                cam_module5_drivernode0: drivernode0 {
                    pcl_id = "v4l2_sensor";
                    devname = "imx219 35-0010";
                    proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@5/rbpcv2_imx219_b@10";
                };
                cam_module5_drivernode1: drivernode1 {
                    pcl_id = "v4l2_lens";
                    proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/";
                };
            };
		};
	};
};

Thanks in advance and best regard,
Khang

It define by force_bus_start for below example.

			tca9548_77: tca9548@77 {
83 				compatible = "nxp,pca9548";
84 				reg = <0x77>;
85 				#address-cells = <1>;
86 				#size-cells = <0>;
87 				vcc-supply = <&en_vdd_cam>;
88 				vcc-pullup-supply = <&vdd_aux_3v3>;
89 				skip_mux_detect;
90 				force_bus_start = <CAMERA_I2C_MUX_BUS(0)>;

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