Hi,
I’m working on custom Nano board bsp and have a question about the I2C pinmux and device tree configuration.
In Xavier NX, there is a file in Jetson\r3531\hardware\nvidia\soc\t19x\kernel-dts\tegra194-soc\tegra194-soc-i2c.dtsi
to describe the i2c node and its register such as
i2c0 = &gen1_i2c;
gen1_i2c: i2c@3160000 {
#address-cells = <1>;
#size-cells = <0>;
iommus = <&smmu TEGRA_SID_GPCDMA_0>;
dma-coherent;
compatible = "nvidia,tegra194-i2c";
reg = <0x0 0x3160000 0x0 0x100>;
nvidia,hw-instance-id = <0x0>;
interrupts = <0 TEGRA194_IRQ_I2C1 0x04>;
scl-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(I, 3) 0>;
sda-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(I, 4) 0>;
status = "disabled";
clock-frequency = <400000>;
clocks = <&bpmp_clks TEGRA194_CLK_I2C1
&bpmp_clks TEGRA194_CLK_PLLP_OUT0>;
clock-names = "div-clk", "parent";
resets = <&bpmp_resets TEGRA194_RESET_I2C1>;
reset-names = "i2c";
dmas = <&gpcdma 21>, <&gpcdma 21>;
dma-names = "rx", "tx";
};
and I can find the specific name of this I2C controller in the device tree by the corresponding name in the excel spreadsheet, thus achieving the configuration just like this
i2c@3160000 {
uih_rtc: uih_rtc@68 {
compatible = "dallas,ds1340";
reg = <0x68>;
};
};
But in nano, there is no such a file to connect the device tree and pinmux excel. And in the Product Design Guide file does not have this information either.
In my situation, I want to use these two I2C bus in pinmux excel
But in bsp file, there is only unclear I2C name and I really don’t know which bus corresponds to the I2C in excel.
aliases {
i2c0 = &i2c1;
i2c1 = &i2c2;
i2c2 = &i2c3;
i2c3 = &i2c4;
i2c4 = &i2c5;
i2c5 = &i2c6;
i2c6 = &i2c7;
spi0 = &spi0;
spi1 = &spi1;
spi2 = &spi2;
spi3 = &spi3;
qspi6 = &qspi6;
serial0 = &uarta;
serial1 = &uartb;
serial2 = &uartc;
serial3 = &uartd;
rtc0 = "/i2c@7000d000/max77620@3c";
rtc1 = "/rtc";
};
Can you show me the relationship between i2c0-6 and GEN1_I2C?
Thanks