linux-kernel


when the probe function is called for i2c client RTC drivers below?


In my .dts file , RTC is on i2c Bus
i2c1: i2c#f0018000 {
status = "okay";
pcf8563#51 {
compatible= "nxp,pcf8563";
reg=<0x51>;
};
Driver code for RTC is
static const struct i2c_device_id pcf8563_id[] = {
{ "pcf8563", 0 },
{ "rtc8564", 0 },
{}
};
MODULE_DEVICE_TABLE(i2c, pcf8563_id);
static const struct of_device_id pcf8563_of_match[] __devinitconst = {
{ .compatible = "nxp,pcf8563" },
{}
};
MODULE_DEVICE_TABLE(of, pcf8563_of_match);
static struct i2c_driver pcf8563_driver = {
.driver = {
.name = "rtc-pcf8563",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pcf8563_of_match),
},
.probe = pcf8563_probe,
.remove = pcf8563_remove,
.id_table = pcf8563_id,
};
Here what is the importance of pcf8563_id and pcf8563_of_match these two structures and when the probe will call ?

Related Links

Kernel stalls when accessing serial device on FPGA
How safe is that to develop a simple linux kernel module/driver on my own machine? [closed]
Linux Kernel SRAM Map Into Addresses
Kernel compilation in Yocto, what to define?
U-Boot --building uImage Minnowboard
Linux SRAM to RAM DMA transfer
how printk is implemented while booting
kernel program RDMA (krping)
sys v shared memory from kernel module to user space process
The perf subsystem in the linux kernel and dynamic allocation
understanding assembler code for function syscall
Is LC_Trie a good data structure to store random IP addresses?
Basic mmap implementation
dma_common_mmap documentation to let user read/write physical address
how to enable/disable gpio-keys autorepeat in runtime
Filling up struct sockaddr_in from the ip header __be32 saddr and udp header __be16 source

Categories

HOME
lucene
cron
instagram
sitecore8
sendmail
g2o
imageview
aws-codepipeline
google-cloud-kms
unity5
opentsdb
datagrid
distributed-database
codeception
openmeetings
dynamics-ax-2012
conv-neural-network
jxmaps
licode
divide-and-conquer
azure-storage-blobs
polymer-1.0
xmlstarlet
entity-relationship
pex
jsx
xml-configuration
z80
maxlength
affiliate
na
white
jqassistant
sqlcedatareader
fread
handbrake
tablet
submenu
angular-daterangepicker
hana-cloud-platform
each
youtube-analytics
pivottable.js
dataweave
sphero-api
grayscale
sencha-architect
keyword-search
lighttable
simplemodal
ole
safe-browsing
strconv
equation-solving
monocle-scala
same-origin-policy
banking
express-stormpath
itil
compass
arithmetic-expressions
ratchet
idfa
orchardcms-1.9
oql
gethostbyname
google-roads-api
simplify
spawn-fcgi
mediafire
pragma
network-monitoring
angular-component-router
scrapyd
yard
jlist
elmah.mvc
apache-commons
unexpectendoffile
puphpet
circular-buffer
mongojs
sqloledb
arbitrary-precision
swift-protocols
bonsaijs
presentmodalviewcontrolle
asp.net-compiler
apprequests
windmill
circusd
umbraco5
google-doodle
soaplite
windows-networking
crashrpt
xmlnodelist
tao
rebuild
multiple-versions
microsoft.build
testing-strategies

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App