Update from my side. Apparently there was " ", a simple space, in the compatible string interfering.
This brought me a couple of steps further.
Now stuck I’m stuck in the same situation like the guys in this discussion
Xavier TC358743
My tegra234-orin-nx-tc358743.dtsi in the tc358743@f section currently looks like this:
i2c@3180000 {
tc358743@f {
/* I2C device address */
reg = <0x0f>;
compatible = "toshiba,tc358743";
/* Sensor Model */
sensor_model ="tc358743";
/* V4L2 device node location */
devnode = "video0";
////////////////////////////////////////////////////////////////
// for test disabling so far clocks
#clock-cells = <0>; // check if needed
clocks = <&bpmp_clks TEGRA234_CLK_EXTPERIPH1>;
//clock-names = “extperiph1”, “pllp_grtba”;
clock-names = "extperiph1";
clock-frequency = <27000000>;
//mclk = "extperiph1";
refclk_hz = <27000000>; // refclk_hz -> regclk
refclk = "extperiph1";
mclk = "cam_mclk1"; // EDO commmented for modes
// reset-gpios = <&gpio 151 0>; // EDO commented out to test
//reset-gpios = <&gpio_i2c_cam CAM0_PWDN GPIO_ACTIVE_HIGH>; //not compiling
//reset-gpios = <&tegra_main_gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
//interrupt-parent = <&gpio>;
/*
interrupt-parent = <&tegra_main_gpio>;
interrupts = <TEGRA234_MAIN_GPIO(N, 1) GPIO_ACTIVE_HIGH>;
*/
/* Physical dimensions of sensor */
physical_w = "4.713";
physical_h = "3.494";
ddc5v_delay = <2>;
enable_hdcp = "false";
lineinitcnt = <0xe80>;
lptxtimecnt = <0x003>;
tclk_headercnt = <0x1403>;
tclk_trailcnt = <0x00>;
ths_headercnt = <0x0103>;
twakeup = <0x4882>;
tclk_postcnt = <0x008>;
ths_trailcnt = <0x02>;
hstxvregcnt = <0>;
/////////////////////////////////////////////////////////////////
//SENSOR_COMMON
//#define LANE_POLARITY0 lane_polarity = "6";
//#define NUM_LANES num_lanes = "2";
//#define SINTERFACE tegra_sinterface = "serial_a";
/*
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv2_imx219_dual_out0: endpoint {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv2_imx219_csi_in0>;
};
};
};*/
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
tc358743_out0: endpoint {
port-index = <0>; /* CSI B */
bus-width = <2>; /* Use CSI-B only */
data-lanes = <1 2>; // 3 4>;
clock-lanes = <0>;
clock-noncontinuous;
link-frequencies = /bits/ 64 <297000000>;
remote-endpoint = <&tc358743_csi_in0>;
};
};
};
};
};
I got currently an kernel error as the clock speed is not set to 27MHz
[ 11.924040] tc358743 2-000f: unsupported refclk rate: 51000000 Hz
[ 11.927907] nct1008_nct72 4-004c: !!!Found deprecated property!!!
[ 11.946334] tegra-camrtc-capture-vi tegra-capture-vi: subdev tc358743 2-000f bound
[ 11.949058] nct1008_nct72 4-004c: success parsing dt
[ 11.961400] nct1008_nct72 4-004c: supply vdd not found, using dummy regulator
[ 11.971681] nct1008_nct72 4-004c: success in enabling tmp451 VDD rail
[ 11.972301] r8168 0008:01:00.0: Adding to iommu group 9
[ 11.980876] nct1008_nct72 4-004c: read reg err -6
[ 11.985699] r8168 Gigabit Ethernet driver 8.051.02-NAPI loaded
[ 11.989797] nct1008_nct72 4-004c: sensor init failed 0xffffffed
[ 11.995709] tc358743 2-000f: I2C write 0x0002 = 0x0c01
[ 11.995801] r8168 0008:01:00.0: enabling device (0000 -> 0003)
[ 12.002121] tc358743 2-000f: I2C write 0x0002 = 0x0f01
[ 12.002244] nct1008_nct72 4-004c:
[ 12.002244] exit nct1008_probe, err=-19
[ 12.002252] nct1008_nct72 4-004c: success in disabling tmp451 VDD rail
[ 12.028901] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 12.037231] tc358743 2-000f: I2C write 0x0002 = 0x0c01
[ 12.047294] r8168 Copyright (C) 2022 Realtek NIC software team <nicfae@realtek.com>
[ 12.047294] This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>.
[ 12.047294] This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.
[ 12.047417] tc358743 2-000f: I2C write 0x0002 = 0x0c01
[ 12.090696] tc358743 2-000f: I2C write 0x0002 = 0x0801
[ 12.098980] tc358743 2-000f: I2C write 0x0002 = 0x0800
[ 12.108766] tc358743 2-000f: I2C write 0x0006 = 0x0010
[ 12.116222] ------------[ cut here ]------------
[ 12.126242] kernel BUG at drivers/media/i2c/tc358743.c:607!
[ 12.131971] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ 12.137594] Modules linked in: aes_ce_cipher(+) ghash_ce sha2_ce sha256_arm64 sha1_ce pwm_fan r8168 ina3221 nct1008 tc358743(E+) cec tegra_bpmp_thermal spi_tegra114 binfmt_misc nvmap ip_tables x_tables
[ 12.156042] CPU: 3 PID: 330 Comm: systemd-udevd Tainted: G E 5.10.120-tegra #1
[ 12.156044] Hardware name: Unknown CTI Hadron + Orin NX/CTI Hadron + Orin NX, BIOS 202210.3-52cefd4-dirty 09/27/2023
[ 12.156046] pstate: 20400009 (nzCv daif +PAN -UAO -TCO BTYPE=--)
[ 12.156057] pc : tc358743_probe+0xbf0/0xdf8 [tc358743]
[ 12.156059] lr : tc358743_probe+0x2f0/0xdf8 [tc358743]
[ 12.156060] sp : ffff8000118c3840
[ 12.156061] x29: ffff8000118c3840 x28: 000000000280de80
[ 12.156062] x27: ffff6ffc860138d0 x26: ffff6ffc86013a48
[ 12.156064] x25: ffffc03ffa280000 x24: ffffc03ffa27ee70
[ 12.156066] x23: ffff6ffc85f18c20 x22: ffff6ffcaa526740
[ 12.156067] x21: 00000000019bfcc0 x20: ffff6ffc85f18c00
[ 12.156069] x19: ffff6ffc86013880 x18: 0000000000000000
[ 12.156070] x17: 0000000000000000 x16: 0000000000000000
[ 12.156071] x15: 0000000000000000 x14: 0000000000000000
[ 12.156073] x13: 0000000000000000 x12: 0000000000000000
[ 12.156074] x11: 0001000000000000 x10: 0000000000000ab0
[ 12.156076] x9 : ffff8000118c3450 x8 : ffff6ffcaa527250
[ 12.156077] x7 : 02960ebb668f3c04 x6 : 0000000002960ebb
[ 12.156079] x5 : 0000000000000000 x4 : ffff6fffee88b958
[ 12.156081] x3 : ffff6fffee89ab08 x2 : 00000000030a32c0
[ 12.156082] x1 : 0000000000000000 x0 : 00000000018cba80
[ 12.156085] Call trace:
[ 12.156088] tc358743_probe+0xbf0/0xdf8 [tc358743]
[ 12.156095] i2c_device_probe+0x174/0x2e0
[ 12.156101] really_probe+0xf8/0x3c8
[ 12.156103] driver_probe_device+0x60/0xc0
[ 12.156104] device_driver_attach+0x78/0x80
[ 12.156106] __driver_attach+0x68/0xe8
[ 12.156108] bus_for_each_dev+0x84/0xe0
[ 12.156109] driver_attach+0x34/0x40
[ 12.156111] bus_add_driver+0x150/0x1f0
[ 12.156112] driver_register+0x68/0x118
[ 12.156114] i2c_register_driver+0x50/0xa0
[ 12.156116] tc358743_driver_init+0x2c/0x1000 [tc358743]
[ 12.156121] do_one_initcall+0x50/0x2e0
[ 12.156126] do_init_module+0x50/0x1f8
[ 12.156127] load_module+0x1f84/0x22c0
[ 12.156129] __do_sys_finit_module+0xb4/0xf8
[ 12.156130] __arm64_sys_finit_module+0x2c/0x38
[ 12.156134] el0_svc_common.constprop.0+0x80/0x1c8
[ 12.156136] do_el0_svc+0x38/0xa8
[ 12.156142] el0_svc+0x1c/0x28
[ 12.156144] el0_sync_handler+0xa8/0xb0
[ 12.156145] el0_sync+0x16c/0x180
[ 12.156148] Code: b108141f 54000c21 2a1803f5 17ffff63 (d4210000)
[ 12.156159] ---[ end trace 76978bf1a8c70176 ]---
[ 12.156160] Kernel panic - not syncing: Oops - BUG: Fatal exception
[ 12.156162] SMP: stopping secondary CPUs
[ 12.156170] Kernel Offset: 0x4040619d0000 from 0xffff800010000000
[ 12.156171] PHYS_OFFSET: 0xffff900480000000
[ 12.156173] CPU features: 0x08040006,4a80aa38
[ 12.156174] Memory Limit: none
[ 12.409187] ---[ end Kernel panic - not syncing: Oops - BUG: Fatal exception ]---
I would appreciate any support.
Thanks