device tree for tc358743


I need to use tc358743 driver. For that I need to modify device tree, so that the device could be correctly binded with the driver. My question is, how do I know which is the address of the clock?

Not really know your question.

When I modify device tree, so that the driver could recognize the device, if I’m not mistaken, it should have this form:
tc358743@0f {
compatible = “toshiba,tc358743”;
reg = <0x0f>;
clocks = <???>;
clock-names = “refclk”;
status = “okay”
What should I write in place of clocks?

There’s no clocks for the standard sensor driver. It could be for tc358743 only you may need to check the driver or remove it if there’s no man reference to it.

When I have following node in device tree

	tc358743@0f {
	compatible = "toshiba,tc358743";
	reg = <0x0f>;
	status = "okay";

when I modprobe tc358743, I get following error in dmesg:

[ 42.842720] tc358743 2-000f: failed to get refclk: -2
[ 42.848748] tc358743: probe of 2-000f failed with error -2

I assumed that I should add clocks in device tree.

What should I do?
I flased the TX1 board with the newest 28.1 release

It’s totally relative to the tc358743 you should contact to the vendor to get detail information.


Did you ever figure out a solution to the “failed to get refclk” problem?

I’m using the Jetson TX2 and I solved the problem by changing the tc358743.c driver, which appears to hardcode the clock for the TX1.


static int tc358743_probe_of(struct tc358743_state *state)


refclk = devm_clk_get(dev, "cam_mclk1");


refclk = devm_clk_get(dev, "extperiph1");