Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

How to add I2C device in device tree file?

27

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
27

How to add I2C device in device tree file?

Posted at 8/25/2016 17:24:12      View:5079 | Replies:4        Print      Only Author   [Copy Link] 1#
Hi,

I am trying to connect 3 serial devices to the I2C0 of FirePrime:

Device 1: I2C address at 60H
Device 2: I2C address at 64H
Device 3: I2C address at 44H

how do I add this to the device tree? rk3128-fireprime.dts has this definition by default:

&i2c0 {
        status = "okay";
        rtc@51 {
                compatible = "rtc,hym8563";
                reg = <0x51>;
                irq_gpio = <&gpio0 GPIO_D4 IRQ_TYPE_EDGE_FALLING>;
        };
                ts@41 {
                        compatible = "tchip,gsl3680";
                        reg = <0x41>;
                        touch-gpio = <&gpio1 GPIO_B4 IRQ_TYPE_EDGE_RISING>;
                        //reset-gpio = <&gpio8 GPIO_A6 GPIO_ACTIVE_LOW>;
                        max-x = <1280>;
                        max-y = <800>;
                };
};

Why are the nodes rtc@51 and ts@41 defined by default?
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 9/2/2016 09:38:14        Only Author  2#
Hi whacla
    the nodes defined here because there were some devices connect to I2C0,
If you don't need it ,just remove them .
     And,  you can add your device like this:
   
    devices@60 {
                compatible = "devices,name";
                reg = <0x60>;
        };
   
Reply

Use props Report

130

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
130
Posted at 1/9/2026 04:03:10        Only Author  3#
Such a powerful article, thank you for sharing! I’m about to take the SC-400 valid exam blueprint exam. Wishing for a great result!
Reply

Use props Report

140

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
140
Posted at 2/10/2026 16:57:24        Only Author  4#
This article is simply outstanding, thank you for sharing it. Reliable study guide XK0-005 pdf offers a wealth of content, available for free, hoping it aids your learning.
Reply

Use props Report

135

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
135
Posted at 2/24/2026 07:20:04        Only Author  5#
ExamFragen ist eine Website, die am schnellsten aktualisierten Pegasystems PEGACPDC25V1 Zertifizierungsmaterialien von hoher Qualität bietet. Vielleicht bieten die anderen Websites auch die relevanten Materialien zur Pegasystems PEGACPDC25V1 (Certified Pega Decisioning Consultant 25) Zertifizierungsprüfung. Wenn Sie ExamFragen mit anderen Websites vergleichen, dann werden Sie finden, dass die Materialien von ExamFragen umfassendst und zwar von hoher Qualität sind. Die meisten Ressourcen von anderen Websites stammen hauptsächlich aus ExamFragen.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list