diff mbox

[1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells

Message ID 20170222173146.30993-2-gregory.clement@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gregory CLEMENT Feb. 22, 2017, 5:31 p.m. UTC
These property were missing when the nodes were added and their lack
generate warning messages when adding i2c device in the subnodes.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Gregory CLEMENT March 8, 2017, 9:20 a.m. UTC | #1
Hi,
 
 On mer., févr. 22 2017, Gregory CLEMENT <gregory.clement@free-electrons.com> wrote:

> These property were missing when the nodes were added and their lack
> generate warning messages when adding i2c device in the subnodes.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Applied on mvebu/dt64

Thanks,

Gregory

> ---
>  arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> index b48d668a6ab6..cf0c2f9ebd7d 100644
> --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> @@ -112,6 +112,8 @@
>  			i2c0: i2c@11000 {
>  				compatible = "marvell,armada-3700-i2c";
>  				reg = <0x11000 0x24>;
> +				#address-cells = <1>;
> +				#size-cells = <0>;
>  				clocks = <&nb_periph_clk 10>;
>  				interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
>  				mrvl,i2c-fast-mode;
> @@ -121,6 +123,8 @@
>  			i2c1: i2c@11080 {
>  				compatible = "marvell,armada-3700-i2c";
>  				reg = <0x11080 0x24>;
> +				#address-cells = <1>;
> +				#size-cells = <0>;
>  				clocks = <&nb_periph_clk 9>;
>  				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
>  				mrvl,i2c-fast-mode;
> -- 
> 2.11.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index b48d668a6ab6..cf0c2f9ebd7d 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -112,6 +112,8 @@ 
 			i2c0: i2c@11000 {
 				compatible = "marvell,armada-3700-i2c";
 				reg = <0x11000 0x24>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&nb_periph_clk 10>;
 				interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
 				mrvl,i2c-fast-mode;
@@ -121,6 +123,8 @@ 
 			i2c1: i2c@11080 {
 				compatible = "marvell,armada-3700-i2c";
 				reg = <0x11080 0x24>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&nb_periph_clk 9>;
 				interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
 				mrvl,i2c-fast-mode;