System memory map for i2c device for t4240 and t1021

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

System memory map for i2c device for t4240 and t1021

Jump to solution
2,052 Views
amittomar
NXP Employee
NXP Employee

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.

Tags (3)
1 Solution
1,213 Views
vinaykumarmasan
Contributor I

Hello Amit,

Just to add to Yiping's response, please refer below sections for I2C Memory Map info in T4240RM:

pastedImage_0.png

pastedImage_1.png     

Table 2-104. CCSR Block Base Address Map

pastedImage_2.png  

 

14.4 I2C Controller Memory Map

 

hope this helps.


Regards,

Vinaykumar

 

View solution in original post

8 Replies
1,213 Views
scottwood
NXP Employee
NXP Employee

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).

1,213 Views
amittomar
NXP Employee
NXP Employee

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.

0 Kudos
1,213 Views
scottwood
NXP Employee
NXP Employee

What does stellaris have to do with t4240/t1021?

0 Kudos
1,213 Views
amittomar
NXP Employee
NXP Employee

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.

0 Kudos
1,212 Views
yipingwang
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

1,213 Views
amittomar
NXP Employee
NXP Employee

ahhh, didn't realize that I could find it in DTS file of respected board :smileyhappy:

Thanks Yiping.

0 Kudos
1,214 Views
vinaykumarmasan
Contributor I

Hello Amit,

Just to add to Yiping's response, please refer below sections for I2C Memory Map info in T4240RM:

pastedImage_0.png

pastedImage_1.png     

Table 2-104. CCSR Block Base Address Map

pastedImage_2.png  

 

14.4 I2C Controller Memory Map

 

hope this helps.


Regards,

Vinaykumar

 

1,213 Views
amittomar
NXP Employee
NXP Employee

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.

0 Kudos