linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] ARM: dts: omap3-gta04: Various updates
@ 2016-05-17 19:48 Marek Belisko
  2016-05-17 19:48 ` [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support Marek Belisko
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Marek Belisko @ 2016-05-17 19:48 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, ijc+devicetree, galak, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns,
	Marek Belisko

Add various improvements for gta04 device (wifi, backlight, irq lines for sensors)

H. Nikolaus Schaller (4):
  ARM: dts: omap3-gta04: Define and use bma180 irq pin
  ARM: dta: omap3-gta04: Define and use itg3200  irq pin
  ARM: dta: omap3-gta04: Define and use hmc5843 irq pin
  ARM: dts: omap3-gat04: Fix wifi handling

Marek Belisko (1):
  ARM: dts: omap3-gta04: Add backlight support

 arch/arm/boot/dts/omap3-gta04.dtsi | 60 ++++++++++++++++++++++++++++++++++++--
 1 file changed, 57 insertions(+), 3 deletions(-)

-- 
2.5.0

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

* [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support
  2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
@ 2016-05-17 19:48 ` Marek Belisko
  2016-05-17 19:48 ` [PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin Marek Belisko
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Marek Belisko @ 2016-05-17 19:48 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, ijc+devicetree, galak, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns,
	Marek Belisko

Define pwm backlight node which is using dmtimer pwm.

Signed-off-by: Marek Belisko <marek@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index ab9fb8f..cef8b23 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -100,6 +100,22 @@
 		};
 	};
 
+	backlight {
+		compatible = "pwm-backlight";
+		pwms = <&pwm11 0 2000000 0>;
+		pwm-names = "backlight";
+		brightness-levels = <0 11 20 30 40 50 60 70 80 90 100>;
+		default-brightness-level = <9>;	/* => 90 */
+		pinctrl-names = "default";
+		pinctrl-0 = <&backlight_pins>;
+	};
+
+	pwm11: dmtimer-pwm@11 {
+		compatible = "ti,omap-dmtimer-pwm";
+		ti,timers = <&timer11>;
+		#pwm-cells = <3>;
+	};
+
 	hsusb2_phy: hsusb2_phy {
 		compatible = "usb-nop-xceiv";
 		reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
@@ -190,6 +206,12 @@
 		>;
 	};
 
+	backlight_pins: backlight_pins_pimnux {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3)		/* gpt11/gpio57 */
+		>;
+	};
+
 	dss_dpi_pins: pinmux_dss_dpi_pins {
                pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
-- 
2.5.0

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

* [PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin
  2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
  2016-05-17 19:48 ` [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support Marek Belisko
@ 2016-05-17 19:48 ` Marek Belisko
  2016-05-17 19:48 ` [PATCH 3/5] ARM: dta: omap3-gta04: Define and use itg3200 " Marek Belisko
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Marek Belisko @ 2016-05-17 19:48 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, ijc+devicetree, galak, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns

From: "H. Nikolaus Schaller" <hns@goldelico.com>

Add pinmux and usage of bma180 irq pin.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index cef8b23..e0520cf 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -250,6 +250,12 @@
 			OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
 		>;
 	};
+
+	bma180_pins: pinmux_bma180_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
+		>;
+	};
 };
 
 &omap3_pmx_core2 {
@@ -320,6 +326,8 @@
 	bma180@41 {
 		compatible = "bosch,bma180";
 		reg = <0x41>;
+		pinctrl-names = "default";
+		pintcrl-0 = <&bma180_pins>;
 		interrupt-parent = <&gpio4>;
 		interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
 	};
-- 
2.5.0

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

* [PATCH 3/5] ARM: dta: omap3-gta04: Define and use itg3200  irq pin
  2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
  2016-05-17 19:48 ` [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support Marek Belisko
  2016-05-17 19:48 ` [PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin Marek Belisko
@ 2016-05-17 19:48 ` Marek Belisko
  2016-05-17 19:48 ` [PATCH 4/5] ARM: dta: omap3-gta04: Define and use hmc5843 " Marek Belisko
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Marek Belisko @ 2016-05-17 19:48 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, ijc+devicetree, galak, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns

From: "H. Nikolaus Schaller" <hns@goldelico.com>

Define pinmux and usage if irq pin + fix irq edge.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index e0520cf..094e5e1 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -256,6 +256,12 @@
 			OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
 		>;
 	};
+
+	itg3200_pins: pinmux_itg3200_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
+		>;
+	};
 };
 
 &omap3_pmx_core2 {
@@ -336,8 +342,10 @@
 	itg3200@68 {
 		compatible = "invensense,itg3200";
 		reg = <0x68>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&itg3200_pins>;
 		interrupt-parent = <&gpio2>;
-		interrupts = <24 0>; /* GPIO_56 */
+		interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
 	};
 
 	/* leds */
-- 
2.5.0

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

* [PATCH 4/5] ARM: dta: omap3-gta04: Define and use hmc5843 irq pin
  2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
                   ` (2 preceding siblings ...)
  2016-05-17 19:48 ` [PATCH 3/5] ARM: dta: omap3-gta04: Define and use itg3200 " Marek Belisko
@ 2016-05-17 19:48 ` Marek Belisko
  2016-05-17 19:48 ` [PATCH 5/5] ARM: dts: omap3-gat04: Fix wifi handling Marek Belisko
  2016-05-31  6:48 ` [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Belisko Marek
  5 siblings, 0 replies; 9+ messages in thread
From: Marek Belisko @ 2016-05-17 19:48 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, ijc+devicetree, galak, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns

From: "H. Nikolaus Schaller" <hns@goldelico.com>

Define pinmux and usage if irq pin.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 094e5e1..55b6b88 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -262,6 +262,12 @@
 			OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
 		>;
 	};
+
+	hmc5843_pins: pinmux_hmc5843_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
+		>;
+	};
 };
 
 &omap3_pmx_core2 {
@@ -389,6 +395,10 @@
 	hmc5843@1e {
 		compatible = "honeywell,hmc5883l";
 		reg = <0x1e>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&hmc5843_pins>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <16 IRQ_TYPE_EDGE_FALLING>;	/* gpio112 */
 	};
 
 	/* touchscreen */
-- 
2.5.0

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

* [PATCH 5/5] ARM: dts: omap3-gat04: Fix wifi handling
  2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
                   ` (3 preceding siblings ...)
  2016-05-17 19:48 ` [PATCH 4/5] ARM: dta: omap3-gta04: Define and use hmc5843 " Marek Belisko
@ 2016-05-17 19:48 ` Marek Belisko
  2016-05-31  6:48 ` [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Belisko Marek
  5 siblings, 0 replies; 9+ messages in thread
From: Marek Belisko @ 2016-05-17 19:48 UTC (permalink / raw)
  To: bcousson, tony, robh+dt, mark.rutland, ijc+devicetree, galak, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns

From: "H. Nikolaus Schaller" <hns@goldelico.com>

Without that change wifi card isn't probed because pwrseq is necessary for
libertas chip.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 55b6b88..6349257 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -155,6 +155,11 @@
 			};
 		};
 	};
+
+	wifi_pwrseq: wifi_pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
+	};
 };
 
 &omap3_pmx_core {
@@ -354,8 +359,8 @@
 		interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
 	};
 
-	/* leds */
-	tca6507@45 {
+	/* leds + gpios */
+	tca6507: tca6507@45 {
 		compatible = "ti,tca6507";
 		#address-cells = <1>;
 		#size-cells = <0>;
@@ -446,6 +451,7 @@
 	bus-width = <4>;
 	ti,non-removable;
 	cap-power-off-card;
+	mmc-pwrseq = <&wifi_pwrseq>;
 };
 
 &mmc3 {
-- 
2.5.0

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

* Re: [PATCH 0/5] ARM: dts: omap3-gta04: Various updates
  2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
                   ` (4 preceding siblings ...)
  2016-05-17 19:48 ` [PATCH 5/5] ARM: dts: omap3-gat04: Fix wifi handling Marek Belisko
@ 2016-05-31  6:48 ` Belisko Marek
  2016-05-31 18:19   ` Tony Lindgren
  5 siblings, 1 reply; 9+ messages in thread
From: Belisko Marek @ 2016-05-31  6:48 UTC (permalink / raw)
  To: Benoit Cousson, Tony Lindgren, Rob Herring, Mark Rutland,
	ijc+devicetree, Kumar Gala, linux
  Cc: linux-omap, devicetree, linux-arm-kernel, LKML,
	Dr. H. Nikolaus Schaller, Marek Belisko

Ping? Any objections? Thanks.

On Tue, May 17, 2016 at 9:48 PM, Marek Belisko <marek@goldelico.com> wrote:
> Add various improvements for gta04 device (wifi, backlight, irq lines for sensors)
>
> H. Nikolaus Schaller (4):
>   ARM: dts: omap3-gta04: Define and use bma180 irq pin
>   ARM: dta: omap3-gta04: Define and use itg3200  irq pin
>   ARM: dta: omap3-gta04: Define and use hmc5843 irq pin
>   ARM: dts: omap3-gat04: Fix wifi handling
>
> Marek Belisko (1):
>   ARM: dts: omap3-gta04: Add backlight support
>
>  arch/arm/boot/dts/omap3-gta04.dtsi | 60 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 57 insertions(+), 3 deletions(-)
>
> --
> 2.5.0
>

Marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

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

* Re: [PATCH 0/5] ARM: dts: omap3-gta04: Various updates
  2016-05-31  6:48 ` [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Belisko Marek
@ 2016-05-31 18:19   ` Tony Lindgren
  2016-06-10 10:53     ` Tony Lindgren
  0 siblings, 1 reply; 9+ messages in thread
From: Tony Lindgren @ 2016-05-31 18:19 UTC (permalink / raw)
  To: Belisko Marek
  Cc: Benoit Cousson, Rob Herring, Mark Rutland, ijc+devicetree,
	Kumar Gala, linux, linux-omap, devicetree, linux-arm-kernel,
	LKML, Dr. H. Nikolaus Schaller, Marek Belisko

* Belisko Marek <marek.belisko@gmail.com> [160530 23:50]:
> Ping? Any objections? Thanks.

Looks OK to me, with v4.7-rc1 out I'll start applying patches
again once the pending fixes are out of the way. So it will be
few more days, probably around -rc2 time.

Regards,

Tony

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

* Re: [PATCH 0/5] ARM: dts: omap3-gta04: Various updates
  2016-05-31 18:19   ` Tony Lindgren
@ 2016-06-10 10:53     ` Tony Lindgren
  0 siblings, 0 replies; 9+ messages in thread
From: Tony Lindgren @ 2016-06-10 10:53 UTC (permalink / raw)
  To: Belisko Marek
  Cc: Benoit Cousson, Rob Herring, Mark Rutland, ijc+devicetree,
	Kumar Gala, linux, linux-omap, devicetree, linux-arm-kernel,
	LKML, Dr. H. Nikolaus Schaller, Marek Belisko

* Tony Lindgren <tony@atomide.com> [160531 11:22]:
> * Belisko Marek <marek.belisko@gmail.com> [160530 23:50]:
> > Ping? Any objections? Thanks.
> 
> Looks OK to me, with v4.7-rc1 out I'll start applying patches
> again once the pending fixes are out of the way. So it will be
> few more days, probably around -rc2 time.

Applying all into omap-for-v4.8/dt finally thanks.

Tony

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

end of thread, other threads:[~2016-06-10 10:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 19:48 [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko
2016-05-17 19:48 ` [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support Marek Belisko
2016-05-17 19:48 ` [PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin Marek Belisko
2016-05-17 19:48 ` [PATCH 3/5] ARM: dta: omap3-gta04: Define and use itg3200 " Marek Belisko
2016-05-17 19:48 ` [PATCH 4/5] ARM: dta: omap3-gta04: Define and use hmc5843 " Marek Belisko
2016-05-17 19:48 ` [PATCH 5/5] ARM: dts: omap3-gat04: Fix wifi handling Marek Belisko
2016-05-31  6:48 ` [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Belisko Marek
2016-05-31 18:19   ` Tony Lindgren
2016-06-10 10:53     ` Tony Lindgren

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