All of lore.kernel.org
 help / color / mirror / Atom feed
* Newbie Question: Clarifying I2C Master/Slave roles and device tree binding for client hardware info
@ 2026-05-09 16:11 Momin M
  0 siblings, 0 replies; 3+ messages in thread
From: Momin M @ 2026-05-09 16:11 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1221 bytes --]

Hi all,

I have been reading the I2C kernel documentation, and I understand the
basic principles of SDA/SCL. I am now trying to grasp the kernel-side
implementation.

I'm struggling with two interconnected points regarding driver development:

   1. *Master/Slave Abstraction:* How are the concepts of I2C "Master" and
   "Slave" represented in Linux kernel drivers? Specifically, is the
   i2c_adapter always considered the "master" (the controller that
   initiates transactions), and the i2c_client always considered the
   "slave" (the device being accessed), or are there contexts where this
   simple analogy breaks down (e.g., multi-master environments or slave-mode
   drivers)?
   2. *Client Hardware Information:* I'm trying to understand the minimum
   necessary hardware information required for the i2c_client to probe
   successfully. Beyond the reg property (slave address) and a
compatible string
   in the Device Tree, what other information, if any, is crucial for
   correctly instantiating the client device, especially for a standard,
   non-complex sensor?

Any guidance on tracing this abstraction back to the low-level
register/hardware interaction would be greatly appreciated.

Thanks,

Momin M

[-- Attachment #1.2: Type: text/html, Size: 5477 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Newbie Question: Clarifying I2C Master/Slave roles and device tree binding for client hardware info
@ 2026-05-17 18:13 William Torrez Corea
  2026-05-18  5:30 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: William Torrez Corea @ 2026-05-17 18:13 UTC (permalink / raw)
  To: kernelnewbies; +Cc: Momin M


[-- Attachment #1.1: Type: text/plain, Size: 169 bytes --]

The documentation is incomplete and inexact.

-- 

With kindest regards, William.

*Larry Wall invented a messy programming language -- and changed the face
of the Web*

[-- Attachment #1.2: Type: text/html, Size: 448 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Newbie Question: Clarifying I2C Master/Slave roles and device tree binding for client hardware info
  2026-05-17 18:13 Newbie Question: Clarifying I2C Master/Slave roles and device tree binding for client hardware info William Torrez Corea
@ 2026-05-18  5:30 ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-05-18  5:30 UTC (permalink / raw)
  To: William Torrez Corea; +Cc: Momin M, kernelnewbies

On Sun, May 17, 2026 at 12:13:05PM -0600, William Torrez Corea wrote:
> The documentation is incomplete and inexact.

Wonderful, can you send a patch fixing that up to make it better?

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-18  5:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-17 18:13 Newbie Question: Clarifying I2C Master/Slave roles and device tree binding for client hardware info William Torrez Corea
2026-05-18  5:30 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2026-05-09 16:11 Momin M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.