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

Lock-free dentry lookup
Tracing interrupts in Linux kernel
Understanding Machine Check Exception
Interrupt a kernel module when a user process terminates/receives a signal?
What is the difference between make nconfig & make linux-nconfig?
How to compile kernel with bigge page size
Kernel stack for a user process | Linux kernel
How is /proc/io* populated?
Kernel irq disable
How can I see the full backtrace using kgdb to debug an ARM Linux module?
Hook Arbitrary Kernel Function through Module
kunmap_high report kernel BUG when it is invoked by pipe_wirte
Linux kernel 4.x Generation Network Stack Flow Map
Physical memory access from Kernel
wake up k70 from VLPS deep sleep by GPIO interrupt
Forcing a kernel module's GPIOs to always be outputs

Categories

HOME
cordova
parsing
environment-variables
powerbuilder
mutex
cordova-plugins
jaxb
chat
rpres
directive
bpm
appcelerator-titanium
axon
licode
beatbox
clang-format
odbc
media
mikrotik
jsdata
jqxwidgets
mpeg
endpoints-proto-datastore
webcam
week-number
pi4j
jquery-ui-autocomplete
atom-feed
neoscms
puma
rcp
street-address
get-eventlog
yamldotnet
free-jqgrid
hana-cloud-platform
interactive
meta-tags
ffi
xc8
cakephp-3.3
heyzap
c++1z
istanbul
data-transfer
asana-connect
outlook-2016
windows-firewall-api
hashset
git-stash
pubsubhubbub
mockery
raptor
agile-project-management
correspondence-analysis
xlconnect
page-load-time
codeigniter-restserver
couchbase-sync-gateway
octopress
mindbody
mks-integrity
heapsort
argo
jedit
adobe-dps
unexpectendoffile
protractor-net
joptimizer
apache-roller
custom-validators
seeding
lightroom
ngen
irssi
kiosk-mode
networkcredentials
ilias
sqr
mux
editplus
duplicate-removal
restkit-0.20
start-stop-daemon
apache-commons-exec
graphael
styledtext
interlacing
offlineapps
tandem
imagecreatefrompng
ereg
facebook-events
readelf
mercurial-subrepos
enctype
static-array
mysql-error-1052
grit
phonetics
context-sensitive-help
rakefile
orbited
reverse-debugging

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile