linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW
@ 2013-10-22 22:49 Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 01/14] DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices Sebastian Reichel
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

This patchset adds misc. hardware elements to the Nokia N900 DTS
file. Apart from the last two patches the kernel drivers in 3.12
are already capable of handling the DT entries.

The series is based on bcousson/linux-omap-dt.git:for_3.13/dts.

Additional notes:

* LP5523 support depends on [0], which goes through the
  Bryan Wu's tree.
* TWL4030 supports depends on [1], which is not yet queued.
* Apart from those two I did not include any patches, which
  also need changes in the drivers.

[0] https://lkml.org/lkml/2013/10/22/166
[1] https://lkml.org/lkml/2013/10/22/147

-- Sebastian

Sebastian Reichel (14):
  DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices
  DTS: ARM: OMAP3-N900: Fix i2c bus speed
  DTS: ARM: OMAP3-N900: Add UART support
  DTS: ARM: OMAP3-N900: Add support for SD cards
  DTS: ARM: OMAP3-N900: GPIO key definitions
  DTS: ARM: OMAP3-N900: Add vibrator device
  DTS: ARM: OMAP3-N900: Add LP5523 support
  DTS: TWL4030: Add missing regulators
  DTS: ARM: OMAP3-N900: Specify regulator info
  DTS: ARM: OMAP3-N900: Add NAND support
  DTS: ARM: OMAP3-N900: Mux RX51_LCD_RESET_GPIO in DTS
  DTS: ARM: OMAP3-N900: Add TLV320AIC3X support
  DTS: ARM: OMAP3-N900: Add LP5523 support
  DTS: TWL4030: Add power button support

 arch/arm/boot/dts/omap3-n900.dts | 396 ++++++++++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/twl4030.dtsi   |  49 ++++-
 2 files changed, 438 insertions(+), 7 deletions(-)

-- 
1.8.4.rc3


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

* [PATCH 01/14] DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 02/14] DTS: ARM: OMAP3-N900: Fix i2c bus speed Sebastian Reichel
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add pin muxing support for the Nokia N900 i2c controllers.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index e13b697..ad4edd9 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -28,7 +28,35 @@
 
 };
 
+&omap3_pmx_core {
+	pinctrl-names = "default";
+
+	i2c1_pins: pinmux_i2c1_pins {
+		pinctrl-single,pins = <
+			0x18a (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_scl */
+			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_sda */
+		>;
+	};
+
+	i2c2_pins: pinmux_i2c2_pins {
+		pinctrl-single,pins = <
+			0x18e (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c2_scl */
+			0x190 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c2_sda */
+		>;
+	};
+
+	i2c3_pins: pinmux_i2c3_pins {
+		pinctrl-single,pins = <
+			0x192 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_scl */
+			0x194 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_sda */
+		>;
+	};
+};
+
 &i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
 	clock-frequency = <2200000>;
 
 	twl: twl@48 {
@@ -39,6 +67,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &twl_gpio {
 	ti,pullups	= <0x0>;
@@ -46,10 +75,16 @@
 };
 
 &i2c2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c2_pins>;
+
 	clock-frequency = <400000>;
 };
 
 &i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+
 	clock-frequency = <100000>;
 };
 
-- 
1.8.4.rc3


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

* [PATCH 02/14] DTS: ARM: OMAP3-N900: Fix i2c bus speed
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 01/14] DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 03/14] DTS: ARM: OMAP3-N900: Add UART support Sebastian Reichel
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Fix the bus speed of i2c bus 2 and 3.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index ad4edd9..7dd6fb6 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -78,14 +78,14 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c2_pins>;
 
-	clock-frequency = <400000>;
+	clock-frequency = <100000>;
 };
 
 &i2c3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c3_pins>;
 
-	clock-frequency = <100000>;
+	clock-frequency = <400000>;
 };
 
 &mmc1 {
-- 
1.8.4.rc3


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

* [PATCH 03/14] DTS: ARM: OMAP3-N900: Add UART support
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 01/14] DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 02/14] DTS: ARM: OMAP3-N900: Fix i2c bus speed Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 04/14] DTS: ARM: OMAP3-N900: Add support for SD cards Sebastian Reichel
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add UART support to Nokia N900.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 7dd6fb6..9226268 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -31,6 +31,20 @@
 &omap3_pmx_core {
 	pinctrl-names = "default";
 
+	uart2_pins: pinmux_uart2_pins {
+		pinctrl-single,pins = <
+			0x14a (PIN_INPUT | MUX_MODE0)		/* uart2_rx */
+			0x148 (PIN_OUTPUT | MUX_MODE0)		/* uart2_tx */
+		>;
+	};
+
+	uart3_pins: pinmux_uart3_pins {
+		pinctrl-single,pins = <
+			0x16e (PIN_INPUT | MUX_MODE0)		/* uart3_rx */
+			0x170 (PIN_OUTPUT | MUX_MODE0)		/* uart3_tx */
+		>;
+	};
+
 	i2c1_pins: pinmux_i2c1_pins {
 		pinctrl-single,pins = <
 			0x18a (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_scl */
@@ -127,3 +141,17 @@
 	mode = <2>;
 	power = <50>;
 };
+
+&uart1 {
+	status = "disabled";
+};
+
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart2_pins>;
+};
+
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart3_pins>;
+};
-- 
1.8.4.rc3


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

* [PATCH 04/14] DTS: ARM: OMAP3-N900: Add support for SD cards
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (2 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 03/14] DTS: ARM: OMAP3-N900: Add UART support Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 05/14] DTS: ARM: OMAP3-N900: GPIO key definitions Sebastian Reichel
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add support for external SD card slot.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 9226268..01a437e 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -65,6 +65,17 @@
 			0x194 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_sda */
 		>;
 	};
+
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			0x114 (PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_clk */
+			0x116 (PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_cmd */
+			0x118 (PIN_INPUT_PULLUP | MUX_MODE0) 	/* sdmmc1_dat0 */
+			0x11a (PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat1 */
+			0x11c (PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat2 */
+			0x11e (PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat3 */
+		>;
+	};
 };
 
 &i2c1 {
@@ -103,7 +114,11 @@
 };
 
 &mmc1 {
-	status = "disabled";
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	vmmc-supply = <&vmmc1>;
+	bus-width = <4>;
+	cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
 };
 
 &mmc2 {
-- 
1.8.4.rc3


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

* [PATCH 05/14] DTS: ARM: OMAP3-N900: GPIO key definitions
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (3 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 04/14] DTS: ARM: OMAP3-N900: Add support for SD cards Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 06/14] DTS: ARM: OMAP3-N900: Add vibrator device Sebastian Reichel
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add device tree node for the GPIO keys provided by the
N900 board. This is a simple conversion of the existing
board code.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 48 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 01a437e..5082cb6 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -26,6 +26,54 @@
 		reg = <0x80000000 0x10000000>; /* 256 MB */
 	};
 
+	gpio_keys {
+		compatible = "gpio-keys";
+
+		camera_lens_cover {
+			label = "Camera Lens Cover";
+			gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
+			linux,input-type = <5>; /* EV_SW */
+			linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
+			gpio-key,wakeup;
+		};
+
+		camera_focus {
+			label = "Camera Focus";
+			gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
+			linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
+			gpio-key,wakeup;
+		};
+
+		camera_capture {
+			label = "Camera Capture";
+			gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
+			linux,code = <0xd4>; /* KEY_CAMERA */
+			gpio-key,wakeup;
+		};
+
+		lock_button {
+			label = "Lock Button";
+			gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
+			linux,code = <0x98>; /* KEY_SCREENLOCK */
+			gpio-key,wakeup;
+		};
+
+		keypad_slide {
+			label = "Keypad Slide";
+			gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
+			linux,input-type = <5>; /* EV_SW */
+			linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
+			gpio-key,wakeup;
+		};
+
+		proximity_sensor {
+			label = "Proximity Sensor";
+			gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
+			linux,input-type = <5>; /* EV_SW */
+			linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
+		};
+	};
+
 };
 
 &omap3_pmx_core {
-- 
1.8.4.rc3


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

* [PATCH 06/14] DTS: ARM: OMAP3-N900: Add vibrator device
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (4 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 05/14] DTS: ARM: OMAP3-N900: GPIO key definitions Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 07/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add support for Nokia N900's vibrator.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 5082cb6..a02f64f 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -142,6 +142,13 @@
 #include "twl4030.dtsi"
 #include "twl4030_omap3.dtsi"
 
+&twl {
+	twl_audio: audio {
+		compatible = "ti,twl4030-audio";
+		ti,enable-vibra = <1>;
+	};
+};
+
 &twl_gpio {
 	ti,pullups	= <0x0>;
 	ti,pulldowns	= <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
-- 
1.8.4.rc3


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

* [PATCH 07/14] DTS: ARM: OMAP3-N900: Add LP5523 support
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (5 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 06/14] DTS: ARM: OMAP3-N900: Add vibrator device Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 08/14] DTS: TWL4030: Add missing regulators Sebastian Reichel
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add support for LP5523 device.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index a02f64f..c7e0d2d 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -159,6 +159,11 @@
 	pinctrl-0 = <&i2c2_pins>;
 
 	clock-frequency = <100000>;
+
+	bq27200: bq27200@55 {
+		compatible = "ti,bq27200";
+		reg = <0x55>;
+	};
 };
 
 &i2c3 {
-- 
1.8.4.rc3


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

* [PATCH 08/14] DTS: TWL4030: Add missing regulators
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (6 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 07/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 09/14] DTS: ARM: OMAP3-N900: Specify regulator info Sebastian Reichel
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

The twl4030.dtsi is missing some regulators. This patch adds
the missing ones and orders the regulators alphabetically.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/twl4030.dtsi | 44 ++++++++++++++++++++++++++++++++++++++----
 1 file changed, 40 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi
index ae6a17a..cb5afcd 100644
--- a/arch/arm/boot/dts/twl4030.dtsi
+++ b/arch/arm/boot/dts/twl4030.dtsi
@@ -23,6 +23,22 @@
 		compatible = "ti,twl4030-wdt";
 	};
 
+	vaux1: regulator-vaux1 {
+		compatible = "ti,twl4030-vaux1";
+	};
+
+	vaux2: regulator-vaux2 {
+		compatible = "ti,twl4030-vaux2";
+	};
+
+	vaux3: regulator-vaux3 {
+		compatible = "ti,twl4030-vaux3";
+	};
+
+	vaux4: regulator-vaux4 {
+		compatible = "ti,twl4030-vaux4";
+	};
+
 	vcc: regulator-vdd1 {
 		compatible = "ti,twl4030-vdd1";
 		regulator-min-microvolt = <600000>;
@@ -35,10 +51,20 @@
 		regulator-max-microvolt = <1800000>;
 	};
 
-	vpll2: regulator-vpll2 {
-		compatible = "ti,twl4030-vpll2";
-		regulator-min-microvolt = <1800000>;
-		regulator-max-microvolt = <1800000>;
+	vio: regulator-vio {
+		compatible = "ti,twl4030-vio";
+	};
+
+	vintana1: regulator-vintana1 {
+		compatible = "ti,twl4030-vintana1";
+	};
+
+	vintana2: regulator-vintana2 {
+		compatible = "ti,twl4030-vintana2";
+	};
+
+	vintdig: regulator-vintdig {
+		compatible = "ti,twl4030-vintdig";
 	};
 
 	vmmc1: regulator-vmmc1 {
@@ -65,6 +91,16 @@
 		compatible = "ti,twl4030-vusb3v1";
 	};
 
+	vpll1: regulator-vpll1 {
+		compatible = "ti,twl4030-vpll1";
+	};
+
+	vpll2: regulator-vpll2 {
+		compatible = "ti,twl4030-vpll2";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+	};
+
 	vsim: regulator-vsim {
 		compatible = "ti,twl4030-vsim";
 		regulator-min-microvolt = <1800000>;
-- 
1.8.4.rc3


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

* [PATCH 09/14] DTS: ARM: OMAP3-N900: Specify regulator info
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (7 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 08/14] DTS: TWL4030: Add missing regulators Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 10/14] DTS: ARM: OMAP3-N900: Add NAND support Sebastian Reichel
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add regulator names and voltage information to
the Nokia N900 DTS file.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 84 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index c7e0d2d..0a45af3 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -142,6 +142,90 @@
 #include "twl4030.dtsi"
 #include "twl4030_omap3.dtsi"
 
+&vaux1 {
+	regulator-name = "V28";
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+	regulator-always-on; /* due battery cover sensor */
+};
+
+&vaux2 {
+	regulator-name = "VCSI";
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+};
+
+&vaux3 {
+	regulator-name = "VMMC2_30";
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <3000000>;
+};
+
+&vaux4 {
+	regulator-name = "VCAM_ANA_28";
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <2800000>;
+};
+
+&vmmc1 {
+	regulator-name = "VMMC1";
+	regulator-min-microvolt = <1850000>;
+	regulator-max-microvolt = <3150000>;
+};
+
+&vmmc2 {
+	regulator-name = "V28_A";
+	regulator-min-microvolt = <2800000>;
+	regulator-max-microvolt = <3000000>;
+	regulator-always-on; /* due VIO leak to AIC34 VDDs */
+};
+
+&vpll1 {
+	regulator-name = "VPLL";
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-always-on;
+};
+
+&vpll2 {
+	regulator-name = "VSDI_CSI";
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+	regulator-always-on;
+};
+
+&vsim {
+	regulator-name = "VMMC2_IO_18";
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+};
+
+&vio {
+	regulator-name = "VIO";
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
+
+};
+
+&vintana1 {
+	regulator-name = "VINTANA1";
+	/* fixed to 1500000 */
+	regulator-always-on;
+};
+
+&vintana2 {
+	regulator-name = "VINTANA2";
+	regulator-min-microvolt = <2750000>;
+	regulator-max-microvolt = <2750000>;
+	regulator-always-on;
+};
+
+&vintdig {
+	regulator-name = "VINTDIG";
+	/* fixed to 1500000 */
+	regulator-always-on;
+};
+
 &twl {
 	twl_audio: audio {
 		compatible = "ti,twl4030-audio";
-- 
1.8.4.rc3


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

* [PATCH 10/14] DTS: ARM: OMAP3-N900: Add NAND support
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (8 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 09/14] DTS: ARM: OMAP3-N900: Specify regulator info Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 11/14] DTS: ARM: OMAP3-N900: Mux RX51_LCD_RESET_GPIO in DTS Sebastian Reichel
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

This patch adds supports for Nokia N900 NAND memory.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 72 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 0a45af3..999a80c 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -273,6 +273,78 @@
 	status = "disabled";
 };
 
+&gpmc {
+	ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
+
+	/* gpio-irq for dma: 65 */
+
+	onenand@0,0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0 0 0x10000000>;
+
+		gpmc,sync-read;
+		gpmc,sync-write;
+		gpmc,burst-length = <16>;
+		gpmc,burst-read;
+		gpmc,burst-wrap;
+		gpmc,burst-write;
+		gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
+		gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
+		gpmc,cs-on-ns = <0>;
+		gpmc,cs-rd-off-ns = <87>;
+		gpmc,cs-wr-off-ns = <87>;
+		gpmc,adv-on-ns = <0>;
+		gpmc,adv-rd-off-ns = <10>;
+		gpmc,adv-wr-off-ns = <10>;
+		gpmc,oe-on-ns = <15>;
+		gpmc,oe-off-ns = <87>;
+		gpmc,we-on-ns = <0>;
+		gpmc,we-off-ns = <87>;
+		gpmc,rd-cycle-ns = <112>;
+		gpmc,wr-cycle-ns = <112>;
+		gpmc,access-ns = <81>;
+		gpmc,page-burst-access-ns = <15>;
+		gpmc,bus-turnaround-ns = <0>;
+		gpmc,cycle2cycle-delay-ns = <0>;
+		gpmc,wait-monitoring-ns = <0>;
+		gpmc,clk-activation-ns = <5>;
+		gpmc,wr-data-mux-bus-ns = <30>;
+		gpmc,wr-access-ns = <81>;
+		gpmc,sync-clk-ps = <15000>;
+
+		/*
+		 * MTD partition table corresponding to Nokia's
+		 * Maemo 5 (Fremantle) release.
+		 */
+		partition@0 {
+			label = "bootloader";
+			reg = <0x00000000 0x00020000>;
+			read-only;
+		};
+		partition@1 {
+			label = "config";
+			reg = <0x00020000 0x00060000>;
+		};
+		partition@2 {
+			label = "log";
+			reg = <0x00080000 0x00040000>;
+		};
+		partition@3 {
+			label = "kernel";
+			reg = <0x000c0000 0x00200000>;
+		};
+		partition@4 {
+			label = "initfs";
+			reg = <0x002c0000 0x00200000>;
+		};
+		partition@5 {
+			label = "rootfs";
+			reg = <0x004c0000 0x0fb40000>;
+		};
+	};
+};
+
 &mcspi1 {
 	/*
 	 * For some reason, touchscreen is necessary for screen to work at
-- 
1.8.4.rc3


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

* [PATCH 11/14] DTS: ARM: OMAP3-N900: Mux RX51_LCD_RESET_GPIO in DTS
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (9 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 10/14] DTS: ARM: OMAP3-N900: Add NAND support Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 12/14] DTS: ARM: OMAP3-N900: Add TLV320AIC3X support Sebastian Reichel
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add RX51_LCD_RESET_GPIO pin mux information to
display.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 999a80c..5afbd28 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -124,6 +124,12 @@
 			0x11e (PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat3 */
 		>;
 	};
+
+	display_pins: pinmux_display_pins {
+		pinctrl-single,pins = <
+			0x0d4 (PIN_OUTPUT | MUX_MODE4)		/* RX51_LCD_RESET_GPIO */
+		>;
+	};
 };
 
 &i2c1 {
@@ -361,6 +367,9 @@
 		compatible = "acx565akm";
 		spi-max-frequency = <6000000>;
 		reg = <2>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&display_pins>;
 	};
 };
 
-- 
1.8.4.rc3


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

* [PATCH 12/14] DTS: ARM: OMAP3-N900: Add TLV320AIC3X support
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (10 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 11/14] DTS: ARM: OMAP3-N900: Mux RX51_LCD_RESET_GPIO in DTS Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 13/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

This patch adds support for Nokia N900 TLV320AIC3X chips.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 5afbd28..98797e5 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -250,6 +250,32 @@
 
 	clock-frequency = <100000>;
 
+	tlv320aic3x: tlv320aic3x@18 {
+		compatible = "ti,tlv320aic3x";
+		reg = <0x18>;
+		gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
+		ai3x-gpio-func = <
+			0 /* AIC3X_GPIO1_FUNC_DISABLED */
+			5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
+		>;
+
+		AVDD-supply = <&vmmc2>;
+		DRVDD-supply = <&vmmc2>;
+		IOVDD-supply = <&vio>;
+		DVDD-supply = <&vio>;
+	};
+
+	tlv320aic3x_aux: tlv320aic3x@19 {
+		compatible = "ti,tlv320aic3x";
+		reg = <0x19>;
+		gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
+
+		AVDD-supply = <&vmmc2>;
+		DRVDD-supply = <&vmmc2>;
+		IOVDD-supply = <&vio>;
+		DVDD-supply = <&vio>;
+	};
+
 	bq27200: bq27200@55 {
 		compatible = "ti,bq27200";
 		reg = <0x55>;
-- 
1.8.4.rc3


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

* [PATCH 13/14] DTS: ARM: OMAP3-N900: Add LP5523 support
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (11 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 12/14] DTS: ARM: OMAP3-N900: Add TLV320AIC3X support Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-22 22:49 ` [PATCH 14/14] DTS: TWL4030: Add power button support Sebastian Reichel
  2013-10-23  8:36 ` [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Benoit Cousson
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Add support for LP5523 device.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 61 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 98797e5..c4f20bf 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -276,6 +276,67 @@
 		DVDD-supply = <&vio>;
 	};
 
+	lp5523: lp5523@32 {
+		compatible = "national,lp5523";
+		reg = <0x32>;
+		clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
+		enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
+
+		chan0 {
+			chan-name = "lp5523:kb1";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan1 {
+			chan-name = "lp5523:kb2";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan2 {
+			chan-name = "lp5523:kb3";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan3 {
+			chan-name = "lp5523:kb4";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan4 {
+			chan-name = "lp5523:b";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan5 {
+			chan-name = "lp5523:g";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan6 {
+			chan-name = "lp5523:r";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan7 {
+			chan-name = "lp5523:kb5";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+
+		chan8 {
+			chan-name = "lp5523:kb6";
+			led-cur = /bits/ 8 <50>;
+			max-cur = /bits/ 8 <100>;
+		};
+	};
+
 	bq27200: bq27200@55 {
 		compatible = "ti,bq27200";
 		reg = <0x55>;
-- 
1.8.4.rc3


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

* [PATCH 14/14] DTS: TWL4030: Add power button support
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (12 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 13/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
@ 2013-10-22 22:49 ` Sebastian Reichel
  2013-10-23  8:36 ` [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Benoit Cousson
  14 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2013-10-22 22:49 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Sebastian Reichel

Enable support for the power button.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/twl4030.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi
index cb5afcd..af7fa40 100644
--- a/arch/arm/boot/dts/twl4030.dtsi
+++ b/arch/arm/boot/dts/twl4030.dtsi
@@ -133,4 +133,9 @@
 		compatible = "ti,twl4030-pwmled";
 		#pwm-cells = <2>;
 	};
+
+	twl_pwrbutton: pwrbutton {
+		compatible = "ti,twl4030-pwrbutton";
+		interrupts = <8>;
+	};
 };
-- 
1.8.4.rc3


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

* Re: [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW
  2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
                   ` (13 preceding siblings ...)
  2013-10-22 22:49 ` [PATCH 14/14] DTS: TWL4030: Add power button support Sebastian Reichel
@ 2013-10-23  8:36 ` Benoit Cousson
  14 siblings, 0 replies; 16+ messages in thread
From: Benoit Cousson @ 2013-10-23  8:36 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren; +Cc: linux-omap, devicetree, linux-kernel

Hi Sebastian,

On 23/10/2013 00:49, Sebastian Reichel wrote:
> This patchset adds misc. hardware elements to the Nokia N900 DTS
> file. Apart from the last two patches the kernel drivers in 3.12
> are already capable of handling the DT entries.
>
> The series is based on bcousson/linux-omap-dt.git:for_3.13/dts.

Thanks, I've just applied the whole series.

Regards,
Benoit

-- 
Benoît Cousson
BayLibre
Embedded Linux Technology Lab
www.baylibre.com

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

end of thread, other threads:[~2013-10-23  8:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
2013-10-22 22:49 ` [PATCH 01/14] DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices Sebastian Reichel
2013-10-22 22:49 ` [PATCH 02/14] DTS: ARM: OMAP3-N900: Fix i2c bus speed Sebastian Reichel
2013-10-22 22:49 ` [PATCH 03/14] DTS: ARM: OMAP3-N900: Add UART support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 04/14] DTS: ARM: OMAP3-N900: Add support for SD cards Sebastian Reichel
2013-10-22 22:49 ` [PATCH 05/14] DTS: ARM: OMAP3-N900: GPIO key definitions Sebastian Reichel
2013-10-22 22:49 ` [PATCH 06/14] DTS: ARM: OMAP3-N900: Add vibrator device Sebastian Reichel
2013-10-22 22:49 ` [PATCH 07/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 08/14] DTS: TWL4030: Add missing regulators Sebastian Reichel
2013-10-22 22:49 ` [PATCH 09/14] DTS: ARM: OMAP3-N900: Specify regulator info Sebastian Reichel
2013-10-22 22:49 ` [PATCH 10/14] DTS: ARM: OMAP3-N900: Add NAND support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 11/14] DTS: ARM: OMAP3-N900: Mux RX51_LCD_RESET_GPIO in DTS Sebastian Reichel
2013-10-22 22:49 ` [PATCH 12/14] DTS: ARM: OMAP3-N900: Add TLV320AIC3X support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 13/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 14/14] DTS: TWL4030: Add power button support Sebastian Reichel
2013-10-23  8:36 ` [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Benoit Cousson

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).