[PATCH 0/3] Improving I2C related support on Armada 3720 DB

STALE3486d

4 messages, 1 author, 2017-02-22 · open the first message on its own page

[PATCH 0/3] Improving I2C related support on Armada 3720 DB

From: Gregory CLEMENT <hidden>
Date: 2017-02-22 17:31:43

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

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

From: Gregory CLEMENT <hidden>
Date: 2017-02-22 17:31:44

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

[PATCH 2/3] ARM64: dts: marvell: armada-3720-db: add gpio expander

From: Gregory CLEMENT <hidden>
Date: 2017-02-22 17:31:45

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

[PATCH 3/3] arm64: defconfig: enable I2C_PXA

From: Gregory CLEMENT <hidden>
Date: 2017-02-22 17:31:46

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

Signed-off-by: Gregory CLEMENT <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help