i2c: sunxi: Change compatibles pattern
Subsystems (4)
v4 cover i2c: sunxi: Change compatibles pattern
Hi,
This is the fourth version of the i2c compatible changes.
Changes from v4:
- Added extra per-SoC compatibles to the DT for all SoC but the A10
Maxime Ripard (2):
i2c: sunxi: Change i2c compatibles
ARM: sunxi: dt: Convert to the new i2c compatibles
Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt | 2 +- arch/arm/boot/dts/sun4i-a10.dtsi | 6 +++--- arch/arm/boot/dts/sun5i-a10s.dtsi | 6 +++--- arch/arm/boot/dts/sun5i-a13.dtsi | 6 +++--- arch/arm/boot/dts/sun7i-a20.dtsi | 10 +++++----- drivers/i2c/busses/i2c-mv64xxx.c | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-)
Signature · 1 line
1.9.0
PATCH v4 1/2 i2c: sunxi: Change i2c compatibles
The Allwinner A10 compatibles were following a slightly different compatible patterns than the rest of the SoCs for historical reasons. Move to the other pattern for consistency across all Allwinner Socs.
--- Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt | 2 +- drivers/i2c/busses/i2c-mv64xxx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt +1 -1
@@ -5,7 +5,7 @@ Required properties : - reg : Offset and length of the register set for the device - compatible : Should be either: - - "allwinner,sun4i-i2c" + - "allwinner,sun4i-a10-i2c" - "allwinner,sun6i-a31-i2c" - "marvell,mv64xxx-i2c" - "marvell,mv78230-i2c"
drivers/i2c/busses/i2c-mv64xxx.c +1 -1
@@ -692,7 +692,7 @@ static const struct i2c_algorithm mv64xxx_i2c_algo = {***************************************************************************** */ static const struct of_device_id mv64xxx_i2c_of_match_table[] = { - { .compatible ="allwinner,sun4i-i2c" , .data = &mv64xxx_i2c_regs_sun4i}, + { .compatible ="allwinner,sun4i-a10-i2c" , .data = &mv64xxx_i2c_regs_sun4i}, { .compatible ="allwinner,sun6i-a31-i2c" , .data = &mv64xxx_i2c_regs_sun4i}, { .compatible ="marvell,mv64xxx-i2c" , .data = &mv64xxx_i2c_regs_mv64xxx}, { .compatible ="marvell,mv78230-i2c" , .data = &mv64xxx_i2c_regs_mv64xxx},
Signature · 1 line
1.9.0
Wolfram Sang
AppliedPATCH v4 1/2 i2c: sunxi: Change i2c compatibles
Quoted 5 lines · Maxime Ripard
The Allwinner A10 compatibles were following a slightly different compatible patterns than the rest of the SoCs for historical reasons. Move to the other pattern for consistency across all Allwinner Socs.
Signed-off-by Maxime Ripard <[email protected]>
I still don't prefer the removal of the old binding, but as this has been discussed:
Applied to for-next, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140521/40e54070/attachment.sig>
PATCH v4 2/2 ARM: sunxi: dt: Convert to the new i2c compatibles
In reply to Maxime RipardSwitch the device tree to the new compatibles introduced in the i2c drivers to have a common pattern accross all Allwinner SoCs.
--- arch/arm/boot/dts/sun4i-a10.dtsi | 6 +++--- arch/arm/boot/dts/sun5i-a10s.dtsi | 6 +++--- arch/arm/boot/dts/sun5i-a13.dtsi | 6 +++--- arch/arm/boot/dts/sun7i-a20.dtsi | 10 +++++----- 4 files changed, 14 insertions(+), 14 deletions(-)
arch/arm/boot/dts/sun4i-a10.dtsi +3 -3
@@ -641,7 +641,7 @@ }; i2c0: i2c at 01c2ac00 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun4i-a10-i2c"; reg = <0x01c2ac00 0x400>; interrupts = <7>; clocks = <&apb1_gates 0>;
@@ -650,7 +650,7 @@ }; i2c1: i2c at 01c2b000 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun4i-a10-i2c"; reg = <0x01c2b000 0x400>; interrupts = <8>; clocks = <&apb1_gates 1>;
@@ -659,7 +659,7 @@ }; i2c2: i2c at 01c2b400 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun4i-a10-i2c"; reg = <0x01c2b400 0x400>; interrupts = <9>; clocks = <&apb1_gates 2>;
arch/arm/boot/dts/sun5i-a10s.dtsi +3 -3
@@ -519,7 +519,7 @@ i2c0: i2c at 01c2ac00 { #address-cells = <1>; #size-cells = <0>; - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2ac00 0x400>; interrupts = <7>; clocks = <&apb1_gates 0>;
@@ -530,7 +530,7 @@ i2c1: i2c at 01c2b000 { #address-cells = <1>; #size-cells = <0>; - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b000 0x400>; interrupts = <8>; clocks = <&apb1_gates 1>;
@@ -541,7 +541,7 @@ i2c2: i2c at 01c2b400 { #address-cells = <1>; #size-cells = <0>; - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b400 0x400>; interrupts = <9>; clocks = <&apb1_gates 2>;
arch/arm/boot/dts/sun5i-a13.dtsi +3 -3
@@ -461,7 +461,7 @@ }; i2c0: i2c at 01c2ac00 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2ac00 0x400>; interrupts = <7>; clocks = <&apb1_gates 0>;
@@ -470,7 +470,7 @@ }; i2c1: i2c at 01c2b000 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b000 0x400>; interrupts = <8>; clocks = <&apb1_gates 1>;
@@ -479,7 +479,7 @@ }; i2c2: i2c at 01c2b400 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b400 0x400>; interrupts = <9>; clocks = <&apb1_gates 2>;
arch/arm/boot/dts/sun7i-a20.dtsi +5 -5
@@ -762,7 +762,7 @@ }; i2c0: i2c at 01c2ac00 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2ac00 0x400>; interrupts = <0 7 4>; clocks = <&apb1_gates 0>;
@@ -771,7 +771,7 @@ }; i2c1: i2c at 01c2b000 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b000 0x400>; interrupts = <0 8 4>; clocks = <&apb1_gates 1>;
@@ -780,7 +780,7 @@ }; i2c2: i2c at 01c2b400 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b400 0x400>; interrupts = <0 9 4>; clocks = <&apb1_gates 2>;
@@ -789,7 +789,7 @@ }; i2c3: i2c at 01c2b800 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2b800 0x400>; interrupts = <0 88 4>; clocks = <&apb1_gates 3>;
@@ -798,7 +798,7 @@ }; i2c4: i2c at 01c2bc00 { - compatible = "allwinner,sun4i-i2c"; + compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c"; reg = <0x01c2bc00 0x400>; interrupts = <0 89 4>; clocks = <&apb1_gates 15>;
Signature · 1 line
1.9.0
PATCH v4 2/2 ARM: sunxi: dt: Convert to the new i2c compatibles
Quoted 4 lines · Maxime Ripard
Switch the device tree to the new compatibles introduced in the i2c drivers to have a common pattern accross all Allwinner SoCs.
Signed-off-by Maxime Ripard <[email protected]>
I usually don't take dts updates, but I guess it makes sense this time, because we dropped the old binding?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140521/91a23f54/attachment-0001.sig>
PATCH v4 2/2 ARM: sunxi: dt: Convert to the new i2c compatibles
Quoted 9 lines · Wolfram Sang
Quoted 4 lines · Maxime Ripard
Switch the device tree to the new compatibles introduced in the i2c drivers to have a common pattern accross all Allwinner SoCs.
Signed-off-by Maxime Ripard <[email protected]>I usually don't take dts updates, but I guess it makes sense this time, because we dropped the old binding?
Either way is fine for me. It would be better to have the two patches in the same tree, but I don't have any issue with merging it.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140521/fa74be59/attachment.sig>
PATCH v4 2/2 ARM: sunxi: dt: Convert to the new i2c compatibles
Quoted 7 lines
Quoted 4 lines
I usually don't take dts updates, but I guess it makes sense this time, because we dropped the old binding?
Either way is fine for me. It would be better to have the two patches in the same tree, but I don't have any issue with merging it.
I took it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140521/2d3205cc/attachment.sig>
v4 cover i2c: sunxi: Change compatibles pattern
In reply to Maxime RipardHi Wolfram,
Quoted 6 lines · Maxime Ripard
Hi,
This is the fourth version of the i2c compatible changes.
Changes from v4:
- Added extra per-SoC compatibles to the DT for all SoC but the A10
I think I've addressed your comments in this version, are you ok with these changes?
Thanks,
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140418/39e6810f/attachment-0001.sig>
v4 cover i2c: sunxi: Change compatibles pattern
In reply to Maxime RipardHi Wolfram,
Quoted 6 lines · Maxime Ripard
Hi,
This is the fourth version of the i2c compatible changes.
Changes from v4:
- Added extra per-SoC compatibles to the DT for all SoC but the A10
Any chance you merge this for 3.16? I guess I addressed your concerns about the DT part.
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140507/4ebfa33c/attachment.sig>