aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorHuy Duong <qhuyduong@hotmail.com>2017-08-30 21:53:37 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-31 18:49:41 +0200
commitdb15d73e5f0ea8e9b2c2be31dea45205257eb5fd (patch)
treef698862866de7320553afcec066a5875f82eec4a /drivers/w1
parentmcb: Fix an error handling path in 'chameleon_parse_cells()' (diff)
downloadlinux-dev-db15d73e5f0ea8e9b2c2be31dea45205257eb5fd.tar.xz
linux-dev-db15d73e5f0ea8e9b2c2be31dea45205257eb5fd.zip
eeprom: idt_89hpesx: Support both ACPI and OF probing
Allow the idt_89hpesx driver to get information from child nodes from both OF and ACPI by using more generic fwnode_property_read*() functions. Below is an example of instantiating idt_89hpesx driver via ACPI Table: Device(IDT0) { Name(_HID, "PRP0001") Name(_CID, "PRP0001") Name(_CCA, ONE) Name(_STR, Unicode("IDT SW I2C Slave")) Name(_CRS, ResourceTemplate () { I2cSerialBus (0x74, ControllerInitiated, 1000, AddressingMode7Bit, "\\_SB.I2CS", 0x00, ResourceConsumer, , ) }) Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"compatible", "idt,89hpes32nt8ag2"}, }, }) Device (EPR0) { Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package () { Package () {"compatible", "onsemi,24c64"}, Package () {"reg", 0x50}, } }) } } Signed-off-by: Huy Duong <qhuyduong@hotmail.com> Acked-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions