Commit f0de8e04 authored by Maxime Ripard's avatar Maxime Ripard Committed by Greg Kroah-Hartman

misc: eeprom: sunxi: Add new compatibles

The Allwinner A10 compatibles were following a slightly different compatible
patterns than the rest of the SoCs for historical reasons. Add compatibles
matching the other pattern to the SID driver for consistency, and keep the
older one for backward compatibility.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d913c743
Allwinner sunxi-sid Allwinner sunxi-sid
Required properties: Required properties:
- compatible: "allwinner,sun4i-sid" or "allwinner,sun7i-a20-sid". - compatible: "allwinner,sun4i-a10-sid" or "allwinner,sun7i-a20-sid"
(Deprecated: "allwinner,sun4i-sid").
- reg: Should contain registers location and length - reg: Should contain registers location and length
Example for sun4i: Example for sun4i:
sid@01c23800 { sid@01c23800 {
compatible = "allwinner,sun4i-sid"; compatible = "allwinner,sun4i-a10-sid";
reg = <0x01c23800 0x10> reg = <0x01c23800 0x10>
}; };
......
...@@ -96,8 +96,11 @@ static int sunxi_sid_remove(struct platform_device *pdev) ...@@ -96,8 +96,11 @@ static int sunxi_sid_remove(struct platform_device *pdev)
} }
static const struct of_device_id sunxi_sid_of_match[] = { static const struct of_device_id sunxi_sid_of_match[] = {
{ .compatible = "allwinner,sun4i-sid", .data = (void *)16}, { .compatible = "allwinner,sun4i-a10-sid", .data = (void *)16},
{ .compatible = "allwinner,sun7i-a20-sid", .data = (void *)512}, { .compatible = "allwinner,sun7i-a20-sid", .data = (void *)512},
/* Deprecated */
{ .compatible = "allwinner,sun4i-sid", .data = (void *)16},
{/* sentinel */}, {/* sentinel */},
}; };
MODULE_DEVICE_TABLE(of, sunxi_sid_of_match); MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment