Ben Gardner
dd905a61e9
misc: eeprom: at24: use device_property_*() functions instead of of_get_property()
...
Allow the at24 driver to get configuration information from both OF and
ACPI by using the more generic device_property functions.
This change was inspired by the at25.c driver.
I have a custom board with a ST M24C02 EEPROM attached to an I2C bus.
With the following ACPI construct, this patch instantiates a working
instance of the driver.
Device (EEP0) {
Name (_HID, "PRP0001")
Name (_DSD, Package () {
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package () {
Package () {"compatible", Package () {"st,24c02"}},
Package () {"pagesize", 16},
},
})
Name (_CRS, ResourceTemplate () {
I2cSerialBus (
0x0057, ControllerInitiated, 400000,
AddressingMode7Bit, "\\_SB.PCI0.I2C3", 0x00,
ResourceConsumer,,)
})
}
Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2017-02-11 21:23:43 +01:00
..
2017-01-06 14:36:30 +01:00
2016-12-13 15:30:50 -08:00
2016-12-24 11:46:01 -08:00
2017-01-11 09:27:30 +01:00
2017-01-14 14:09:03 +01:00
2017-01-19 14:31:50 -07:00
2016-12-16 10:24:44 -08:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2017-01-19 23:46:31 +02:00
2017-01-21 18:46:45 -08:00
2017-01-17 10:08:38 +01:00
2017-01-06 14:34:52 +01:00
2016-12-24 11:46:01 -08:00
2016-12-27 17:51:36 -08:00
2016-12-18 15:49:10 -08:00
2017-01-03 00:21:45 +01:00
2016-12-24 11:46:01 -08:00
2017-01-13 12:14:28 +05:30
2016-12-24 11:46:01 -08:00
2017-01-11 09:11:39 +01:00
2017-01-15 10:54:39 -08:00
2016-11-29 15:51:49 -06:00
2016-12-30 09:11:21 +01:00
2017-01-09 09:47:19 +10:00
2017-01-19 14:19:25 +01:00
2016-12-25 11:04:12 +01:00
2017-01-02 10:15:28 -08:00
2016-12-25 10:47:44 +01:00
2017-02-10 12:51:23 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 10:41:53 -08:00
2017-01-02 16:59:44 +01:00
2016-12-29 14:17:40 -05:00
2017-01-13 11:49:34 -08:00
2017-01-06 10:49:36 -08:00
2016-12-25 14:30:04 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 10:47:44 +01:00
2016-12-24 11:46:01 -08:00
2016-12-13 12:11:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2017-01-09 13:58:10 -08:00
2016-12-25 17:21:22 +01:00
2016-11-30 14:58:00 +01:00
2016-12-13 10:19:16 -08:00
2016-12-24 11:46:01 -08:00
2016-12-19 08:16:26 -08:00
2017-02-11 21:23:43 +01:00
2017-01-16 16:17:42 +01:00
2017-01-04 20:50:18 +01:00
2017-01-16 15:08:29 -05:00
2016-12-23 16:11:07 -05:00
2016-12-24 11:46:01 -08:00
2017-01-13 09:50:33 -08:00
2017-01-13 15:17:04 -07:00
2017-01-04 18:22:47 +01:00
2016-12-15 12:46:48 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2017-01-17 08:41:51 -06:00
2016-12-12 18:55:06 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2016-12-30 14:27:42 +01:00
2016-12-28 12:38:10 +02:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-11-30 23:41:33 +01:00
2016-12-12 19:56:15 -08:00
2016-12-15 11:45:13 -08:00
2016-12-19 08:16:26 -08:00
2016-12-30 03:26:31 -08:00
2016-12-15 16:03:25 -08:00
2016-12-30 03:12:11 -08:00
2016-12-25 17:21:22 +01:00
2017-01-19 23:46:34 +02:00
2016-12-24 11:46:01 -08:00
2017-01-20 14:17:04 -08:00
2016-12-12 18:55:08 -08:00
2017-01-12 13:37:49 -08:00
2017-01-20 12:25:11 -08:00
2017-01-03 17:11:50 +01:00
2017-01-10 08:41:30 -08:00
2017-01-20 16:24:54 +08:00
2016-12-13 12:11:01 -08:00
2017-01-11 09:22:54 +01:00
2016-12-10 14:57:58 +01:00
2017-01-20 14:55:20 +01:00
2017-01-13 08:23:33 -07:00
2017-01-19 23:46:30 +02:00
2017-01-04 12:58:45 +01:00
2016-12-16 00:13:39 +02:00
2017-01-11 10:42:16 +01:00
2016-12-24 11:27:45 -08:00
2017-01-19 09:38:27 -08:00
2016-12-24 11:46:01 -08:00