linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants)
@ 2018-07-25  6:58 H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 01/32] ARM: dts: omap3-gta04: fix typo in backlight pins node name H. Nikolaus Schaller
                   ` (31 more replies)
  0 siblings, 32 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

We have not upstreamed significant improvements collected
in the GTA04 vendor kernel tree for some years. The result
is that distribution kernels derived from upstream (e.g.
Debian) lag behind and miss significant features and fixes.


H. Nikolaus Schaller (32):
  ARM: dts: omap3-gta04: fix typo in backlight pins node name
  ARM: dts: omap3-gta04: fix some whitespace and tab style errors
  ARM: dts: omap3-gta04: give spi_lcd node a label so that we can
    overwrite in other DTS files
  ARM: dts: omap3-gta04: fixes for tvout / venc
  ARM: dts: omap3-gta04: add devconf1 setup for correct tvout pins
  ARM: dts: omap3-gta04: tvout: enable as display1 alias
  ARM: dts: omap3-gta04: fix touchscreen tsc2007
  ARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt
  ARM: dts: omap3-gta04: make NAND partitions compatible with recent
    U-Boot
  ARM: dts: omap3-gta04: update gpmc NAND setup
  ARM: dts: omap3-gta04: keep vpll2 always on
  ARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio
  ARM: dts: omap3-gta04: add warning comment to vaux2 regulator
  ARM: dts: omap3-gta04: replace ti,non-removable with generic
    non-removable
  ARM: dts: omap3-gta04: make use of input event include file and
    constants
  ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key
    event
  ARM: dts: omap3-gta04: add camera interface parallel port
  ARM: dts: omap3-gta04: add camera pinmux
  ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux
  ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins
  ARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes
  ARM: dts: omap3-gta04a3: fix model name for A3 variant
  ARM: dts: omap3-gta04a4: fix model name for A4 variant
  ARM: dts: omap3-gta04a5: fix copyright of A5 variant
  ARM: dts: omap3-gta04a5: fix model name
  ARM: dts: omap3-gta04a5: fix whitepsace and tab style
  ARM: dts: omap3-gta04a5: add support for PPS
  ARM: dts: omap3-gta04a5: disable IrDA receiver to save power
  ARM: dts: omap3-gta04a5: add support for ti,wl1837 module
  ARM: dts: omap3-gta04a5: uses different sensors than gta04a4
  ARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of
    ti,wl1837 module
  ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND

 arch/arm/boot/dts/omap3-gta04.dtsi     | 253 +++++++++++++++++++++++++++++----
 arch/arm/boot/dts/omap3-gta04a3.dts    |   2 +-
 arch/arm/boot/dts/omap3-gta04a4.dts    |   2 +-
 arch/arm/boot/dts/omap3-gta04a5.dts    | 129 ++++++++++++++++-
 arch/arm/boot/dts/omap3-gta04a5one.dts | 114 +++++++++++++++
 5 files changed, 464 insertions(+), 36 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-gta04a5one.dts

-- 
2.12.2


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

* [PATCH 01/32] ARM: dts: omap3-gta04: fix typo in backlight pins node name
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 02/32] ARM: dts: omap3-gta04: fix some whitespace and tab style errors H. Nikolaus Schaller
                   ` (30 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

mn -> nm for backlight_pins

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index ac830b917776..9ad9cc62128e 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -220,7 +220,7 @@
 		>;
 	};
 
-	backlight_pins: backlight_pins_pimnux {
+	backlight_pins: backlight_pins_pinmux {
 		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x20ba, MUX_MODE3)		/* gpt11/gpio57 */
 		>;
-- 
2.12.2


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

* [PATCH 02/32] ARM: dts: omap3-gta04: fix some whitespace and tab style errors
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 01/32] ARM: dts: omap3-gta04: fix typo in backlight pins node name H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 03/32] ARM: dts: omap3-gta04: give spi_lcd node a label so that we can overwrite in other DTS files H. Nikolaus Schaller
                   ` (29 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

tab+space -> tab only	 for /* GSM audio */
spaces -> tab for dss_dpi_pins

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 9ad9cc62128e..27fc9e54dcda 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -55,7 +55,7 @@
 		ti,mcbsp = <&mcbsp2>;
 	};
 
-	 /* GSM audio */
+	/* GSM audio */
 	sound_telephony {
 		compatible = "simple-audio-card";
 		simple-audio-card,name = "GTA04 voice";
@@ -227,7 +227,7 @@
 	};
 
 	dss_dpi_pins: pinmux_dss_dpi_pins {
-               pinctrl-single,pins = <
+		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
 			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   /* dss_hsync.dss_hsync */
 			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   /* dss_vsync.dss_vsync */
-- 
2.12.2


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

* [PATCH 03/32] ARM: dts: omap3-gta04: give spi_lcd node a label so that we can overwrite in other DTS files
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 01/32] ARM: dts: omap3-gta04: fix typo in backlight pins node name H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 02/32] ARM: dts: omap3-gta04: fix some whitespace and tab style errors H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc H. Nikolaus Schaller
                   ` (28 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

needed for device variants based on GTA04 board but with
different display panel (driver).

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 27fc9e54dcda..2db670e2a4bd 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -78,7 +78,7 @@
 		#sound-dai-cells = <0>;
 	};
 
-	spi_lcd {
+	spi_lcd: spi_lcd {
 		compatible = "spi-gpio";
 		#address-cells = <0x1>;
 		#size-cells = <0x0>;
-- 
2.12.2


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

* [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (2 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 03/32] ARM: dts: omap3-gta04: give spi_lcd node a label so that we can overwrite in other DTS files H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25 10:37   ` Sebastian Reichel
  2018-07-25  6:58 ` [PATCH 05/32] ARM: dts: omap3-gta04: add devconf1 setup for correct tvout pins H. Nikolaus Schaller
                   ` (27 subsequent siblings)
  31 siblings, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

* fix connector compatibility (composite)
* add comment for gpio1 23
* fix port reg number
* add proper #address-cells
* we use only one venc_out channel
* fix invert-polarity for the VENC since we have an inverting OPA362 Amplifier

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 2db670e2a4bd..fa887743860e 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -131,7 +131,7 @@
 	};
 
 	tv0: connector {
-		compatible = "svideo-connector";
+		compatible = "composite-video-connector";
 		label = "tv";
 
 		port {
@@ -143,7 +143,7 @@
 
 	tv_amp: opa362 {
 		compatible = "ti,opa362";
-		enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
+		enable-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;	/* GPIO_23 to enable video out amplifier */
 
 		ports {
 			#address-cells = <1>;
@@ -157,7 +157,7 @@
 			};
 
 			port@1 {
-				reg = <1>;
+				reg = <0>;
 				opa_out: endpoint {
 					remote-endpoint = <&tv_connector_in>;
 				};
@@ -551,10 +551,14 @@
 
 	vdda-supply = <&vdac>;
 
+	#address-cells = <1>;
+	#size-cells = <0>;
+
 	port {
+		reg = <0>;
 		venc_out: endpoint {
 			remote-endpoint = <&opa_in>;
-			ti,channels = <2>;
+			ti,channels = <1>;
 			ti,invert-polarity;
 		};
 	};
-- 
2.12.2


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

* [PATCH 05/32] ARM: dts: omap3-gta04: add devconf1 setup for correct tvout pins
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (3 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 06/32] ARM: dts: omap3-gta04: tvout: enable as display1 alias H. Nikolaus Schaller
                   ` (26 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

The VENC with external OPA362 amplifier needs a special
"pinmux" setup in DEVCONF1 (TVOUTBYPASS and TVOUTACEN).

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index fa887743860e..01f590f06536 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -169,6 +169,24 @@
 		compatible = "mmc-pwrseq-simple";
 		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
 	};
+
+	/* devconf1 setup for tvout pins */
+	pinmux_tv_out@480022d8 {
+		compatible = "pinctrl-single";
+		reg = <0x480022d8 4>;	/* CONTROL_DEVCONF1 */
+		#address-cells = <1>;
+		#size-cells = <0>;
+		pinctrl-single,bit-per-mux;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0x81>;	/* TV out pin control */
+		#pinctrl-cells = <2>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&tv_acbias_devconf1_pins>;
+		tv_acbias_devconf1_pins: pinmux_tv_acbias_devconf1_pins {
+			/*			offset	bits	mask */
+			pinctrl-single,bits = <0x00 0x40800 0x40800>;	/* set TVOUTBYPASS and TVOUTACEN */
+		};
+	};
 };
 
 &omap3_pmx_core {
-- 
2.12.2


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

* [PATCH 06/32] ARM: dts: omap3-gta04: tvout: enable as display1 alias
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (4 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 05/32] ARM: dts: omap3-gta04: add devconf1 setup for correct tvout pins H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 07/32] ARM: dts: omap3-gta04: fix touchscreen tsc2007 H. Nikolaus Schaller
                   ` (25 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

The omap dss susbystem takes the display aliases to find
out which displays exist. To enable tv-out we must define
an alias.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 01f590f06536..e5c1395182bf 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -28,6 +28,7 @@
 
 	aliases {
 		display0 = &lcd;
+		display1 = &tv0;
 	};
 
 	/* fixed 26MHz oscillator */
-- 
2.12.2


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

* [PATCH 07/32] ARM: dts: omap3-gta04: fix touchscreen tsc2007
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (5 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 06/32] ARM: dts: omap3-gta04: tvout: enable as display1 alias H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 08/32] ARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt H. Nikolaus Schaller
                   ` (24 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

we fix penirq polarity, add penirq pinmux and touchscreen
properties.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index e5c1395182bf..c5549d528437 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -301,6 +301,13 @@
 			OMAP3_CORE1_IOPAD(0x2134, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio112 */
 		>;
 	};
+
+	penirq_pins: pinmux_penirq_pins {
+		pinctrl-single,pins = <
+			/* here we could enable to wakeup the cpu from suspend by a pen touch */
+			OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
+		>;
+	};
 };
 
 &omap3_pmx_core2 {
@@ -441,10 +448,19 @@
 	tsc2007@48 {
 		compatible = "ti,tsc2007";
 		reg = <0x48>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&penirq_pins>;
 		interrupt-parent = <&gpio6>;
 		interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
-		gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;
+		gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;	/* GPIO_160 */
 		ti,x-plate-ohms = <600>;
+		touchscreen-size-x = <480>;
+		touchscreen-size-y = <640>;
+		touchscreen-max-pressure = <1000>;
+		touchscreen-fuzz-x = <3>;
+		touchscreen-fuzz-y = <8>;
+		touchscreen-fuzz-pressure = <10>;
+		touchscreen-inverted-y;
 	};
 
 	/* RFID EEPROM */
-- 
2.12.2


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

* [PATCH 08/32] ARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (6 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 07/32] ARM: dts: omap3-gta04: fix touchscreen tsc2007 H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot H. Nikolaus Schaller
                   ` (23 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

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 c5549d528437..65f77a0b5dd4 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -284,6 +284,12 @@
 		>;
 	};
 
+	bmp085_pins: pinmux_bmp085_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio113 */
+		>;
+	};
+
 	bma180_pins: pinmux_bma180_pins {
 		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
@@ -373,6 +379,8 @@
 	bmp085@77 {
 		compatible = "bosch,bmp085";
 		reg = <0x77>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&bmp085_pins>;
 		interrupt-parent = <&gpio4>;
 		interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */
 	};
-- 
2.12.2


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

* [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (7 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 08/32] ARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  8:07   ` Ladislav Michl
  2018-07-25  6:58 ` [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup H. Nikolaus Schaller
                   ` (22 subsequent siblings)
  31 siblings, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

Vendor defined U-Boot has changed the partition scheme a while ago:

* kernel partition 6MB
* file system partition uses the remainder up to end of the NAND
* increased size of the environment partition (to get an OneNAND compatible base address)
* shrink the U-Boot partition

Let's be compatible (e.g. Debian kernel built from upstream).

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 65f77a0b5dd4..03fe404cbf56 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -645,22 +645,22 @@
 
 		bootloaders@80000 {
 			label = "U-Boot";
-			reg = <0x80000 0x1e0000>;
+			reg = <0x80000 0x1c0000>;
 		};
 
-		bootloaders_env@260000 {
+		bootloaders_env@240000 {
 			label = "U-Boot Env";
-			reg = <0x260000 0x20000>;
+			reg = <0x240000 0x40000>;
 		};
 
 		kernel@280000 {
 			label = "Kernel";
-			reg = <0x280000 0x400000>;
+			reg = <0x280000 0x600000>;
 		};
 
-		filesystem@680000 {
+		filesystem@880000 {
 			label = "File System";
-			reg = <0x680000 0xf980000>;
+			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
 		};
 	};
 };
-- 
2.12.2


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

* [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (8 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  8:10   ` Ladislav Michl
  2018-07-25  6:58 ` [PATCH 11/32] ARM: dts: omap3-gta04: keep vpll2 always on H. Nikolaus Schaller
                   ` (21 subsequent siblings)
  31 siblings, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

to better match omap3-beagle.dts (which was the basis
of designing the GTA04).

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 03fe404cbf56..9568e0c4d4bf 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -616,27 +616,27 @@
 		interrupt-parent = <&gpmc>;
 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
 			     <1 IRQ_TYPE_NONE>;	/* termcount */
+		ti,nand-ecc-opt = "ham1";
+		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
 		nand-bus-width = <16>;
-		ti,nand-ecc-opt = "bch8";
+		#address-cells = <1>;
+		#size-cells = <1>;
 
-		gpmc,sync-clk-ps = <0>;
+		gpmc,device-width = <2>;
 		gpmc,cs-on-ns = <0>;
 		gpmc,cs-rd-off-ns = <44>;
 		gpmc,cs-wr-off-ns = <44>;
 		gpmc,adv-on-ns = <6>;
 		gpmc,adv-rd-off-ns = <34>;
 		gpmc,adv-wr-off-ns = <44>;
-		gpmc,we-off-ns = <40>;
 		gpmc,oe-off-ns = <54>;
+		gpmc,we-off-ns = <40>;
 		gpmc,access-ns = <64>;
 		gpmc,rd-cycle-ns = <82>;
 		gpmc,wr-cycle-ns = <82>;
 		gpmc,wr-access-ns = <40>;
 		gpmc,wr-data-mux-bus-ns = <0>;
-		gpmc,device-width = <2>;
-
-		#address-cells = <1>;
-		#size-cells = <1>;
+		gpmc,sync-clk-ps = <0>;
 
 		x-loader@0 {
 			label = "X-Loader";
-- 
2.12.2


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

* [PATCH 11/32] ARM: dts: omap3-gta04: keep vpll2 always on
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (9 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 12/32] ARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio H. Nikolaus Schaller
                   ` (20 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

This is needed to make the display and venc work properly.
Compare to omap3-beagle.dts.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 9568e0c4d4bf..ffea92543a47 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -574,6 +574,12 @@
 	regulator-max-microvolt = <3150000>;
 };
 
+/* Needed to power the DPI pins */
+
+&vpll2 {
+	regulator-always-on;
+};
+
 &dss {
 	pinctrl-names = "default";
 	pinctrl-0 = < &dss_dpi_pins >;
-- 
2.12.2


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

* [PATCH 12/32] ARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (10 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 11/32] ARM: dts: omap3-gta04: keep vpll2 always on H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 13/32] ARM: dts: omap3-gta04: add warning comment to vaux2 regulator H. Nikolaus Schaller
                   ` (19 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

Make clear how to use the wifi_reset since it is not obvious.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index ffea92543a47..813d93c4c0d2 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -436,7 +436,7 @@
 			reg = <0x4>;
 		};
 
-		wifi_reset: wifi_reset@6 {
+		wifi_reset: wifi_reset@6 { /* reference as <&tca_gpios 0 0> since it is currently the only GPIO */
 			reg = <0x6>;
 			compatible = "gpio";
 		};
-- 
2.12.2


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

* [PATCH 13/32] ARM: dts: omap3-gta04: add warning comment to vaux2 regulator
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (11 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 12/32] ARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 14/32] ARM: dts: omap3-gta04: replace ti,non-removable with generic non-removable H. Nikolaus Schaller
                   ` (18 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

vaux2 should remain always on since a higher potential at vio
could potentially damage the itg3200 sensor.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 813d93c4c0d2..f6166b37405d 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -553,7 +553,7 @@
 &vaux2 {
 	regulator-min-microvolt = <2800000>;
 	regulator-max-microvolt = <2800000>;
-	regulator-always-on;
+	regulator-always-on;	/* we should never switch off while vio is on! */
 };
 
 /* camera */
-- 
2.12.2


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

* [PATCH 14/32] ARM: dts: omap3-gta04: replace ti,non-removable with generic non-removable
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (12 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 13/32] ARM: dts: omap3-gta04: add warning comment to vaux2 regulator H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 15/32] ARM: dts: omap3-gta04: make use of input event include file and constants H. Nikolaus Schaller
                   ` (17 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

For a while the mmc core supports the generic non-removable property
so that we do no longer need the ti-specific one.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index f6166b37405d..036a25afd003 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -504,13 +504,13 @@
 	pinctrl-0 = <&mmc1_pins>;
 	vmmc-supply = <&vmmc1>;
 	bus-width = <4>;
-	ti,non-removable;
+	non-removable;
 };
 
 &mmc2 {
 	vmmc-supply = <&vaux4>;
 	bus-width = <4>;
-	ti,non-removable;
+	non-removable;
 	cap-power-off-card;
 	mmc-pwrseq = <&wifi_pwrseq>;
 };
-- 
2.12.2


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

* [PATCH 15/32] ARM: dts: omap3-gta04: make use of input event include file and constants
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (13 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 14/32] ARM: dts: omap3-gta04: replace ti,non-removable with generic non-removable H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 16/32] ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event H. Nikolaus Schaller
                   ` (16 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

we can replace magic numbers by symbolic constants now.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 036a25afd003..5bf95e04392b 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "omap36xx.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "OMAP3 GTA04";
@@ -43,7 +44,7 @@
 
 		aux-button {
 			label = "aux";
-			linux,code = <169>;
+			linux,code = <KEY_PHONE>;
 			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
 			wakeup-source;
 		};
-- 
2.12.2


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

* [PATCH 16/32] ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (14 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 15/32] ARM: dts: omap3-gta04: make use of input event include file and constants H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 17/32] ARM: dts: omap3-gta04: add camera interface parallel port H. Nikolaus Schaller
                   ` (15 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04 can detect presence/absence or plug-in of an external
GPS antenna through a gpio. The best match for an event code
is SW_LINEIN_INSERT.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 5bf95e04392b..4947e635c1af 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -50,6 +50,21 @@
 		};
 	};
 
+	antenna-detect {
+		compatible = "gpio-keys";
+
+		gps_antenna_button: gps-antenna-button {
+			label = "GPS_EXT_ANT";
+			linux,input-type = <EV_SW>;
+			linux,code = <SW_LINEIN_INSERT>;
+			gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>; /* GPIO144 */
+			interrupt-parent = <&gpio5>;
+			interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
+			debounce-interval = <10>;
+			wakeup-source;
+		};
+	};
+
 	sound {
 		compatible = "ti,omap-twl4030";
 		ti,model = "gta04";
-- 
2.12.2


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

* [PATCH 17/32] ARM: dts: omap3-gta04: add camera interface parallel port
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (15 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 16/32] ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 18/32] ARM: dts: omap3-gta04: add camera pinmux H. Nikolaus Schaller
                   ` (14 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

The GTA04 has an optional OV9655 camera (for which we do
not yet have a driver upstream), but the ISP hardware
connection description in the device tree is independent
of that.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 4947e635c1af..05e24485f765 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -699,3 +699,23 @@
 &mcbsp4 {
 	status = "okay";
 };
+
+/* image signal processor within OMAP3 SoC */
+&isp {
+	ports {
+		port@0 {
+			reg = <0>;
+			parallel_ep: endpoint {
+				ti,isp-clock-divisor = <1>;
+				ti,strobe-mode;
+				bus-width = <8>;/* Used data lines */
+				data-shift = <2>; /* Lines 9:2 are used */
+				hsync-active = <0>; /* Active low */
+				vsync-active = <1>; /* Active high */
+				data-active = <1>;/* Active high */
+				pclk-sample = <1>;/* Falling */
+			};
+		};
+		/* port@1 and port@2 are not used by GTA04 */
+	};
+};
-- 
2.12.2


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

* [PATCH 18/32] ARM: dts: omap3-gta04: add camera pinmux
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (16 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 17/32] ARM: dts: omap3-gta04: add camera interface parallel port H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 19/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux H. Nikolaus Schaller
                   ` (13 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

ISP needs camera pinmux (which is referenced by the camera node).

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 05e24485f765..a5d1fa1be9c5 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -330,6 +330,32 @@
 			OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio160 */
 		>;
 	};
+
+	camera_pins: pinmux_camera_pins {
+		pinctrl-single,pins = <
+			/* set up parallel camera interface */
+			OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_hs */
+			OMAP3_CORE1_IOPAD(0x210e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_vs */
+			OMAP3_CORE1_IOPAD(0x2110, PIN_OUTPUT | MUX_MODE0) /* cam_xclka */
+			OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_pclk */
+			OMAP3_CORE1_IOPAD(0x2114, PIN_OUTPUT | MUX_MODE4) /* cam_fld = gpio_98 */
+			OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d0 */
+			OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d1 */
+			OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d2 */
+			OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d3 */
+			OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d4 */
+			OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d5 */
+			OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d6 */
+			OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d7 */
+			OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d8 */
+			OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d9 */
+			OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d10 */
+			OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* cam_d10 */
+			OMAP3_CORE1_IOPAD(0x212e, PIN_OUTPUT | MUX_MODE0) /* cam_xclkb */
+			OMAP3_CORE1_IOPAD(0x2130, PIN_OUTPUT | MUX_MODE4) /* cam_wen = gpio_167 */
+			OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLDOWN | MUX_MODE4) /* cam_strobe */
+		>;
+	};
 };
 
 &omap3_pmx_core2 {
-- 
2.12.2


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

* [PATCH 19/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (17 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 18/32] ARM: dts: omap3-gta04: add camera pinmux H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins H. Nikolaus Schaller
                   ` (12 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04 audio system makes use of all four McBSP ports, so set
up proper pinmux.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index a5d1fa1be9c5..935a2a707737 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -356,6 +356,45 @@
 			OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLDOWN | MUX_MODE4) /* cam_strobe */
 		>;
 	};
+
+	mcbsp1_pins: pinmux_mcbsp1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x218c, PIN_INPUT | MUX_MODE4)	/* mcbsp1_clkr.mcbsp1_clkr - gpio_156 FM interrupt */
+			OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE0)	/* mcbsp1_clkr.mcbsp1_fsr */
+			OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE0)	/* mcbsp1_dx.mcbsp1_dx */
+			OMAP3_CORE1_IOPAD(0x2192, PIN_INPUT | MUX_MODE0)	/* mcbsp1_dx.mcbsp1_dr */
+			/* mcbsp_clks is used as PENIRQ */
+			/* OMAP3_CORE1_IOPAD(0x2194, PIN_INPUT | MUX_MODE0)	/* mcbsp_clks.mcbsp_clks */
+			OMAP3_CORE1_IOPAD(0x2196, PIN_INPUT | MUX_MODE0)	/* mcbsp_clks.mcbsp1_fsx */
+			OMAP3_CORE1_IOPAD(0x2198, PIN_INPUT | MUX_MODE0)	/* mcbsp1_clkx.mcbsp1_clkx */
+		>;
+	};
+
+	mcbsp2_pins: pinmux_mcbsp2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx.mcbsp2_fsx */
+			OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)	/* mcbsp2_fsx.mcbsp2_clkx */
+			OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)	/* mcbsp2_dr.mcbsp2_dr */
+			OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)	/* mcbsp2_dr.mcbsp2_dx */
+		>;
+	};
+
+	mcbsp3_pins: pinmux_mcbsp3_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x216c, PIN_OUTPUT | MUX_MODE0)	/* mcbsp3_dx.mcbsp3_dx */
+			OMAP3_CORE1_IOPAD(0x216e, PIN_INPUT | MUX_MODE0)	/* mcbsp3_dx.mcbsp3_dr */
+			OMAP3_CORE1_IOPAD(0x2170, PIN_INPUT | MUX_MODE0)	/* mcbsp3_clkx.mcbsp3_clkx */
+			OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE0)	/* mcbsp3_clkx.mcbsp3_fsx */
+		>;
+	};
+
+	mcbsp4_pins: pinmux_mcbsp4_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_clkx.mcbsp4_clkx */
+			OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_clkx.mcbsp4_dr */
+			OMAP3_CORE1_IOPAD(0x218a, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcbsp4_dx.mcbsp4_fsx */
+		>;
+	};
 };
 
 &omap3_pmx_core2 {
-- 
2.12.2


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

* [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (18 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 19/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  8:12   ` Ladislav Michl
  2018-07-25  6:58 ` [PATCH 21/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes H. Nikolaus Schaller
                   ` (11 subsequent siblings)
  31 siblings, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

McBSP1 needs sepcial "pinctrl" for the clocks.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index 935a2a707737..f6abdef556c1 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -187,6 +187,24 @@
 		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
 	};
 
+	/* devconf0 setup for mcbsp1 clock pins */
+	pinmux_mcbsp1@48002274 {
+		compatible = "pinctrl-single";
+		reg = <0x48002274 4>;   /* CONTROL_DEVCONF0 */
+		#address-cells = <1>;
+		#size-cells = <0>;
+		pinctrl-single,bit-per-mux;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0x7>;	/* MCBSP1 CLK pinmux */
+		#pinctrl-cells = <2>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&mcbsp1_devconf0_pins>;
+		mcbsp1_devconf0_pins: pinmux_mcbsp1_devconf0_pins {
+			/*                   offset bits mask */
+			pinctrl-single,bits = <0x00 0x08 0x1c>;	/* set MCBSP1_CLKR */
+		};
+	};
+
 	/* devconf1 setup for tvout pins */
 	pinmux_tv_out@480022d8 {
 		compatible = "pinctrl-single";
-- 
2.12.2


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

* [PATCH 21/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (19 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 22/32] ARM: dts: omap3-gta04a3: fix model name for A3 variant H. Nikolaus Schaller
                   ` (10 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04 audio system makes use of all four McBSP ports, so enable and
connect them with pinmux.

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

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index f6abdef556c1..d53bb9bbbb70 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -770,8 +770,31 @@
 	};
 };
 
-&mcbsp2 {
-	status = "okay";
+&mcbsp1 { /* FM Transceiver PCM */
+	status = "ok";
+	#sound-dai-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp1_pins>;
+};
+
+&mcbsp2 { /* TPS65950 I2S */
+	status = "ok";
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp2_pins>;
+};
+
+&mcbsp3 { /* Bluetooth PCM */
+	status = "ok";
+	#sound-dai-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp3_pins>;
+};
+
+&mcbsp4 { /* GSM voice PCM */
+	status = "ok";
+	#sound-dai-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp4_pins>;
 };
 
 &hdqw1w {
@@ -779,10 +802,6 @@
         pinctrl-0 = <&hdq_pins>;
 };
 
-&mcbsp4 {
-	status = "okay";
-};
-
 /* image signal processor within OMAP3 SoC */
 &isp {
 	ports {
-- 
2.12.2


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

* [PATCH 22/32] ARM: dts: omap3-gta04a3: fix model name for A3 variant
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (20 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 21/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 23/32] ARM: dts: omap3-gta04a4: fix model name for A4 variant H. Nikolaus Schaller
                   ` (9 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04 is the project name and Letux 2804 the product name.
Report both.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04a3.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-gta04a3.dts b/arch/arm/boot/dts/omap3-gta04a3.dts
index 3099a892cf50..cc9244956679 100644
--- a/arch/arm/boot/dts/omap3-gta04a3.dts
+++ b/arch/arm/boot/dts/omap3-gta04a3.dts
@@ -9,7 +9,7 @@
 #include "omap3-gta04.dtsi"
 
 / {
-	model = "Goldelico GTA04A3";
+	model = "Goldelico GTA04A3/Letux 2804";
 };
 
 &i2c2 {
-- 
2.12.2


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

* [PATCH 23/32] ARM: dts: omap3-gta04a4: fix model name for A4 variant
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (21 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 22/32] ARM: dts: omap3-gta04a3: fix model name for A3 variant H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 24/32] ARM: dts: omap3-gta04a5: fix copyright of A5 variant H. Nikolaus Schaller
                   ` (8 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04 is the project name and Letux 2804 the product name.
Report both.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04a4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-gta04a4.dts b/arch/arm/boot/dts/omap3-gta04a4.dts
index c918bb1f0529..77afc711fe4f 100644
--- a/arch/arm/boot/dts/omap3-gta04a4.dts
+++ b/arch/arm/boot/dts/omap3-gta04a4.dts
@@ -9,5 +9,5 @@
 #include "omap3-gta04.dtsi"
 
 / {
-	model = "Goldelico GTA04A4";
+	model = "Goldelico GTA04A4/Letux 2804";
 };
-- 
2.12.2


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

* [PATCH 24/32] ARM: dts: omap3-gta04a5: fix copyright of A5 variant
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (22 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 23/32] ARM: dts: omap3-gta04a4: fix model name for A4 variant H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 25/32] ARM: dts: omap3-gta04a5: fix model name H. Nikolaus Schaller
                   ` (7 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04a5.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index 600b6ca5a1bd..b691e70773f9 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 H. Nikolaus Schaller <hns@goldelico.com>
+ * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
-- 
2.12.2


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

* [PATCH 25/32] ARM: dts: omap3-gta04a5: fix model name
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (23 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 24/32] ARM: dts: omap3-gta04a5: fix copyright of A5 variant H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 26/32] ARM: dts: omap3-gta04a5: fix whitepsace and tab style H. Nikolaus Schaller
                   ` (6 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04 is the project name and Letux 2804 the product name.
Report both.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04a5.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index b691e70773f9..c01b4715fb83 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -9,7 +9,7 @@
 #include "omap3-gta04.dtsi"
 
 / {
-	model = "Goldelico GTA04A5";
+	model = "Goldelico GTA04A5/Letux 2804";
 
 	sound {
 		ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;    /* GTA04A5 only */
-- 
2.12.2


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

* [PATCH 26/32] ARM: dts: omap3-gta04a5: fix whitepsace and tab style
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (24 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 25/32] ARM: dts: omap3-gta04a5: fix model name H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:58 ` [PATCH 27/32] ARM: dts: omap3-gta04a5: add support for PPS H. Nikolaus Schaller
                   ` (5 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

in node sound / property ti,jack-det-gpio.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04a5.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index c01b4715fb83..d408eb05cdfa 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -12,6 +12,6 @@
 	model = "Goldelico GTA04A5/Letux 2804";
 
 	sound {
-		ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;    /* GTA04A5 only */
+		ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;	/* GTA04A5 only */
 	};
 };
-- 
2.12.2


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

* [PATCH 27/32] ARM: dts: omap3-gta04a5: add support for PPS
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (25 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 26/32] ARM: dts: omap3-gta04a5: fix whitepsace and tab style H. Nikolaus Schaller
@ 2018-07-25  6:58 ` H. Nikolaus Schaller
  2018-07-25  6:59 ` [PATCH 28/32] ARM: dts: omap3-gta04a5: disable IrDA receiver to save power H. Nikolaus Schaller
                   ` (4 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:58 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GPS receiver provides a 1PPS signal to a gpio.

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

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index d408eb05cdfa..e3f9e0969065 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -14,4 +14,22 @@
 	sound {
 		ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;	/* GTA04A5 only */
 	};
+
+	pps {
+		compatible = "pps-gpio";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pps_pins>;
+
+		gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; /* GPIN_114 */
+	};
+
+};
+
+&omap3_pmx_core {
+	pps_pins: pinmux_pps_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
+		>;
+	};
+
 };
-- 
2.12.2


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

* [PATCH 28/32] ARM: dts: omap3-gta04a5: disable IrDA receiver to save power
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (26 preceding siblings ...)
  2018-07-25  6:58 ` [PATCH 27/32] ARM: dts: omap3-gta04a5: add support for PPS H. Nikolaus Schaller
@ 2018-07-25  6:59 ` H. Nikolaus Schaller
  2018-07-25  6:59 ` [PATCH 29/32] ARM: dts: omap3-gta04a5: add support for ti,wl1837 module H. Nikolaus Schaller
                   ` (3 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:59 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

The GTA04A5 has an improved IrDA circuit that can enable/disable
the receiver individually. We do not have an IrDA driver/subsystem
and hence the receiver should be actively turned off to save power,
especially in suspend.

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

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index e3f9e0969065..e3352cc97c91 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -25,7 +25,21 @@
 
 };
 
+&gpio5 {
+	irda_en {
+		gpio-hog;
+		gpios = <(175-160) GPIO_ACTIVE_HIGH>;
+		output-high;	/* activate gpio_175 to disable IrDA receiver */
+	};
+};
+
 &omap3_pmx_core {
+	irda_pins: pinmux_irda {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* mcspi1_cs1 = gpio175 */
+		>;
+	};
+
 	pps_pins: pinmux_pps_pins {
 		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
-- 
2.12.2


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

* [PATCH 29/32] ARM: dts: omap3-gta04a5: add support for ti,wl1837 module
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (27 preceding siblings ...)
  2018-07-25  6:59 ` [PATCH 28/32] ARM: dts: omap3-gta04a5: disable IrDA receiver to save power H. Nikolaus Schaller
@ 2018-07-25  6:59 ` H. Nikolaus Schaller
  2018-07-25  6:59 ` [PATCH 30/32] ARM: dts: omap3-gta04a5: uses different sensors than gta04a4 H. Nikolaus Schaller
                   ` (2 subsequent siblings)
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:59 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04A5 uses a ti,wl1837 WiFi/Bluetooth module. Overwrite
the mmc2 node and child.

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

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index e3352cc97c91..453a87ebb860 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -15,6 +15,20 @@
 		ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;	/* GTA04A5 only */
 	};
 
+	wlan_en: wlan_en_regulator {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		pinctrl-0 = <&wlan_pins>;
+		regulator-name = "wlan-en-regulator";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+
+		gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;	/* GPIO_138 */
+
+		startup-delay-us = <70000>;
+		enable-active-high;
+	};
+
 	pps {
 		compatible = "pps-gpio";
 		pinctrl-names = "default";
@@ -34,6 +48,18 @@
 };
 
 &omap3_pmx_core {
+	wlan_pins: pinmux_wlan_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4)	/* mmc2_dat6 = mmc3_dat2 = gpio138 */
+		>;
+	};
+
+	wlan_irq_pin: pinmux_wlan_irq_pin {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE4)	/* mmc2_dat7 = mmc3_dat3 = gpio139 */
+		>;
+	};
+
 	irda_pins: pinmux_irda {
 		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* mcspi1_cs1 = gpio175 */
@@ -47,3 +73,35 @@
 	};
 
 };
+
+/*
+ * for WL183x module see
+ * http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt
+ */
+
+&wifi_pwrseq {
+	/delete-property/ reset-gpios;
+};
+
+&mmc2 {
+	vmmc-supply = <&wlan_en>;
+	bus-width = <4>;
+	cap-power-off-card;
+	non-removable;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&wlan_irq_pin>;
+
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	/delete-property/ mmc-pwrseq;
+
+	wlcore: wlcore@2 {
+		compatible = "ti,wl1837";
+		reg = <2>;
+		interrupt-parent = <&gpio5>;
+		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;	/* GPIO_139 */
+		ref-clock-frequency = <26000000>;
+	};
+};
-- 
2.12.2


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

* [PATCH 30/32] ARM: dts: omap3-gta04a5: uses different sensors than gta04a4
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (28 preceding siblings ...)
  2018-07-25  6:59 ` [PATCH 29/32] ARM: dts: omap3-gta04a5: add support for ti,wl1837 module H. Nikolaus Schaller
@ 2018-07-25  6:59 ` H. Nikolaus Schaller
  2018-07-25  6:59 ` [PATCH 31/32] ARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of ti,wl1837 module H. Nikolaus Schaller
  2018-07-25  6:59 ` [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND H. Nikolaus Schaller
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:59 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

Sensors for acceleration, rotation, magnetic heading and
barometer have been replaced in the A5 variant.

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

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index 453a87ebb860..973d07d0b4c8 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -105,3 +105,30 @@
 		ref-clock-frequency = <26000000>;
 	};
 };
+
+&i2c2 {
+	/delete-node/ bmp085@77;
+	/delete-node/ bma180@41;
+	/delete-node/ itg3200@68;
+	/delete-node/ hmc5843@1e;
+
+	bmg160@69 {
+		compatible = "bosch,bmg160";
+		reg = <0x69>;
+	};
+
+	bmc150@10 {
+		compatible = "bosch,bmc150_accel";
+		reg = <0x10>;
+	};
+
+	bmc150@12 {
+		compatible = "bosch,bmc150_magn";
+		reg = <0x12>;
+	};
+
+	bme280@76 {
+		compatible = "bosch,bme280";
+		reg = <0x76>;
+	};
+};
-- 
2.12.2


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

* [PATCH 31/32] ARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of ti,wl1837 module
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (29 preceding siblings ...)
  2018-07-25  6:59 ` [PATCH 30/32] ARM: dts: omap3-gta04a5: uses different sensors than gta04a4 H. Nikolaus Schaller
@ 2018-07-25  6:59 ` H. Nikolaus Schaller
  2018-07-25  6:59 ` [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND H. Nikolaus Schaller
  31 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:59 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

Properly pinmux the bluetooth enable so that it is not floating.

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

diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts
index 973d07d0b4c8..bd232b1b24cb 100644
--- a/arch/arm/boot/dts/omap3-gta04a5.dts
+++ b/arch/arm/boot/dts/omap3-gta04a5.dts
@@ -48,6 +48,12 @@
 };
 
 &omap3_pmx_core {
+	bt_pins: pinmux_bt_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE4)	/* mmc2_dat5 = mmc3_dat1 = gpio137 */
+		>;
+	};
+
 	wlan_pins: pinmux_wlan_pins {
 		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4)	/* mmc2_dat6 = mmc3_dat2 = gpio138 */
-- 
2.12.2


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

* [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND
  2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
                   ` (30 preceding siblings ...)
  2018-07-25  6:59 ` [PATCH 31/32] ARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of ti,wl1837 module H. Nikolaus Schaller
@ 2018-07-25  6:59 ` H. Nikolaus Schaller
  2018-07-25  8:20   ` Ladislav Michl
  31 siblings, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  6:59 UTC (permalink / raw)
  To: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland
  Cc: linux-omap, devicetree, linux-kernel, letux-kernel, H. Nikolaus Schaller

GTA04A5 has been produced with MCP chips either with
 512MB RAM +  512MB NAND
 512MB RAM + 1024MB NAND
1024MB RAM +  512MB OneNAND

RAM setup is done by U-Boot (MLO/SPL) but OneNAND needs
a different setup of the GPMC. So we need to derive a
DTB variant that modifies the gpmc and nand setup.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04a5one.dts | 114 +++++++++++++++++++++++++++++++++
 1 file changed, 114 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap3-gta04a5one.dts

diff --git a/arch/arm/boot/dts/omap3-gta04a5one.dts b/arch/arm/boot/dts/omap3-gta04a5one.dts
new file mode 100644
index 000000000000..9b7bbdc344b3
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-gta04a5one.dts
@@ -0,0 +1,114 @@
+/*
+ * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "omap3-gta04a5.dts"
+
+&omap3_pmx_core {
+	model = "Goldelico GTA04A5/Letux 2804 with OneNAND";
+
+	gpmc_pins: pinmux_gpmc_pins {
+		pinctrl-single,pins = <
+
+			/* address lines */
+			OMAP3_CORE1_IOPAD(0x207a, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a1.gpmc_a1 */
+			OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a2.gpmc_a2 */
+			OMAP3_CORE1_IOPAD(0x207e, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a3.gpmc_a3 */
+
+			/* data lines, gpmc_d0..d7 not muxable according to TRM */
+			OMAP3_CORE1_IOPAD(0x209e, PIN_INPUT | MUX_MODE0)        /* gpmc_d8.gpmc_d8 */
+			OMAP3_CORE1_IOPAD(0x20a0, PIN_INPUT | MUX_MODE0)        /* gpmc_d9.gpmc_d9 */
+			OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE0)        /* gpmc_d10.gpmc_d10 */
+			OMAP3_CORE1_IOPAD(0x20a4, PIN_INPUT | MUX_MODE0)        /* gpmc_d11.gpmc_d11 */
+			OMAP3_CORE1_IOPAD(0x20a6, PIN_INPUT | MUX_MODE0)        /* gpmc_d12.gpmc_d12 */
+			OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT | MUX_MODE0)        /* gpmc_d13.gpmc_d13 */
+			OMAP3_CORE1_IOPAD(0x20aa, PIN_INPUT | MUX_MODE0)        /* gpmc_d14.gpmc_d14 */
+			OMAP3_CORE1_IOPAD(0x20ac, PIN_INPUT | MUX_MODE0)        /* gpmc_d15.gpmc_d15 */
+
+			/*
+			 * gpmc_ncs0, gpmc_nadv_ale, gpmc_noe, gpmc_nwe, gpmc_wait0 not muxable
+			 * according to TRM. OneNAND seems to require PIN_INPUT on clock.
+			 */
+			OMAP3_CORE1_IOPAD(0x20b0, PIN_OUTPUT | MUX_MODE0)       /* gpmc_ncs1.gpmc_ncs1 */
+			OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0)        /* gpmc_clk.gpmc_clk */
+		>;
+	};
+};
+
+&gpmc {
+	/* switch inherited setup to OneNAND */
+
+	ranges = <0 0 0x04000000 0x1000000>;	/* CS0: 16MB for OneNAND */
+	pinctrl-names = "default";
+	pinctrl-0 = <&gpmc_pins>;
+
+	/delete-node/ nand@0,0;
+
+	onenand@0,0 {
+
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "ti,omap2-onenand";
+		reg = <0 0 0x20000>;	/* CS0, offset 0, IO size 128K */
+
+		gpmc,sync-read;
+		gpmc,sync-write;
+		gpmc,burst-length = <16>;
+		gpmc,burst-read;
+		gpmc,burst-wrap;
+		gpmc,burst-write;
+		gpmc,device-width = <2>;
+		gpmc,mux-add-data = <2>;
+		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>;
+
+		x-loader@0 {
+			label = "X-Loader";
+			reg = <0 0x80000>;
+		};
+
+		bootloaders@80000 {
+			label = "U-Boot";
+			reg = <0x80000 0x1c0000>;
+		};
+
+		bootloaders_env@240000 {
+			label = "U-Boot Env";
+			reg = <0x240000 0x40000>;
+		};
+
+		kernel@280000 {
+			label = "Kernel";
+			reg = <0x280000 0x600000>;
+		};
+
+		filesystem@880000 {
+			label = "File System";
+			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
+		};
+
+	};
+};
-- 
2.12.2


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

* Re: [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  6:58 ` [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot H. Nikolaus Schaller
@ 2018-07-25  8:07   ` Ladislav Michl
  2018-07-25  8:18     ` H. Nikolaus Schaller
  0 siblings, 1 reply; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25  8:07 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:
> Vendor defined U-Boot has changed the partition scheme a while ago:
> 
> * kernel partition 6MB
> * file system partition uses the remainder up to end of the NAND
> * increased size of the environment partition (to get an OneNAND compatible base address)
> * shrink the U-Boot partition
> 
> Let's be compatible (e.g. Debian kernel built from upstream).

That, in fact, is breaking compatibility. So once you are touching this
what about relying on partitioning provided by bootloader just to prevent
something like this happening again?

	ladis

> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---
>  arch/arm/boot/dts/omap3-gta04.dtsi | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> index 65f77a0b5dd4..03fe404cbf56 100644
> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> @@ -645,22 +645,22 @@
>  
>  		bootloaders@80000 {
>  			label = "U-Boot";
> -			reg = <0x80000 0x1e0000>;
> +			reg = <0x80000 0x1c0000>;
>  		};
>  
> -		bootloaders_env@260000 {
> +		bootloaders_env@240000 {
>  			label = "U-Boot Env";
> -			reg = <0x260000 0x20000>;
> +			reg = <0x240000 0x40000>;
>  		};
>  
>  		kernel@280000 {
>  			label = "Kernel";
> -			reg = <0x280000 0x400000>;
> +			reg = <0x280000 0x600000>;
>  		};
>  
> -		filesystem@680000 {
> +		filesystem@880000 {
>  			label = "File System";
> -			reg = <0x680000 0xf980000>;
> +			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
>  		};
>  	};
>  };
> -- 
> 2.12.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup
  2018-07-25  6:58 ` [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup H. Nikolaus Schaller
@ 2018-07-25  8:10   ` Ladislav Michl
  2018-07-25  8:16     ` H. Nikolaus Schaller
  0 siblings, 1 reply; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25  8:10 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 08:58:42AM +0200, H. Nikolaus Schaller wrote:
> to better match omap3-beagle.dts (which was the basis
> of designing the GTA04).
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---
>  arch/arm/boot/dts/omap3-gta04.dtsi | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> index 03fe404cbf56..9568e0c4d4bf 100644
> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> @@ -616,27 +616,27 @@
>  		interrupt-parent = <&gpmc>;
>  		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
>  			     <1 IRQ_TYPE_NONE>;	/* termcount */
> +		ti,nand-ecc-opt = "ham1";
> +		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
>  		nand-bus-width = <16>;
> -		ti,nand-ecc-opt = "bch8";

You are using weeker ECC scheme just to be compatible with another machine?
So now you cannot boot already deployed filesystem... Also is it enough for
NAND chip used?

	ladis

> +		#address-cells = <1>;
> +		#size-cells = <1>;
>  
> -		gpmc,sync-clk-ps = <0>;
> +		gpmc,device-width = <2>;
>  		gpmc,cs-on-ns = <0>;
>  		gpmc,cs-rd-off-ns = <44>;
>  		gpmc,cs-wr-off-ns = <44>;
>  		gpmc,adv-on-ns = <6>;
>  		gpmc,adv-rd-off-ns = <34>;
>  		gpmc,adv-wr-off-ns = <44>;
> -		gpmc,we-off-ns = <40>;
>  		gpmc,oe-off-ns = <54>;
> +		gpmc,we-off-ns = <40>;
>  		gpmc,access-ns = <64>;
>  		gpmc,rd-cycle-ns = <82>;
>  		gpmc,wr-cycle-ns = <82>;
>  		gpmc,wr-access-ns = <40>;
>  		gpmc,wr-data-mux-bus-ns = <0>;
> -		gpmc,device-width = <2>;
> -
> -		#address-cells = <1>;
> -		#size-cells = <1>;
> +		gpmc,sync-clk-ps = <0>;
>  
>  		x-loader@0 {
>  			label = "X-Loader";
> -- 
> 2.12.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins
  2018-07-25  6:58 ` [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins H. Nikolaus Schaller
@ 2018-07-25  8:12   ` Ladislav Michl
  2018-07-25  8:19     ` H. Nikolaus Schaller
  0 siblings, 1 reply; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25  8:12 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 08:58:52AM +0200, H. Nikolaus Schaller wrote:
> McBSP1 needs sepcial "pinctrl" for the clocks.

Nit: "special" perhaps?

> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---
>  arch/arm/boot/dts/omap3-gta04.dtsi | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> index 935a2a707737..f6abdef556c1 100644
> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> @@ -187,6 +187,24 @@
>  		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
>  	};
>  
> +	/* devconf0 setup for mcbsp1 clock pins */
> +	pinmux_mcbsp1@48002274 {
> +		compatible = "pinctrl-single";
> +		reg = <0x48002274 4>;   /* CONTROL_DEVCONF0 */
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		pinctrl-single,bit-per-mux;
> +		pinctrl-single,register-width = <32>;
> +		pinctrl-single,function-mask = <0x7>;	/* MCBSP1 CLK pinmux */
> +		#pinctrl-cells = <2>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&mcbsp1_devconf0_pins>;
> +		mcbsp1_devconf0_pins: pinmux_mcbsp1_devconf0_pins {
> +			/*                   offset bits mask */
> +			pinctrl-single,bits = <0x00 0x08 0x1c>;	/* set MCBSP1_CLKR */
> +		};
> +	};
> +
>  	/* devconf1 setup for tvout pins */
>  	pinmux_tv_out@480022d8 {
>  		compatible = "pinctrl-single";
> -- 
> 2.12.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup
  2018-07-25  8:10   ` Ladislav Michl
@ 2018-07-25  8:16     ` H. Nikolaus Schaller
  2018-07-25  8:28       ` Ladislav Michl
  0 siblings, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  8:16 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

Hi,

> Am 25.07.2018 um 10:10 schrieb Ladislav Michl <ladis@linux-mips.org>:
> 
> On Wed, Jul 25, 2018 at 08:58:42AM +0200, H. Nikolaus Schaller wrote:
>> to better match omap3-beagle.dts (which was the basis
>> of designing the GTA04).
>> 
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>> ---
>> arch/arm/boot/dts/omap3-gta04.dtsi | 14 +++++++-------
>> 1 file changed, 7 insertions(+), 7 deletions(-)
>> 
>> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
>> index 03fe404cbf56..9568e0c4d4bf 100644
>> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
>> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
>> @@ -616,27 +616,27 @@
>> 		interrupt-parent = <&gpmc>;
>> 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
>> 			     <1 IRQ_TYPE_NONE>;	/* termcount */
>> +		ti,nand-ecc-opt = "ham1";
>> +		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
>> 		nand-bus-width = <16>;
>> -		ti,nand-ecc-opt = "bch8";
> 
> You are using weeker ECC scheme just to be compatible with another machine?

No not another machine. The GTA04 uses the same SoC and NAND chip as the BeagleBoard,
so you can imagine GTA04 being a BeagleBoard + a lot of other things.

The key reason is to change the ecc scheme is to be compatible with the U-Boot used.

BootROM can only handle ham1 for the MLO. And there is no nand-ecc-opt
for each partition. So we either can't mix ECC schemes if we want to be able
to read/write MLO as the first partition from kernel.

> So now you cannot boot already deployed filesystem...

No. We always used ham1 and bch8 wasn't working at all here. Therefore nobody
did use upstream kernel for NAND yet...

> Also is it enough for
> NAND chip used?

Well, the chip is recommended to use bch8 but BootROM imposes above mentioned limits.

BR,
Nikolaus

> 
> 	ladis
> 
>> +		#address-cells = <1>;
>> +		#size-cells = <1>;
>> 
>> -		gpmc,sync-clk-ps = <0>;
>> +		gpmc,device-width = <2>;
>> 		gpmc,cs-on-ns = <0>;
>> 		gpmc,cs-rd-off-ns = <44>;
>> 		gpmc,cs-wr-off-ns = <44>;
>> 		gpmc,adv-on-ns = <6>;
>> 		gpmc,adv-rd-off-ns = <34>;
>> 		gpmc,adv-wr-off-ns = <44>;
>> -		gpmc,we-off-ns = <40>;
>> 		gpmc,oe-off-ns = <54>;
>> +		gpmc,we-off-ns = <40>;
>> 		gpmc,access-ns = <64>;
>> 		gpmc,rd-cycle-ns = <82>;
>> 		gpmc,wr-cycle-ns = <82>;
>> 		gpmc,wr-access-ns = <40>;
>> 		gpmc,wr-data-mux-bus-ns = <0>;
>> -		gpmc,device-width = <2>;
>> -
>> -		#address-cells = <1>;
>> -		#size-cells = <1>;
>> +		gpmc,sync-clk-ps = <0>;
>> 
>> 		x-loader@0 {
>> 			label = "X-Loader";
>> -- 
>> 2.12.2
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* Re: [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  8:07   ` Ladislav Michl
@ 2018-07-25  8:18     ` H. Nikolaus Schaller
  2018-07-25  8:25       ` [Letux-kernel] " H. Nikolaus Schaller
  2018-07-25  8:33       ` Ladislav Michl
  0 siblings, 2 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  8:18 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel


> Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
> 
> On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:
>> Vendor defined U-Boot has changed the partition scheme a while ago:
>> 
>> * kernel partition 6MB
>> * file system partition uses the remainder up to end of the NAND
>> * increased size of the environment partition (to get an OneNAND compatible base address)
>> * shrink the U-Boot partition
>> 
>> Let's be compatible (e.g. Debian kernel built from upstream).
> 
> That, in fact, is breaking compatibility.

With what? Nobody is using the old u-boot partition scheme any more
(it is >5 years old).

> So once you are touching this
> what about relying on partitioning provided by bootloader just to prevent
> something like this happening again?

Well, we define what compatible means here (since we are the vendor).
And people complain with us. We simply recommend them to upgrade the
boot-loader.

BR,
Nikolaus

> 
> 	ladis
> 
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>> ---
>> arch/arm/boot/dts/omap3-gta04.dtsi | 12 ++++++------
>> 1 file changed, 6 insertions(+), 6 deletions(-)
>> 
>> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
>> index 65f77a0b5dd4..03fe404cbf56 100644
>> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
>> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
>> @@ -645,22 +645,22 @@
>> 
>> 		bootloaders@80000 {
>> 			label = "U-Boot";
>> -			reg = <0x80000 0x1e0000>;
>> +			reg = <0x80000 0x1c0000>;
>> 		};
>> 
>> -		bootloaders_env@260000 {
>> +		bootloaders_env@240000 {
>> 			label = "U-Boot Env";
>> -			reg = <0x260000 0x20000>;
>> +			reg = <0x240000 0x40000>;
>> 		};
>> 
>> 		kernel@280000 {
>> 			label = "Kernel";
>> -			reg = <0x280000 0x400000>;
>> +			reg = <0x280000 0x600000>;
>> 		};
>> 
>> -		filesystem@680000 {
>> +		filesystem@880000 {
>> 			label = "File System";
>> -			reg = <0x680000 0xf980000>;
>> +			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
>> 		};
>> 	};
>> };
>> -- 
>> 2.12.2
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* Re: [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins
  2018-07-25  8:12   ` Ladislav Michl
@ 2018-07-25  8:19     ` H. Nikolaus Schaller
  0 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  8:19 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel


> Am 25.07.2018 um 10:12 schrieb Ladislav Michl <ladis@linux-mips.org>:
> 
> On Wed, Jul 25, 2018 at 08:58:52AM +0200, H. Nikolaus Schaller wrote:
>> McBSP1 needs sepcial "pinctrl" for the clocks.
> 
> Nit: "special" perhaps?

Thanks! Seems to be missing in the spell checker of checkpatch (or I didn't notice the message).

BR,
Nikolaus

> 
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>> ---
>> arch/arm/boot/dts/omap3-gta04.dtsi | 18 ++++++++++++++++++
>> 1 file changed, 18 insertions(+)
>> 
>> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
>> index 935a2a707737..f6abdef556c1 100644
>> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
>> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
>> @@ -187,6 +187,24 @@
>> 		reset-gpios = <&tca6507 0 GPIO_ACTIVE_LOW>;	/* W2CBW003 reset through tca6507 */
>> 	};
>> 
>> +	/* devconf0 setup for mcbsp1 clock pins */
>> +	pinmux_mcbsp1@48002274 {
>> +		compatible = "pinctrl-single";
>> +		reg = <0x48002274 4>;   /* CONTROL_DEVCONF0 */
>> +		#address-cells = <1>;
>> +		#size-cells = <0>;
>> +		pinctrl-single,bit-per-mux;
>> +		pinctrl-single,register-width = <32>;
>> +		pinctrl-single,function-mask = <0x7>;	/* MCBSP1 CLK pinmux */
>> +		#pinctrl-cells = <2>;
>> +		pinctrl-names = "default";
>> +		pinctrl-0 = <&mcbsp1_devconf0_pins>;
>> +		mcbsp1_devconf0_pins: pinmux_mcbsp1_devconf0_pins {
>> +			/*                   offset bits mask */
>> +			pinctrl-single,bits = <0x00 0x08 0x1c>;	/* set MCBSP1_CLKR */
>> +		};
>> +	};
>> +
>> 	/* devconf1 setup for tvout pins */
>> 	pinmux_tv_out@480022d8 {
>> 		compatible = "pinctrl-single";
>> -- 
>> 2.12.2
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* Re: [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND
  2018-07-25  6:59 ` [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND H. Nikolaus Schaller
@ 2018-07-25  8:20   ` Ladislav Michl
  2018-07-25  8:29     ` H. Nikolaus Schaller
  0 siblings, 1 reply; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25  8:20 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 08:59:04AM +0200, H. Nikolaus Schaller wrote:
> GTA04A5 has been produced with MCP chips either with
>  512MB RAM +  512MB NAND
>  512MB RAM + 1024MB NAND
> 1024MB RAM +  512MB OneNAND
> 
> RAM setup is done by U-Boot (MLO/SPL) but OneNAND needs
> a different setup of the GPMC. So we need to derive a
> DTB variant that modifies the gpmc and nand setup.

Just a suggestion... This way your user needs to know which variant is dealing
with. It is similar situation as with IGEPv2 with cames with various setup
either with NAND or OneNAND. Both NAND and OneNAND nodes are present in DTB
and enabled by U-Boot approriately. So single U-Boot binary and DTB is enough
to deal with all variants.

	ladis

> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---
>  arch/arm/boot/dts/omap3-gta04a5one.dts | 114 +++++++++++++++++++++++++++++++++
>  1 file changed, 114 insertions(+)
>  create mode 100644 arch/arm/boot/dts/omap3-gta04a5one.dts
> 
> diff --git a/arch/arm/boot/dts/omap3-gta04a5one.dts b/arch/arm/boot/dts/omap3-gta04a5one.dts
> new file mode 100644
> index 000000000000..9b7bbdc344b3
> --- /dev/null
> +++ b/arch/arm/boot/dts/omap3-gta04a5one.dts
> @@ -0,0 +1,114 @@
> +/*
> + * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include "omap3-gta04a5.dts"
> +
> +&omap3_pmx_core {
> +	model = "Goldelico GTA04A5/Letux 2804 with OneNAND";
> +
> +	gpmc_pins: pinmux_gpmc_pins {
> +		pinctrl-single,pins = <
> +
> +			/* address lines */
> +			OMAP3_CORE1_IOPAD(0x207a, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a1.gpmc_a1 */
> +			OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a2.gpmc_a2 */
> +			OMAP3_CORE1_IOPAD(0x207e, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a3.gpmc_a3 */
> +
> +			/* data lines, gpmc_d0..d7 not muxable according to TRM */
> +			OMAP3_CORE1_IOPAD(0x209e, PIN_INPUT | MUX_MODE0)        /* gpmc_d8.gpmc_d8 */
> +			OMAP3_CORE1_IOPAD(0x20a0, PIN_INPUT | MUX_MODE0)        /* gpmc_d9.gpmc_d9 */
> +			OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE0)        /* gpmc_d10.gpmc_d10 */
> +			OMAP3_CORE1_IOPAD(0x20a4, PIN_INPUT | MUX_MODE0)        /* gpmc_d11.gpmc_d11 */
> +			OMAP3_CORE1_IOPAD(0x20a6, PIN_INPUT | MUX_MODE0)        /* gpmc_d12.gpmc_d12 */
> +			OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT | MUX_MODE0)        /* gpmc_d13.gpmc_d13 */
> +			OMAP3_CORE1_IOPAD(0x20aa, PIN_INPUT | MUX_MODE0)        /* gpmc_d14.gpmc_d14 */
> +			OMAP3_CORE1_IOPAD(0x20ac, PIN_INPUT | MUX_MODE0)        /* gpmc_d15.gpmc_d15 */
> +
> +			/*
> +			 * gpmc_ncs0, gpmc_nadv_ale, gpmc_noe, gpmc_nwe, gpmc_wait0 not muxable
> +			 * according to TRM. OneNAND seems to require PIN_INPUT on clock.
> +			 */
> +			OMAP3_CORE1_IOPAD(0x20b0, PIN_OUTPUT | MUX_MODE0)       /* gpmc_ncs1.gpmc_ncs1 */
> +			OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0)        /* gpmc_clk.gpmc_clk */
> +		>;
> +	};
> +};
> +
> +&gpmc {
> +	/* switch inherited setup to OneNAND */
> +
> +	ranges = <0 0 0x04000000 0x1000000>;	/* CS0: 16MB for OneNAND */
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&gpmc_pins>;
> +
> +	/delete-node/ nand@0,0;
> +
> +	onenand@0,0 {
> +
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		compatible = "ti,omap2-onenand";
> +		reg = <0 0 0x20000>;	/* CS0, offset 0, IO size 128K */
> +
> +		gpmc,sync-read;
> +		gpmc,sync-write;
> +		gpmc,burst-length = <16>;
> +		gpmc,burst-read;
> +		gpmc,burst-wrap;
> +		gpmc,burst-write;
> +		gpmc,device-width = <2>;
> +		gpmc,mux-add-data = <2>;
> +		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>;
> +
> +		x-loader@0 {
> +			label = "X-Loader";
> +			reg = <0 0x80000>;
> +		};
> +
> +		bootloaders@80000 {
> +			label = "U-Boot";
> +			reg = <0x80000 0x1c0000>;
> +		};
> +
> +		bootloaders_env@240000 {
> +			label = "U-Boot Env";
> +			reg = <0x240000 0x40000>;
> +		};
> +
> +		kernel@280000 {
> +			label = "Kernel";
> +			reg = <0x280000 0x600000>;
> +		};
> +
> +		filesystem@880000 {
> +			label = "File System";
> +			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
> +		};
> +
> +	};
> +};
> -- 
> 2.12.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Letux-kernel] [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  8:18     ` H. Nikolaus Schaller
@ 2018-07-25  8:25       ` H. Nikolaus Schaller
  2018-07-25  8:33       ` Ladislav Michl
  1 sibling, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  8:25 UTC (permalink / raw)
  To: Discussions about the Letux Kernel
  Cc: Ladislav Michl, Mark Rutland, devicetree, Tony Lindgren,
	linux-kernel, Rob Herring, Benoît Cousson, linux-omap


> Am 25.07.2018 um 10:18 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
> 
> 
>> Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
>> 
>> On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:
>>> Vendor defined U-Boot has changed the partition scheme a while ago:
>>> 
>>> * kernel partition 6MB
>>> * file system partition uses the remainder up to end of the NAND
>>> * increased size of the environment partition (to get an OneNAND compatible base address)
>>> * shrink the U-Boot partition
>>> 
>>> Let's be compatible (e.g. Debian kernel built from upstream).
>> 
>> That, in fact, is breaking compatibility.
> 
> With what? Nobody is using the old u-boot partition scheme any more
> (it is >5 years old).
> 
>> So once you are touching this
>> what about relying on partitioning provided by bootloader just to prevent
>> something like this happening again?
> 
> Well, we define what compatible means here (since we are the vendor).
> And people complain with us. We simply recommend them to upgrade the
> boot-loader.

I should also mention that a modern and fully configured kernel binary is
already too big for a 4MB kernel partition.
> 
> 
>> 
>> 	ladis
>> 
>>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>>> ---
>>> arch/arm/boot/dts/omap3-gta04.dtsi | 12 ++++++------
>>> 1 file changed, 6 insertions(+), 6 deletions(-)
>>> 
>>> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
>>> index 65f77a0b5dd4..03fe404cbf56 100644
>>> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
>>> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
>>> @@ -645,22 +645,22 @@
>>> 
>>> 		bootloaders@80000 {
>>> 			label = "U-Boot";
>>> -			reg = <0x80000 0x1e0000>;
>>> +			reg = <0x80000 0x1c0000>;
>>> 		};
>>> 
>>> -		bootloaders_env@260000 {
>>> +		bootloaders_env@240000 {
>>> 			label = "U-Boot Env";
>>> -			reg = <0x260000 0x20000>;
>>> +			reg = <0x240000 0x40000>;
>>> 		};
>>> 
>>> 		kernel@280000 {
>>> 			label = "Kernel";
>>> -			reg = <0x280000 0x400000>;
>>> +			reg = <0x280000 0x600000>;
>>> 		};
>>> 
>>> -		filesystem@680000 {
>>> +		filesystem@880000 {
>>> 			label = "File System";
>>> -			reg = <0x680000 0xf980000>;
>>> +			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
>>> 		};
>>> 	};
>>> };
>>> -- 
>>> 2.12.2
>>> 
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> _______________________________________________
> http://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel@openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel


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

* Re: [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup
  2018-07-25  8:16     ` H. Nikolaus Schaller
@ 2018-07-25  8:28       ` Ladislav Michl
  2018-07-25  9:08         ` H. Nikolaus Schaller
  0 siblings, 1 reply; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25  8:28 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 10:16:28AM +0200, H. Nikolaus Schaller wrote:
> Hi,
> 
> > Am 25.07.2018 um 10:10 schrieb Ladislav Michl <ladis@linux-mips.org>:
> > 
> > On Wed, Jul 25, 2018 at 08:58:42AM +0200, H. Nikolaus Schaller wrote:
> >> to better match omap3-beagle.dts (which was the basis
> >> of designing the GTA04).
> >> 
> >> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> >> ---
> >> arch/arm/boot/dts/omap3-gta04.dtsi | 14 +++++++-------
> >> 1 file changed, 7 insertions(+), 7 deletions(-)
> >> 
> >> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> >> index 03fe404cbf56..9568e0c4d4bf 100644
> >> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> >> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> >> @@ -616,27 +616,27 @@
> >> 		interrupt-parent = <&gpmc>;
> >> 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
> >> 			     <1 IRQ_TYPE_NONE>;	/* termcount */
> >> +		ti,nand-ecc-opt = "ham1";
> >> +		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
> >> 		nand-bus-width = <16>;
> >> -		ti,nand-ecc-opt = "bch8";
> > 
> > You are using weeker ECC scheme just to be compatible with another machine?
> 
> No not another machine. The GTA04 uses the same SoC and NAND chip as the BeagleBoard,
> so you can imagine GTA04 being a BeagleBoard + a lot of other things.
> 
> The key reason is to change the ecc scheme is to be compatible with the U-Boot used.
> 
> BootROM can only handle ham1 for the MLO. And there is no nand-ecc-opt
> for each partition. So we either can't mix ECC schemes if we want to be able
> to read/write MLO as the first partition from kernel.
> 
> > So now you cannot boot already deployed filesystem...
> 
> No. We always used ham1 and bch8 wasn't working at all here. Therefore nobody
> did use upstream kernel for NAND yet...
> 
> > Also is it enough for
> > NAND chip used?
> 
> Well, the chip is recommended to use bch8 but BootROM imposes above mentioned limits.

Then common way to handle such a situation is to use 1bit hamming for MLO and BCH8 for
the rest. You will end with corrupted filesystem with ham1 which I'd consider very
unfortunate.

(I know there were endless discussions how to handle this situation. It is already
solved in U-Boot and for updating MLO from Linux I'm using writeloader tool)

	ladis

> BR,
> Nikolaus
> 
> > 
> > 	ladis
> > 
> >> +		#address-cells = <1>;
> >> +		#size-cells = <1>;
> >> 
> >> -		gpmc,sync-clk-ps = <0>;
> >> +		gpmc,device-width = <2>;
> >> 		gpmc,cs-on-ns = <0>;
> >> 		gpmc,cs-rd-off-ns = <44>;
> >> 		gpmc,cs-wr-off-ns = <44>;
> >> 		gpmc,adv-on-ns = <6>;
> >> 		gpmc,adv-rd-off-ns = <34>;
> >> 		gpmc,adv-wr-off-ns = <44>;
> >> -		gpmc,we-off-ns = <40>;
> >> 		gpmc,oe-off-ns = <54>;
> >> +		gpmc,we-off-ns = <40>;
> >> 		gpmc,access-ns = <64>;
> >> 		gpmc,rd-cycle-ns = <82>;
> >> 		gpmc,wr-cycle-ns = <82>;
> >> 		gpmc,wr-access-ns = <40>;
> >> 		gpmc,wr-data-mux-bus-ns = <0>;
> >> -		gpmc,device-width = <2>;
> >> -
> >> -		#address-cells = <1>;
> >> -		#size-cells = <1>;
> >> +		gpmc,sync-clk-ps = <0>;
> >> 
> >> 		x-loader@0 {
> >> 			label = "X-Loader";
> >> -- 
> >> 2.12.2
> >> 
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND
  2018-07-25  8:20   ` Ladislav Michl
@ 2018-07-25  8:29     ` H. Nikolaus Schaller
  0 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  8:29 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel


> Am 25.07.2018 um 10:20 schrieb Ladislav Michl <ladis@linux-mips.org>:
> 
> On Wed, Jul 25, 2018 at 08:59:04AM +0200, H. Nikolaus Schaller wrote:
>> GTA04A5 has been produced with MCP chips either with
>> 512MB RAM +  512MB NAND
>> 512MB RAM + 1024MB NAND
>> 1024MB RAM +  512MB OneNAND
>> 
>> RAM setup is done by U-Boot (MLO/SPL) but OneNAND needs
>> a different setup of the GPMC. So we need to derive a
>> DTB variant that modifies the gpmc and nand setup.
> 
> Just a suggestion... This way your user needs to know which variant is dealing
> with. It is similar situation as with IGEPv2 with cames with various setup
> either with NAND or OneNAND. Both NAND and OneNAND nodes are present in DTB
> and enabled by U-Boot approriately. So single U-Boot binary and DTB is enough
> to deal with all variants.

Well, the standard U-Boot used on this type of devices just loads this or that
.dtb. It does not modify it or enable/disable nodes. So we'd prefer to have it
this way.

> 
> 	ladis
> 
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>> ---
>> arch/arm/boot/dts/omap3-gta04a5one.dts | 114 +++++++++++++++++++++++++++++++++
>> 1 file changed, 114 insertions(+)
>> create mode 100644 arch/arm/boot/dts/omap3-gta04a5one.dts
>> 
>> diff --git a/arch/arm/boot/dts/omap3-gta04a5one.dts b/arch/arm/boot/dts/omap3-gta04a5one.dts
>> new file mode 100644
>> index 000000000000..9b7bbdc344b3
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/omap3-gta04a5one.dts
>> @@ -0,0 +1,114 @@
>> +/*
>> + * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> + */
>> +
>> +#include "omap3-gta04a5.dts"
>> +
>> +&omap3_pmx_core {
>> +	model = "Goldelico GTA04A5/Letux 2804 with OneNAND";
>> +
>> +	gpmc_pins: pinmux_gpmc_pins {
>> +		pinctrl-single,pins = <
>> +
>> +			/* address lines */
>> +			OMAP3_CORE1_IOPAD(0x207a, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a1.gpmc_a1 */
>> +			OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a2.gpmc_a2 */
>> +			OMAP3_CORE1_IOPAD(0x207e, PIN_OUTPUT | MUX_MODE0)       /* gpmc_a3.gpmc_a3 */
>> +
>> +			/* data lines, gpmc_d0..d7 not muxable according to TRM */
>> +			OMAP3_CORE1_IOPAD(0x209e, PIN_INPUT | MUX_MODE0)        /* gpmc_d8.gpmc_d8 */
>> +			OMAP3_CORE1_IOPAD(0x20a0, PIN_INPUT | MUX_MODE0)        /* gpmc_d9.gpmc_d9 */
>> +			OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE0)        /* gpmc_d10.gpmc_d10 */
>> +			OMAP3_CORE1_IOPAD(0x20a4, PIN_INPUT | MUX_MODE0)        /* gpmc_d11.gpmc_d11 */
>> +			OMAP3_CORE1_IOPAD(0x20a6, PIN_INPUT | MUX_MODE0)        /* gpmc_d12.gpmc_d12 */
>> +			OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT | MUX_MODE0)        /* gpmc_d13.gpmc_d13 */
>> +			OMAP3_CORE1_IOPAD(0x20aa, PIN_INPUT | MUX_MODE0)        /* gpmc_d14.gpmc_d14 */
>> +			OMAP3_CORE1_IOPAD(0x20ac, PIN_INPUT | MUX_MODE0)        /* gpmc_d15.gpmc_d15 */
>> +
>> +			/*
>> +			 * gpmc_ncs0, gpmc_nadv_ale, gpmc_noe, gpmc_nwe, gpmc_wait0 not muxable
>> +			 * according to TRM. OneNAND seems to require PIN_INPUT on clock.
>> +			 */
>> +			OMAP3_CORE1_IOPAD(0x20b0, PIN_OUTPUT | MUX_MODE0)       /* gpmc_ncs1.gpmc_ncs1 */
>> +			OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0)        /* gpmc_clk.gpmc_clk */
>> +		>;
>> +	};
>> +};
>> +
>> +&gpmc {
>> +	/* switch inherited setup to OneNAND */
>> +
>> +	ranges = <0 0 0x04000000 0x1000000>;	/* CS0: 16MB for OneNAND */
>> +	pinctrl-names = "default";
>> +	pinctrl-0 = <&gpmc_pins>;
>> +
>> +	/delete-node/ nand@0,0;
>> +
>> +	onenand@0,0 {
>> +
>> +		#address-cells = <1>;
>> +		#size-cells = <1>;
>> +		compatible = "ti,omap2-onenand";
>> +		reg = <0 0 0x20000>;	/* CS0, offset 0, IO size 128K */
>> +
>> +		gpmc,sync-read;
>> +		gpmc,sync-write;
>> +		gpmc,burst-length = <16>;
>> +		gpmc,burst-read;
>> +		gpmc,burst-wrap;
>> +		gpmc,burst-write;
>> +		gpmc,device-width = <2>;
>> +		gpmc,mux-add-data = <2>;
>> +		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>;
>> +
>> +		x-loader@0 {
>> +			label = "X-Loader";
>> +			reg = <0 0x80000>;
>> +		};
>> +
>> +		bootloaders@80000 {
>> +			label = "U-Boot";
>> +			reg = <0x80000 0x1c0000>;
>> +		};
>> +
>> +		bootloaders_env@240000 {
>> +			label = "U-Boot Env";
>> +			reg = <0x240000 0x40000>;
>> +		};
>> +
>> +		kernel@280000 {
>> +			label = "Kernel";
>> +			reg = <0x280000 0x600000>;
>> +		};
>> +
>> +		filesystem@880000 {
>> +			label = "File System";
>> +			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
>> +		};
>> +
>> +	};
>> +};
>> -- 
>> 2.12.2
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* Re: [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  8:18     ` H. Nikolaus Schaller
  2018-07-25  8:25       ` [Letux-kernel] " H. Nikolaus Schaller
@ 2018-07-25  8:33       ` Ladislav Michl
  2018-07-25 12:27         ` H. Nikolaus Schaller
  2018-07-25 16:27         ` [Letux-kernel] " Andreas Kemnade
  1 sibling, 2 replies; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25  8:33 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote:
> 
> > Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
> > 
> > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:
> >> Vendor defined U-Boot has changed the partition scheme a while ago:
> >> 
> >> * kernel partition 6MB
> >> * file system partition uses the remainder up to end of the NAND
> >> * increased size of the environment partition (to get an OneNAND compatible base address)
> >> * shrink the U-Boot partition
> >> 
> >> Let's be compatible (e.g. Debian kernel built from upstream).
> > 
> > That, in fact, is breaking compatibility.
> 
> With what? Nobody is using the old u-boot partition scheme any more
> (it is >5 years old).
> 
> > So once you are touching this
> > what about relying on partitioning provided by bootloader just to prevent
> > something like this happening again?
> 
> Well, we define what compatible means here (since we are the vendor).
> And people complain with us. We simply recommend them to upgrade the
> boot-loader.

Fair enough. Suggestion was to remove partitioning scheme from DTB alltogether
and let U-Boot provide one. But you being vendor you decide, of course :)
(I'd use only two partitions: MLO and UBI, latter one with BCH8, and store
everything in UBI volumes. That's a bit more flexible approach)

	ladis

> BR,
> Nikolaus
> 
> > 
> > 	ladis
> > 
> >> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> >> ---
> >> arch/arm/boot/dts/omap3-gta04.dtsi | 12 ++++++------
> >> 1 file changed, 6 insertions(+), 6 deletions(-)
> >> 
> >> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> >> index 65f77a0b5dd4..03fe404cbf56 100644
> >> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> >> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> >> @@ -645,22 +645,22 @@
> >> 
> >> 		bootloaders@80000 {
> >> 			label = "U-Boot";
> >> -			reg = <0x80000 0x1e0000>;
> >> +			reg = <0x80000 0x1c0000>;
> >> 		};
> >> 
> >> -		bootloaders_env@260000 {
> >> +		bootloaders_env@240000 {
> >> 			label = "U-Boot Env";
> >> -			reg = <0x260000 0x20000>;
> >> +			reg = <0x240000 0x40000>;
> >> 		};
> >> 
> >> 		kernel@280000 {
> >> 			label = "Kernel";
> >> -			reg = <0x280000 0x400000>;
> >> +			reg = <0x280000 0x600000>;
> >> 		};
> >> 
> >> -		filesystem@680000 {
> >> +		filesystem@880000 {
> >> 			label = "File System";
> >> -			reg = <0x680000 0xf980000>;
> >> +			reg = <0x880000 0>;	/* 0 = MTDPART_SIZ_FULL */
> >> 		};
> >> 	};
> >> };
> >> -- 
> >> 2.12.2
> >> 
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup
  2018-07-25  8:28       ` Ladislav Michl
@ 2018-07-25  9:08         ` H. Nikolaus Schaller
  0 siblings, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25  9:08 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel


> Am 25.07.2018 um 10:28 schrieb Ladislav Michl <ladis@linux-mips.org>:
> 
> On Wed, Jul 25, 2018 at 10:16:28AM +0200, H. Nikolaus Schaller wrote:
>> Hi,
>> 
>>> Am 25.07.2018 um 10:10 schrieb Ladislav Michl <ladis@linux-mips.org>:
>>> 
>>> On Wed, Jul 25, 2018 at 08:58:42AM +0200, H. Nikolaus Schaller wrote:
>>>> to better match omap3-beagle.dts (which was the basis
>>>> of designing the GTA04).
>>>> 
>>>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>>>> ---
>>>> arch/arm/boot/dts/omap3-gta04.dtsi | 14 +++++++-------
>>>> 1 file changed, 7 insertions(+), 7 deletions(-)
>>>> 
>>>> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
>>>> index 03fe404cbf56..9568e0c4d4bf 100644
>>>> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
>>>> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
>>>> @@ -616,27 +616,27 @@
>>>> 		interrupt-parent = <&gpmc>;
>>>> 		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
>>>> 			     <1 IRQ_TYPE_NONE>;	/* termcount */
>>>> +		ti,nand-ecc-opt = "ham1";
>>>> +		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
>>>> 		nand-bus-width = <16>;
>>>> -		ti,nand-ecc-opt = "bch8";
>>> 
>>> You are using weeker ECC scheme just to be compatible with another machine?
>> 
>> No not another machine. The GTA04 uses the same SoC and NAND chip as the BeagleBoard,
>> so you can imagine GTA04 being a BeagleBoard + a lot of other things.
>> 
>> The key reason is to change the ecc scheme is to be compatible with the U-Boot used.
>> 
>> BootROM can only handle ham1 for the MLO. And there is no nand-ecc-opt
>> for each partition. So we either can't mix ECC schemes if we want to be able
>> to read/write MLO as the first partition from kernel.
>> 
>>> So now you cannot boot already deployed filesystem...
>> 
>> No. We always used ham1 and bch8 wasn't working at all here. Therefore nobody
>> did use upstream kernel for NAND yet...
>> 
>>> Also is it enough for
>>> NAND chip used?
>> 
>> Well, the chip is recommended to use bch8 but BootROM imposes above mentioned limits.
> 
> Then common way to handle such a situation is to use 1bit hamming for MLO and BCH8 for
> the rest. You will end with corrupted filesystem with ham1 which I'd consider very
> unfortunate.
> 
> (I know there were endless discussions how to handle this situation. It is already
> solved in U-Boot and for updating MLO from Linux I'm using writeloader tool)

Never heard of this tool, but we haven't followed this discussion for years since
we never had problems with "ham1-everywhere". What I am not completely sure is if
ubifs is using its own ECC scheme or not. If it is (like I assume), the user-space
partition is independent of this setting and we just have discussion for MLO/U-Boot
and kernel partitions.

So I think it boils down to the question if
a) upstream should do a suboptimal thing, but be compatible to the current vendor kernel and u-boot
b) upstream should do the right thing, but stay incompatible

Result of b) would e.g. a stock Debian kernel will not be able to read or write the partitions of a device
created with vendor kernel.

And even worse, it is not clear if users will want to erase and reflash the NAND to match what kernel.org defines if they have a running system.

This makes me believe that a) is still better for practical reasons, even if technically worse.

BR,
Nikolaus

> 
> 	ladis
> 
>> BR,
>> Nikolaus
>> 
>>> 
>>> 	ladis
>>> 
>>>> +		#address-cells = <1>;
>>>> +		#size-cells = <1>;
>>>> 
>>>> -		gpmc,sync-clk-ps = <0>;
>>>> +		gpmc,device-width = <2>;
>>>> 		gpmc,cs-on-ns = <0>;
>>>> 		gpmc,cs-rd-off-ns = <44>;
>>>> 		gpmc,cs-wr-off-ns = <44>;
>>>> 		gpmc,adv-on-ns = <6>;
>>>> 		gpmc,adv-rd-off-ns = <34>;
>>>> 		gpmc,adv-wr-off-ns = <44>;
>>>> -		gpmc,we-off-ns = <40>;
>>>> 		gpmc,oe-off-ns = <54>;
>>>> +		gpmc,we-off-ns = <40>;
>>>> 		gpmc,access-ns = <64>;
>>>> 		gpmc,rd-cycle-ns = <82>;
>>>> 		gpmc,wr-cycle-ns = <82>;
>>>> 		gpmc,wr-access-ns = <40>;
>>>> 		gpmc,wr-data-mux-bus-ns = <0>;
>>>> -		gpmc,device-width = <2>;
>>>> -
>>>> -		#address-cells = <1>;
>>>> -		#size-cells = <1>;
>>>> +		gpmc,sync-clk-ps = <0>;
>>>> 
>>>> 		x-loader@0 {
>>>> 			label = "X-Loader";
>>>> -- 
>>>> 2.12.2
>>>> 
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* Re: [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc
  2018-07-25  6:58 ` [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc H. Nikolaus Schaller
@ 2018-07-25 10:37   ` Sebastian Reichel
  2018-07-25 11:40     ` H. Nikolaus Schaller
  2018-07-25 12:31     ` H. Nikolaus Schaller
  0 siblings, 2 replies; 52+ messages in thread
From: Sebastian Reichel @ 2018-07-25 10:37 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

Hi,

On Wed, Jul 25, 2018 at 08:58:36AM +0200, H. Nikolaus Schaller wrote:
>  			port@1 {
> -				reg = <1>;
> +				reg = <0>;

You should also update the node name.

--  Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc
  2018-07-25 10:37   ` Sebastian Reichel
@ 2018-07-25 11:40     ` H. Nikolaus Schaller
  2018-07-25 12:31     ` H. Nikolaus Schaller
  1 sibling, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25 11:40 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]


> Am 25.07.2018 um 12:37 schrieb Sebastian Reichel <sebastian.reichel@collabora.co.uk>:
> 
> Hi,
> 
> On Wed, Jul 25, 2018 at 08:58:36AM +0200, H. Nikolaus Schaller wrote:
>> 			port@1 {
>> -				reg = <1>;
>> +				reg = <0>;
> 
> You should also update the node name.

AH, indeed. Thanks for your eagle's eyes :)

BR,
Nikolaus


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  8:33       ` Ladislav Michl
@ 2018-07-25 12:27         ` H. Nikolaus Schaller
  2018-07-25 13:26           ` Ladislav Michl
  2018-07-25 16:27         ` [Letux-kernel] " Andreas Kemnade
  1 sibling, 1 reply; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25 12:27 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel


> Am 25.07.2018 um 10:33 schrieb Ladislav Michl <ladis@linux-mips.org>:
> 
> On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote:
>> 
>>> Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
>>> 
>>> On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:
>>>> Vendor defined U-Boot has changed the partition scheme a while ago:
>>>> 
>>>> * kernel partition 6MB
>>>> * file system partition uses the remainder up to end of the NAND
>>>> * increased size of the environment partition (to get an OneNAND compatible base address)
>>>> * shrink the U-Boot partition
>>>> 
>>>> Let's be compatible (e.g. Debian kernel built from upstream).
>>> 
>>> That, in fact, is breaking compatibility.
>> 
>> With what? Nobody is using the old u-boot partition scheme any more
>> (it is >5 years old).
>> 
>>> So once you are touching this
>>> what about relying on partitioning provided by bootloader just to prevent
>>> something like this happening again?
>> 
>> Well, we define what compatible means here (since we are the vendor).
>> And people complain with us. We simply recommend them to upgrade the
>> boot-loader.
> 
> Fair enough. Suggestion was to remove partitioning scheme from DTB alltogether
> and let U-Boot provide one. But you being vendor you decide, of course :)
> (I'd use only two partitions: MLO and UBI, latter one with BCH8, and store
> everything in UBI volumes. That's a bit more flexible approach)

Yes, that is a good goal for a future setup and would of course be better.
Like U-Boot already provides the memory layout for RAM.

Hopefully, someone will work out patches for u-boot plus kernel (which is always
painful to keep these two in sync and tested). But I don't want to do that now.

BR and thanks,
Nikolaus


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

* Re: [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc
  2018-07-25 10:37   ` Sebastian Reichel
  2018-07-25 11:40     ` H. Nikolaus Schaller
@ 2018-07-25 12:31     ` H. Nikolaus Schaller
  1 sibling, 0 replies; 52+ messages in thread
From: H. Nikolaus Schaller @ 2018-07-25 12:31 UTC (permalink / raw)
  To: Sebastian Reichel, Tomi Valkeinen
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, Linux Kernel Mailing List,
	Discussions about the Letux Kernel

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

Hi Sebastian,

> Am 25.07.2018 um 12:37 schrieb Sebastian Reichel <sebastian.reichel@collabora.co.uk>:
> 
> Hi,
> 
> On Wed, Jul 25, 2018 at 08:58:36AM +0200, H. Nikolaus Schaller wrote:
>> 			port@1 {
>> -				reg = <1>;
>> +				reg = <0>;
> 
> You should also update the node name.

I did take another look at this and we might have the wrong fix here anyways.
The first indication is that a port@0 already exists soI can't simply rename
the node.

The opa362 is an exceptional dssdev since it has an input and an output port
which should be differentiated by the reg property and the node name.

Ports are apparently matched by reg number, i.e. here:

	https://elixir.bootlin.com/linux/v4.18-rc6/source/drivers/gpu/drm/omapdrm/dss/output.c#L146

The issue seems to be that the driver does not set the out->port_num of the endpoint to 1.

	https://elixir.bootlin.com/linux/v4.18-rc6/source/drivers/gpu/drm/omapdrm/displays/encoder-opa362.c#L205

So the <1> does not match and we were just lucky to make it working by choosing <0> in the DT.

I'll need a little time to test if a (one-liner) patch for the driver does the same/right thing.

And since it is omapdss related I've put Tomi on CC:

BR,
Nikolaus

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25 12:27         ` H. Nikolaus Schaller
@ 2018-07-25 13:26           ` Ladislav Michl
  0 siblings, 0 replies; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25 13:26 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Marek Belisko, Benoît Cousson, Tony Lindgren, Rob Herring,
	Mark Rutland, linux-omap, devicetree, linux-kernel, letux-kernel

On Wed, Jul 25, 2018 at 02:27:31PM +0200, H. Nikolaus Schaller wrote:
> 
> > Am 25.07.2018 um 10:33 schrieb Ladislav Michl <ladis@linux-mips.org>:
> > 
> > On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote:
> >> 
> >>> Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
> >>> 
> >>> On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:
> >>>> Vendor defined U-Boot has changed the partition scheme a while ago:
> >>>> 
> >>>> * kernel partition 6MB
> >>>> * file system partition uses the remainder up to end of the NAND
> >>>> * increased size of the environment partition (to get an OneNAND compatible base address)
> >>>> * shrink the U-Boot partition
> >>>> 
> >>>> Let's be compatible (e.g. Debian kernel built from upstream).
> >>> 
> >>> That, in fact, is breaking compatibility.
> >> 
> >> With what? Nobody is using the old u-boot partition scheme any more
> >> (it is >5 years old).
> >> 
> >>> So once you are touching this
> >>> what about relying on partitioning provided by bootloader just to prevent
> >>> something like this happening again?
> >> 
> >> Well, we define what compatible means here (since we are the vendor).
> >> And people complain with us. We simply recommend them to upgrade the
> >> boot-loader.
> > 
> > Fair enough. Suggestion was to remove partitioning scheme from DTB alltogether
> > and let U-Boot provide one. But you being vendor you decide, of course :)
> > (I'd use only two partitions: MLO and UBI, latter one with BCH8, and store
> > everything in UBI volumes. That's a bit more flexible approach)
> 
> Yes, that is a good goal for a future setup and would of course be better.
> Like U-Boot already provides the memory layout for RAM.
> 
> Hopefully, someone will work out patches for u-boot plus kernel (which is always
> painful to keep these two in sync and tested). But I don't want to do that now.

At kernel side the only patch needed is to remove partitioning scheme from DTB
and u-boot setup can be merely copied from board/isee/igep00x0
Not having hardware I cannot really test it ;-)

Best regards,
	ladis

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

* Re: [Letux-kernel] [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25  8:33       ` Ladislav Michl
  2018-07-25 12:27         ` H. Nikolaus Schaller
@ 2018-07-25 16:27         ` Andreas Kemnade
  2018-07-25 20:07           ` Ladislav Michl
  1 sibling, 1 reply; 52+ messages in thread
From: Andreas Kemnade @ 2018-07-25 16:27 UTC (permalink / raw)
  To: Ladislav Michl
  Cc: Discussions about the Letux Kernel, H. Nikolaus Schaller,
	Mark Rutland, devicetree, Tony Lindgren, linux-kernel,
	Rob Herring, Benoît Cousson, linux-omap

[-- Attachment #1: Type: text/plain, Size: 1896 bytes --]

On Wed, 25 Jul 2018 10:33:05 +0200
Ladislav Michl <ladis@linux-mips.org> wrote:

> On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote:
> >   
> > > Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
> > > 
> > > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:  
> > >> Vendor defined U-Boot has changed the partition scheme a while ago:
> > >> 
> > >> * kernel partition 6MB
> > >> * file system partition uses the remainder up to end of the NAND
> > >> * increased size of the environment partition (to get an OneNAND compatible base address)
> > >> * shrink the U-Boot partition
> > >> 
> > >> Let's be compatible (e.g. Debian kernel built from upstream).  
> > > 
> > > That, in fact, is breaking compatibility.  
> > 
> > With what? Nobody is using the old u-boot partition scheme any more
> > (it is >5 years old).
> >   
> > > So once you are touching this
> > > what about relying on partitioning provided by bootloader just to prevent
> > > something like this happening again?  
> > 
> > Well, we define what compatible means here (since we are the vendor).
> > And people complain with us. We simply recommend them to upgrade the
> > boot-loader.  
> 
> Fair enough. Suggestion was to remove partitioning scheme from DTB alltogether
> and let U-Boot provide one. But you being vendor you decide, of course :)
> (I'd use only two partitions: MLO and UBI, latter one with BCH8, and store
> everything in UBI volumes. That's a bit more flexible approach)
> 
hmm, so using mtdparts kernel commandline parameter? Somehow it sounds
to be sane to not have partition tables in kernel. What only is needed
is to have a nice transition scheme for systems in the wild, can
commandline mtdparts overwrite dtb? So dtb is a fallback?
But I think all that is a future improvement?

Regards,
Andreas

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [Letux-kernel] [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot
  2018-07-25 16:27         ` [Letux-kernel] " Andreas Kemnade
@ 2018-07-25 20:07           ` Ladislav Michl
  0 siblings, 0 replies; 52+ messages in thread
From: Ladislav Michl @ 2018-07-25 20:07 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: Discussions about the Letux Kernel, H. Nikolaus Schaller,
	Mark Rutland, devicetree, Tony Lindgren, linux-kernel,
	Rob Herring, Benoît Cousson, linux-omap

On Wed, Jul 25, 2018 at 06:27:45PM +0200, Andreas Kemnade wrote:
> On Wed, 25 Jul 2018 10:33:05 +0200
> Ladislav Michl <ladis@linux-mips.org> wrote:
> 
> > On Wed, Jul 25, 2018 at 10:18:28AM +0200, H. Nikolaus Schaller wrote:
> > >   
> > > > Am 25.07.2018 um 10:07 schrieb Ladislav Michl <ladis@linux-mips.org>:
> > > > 
> > > > On Wed, Jul 25, 2018 at 08:58:41AM +0200, H. Nikolaus Schaller wrote:  
> > > >> Vendor defined U-Boot has changed the partition scheme a while ago:
> > > >> 
> > > >> * kernel partition 6MB
> > > >> * file system partition uses the remainder up to end of the NAND
> > > >> * increased size of the environment partition (to get an OneNAND compatible base address)
> > > >> * shrink the U-Boot partition
> > > >> 
> > > >> Let's be compatible (e.g. Debian kernel built from upstream).  
> > > > 
> > > > That, in fact, is breaking compatibility.  
> > > 
> > > With what? Nobody is using the old u-boot partition scheme any more
> > > (it is >5 years old).
> > >   
> > > > So once you are touching this
> > > > what about relying on partitioning provided by bootloader just to prevent
> > > > something like this happening again?  
> > > 
> > > Well, we define what compatible means here (since we are the vendor).
> > > And people complain with us. We simply recommend them to upgrade the
> > > boot-loader.  
> > 
> > Fair enough. Suggestion was to remove partitioning scheme from DTB alltogether
> > and let U-Boot provide one. But you being vendor you decide, of course :)
> > (I'd use only two partitions: MLO and UBI, latter one with BCH8, and store
> > everything in UBI volumes. That's a bit more flexible approach)
> > 
> hmm, so using mtdparts kernel commandline parameter? Somehow it sounds
> to be sane to not have partition tables in kernel. What only is needed
> is to have a nice transition scheme for systems in the wild, can
> commandline mtdparts overwrite dtb? So dtb is a fallback?

That's beginning to be offtopic here...  Anyway, see U-Boot's
CONFIG_FDT_FIXUP_PARTITIONS. Probably better to start a thread on
U-Boot mailing list if needed.

> But I think all that is a future improvement?

Depends on vendor decision, it could be done in a few days :)

Best regards,
	ladis

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

end of thread, other threads:[~2018-07-25 20:07 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25  6:58 [PATCH 00/32] Device Tree Updates for GTA04 (A3/A4/A5 variants) H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 01/32] ARM: dts: omap3-gta04: fix typo in backlight pins node name H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 02/32] ARM: dts: omap3-gta04: fix some whitespace and tab style errors H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 03/32] ARM: dts: omap3-gta04: give spi_lcd node a label so that we can overwrite in other DTS files H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 04/32] ARM: dts: omap3-gta04: fixes for tvout / venc H. Nikolaus Schaller
2018-07-25 10:37   ` Sebastian Reichel
2018-07-25 11:40     ` H. Nikolaus Schaller
2018-07-25 12:31     ` H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 05/32] ARM: dts: omap3-gta04: add devconf1 setup for correct tvout pins H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 06/32] ARM: dts: omap3-gta04: tvout: enable as display1 alias H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 07/32] ARM: dts: omap3-gta04: fix touchscreen tsc2007 H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 08/32] ARM: dts: omap3-gta04: add pinmux for bmp085 EOC interrupt H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 09/32] ARM: dts: omap3-gta04: make NAND partitions compatible with recent U-Boot H. Nikolaus Schaller
2018-07-25  8:07   ` Ladislav Michl
2018-07-25  8:18     ` H. Nikolaus Schaller
2018-07-25  8:25       ` [Letux-kernel] " H. Nikolaus Schaller
2018-07-25  8:33       ` Ladislav Michl
2018-07-25 12:27         ` H. Nikolaus Schaller
2018-07-25 13:26           ` Ladislav Michl
2018-07-25 16:27         ` [Letux-kernel] " Andreas Kemnade
2018-07-25 20:07           ` Ladislav Michl
2018-07-25  6:58 ` [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup H. Nikolaus Schaller
2018-07-25  8:10   ` Ladislav Michl
2018-07-25  8:16     ` H. Nikolaus Schaller
2018-07-25  8:28       ` Ladislav Michl
2018-07-25  9:08         ` H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 11/32] ARM: dts: omap3-gta04: keep vpll2 always on H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 12/32] ARM: dts: omap3-gta04: add a comment how to reference the tca6507 gpio H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 13/32] ARM: dts: omap3-gta04: add warning comment to vaux2 regulator H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 14/32] ARM: dts: omap3-gta04: replace ti,non-removable with generic non-removable H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 15/32] ARM: dts: omap3-gta04: make use of input event include file and constants H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 16/32] ARM: dts: omap3-gta04: map antenna detect GPIO to SW_LINEIN_INSERT key event H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 17/32] ARM: dts: omap3-gta04: add camera interface parallel port H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 18/32] ARM: dts: omap3-gta04: add camera pinmux H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 19/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 20/32] ARM: dts: omap3-gta04: add devconf0 setup for mcbsp1 clock pins H. Nikolaus Schaller
2018-07-25  8:12   ` Ladislav Michl
2018-07-25  8:19     ` H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 21/32] ARM: dts: omap3-gta04: add mcbsp (audio subsystem) nodes H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 22/32] ARM: dts: omap3-gta04a3: fix model name for A3 variant H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 23/32] ARM: dts: omap3-gta04a4: fix model name for A4 variant H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 24/32] ARM: dts: omap3-gta04a5: fix copyright of A5 variant H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 25/32] ARM: dts: omap3-gta04a5: fix model name H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 26/32] ARM: dts: omap3-gta04a5: fix whitepsace and tab style H. Nikolaus Schaller
2018-07-25  6:58 ` [PATCH 27/32] ARM: dts: omap3-gta04a5: add support for PPS H. Nikolaus Schaller
2018-07-25  6:59 ` [PATCH 28/32] ARM: dts: omap3-gta04a5: disable IrDA receiver to save power H. Nikolaus Schaller
2018-07-25  6:59 ` [PATCH 29/32] ARM: dts: omap3-gta04a5: add support for ti,wl1837 module H. Nikolaus Schaller
2018-07-25  6:59 ` [PATCH 30/32] ARM: dts: omap3-gta04a5: uses different sensors than gta04a4 H. Nikolaus Schaller
2018-07-25  6:59 ` [PATCH 31/32] ARM: dts: omap3-gta04a5: define pinmux for bluetooth enable of ti,wl1837 module H. Nikolaus Schaller
2018-07-25  6:59 ` [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND H. Nikolaus Schaller
2018-07-25  8:20   ` Ladislav Michl
2018-07-25  8:29     ` H. Nikolaus Schaller

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