All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Improving I2C related support on Armada 3720 DB
@ 2017-02-22 17:31 Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells Gregory CLEMENT
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2017-02-22 17:31 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Now that I2C controller of the Armada 37XX SoCs is supported in the
kernel, this small series improve its usage in Armada 3720 DB board.

The first patch fix the i2c controller nodes.

The second one exposes an i2c device of the Armada 3720 board: a gpio
expander mainly used for power control.

The third one add the driver selection to the defconfig.

Gregory

Gregory CLEMENT (3):
  ARM64: dts: marvell: armada37xx: add address and size property for i2c
    cells
  ARM64: dts: marvell: armada-3720-db: add gpio expander
  arm64: defconfig: enable I2C_PXA

 arch/arm64/boot/dts/marvell/armada-3720-db.dts | 18 ++++++++++++++++++
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi   |  4 ++++
 arch/arm64/configs/defconfig                   |  1 +
 3 files changed, 23 insertions(+)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells
  2017-02-22 17:31 [PATCH 0/3] Improving I2C related support on Armada 3720 DB Gregory CLEMENT
@ 2017-02-22 17:31 ` Gregory CLEMENT
  2017-03-08  9:20   ` Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 3/3] arm64: defconfig: enable I2C_PXA Gregory CLEMENT
  2 siblings, 1 reply; 7+ messages in thread
From: Gregory CLEMENT @ 2017-02-22 17:31 UTC (permalink / raw)
  To: linux-arm-kernel

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(+)

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 at 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 at 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander
  2017-02-22 17:31 [PATCH 0/3] Improving I2C related support on Armada 3720 DB Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells Gregory CLEMENT
@ 2017-02-22 17:31 ` Gregory CLEMENT
  2017-03-08  9:21   ` Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 3/3] arm64: defconfig: enable I2C_PXA Gregory CLEMENT
  2 siblings, 1 reply; 7+ messages in thread
From: Gregory CLEMENT @ 2017-02-22 17:31 UTC (permalink / raw)
  To: linux-arm-kernel

A gpio expander is present on the i2c bus on the Armada 3720 DB board. This
patch add it to the device tree.

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

diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
index 86602c907a61..864936acc316 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
@@ -64,6 +64,24 @@
 
 &i2c0 {
 	status = "okay";
+
+	gpio_exp: pca9555 at 22 {
+		compatible = "nxp,pca9555";
+		gpio-controller;
+		#gpio-cells = <2>;
+
+		reg = <0x22>;
+		/*
+		 * IO0_0: PWR_EN_USB2	IO1_0: PWR_EN_VTT
+		 * IO0_1: PWR_EN_USB23	IO1_1: MPCIE_WDISABLE
+		 * IO0_2: PWR_EN_SATA	IO1_2: RGMII_DEV_RSTN
+		 * IO0_3: PWR_EN_PCIE	IO1_3: SGMII_DEV_RSTN
+		 * IO0_4: PWR_EN_SD
+		 * IO0_5: PWR_EN_EMMC
+		 * IO0_6: PWR_EN_RGMII	IO1_6: SATA_USB3.0_SEL
+		 * IO0_7: PWR_EN_SGMII	IO1_7: PWR_MCI_PS
+		 */
+	};
 };
 
 /* CON3 */
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/3] arm64: defconfig: enable I2C_PXA
  2017-02-22 17:31 [PATCH 0/3] Improving I2C related support on Armada 3720 DB Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells Gregory CLEMENT
  2017-02-22 17:31 ` [PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander Gregory CLEMENT
@ 2017-02-22 17:31 ` Gregory CLEMENT
  2017-03-07 17:59   ` Gregory CLEMENT
  2 siblings, 1 reply; 7+ messages in thread
From: Gregory CLEMENT @ 2017-02-22 17:31 UTC (permalink / raw)
  To: linux-arm-kernel

Now that the Armada 37xx SoCs support the i2c pxa driver, enable it by
default.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 7c48028ec64a..cdad9f63304e 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -249,6 +249,7 @@ CONFIG_I2C_DESIGNWARE_PLATFORM=y
 CONFIG_I2C_IMX=y
 CONFIG_I2C_MESON=y
 CONFIG_I2C_MV64XXX=y
+CONFIG_I2C_PXA=y
 CONFIG_I2C_QUP=y
 CONFIG_I2C_RK3X=y
 CONFIG_I2C_TEGRA=y
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/3] arm64: defconfig: enable I2C_PXA
  2017-02-22 17:31 ` [PATCH 3/3] arm64: defconfig: enable I2C_PXA Gregory CLEMENT
@ 2017-03-07 17:59   ` Gregory CLEMENT
  0 siblings, 0 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2017-03-07 17:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,
 
 On mer., f?vr. 22 2017, Gregory CLEMENT <gregory.clement@free-electrons.com> wrote:

> Now that the Armada 37xx SoCs support the i2c pxa driver, enable it by
> default.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Applied on mvebu/defconfig64

Gregory

> ---
>  arch/arm64/configs/defconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 7c48028ec64a..cdad9f63304e 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -249,6 +249,7 @@ CONFIG_I2C_DESIGNWARE_PLATFORM=y
>  CONFIG_I2C_IMX=y
>  CONFIG_I2C_MESON=y
>  CONFIG_I2C_MV64XXX=y
> +CONFIG_I2C_PXA=y
>  CONFIG_I2C_QUP=y
>  CONFIG_I2C_RK3X=y
>  CONFIG_I2C_TEGRA=y
> -- 
> 2.11.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells
  2017-02-22 17:31 ` [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells Gregory CLEMENT
@ 2017-03-08  9:20   ` Gregory CLEMENT
  0 siblings, 0 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2017-03-08  9:20 UTC (permalink / raw)
  To: linux-arm-kernel

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 at 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 at 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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander
  2017-02-22 17:31 ` [PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander Gregory CLEMENT
@ 2017-03-08  9:21   ` Gregory CLEMENT
  0 siblings, 0 replies; 7+ messages in thread
From: Gregory CLEMENT @ 2017-03-08  9:21 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,
 
 On mer., f?vr. 22 2017, Gregory CLEMENT <gregory.clement@free-electrons.com> wrote:

> A gpio expander is present on the i2c bus on the Armada 3720 DB board. This
> patch add it to the device tree.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

Applied on mvebu/dt64

Gregory

> ---
>  arch/arm64/boot/dts/marvell/armada-3720-db.dts | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
> index 86602c907a61..864936acc316 100644
> --- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
> @@ -64,6 +64,24 @@
>  
>  &i2c0 {
>  	status = "okay";
> +
> +	gpio_exp: pca9555 at 22 {
> +		compatible = "nxp,pca9555";
> +		gpio-controller;
> +		#gpio-cells = <2>;
> +
> +		reg = <0x22>;
> +		/*
> +		 * IO0_0: PWR_EN_USB2	IO1_0: PWR_EN_VTT
> +		 * IO0_1: PWR_EN_USB23	IO1_1: MPCIE_WDISABLE
> +		 * IO0_2: PWR_EN_SATA	IO1_2: RGMII_DEV_RSTN
> +		 * IO0_3: PWR_EN_PCIE	IO1_3: SGMII_DEV_RSTN
> +		 * IO0_4: PWR_EN_SD
> +		 * IO0_5: PWR_EN_EMMC
> +		 * IO0_6: PWR_EN_RGMII	IO1_6: SATA_USB3.0_SEL
> +		 * IO0_7: PWR_EN_SGMII	IO1_7: PWR_MCI_PS
> +		 */
> +	};
>  };
>  
>  /* CON3 */
> -- 
> 2.11.0
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-08  9:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22 17:31 [PATCH 0/3] Improving I2C related support on Armada 3720 DB Gregory CLEMENT
2017-02-22 17:31 ` [PATCH 1/3] ARM64: dts: marvell: armada37xx: add address and size property for i2c cells Gregory CLEMENT
2017-03-08  9:20   ` Gregory CLEMENT
2017-02-22 17:31 ` [PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander Gregory CLEMENT
2017-03-08  9:21   ` Gregory CLEMENT
2017-02-22 17:31 ` [PATCH 3/3] arm64: defconfig: enable I2C_PXA Gregory CLEMENT
2017-03-07 17:59   ` Gregory CLEMENT

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.