Could anyone please point me out to i2c bus Memory map for t4240rdb and t1021 rdb soc's.
I looked into the SDK1.6 ref manuals but could not find it,So can anyone point me out exact Memory map address for I2C BUS for t4240rdb and t1021?
Thanks,
Amit.
解決済! 解決策の投稿を見る。
Hello Amit,
Just to add to Yiping's response, please refer below sections for I2C Memory Map info in T4240RM:
Table 2-104. CCSR Block Base Address Map
14.4 I2C Controller Memory Map
hope this helps.
Regards,
Vinaykumar
Assuming you mean that you want to know which i2c devices are at which i2c addresses (this isn't a "memory map" as it's not mapped to memory), you should be able to find that information in the reference manual for the board (not the SoC, and not the SDK).
I didn't mean that I want to know which i2c devices sits on which i2c address.
static void stellaris_i2c_init(uint32_t base, qemu_irq irq, i2c_bus *bus)
What I would like to know base address for i2c for t4240 and t1021 board which should be mapped in CPU address space.
Thanks,
Amit.
What does stellaris have to do with t4240/t1021?
I simply wanted to know the I2C controller base address for t4240/t1021 ,thought using stellaris machine model as example would have put this question in better way.
Should have asked this question appropriately at first place,sorry for creating the confusion.
Hello Amit,
Please check whether the address defined in t4240qds.dts is what you need, i2c base address is 0xffe118000.
soc: soc@ffe000000 {
ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
reg = <0xf 0xfe000000 0 0x00001000>;
spi@110000 {
flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "sst,sst25wf040";
reg = <0>;
spi-max-frequency = <40000000>; /* input clock */
};
};
i2c@118000 {
pca9547@77 {
compatible = "philips,pca9547";
reg = <0x77>;
#address-cells = <1>;
#size-cells = <0>;
i2c@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2>;
ina220@40 {
compatible = "ti,ina220";
reg = <0x40>;
shunt-resistor = <1000>;
};
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
ahhh, didn't realize that I could find it in DTS file of respected board :smileyhappy:
Thanks Yiping.
Hello Amit,
Just to add to Yiping's response, please refer below sections for I2C Memory Map info in T4240RM:
Table 2-104. CCSR Block Base Address Map
14.4 I2C Controller Memory Map
hope this helps.
Regards,
Vinaykumar
Thanks @Vinay for your response on this.This is excatly what I'm looking for.
Also,as Yiping pointed out we can have go for dts look up to fins the same.