Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6202907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:49:15+00:00 2026-05-24T04:49:15+00:00

I will need to write my own drivers for few controllers in my chipset.I

  • 0

I will need to write my own drivers for few controllers in my
chipset.I work on SoC with SDK, that doesn’t provide “linux i2c
compatible” driver. It has simple char driver for i2c. I would like to
use some standard i2c RTC drivers.

  • I assume I will need to add the file to /busses folder, and
    implement the standard interfaces. And that’s all. This file should
    cooperate with i2c-core and i2c-dev ?

  • Which driver would be the best as basis ? I have ~9 32bit registers
    to work with. From first look i2c-ibm_iic.c seems for me quite
    friendly.

I2C is the warm-up before SPI and USB-gadget drivers for this SoC.
Do you know maybe raw Men/Hours estimation for such tasks ?

I will appreciate any hints.

BR
Bartlomiej Grzeskowiak

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:49:17+00:00Added an answer on May 24, 2026 at 4:49 am

    The first order of business is to find if perchance your IC driver has already been implemented within the Linux kernel or by a third party. You may well find that the driver you need has already been implemented. Try asking your SoC vendor if they can tell which company made the I2C macrocell because you are looking for alternative drivers. Again, you may find that the driver you need already exists.

    You’re looking in the right place. The file should go in busses and should implement and register a driver interface. You will also need to register a platform device so that the kernel will connect the driver-device pair, as usual. Other SoCs have lots of examples of this if yours does not. I don’t think you’ll find that you need to interact with i2c-core and i2c-dev.

    I would look for a small file size and recently modified driver, if I had to pick one as a baseline.

    SPI will take about the same amount of effort as I2C. USB gadget would be considerably more — several times the effort needed for the other two tasks, depending how much implementation work is needed. I am reluctant to put a number to either task. If you’re lucky not all functionality is needed (do you care about low power standby, for example?) and you may be able to cut corners.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm planning to write a web application (.net probably) that will need to analyze
I need to write a query that will group a large number of records
I need to write some sql that will allow me to query all objects
I need to write a servlet that will return to the user a csv
I need to write software that will do a lot of math. Mostly it
I need to write a query that will go through a table, find duplicate
I need to write a unit test for a method that will print a
I will write an android program. for simplicity, it will need a connection similar
I need to write a script which will post username and password onto a
I need to write a program used internally where different users will have different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.