linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support
@ 2016-08-30 20:23 Vanessa Maegima
  2016-08-30 20:23 ` [PATCH v2 2/3] ARM: dts: imx7s-warp: Add User Button support Vanessa Maegima
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vanessa Maegima @ 2016-08-30 20:23 UTC (permalink / raw)
  To: linux-arm-kernel

Enable I2C2 device support.

Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
---
Changes since v1:
- Update commit subject
- Update commit log

 arch/arm/boot/dts/imx7s-warp.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts
index 92d9c85..71dbece 100644
--- a/arch/arm/boot/dts/imx7s-warp.dts
+++ b/arch/arm/boot/dts/imx7s-warp.dts
@@ -188,6 +188,13 @@
 	};
 };
 
+&i2c2 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	status = "okay";
+};
+
 &i2c4 {
 	clock-frequency = <100000>;
 	pinctrl-names = "default";
@@ -278,6 +285,13 @@
 		>;
 	};
 
+	pinctrl_i2c2: i2c2grp {
+		fsl,pins = <
+			MX7D_PAD_I2C2_SDA__I2C2_SDA	0x4000007f
+			MX7D_PAD_I2C2_SCL__I2C2_SCL	0x4000007f
+		>;
+	};
+
 	pinctrl_i2c4: i2c4grp {
 		fsl,pins = <
 			MX7D_PAD_I2C4_SCL__I2C4_SCL	0x4000007f
-- 
2.7.4

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

* [PATCH v2 2/3] ARM: dts: imx7s-warp: Add User Button support
  2016-08-30 20:23 [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Vanessa Maegima
@ 2016-08-30 20:23 ` Vanessa Maegima
  2016-08-30 20:23 ` [PATCH v3 3/3] ARM: dts: imx7s-warp: Add Bluetooth support Vanessa Maegima
  2016-09-05  2:22 ` [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Vanessa Maegima @ 2016-08-30 20:23 UTC (permalink / raw)
  To: linux-arm-kernel

Add User Button at GPIO7_1.

Tested by evtest.

Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
---
Changes since v1:
- Add line between property list and sub-node
- Use 'wakeup-source' property
- Remove 'autorepeat' property from child node

 arch/arm/boot/dts/imx7s-warp.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts
index 71dbece..b3c75c1 100644
--- a/arch/arm/boot/dts/imx7s-warp.dts
+++ b/arch/arm/boot/dts/imx7s-warp.dts
@@ -54,6 +54,19 @@
 		reg = <0x80000000 0x20000000>;
 	};
 
+	gpio-keys {
+		compatible = "gpio-keys";
+		pinctrl-0 = <&pinctrl_gpio>;
+		autorepeat;
+
+		back {
+			label = "Back";
+			gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
+			linux,code = <KEY_BACK>;
+			wakeup-source;
+		};
+	};
+
 	reg_brcm: regulator-brcm {
 		compatible = "regulator-fixed";
 		enable-active-high;
@@ -278,6 +291,12 @@
 		>;
 	};
 
+	pinctrl_gpio: gpiogrp {
+		fsl,pins = <
+			MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1	0x14
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX7D_PAD_I2C1_SDA__I2C1_SDA		0x4000007f
-- 
2.7.4

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

* [PATCH v3 3/3] ARM: dts: imx7s-warp: Add Bluetooth support
  2016-08-30 20:23 [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Vanessa Maegima
  2016-08-30 20:23 ` [PATCH v2 2/3] ARM: dts: imx7s-warp: Add User Button support Vanessa Maegima
@ 2016-08-30 20:23 ` Vanessa Maegima
  2016-09-05  2:22 ` [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Vanessa Maegima @ 2016-08-30 20:23 UTC (permalink / raw)
  To: linux-arm-kernel

WaRP7 has a BCM43430 Bluetooth chip.

Add support for it.

Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
---
Change since v2:
- Add pinctrl entry for regulator

 arch/arm/boot/dts/imx7s-warp.dts | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts
index b3c75c1..17375a6 100644
--- a/arch/arm/boot/dts/imx7s-warp.dts
+++ b/arch/arm/boot/dts/imx7s-warp.dts
@@ -79,6 +79,18 @@
 		startup-delay-us = <200000>;
 	};
 
+	reg_bt: regulator-bt {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_bt_reg>;
+		enable-active-high;
+		gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
+		regulator-name = "bt_reg";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
 	sound {
 		compatible = "simple-audio-card";
 		simple-audio-card,name = "imx7-sgtl5000";
@@ -248,6 +260,15 @@
 	status = "okay";
 };
 
+&uart3  {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart3>;
+	assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>;
+	assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
+	uart-has-rtscts;
+	status = "okay";
+};
+
 &usbotg1 {
 	dr_mode = "peripheral";
 	status = "okay";
@@ -291,6 +312,12 @@
 		>;
 	};
 
+	pinctrl_bt_reg: btreggrp {
+		fsl,pins = <
+			MX7D_PAD_SD2_DATA3__GPIO5_IO17	0x14 /* BT_REG_ON */
+		>;
+	};
+
 	pinctrl_gpio: gpiogrp {
 		fsl,pins = <
 			MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1	0x14
@@ -335,6 +362,15 @@
 		>;
 	};
 
+	pinctrl_uart3: uart3grp {
+		fsl,pins = <
+			MX7D_PAD_UART3_TX_DATA__UART3_DCE_TX	0x79
+			MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX	0x79
+			MX7D_PAD_UART3_CTS_B__UART3_DCE_CTS	0x79
+			MX7D_PAD_UART3_RTS_B__UART3_DCE_RTS	0x79
+		>;
+	};
+
 	pinctrl_usdhc1: usdhc1grp {
 		fsl,pins = <
 			MX7D_PAD_SD1_CMD__SD1_CMD	0x59
-- 
2.7.4

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

* [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support
  2016-08-30 20:23 [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Vanessa Maegima
  2016-08-30 20:23 ` [PATCH v2 2/3] ARM: dts: imx7s-warp: Add User Button support Vanessa Maegima
  2016-08-30 20:23 ` [PATCH v3 3/3] ARM: dts: imx7s-warp: Add Bluetooth support Vanessa Maegima
@ 2016-09-05  2:22 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2016-09-05  2:22 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 30, 2016 at 05:23:02PM -0300, Vanessa Maegima wrote:
> Enable I2C2 device support.
> 
> Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>

Applied all, thanks.

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

end of thread, other threads:[~2016-09-05  2:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-30 20:23 [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Vanessa Maegima
2016-08-30 20:23 ` [PATCH v2 2/3] ARM: dts: imx7s-warp: Add User Button support Vanessa Maegima
2016-08-30 20:23 ` [PATCH v3 3/3] ARM: dts: imx7s-warp: Add Bluetooth support Vanessa Maegima
2016-09-05  2:22 ` [PATCH v2 1/3] ARM: dts: imx7s-warp: Enable I2C2 device support Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).