Xavier i2c devicetree

Hi
i want to know which dts confiruge the i2c and the address of i2c
AGX xavier

cat /etc/nv_tegra_release
# R32 (release), REVISION: 5.1, GCID: 26202423, BOARD: t186ref, EABI: aarch64, DATE: Fri Feb 19 16:50:29 UTC 2021

Looks like there are not in one file but declare in many files.

Hi ShaneCCC
Thank you for your fast reply.
can you tell me the i2c1-5 address?

Check below list.

                i2c0 = "/i2c@3160000";
                i2c1 = "/i2c@c240000";
                i2c2 = "/i2c@3180000";
                i2c3 = "/i2c@3190000";
                i2c4 = "/bpmp_i2c";
                i2c5 = "/i2c@31b0000";
                i2c6 = "/i2c@31c0000";
                i2c7 = "/i2c@c250000";
                i2c8 = "/i2c@31e0000";

1 Like

ShaneCCC Thank you so much

Hi ShaneCCC
can you give me a sample dts file to configure i2c1 or other

You can reference to the …/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-camera-e3326-a00.dtsi

1 Like

Thank you ShaneCCC

Hi ShaneCCC
how to use the i2c-4 bpmp_i2c
i use it like this but all failed

 i2c@bpmp_i2c{
    	status = "okay";

		frontboard_12@12 {
            compatible = "frontboard";
            reg = <0x12>;
			#address-cells = <1>;
			#size-cells = <0>;
        };

    }

I don’t think these pin was out for using.

how can i enable the I2C_GP5_DAT and I2C_GP5_CLK
In the pinmux.xls, i find the I2C5 = I2C9, it is confused with me

It’s i2c9(SFIO) aka software i2c bus 8.

so it’s addree is 31e0000 ?
I2C address
i2c0 = β€œ/i2c@3160000”;
i2c1 = β€œ/i2c@c240000”;
i2c2 = β€œ/i2c@3180000”;
i2c3 = β€œ/i2c@3190000”;
i2c4 = β€œ/bpmp_i2c”;
i2c5 = β€œ/i2c@31b0000”;
i2c6 = β€œ/i2c@31c0000”;
i2c7 = β€œ/i2c@c250000”;

i2c8 = β€œ/i2c@31e0000”;

Yes

thankyou so much ShaneCCC
i use i2cdetect tool can test the i2c singal, but what should i write in which device tree can make it work
I write like this system report error

/ {
    
    i2c@31e0000{
		clock-frequency = <100000>;
    	status = "okay";
    	
		frontboard_12@12 {
            compatible = "frontboard";
            reg = <0x12>;
			#address-cells = <1>;
			#size-cells = <0>;
        };
    }
    
};

Sorry I don’t know what’s frontboard, you may need to check this device driver to add correct context for it.

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