Skip to contentSkip to conversation

Introduce Allwinner A33 support

PATCH New Hans de Goede 6 participants 33 messages May 30, 2015 – Jun 13, 2016

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

v2 cover Introduce Allwinner A33 support

Hi Maxime,

Here is a cleaned up series of Vishnu Patekar's A33 support. This should address all concerns raised during the posting of v1.

I've tested that all peripherals declared in the shared sun8i-a23-a33.dtsi work on the A33 too, with the exception of the dma-controller. For the dma-controller I've compared the A23 vs A33 manual and the entire dma- controller description including the register description is bit for bit identical.

This has been tested on a 7" Ippo Q8H v1.2 A23 tablet, a 7" Ippo Q8H v1.2 A33 tablet and a 10" GA10H A33 tablet. The dts for the 10" tablet still needs some work wrt the lradc button voltages so that is not included in this set.

Regards,

Hans

#1 lore raw

PATCH v2 1/6 ARM: sunxi: Add Machine support for A33

From: Vishnu Patekar <[email protected]>

Add machine support for the Allwinner A33 quad core cortex-a7 based SoC, which is similar to the A23 SoC.

---
Changes in v2:
-Do not rename the allwinner,sun8i-a23 compatible to allwinner,sun8i
instead add a new allwinner,sun8i-a33 compatible
-Squash in changes to use sun6i_init_clocks for A33
-Do *not* rename the cpu method to "allwinner,sun8i"

---
 Documentation/devicetree/bindings/arm/sunxi.txt | 1 +
 arch/arm/mach-sunxi/sunxi.c                     | 1 +
 drivers/clk/sunxi/clk-sunxi.c                   | 1 +
 3 files changed, 3 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.txt +1 -0
index 3cb4b94..67da205 100644
@@ -9,5 +9,6 @@ using one of the following compatible strings:
   allwinner,sun6i-a31
   allwinner,sun7i-a20
   allwinner,sun8i-a23
+  allwinner,sun8i-a33
   allwinner,sun8i-h3
   allwinner,sun9i-a80
arch/arm/mach-sunxi/sunxi.c +1 -0
index 8270902..65bab28 100644
@@ -67,6 +67,7 @@ MACHINE_END
 
 static const char * const sun8i_board_dt_compat[] = {
 	"allwinner,sun8i-a23",
+	"allwinner,sun8i-a33",
 	"allwinner,sun8i-h3",
 	NULL,
 };
drivers/clk/sunxi/clk-sunxi.c +1 -0
index 9a82f17..abf7b37 100644
@@ -1391,6 +1391,7 @@ static void __init sun6i_init_clocks(struct device_node *node)
 CLK_OF_DECLARE(sun6i_a31_clk_init, "allwinner,sun6i-a31", sun6i_init_clocks);
 CLK_OF_DECLARE(sun6i_a31s_clk_init, "allwinner,sun6i-a31s", sun6i_init_clocks);
 CLK_OF_DECLARE(sun8i_a23_clk_init, "allwinner,sun8i-a23", sun6i_init_clocks);
+CLK_OF_DECLARE(sun8i_a33_clk_init, "allwinner,sun8i-a33", sun6i_init_clocks);
 
 static void __init sun9i_init_clocks(struct device_node *node)
 {
Signature · 1 line
2.4.1
#2 lore raw

PATCH v2 1/6 ARM: sunxi: Add Machine support for A33

Quoted 7 lines · Hans de Goede

From: Vishnu Patekar <[email protected]>

Add machine support for the Allwinner A33 quad core cortex-a7 based SoC, which is similar to the A23 SoC.

Applied, thanks!

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/2980c4d6/attachment.sig>
#3 lore raw

PATCH v2 2/6 pinctrl: sunxi: Add allwinner A33 PIO controller support

In reply to Hans de Goede

From: Vishnu Patekar <[email protected]>

A33 PIO has 7 ports which starts from PB and has two interrupt ports.

---
 .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt   |   2 +
 drivers/pinctrl/sunxi/Kconfig                      |   4 +
 drivers/pinctrl/sunxi/Makefile                     |   1 +
 drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c          | 513 +++++++++++++++++++++
 4 files changed, 520 insertions(+)
 create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt +2 -0
index fdd8046..9462ab7 100644
@@ -16,6 +16,8 @@ Required properties:
   "allwinner,sun7i-a20-pinctrl"
   "allwinner,sun8i-a23-pinctrl"
   "allwinner,sun8i-a23-r-pinctrl"
+  "allwinner,sun8i-a33-pinctrl"
+
 - reg: Should contain the register physical address and length for the
   pin controller.
 
drivers/pinctrl/sunxi/Kconfig +4 -0
index 2eb893e..ae27872 100644
@@ -38,6 +38,10 @@ config PINCTRL_SUN8I_A23
 	def_bool MACH_SUN8I
 	select PINCTRL_SUNXI_COMMON
 
+config PINCTRL_SUN8I_A33
+	def_bool MACH_SUN8I
+	select PINCTRL_SUNXI_COMMON
+
 config PINCTRL_SUN8I_A23_R
 	def_bool MACH_SUN8I
 	depends on RESET_CONTROLLER
drivers/pinctrl/sunxi/Makefile +1 -0
index b796d57..227a121 100644
@@ -11,4 +11,5 @@ obj-$(CONFIG_PINCTRL_SUN6I_A31_R)	+= pinctrl-sun6i-a31-r.o
 obj-$(CONFIG_PINCTRL_SUN7I_A20)		+= pinctrl-sun7i-a20.o
 obj-$(CONFIG_PINCTRL_SUN8I_A23)		+= pinctrl-sun8i-a23.o
 obj-$(CONFIG_PINCTRL_SUN8I_A23_R)	+= pinctrl-sun8i-a23-r.o
+obj-$(CONFIG_PINCTRL_SUN8I_A33)		+= pinctrl-sun8i-a33.o
 obj-$(CONFIG_PINCTRL_SUN9I_A80)		+= pinctrl-sun9i-a80.o
drivers/pinctrl/sunxi/pinctrl-sun8i-a33.c new file +513 -0

513 lines not on this page · raw message

Signature · 1 line
2.4.1
#4 lore raw

PATCH v2 3/6 ARM: dts: sun8i: Add sun8i-a23-a33 dtsi

In reply to Hans de Goede

From: Vishnu Patekar <[email protected]>

Rename sun8i-a23.dtsi to sun8i-a23-a33.dtsi as the base dtsi for the A33 is 99% the same and add a new sun8i-a23.dtsi including sun8i-a23-a33.dtsi and setting the few things not shared with the A33 (mbus-clk, pio compatible and interrupts).

---
Changes in v2:
-Add a sun8i-a23-a33.dtsi to share between a23 and a33, rather then a
sun8i.dtsi to share between a23, a33 and h3, since the reset and clock bits of the h3 are different, meaning that we also need different clock and reset entries for all the peripheral blocks making sharing unpractical

---
 .../dts/{sun8i-a23.dtsi => sun8i-a23-a33.dtsi}     |  18 +-
 arch/arm/boot/dts/sun8i-a23.dtsi                   | 576 +--------------------
 2 files changed, 9 insertions(+), 585 deletions(-)
 copy arch/arm/boot/dts/{sun8i-a23.dtsi => sun8i-a23-a33.dtsi} (97%)
arch/arm/boot/dts/sun8i-a23-a33.dtsi renamed from arch/arm/boot/dts/sun8i-a23.dtsi +2 -16
similarity index 97%
copy from arch/arm/boot/dts/sun8i-a23.dtsi
copy to arch/arm/boot/dts/sun8i-a23-a33.dtsi
index 7297f96..c73d1d1 100644
@@ -93,10 +93,6 @@
 		};
 	};
 
-	memory {
-		reg = <0x40000000 0x40000000>;
-	};
-
 	clocks {
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -252,14 +248,6 @@
 					     "mmc2_output",
 					     "mmc2_sample";
 		};
-
-		mbus_clk: clk at 01c2015c {
-			#clock-cells = <0>;
-			compatible = "allwinner,sun8i-a23-mbus-clk";
-			reg = <0x01c2015c 0x4>;
-			clocks = <&osc24M>, <&pll6 1>, <&pll5>;
-			clock-output-names = "mbus";
-		};
 	};
 
 	soc at 01c00000 {
@@ -335,11 +323,9 @@
 		};
 
 		pio: pinctrl at 01c20800 {
-			compatible = "allwinner,sun8i-a23-pinctrl";
+			/* compatible gets set in SoC specific dtsi file */
 			reg = <0x01c20800 0x400>;
-			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
-				     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
-				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
+			/* interrupts get set in SoC specific dtsi file */
 			clocks = <&apb1_gates 5>;
 			gpio-controller;
 			interrupt-controller;
arch/arm/boot/dts/sun8i-a23.dtsi +7 -569

594 lines not on this page · raw message

Signature · 1 line
2.4.1
#5 lore raw

PATCH v2 3/6 ARM: dts: sun8i: Add sun8i-a23-a33 dtsi

Quoted 9 lines · Hans de Goede

From: Vishnu Patekar <[email protected]>

Rename sun8i-a23.dtsi to sun8i-a23-a33.dtsi as the base dtsi for the A33 is 99% the same and add a new sun8i-a23.dtsi including sun8i-a23-a33.dtsi and setting the few things not shared with the A33 (mbus-clk, pio compatible and interrupts).

Fixed the conflicts and applied.

Also judging from a quick look at the datasheet, the A33 doesn't seem to have that clock gates tree but rather one similar to the H3's. That will probably mean we'll have to move out the gates from this DTSI at some point.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/b43e1c69/attachment.sig>
#6 lore raw

PATCH v2 3/6 ARM: dts: sun8i: Add sun8i-a23-a33 dtsi

Hi,

Quoted 11 lines · Maxime Ripard
Quoted 9 lines · Hans de Goede

From: Vishnu Patekar <[email protected]>

Rename sun8i-a23.dtsi to sun8i-a23-a33.dtsi as the base dtsi for the A33 is 99% the same and add a new sun8i-a23.dtsi including sun8i-a23-a33.dtsi and setting the few things not shared with the A33 (mbus-clk, pio compatible and interrupts).

Quoted 6 lines

Fixed the conflicts and applied.

Also judging from a quick look at the datasheet, the A33 doesn't seem to have that clock gates tree but rather one similar to the H3's. That will probably mean we'll have to move out the gates from this DTSI at some point.

Heuh...

Ok so I've done a full bit for bit comparison of the 2 datasheets for the clk gates, mostly they are mostly the same and the registers seem to just be renamed.

The only differences are:

01c200060 (AHB1 MODULE CLOCK GATING REGISTER 0 / Bus Clock Gating Register 0):

Only A33 has bit 5 SS gating

01c200064 (AHB1 MODULE CLOCK GATING REGISTER 1 / Bus Clock Gating Register 1):

Only A33 has bit 26 SAT gating, note that if we add support for this we must add it as a needed clock to the simplefb node

Only A33 has bit 21 MSGBOX_GATING

01c200068 (APB1 MODULE CLOCK GATING REGISTER / Bus Clock Gating Register 2):

No differences

01c20006c (APB2 MODULE CLOCK GATING REGISTER / Bus Clock Gating Register 3):

No differences

So you are right that in the near future we should add a separate compatible
+ clk driver or the ahb1_gates on the A33, but it does not seem that there is the issue of one gate register having multiple parents like on the H3. Or maybe the H3 does also not have that issue, and this is a misinterpretation of the H3 datasheet ?

Note I do not know what the actual parent clock for the new gates is, but it stands to reason that it is AHB1, I've been unable to find anything to confirm or deny this.

Regards,

Hans

#7 lore raw

PATCH v2 3/6 ARM: dts: sun8i: Add sun8i-a23-a33 dtsi

Quoted 46 lines · Hans de Goede

Hi,

Quoted 11 lines · Maxime Ripard
Quoted 9 lines · Hans de Goede

From: Vishnu Patekar <[email protected]>

Rename sun8i-a23.dtsi to sun8i-a23-a33.dtsi as the base dtsi for the A33 is 99% the same and add a new sun8i-a23.dtsi including sun8i-a23-a33.dtsi and setting the few things not shared with the A33 (mbus-clk, pio compatible and interrupts).

Quoted 6 lines

Fixed the conflicts and applied.

Also judging from a quick look at the datasheet, the A33 doesn't seem to have that clock gates tree but rather one similar to the H3's. That will probably mean we'll have to move out the gates from this DTSI at some point.

Heuh...

Ok so I've done a full bit for bit comparison of the 2 datasheets for the clk gates, mostly they are mostly the same and the registers seem to just be renamed.

The only differences are:

01c200060 (AHB1 MODULE CLOCK GATING REGISTER 0 / Bus Clock Gating Register 0):

Only A33 has bit 5 SS gating

01c200064 (AHB1 MODULE CLOCK GATING REGISTER 1 / Bus Clock Gating Register 1):

Only A33 has bit 26 SAT gating, note that if we add support for this we must add it as a needed clock to the simplefb node

Only A33 has bit 21 MSGBOX_GATING

01c200068 (APB1 MODULE CLOCK GATING REGISTER / Bus Clock Gating Register 2):

No differences

01c20006c (APB2 MODULE CLOCK GATING REGISTER / Bus Clock Gating Register 3):

Quoted 8 lines

No differences

So you are right that in the near future we should add a separate compatible
+ clk driver or the ahb1_gates on the A33, but it does not seem that there is the issue of one gate register having multiple parents like on the H3. Or maybe the H3 does also not have that issue, and this is a misinterpretation of the H3 datasheet ?

I might have been misguided by the clock name (AHB1, APB1, etc... gates vs bus gates).

If it's just as simple as that, then yeah, we'll probably don't need the H3 bus gates driver for this.

Quoted 3 lines

Note I do not know what the actual parent clock for the new gates is, but it stands to reason that it is AHB1, I've been unable to find anything to confirm or deny this.

That's always something we can change if we find that it's not the case.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/ce9ced6c/attachment.sig>
#8 lore raw

PATCH v2 4/6 ARM: dts: sun8i: Add sun8i-a33 dtsi

In reply to Hans de Goede

From: Vishnu Patekar <[email protected]>

Add a dtsi file for use with a33 based boards based on the new sun8i-a23-a33.dtsi file.

---
Changes in v2:
-Use the new merged sun8i-a23-a33.dtsi file

---
 arch/arm/boot/dts/sun8i-a33.dtsi | 89 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-a33.dtsi
arch/arm/boot/dts/sun8i-a33.dtsi new file +89 -0
new file mode 100644
index 0000000..9b43bc6
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2014 Chen-Yu Tsai
+ *
+ * Chen-Yu Tsai <[email protected]>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include "sun8i-a23-a33.dtsi"
+
+/ {
+	cpus {
+		cpu at 2 {
+			compatible = "arm,cortex-a7";
+			device_type = "cpu";
+			reg = <2>;
+		};
+
+		cpu at 3 {
+			compatible = "arm,cortex-a7";
+			device_type = "cpu";
+			reg = <3>;
+		};
+	};
+
+	memory {
+		reg = <0x40000000 0x80000000>;
+	};
+
+	clocks {
+		/* Dummy clock for pll11 (DDR1) until actually implemented */
+		pll11: pll11_clk {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <0>;
+			clock-output-names = "pll11";
+		};
+
+		mbus_clk: clk at 01c2015c {
+			#clock-cells = <0>;
+			compatible = "allwinner,sun8i-a23-mbus-clk";
+			reg = <0x01c2015c 0x4>;
+			clocks = <&osc24M>, <&pll6 1>, <&pll5>, <&pll11>;
+			clock-output-names = "mbus";
+		};
+	};
+};
+
+&pio {
+	compatible = "allwinner,sun8i-a33-pinctrl";
+	interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
+		     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
+};
Signature · 1 line
2.4.1
#9 lore raw

PATCH v2 4/6 ARM: dts: sun8i: Add sun8i-a33 dtsi

Quoted 7 lines · Hans de Goede

From: Vishnu Patekar <[email protected]>

Add a dtsi file for use with a33 based boards based on the new sun8i-a23-a33.dtsi file.

Applied, thanks!

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/432952bc/attachment.sig>
#10 lore raw

PATCH v2 5/6 ARM: dts: sun8i: Add ET-Q8 A33 support

In reply to Hans de Goede

From: Vishnu Patekar <[email protected]>

ET-Q8_A33 is A33 based cheap tablet in common Q8 format.

It has 512MB RAM, 4GB Nand, 7" Display, RDA5900P wifi, GSL1680 touch, etc.

---
Changes in v2:
-Cleanup up board model and compatible string
-Use stdout-path instead of bootargs to specify the serial console -Remove the (presumably untested) i2c nodes

---
 arch/arm/boot/dts/Makefile                 |  3 +-
 arch/arm/boot/dts/sun8i-a33-et-q8-v1.6.dts | 88 ++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/sun8i-a33-et-q8-v1.6.dts
arch/arm/boot/dts/Makefile +2 -1
index db2e1e5..ae7f25d 100644
@@ -572,7 +572,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \
 dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a23-evb.dtb \
 	sun8i-a23-ippo-q8h-v5.dtb \
-	sun8i-a23-ippo-q8h-v1.2.dtb
+	sun8i-a23-ippo-q8h-v1.2.dtb \
+	sun8i-a33-et-q8-v1.6.dtb
 dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-optimus.dtb \
 	sun9i-a80-cubieboard4.dtb
arch/arm/boot/dts/sun8i-a33-et-q8-v1.6.dts new file +88 -0

88 lines not on this page · raw message

Signature · 1 line
2.4.1
#11 lore raw

PATCH v2 5/6 ARM: dts: sun8i: Add ET-Q8 A33 support

Quoted 8 lines · Hans de Goede

From: Vishnu Patekar <[email protected]>

ET-Q8_A33 is A33 based cheap tablet in common Q8 format.

It has 512MB RAM, 4GB Nand, 7" Display, RDA5900P wifi, GSL1680 touch, etc.

Applied, thanks!

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/42c133be/attachment.sig>
#12 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

In reply to Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

This version features 512 MB DRAM, 4G NAND, MMC, LCD, capacitive touchscreen, accelerometer, 2 camera sensors, USB OTG, microphone and speakers.

i2c0 is connected to the gsl1680 capacitive touch panel controller, i2c1 is connected to an mma7660 3-axis accelerometer, these peripherals are not supported by the kernel yet, i2c bus functionality has been tested via i2c-dev.

---
 arch/arm/boot/dts/Makefile                         |   3 +-
 .../dts/sun8i-a33-ippo-q8h-v1.2-lcd1024x600.dts    | 118 +++++++++++++++++++++
 2 files changed, 120 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/sun8i-a33-ippo-q8h-v1.2-lcd1024x600.dts
arch/arm/boot/dts/Makefile +2 -1
index ae7f25d..b308baf 100644
@@ -573,7 +573,8 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-a23-evb.dtb \
 	sun8i-a23-ippo-q8h-v5.dtb \
 	sun8i-a23-ippo-q8h-v1.2.dtb \
-	sun8i-a33-et-q8-v1.6.dtb
+	sun8i-a33-et-q8-v1.6.dtb \
+	sun8i-a33-ippo-q8h-v1.2-lcd1024x600.dtb
 dtb-$(CONFIG_MACH_SUN9I) += \
 	sun9i-a80-optimus.dtb \
 	sun9i-a80-cubieboard4.dtb
arch/arm/boot/dts/sun8i-a33-ippo-q8h-v1.2-lcd1024x600.dts new file +118 -0

118 lines not on this page · raw message

Signature · 1 line
2.4.1
#13 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150602/5112db89/attachment-0001.sig>
#14 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

I would expect the only difference between the 2 dts files to be the node describing the lcd panel, so yes that makes somewhat sense.

Quoted 2 lines

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

No, AFAIK there is no way to tell the difference. There is no eeprom no the board, and we really cannot rely on the nand contents.

Quoted 2 lines

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

That means extra logic in u-boot, and on the kernel side, for what benefit exactly? Such logic would make sense if there was one u-boot image which runtime adjusted itself, but that is not an option.

And we can avoid copy and paste on the dts side by putting all the common stuff in a common file and including that, I believe that that is better (KISS = better) since we've no way to runtime do the right thing AFAICT.

Regards,

Hans

#15 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Quoted 14 lines · Hans de Goede

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

Quoted 8 lines

I would expect the only difference between the 2 dts files to be the node describing the lcd panel, so yes that makes somewhat sense.

Quoted 2 lines

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

No, AFAIK there is no way to tell the difference. There is no eeprom no the board, and we really cannot rely on the nand contents.

Ok.

Quoted 6 lines
Quoted 2 lines

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

That means extra logic in u-boot, and on the kernel side, for what benefit exactly? Such logic would make sense if there was one u-boot image which runtime adjusted itself, but that is not an option.

For what benefit? One kernel image which runtime adjusts itself. It's especially possible if u-boot's image is not, which seems to be what you're saying.

Quoted 4 lines

And we can avoid copy and paste on the dts side by putting all the common stuff in a common file and including that, I believe that that is better (KISS = better) since we've no way to runtime do the right thing AFAICT.

My concern is about the ever-growing number of DTS that just are small variations of one or the other. What about the time when we'll discover that this board has a variant that has an emmc, and some that don't have any button, or the i2c bus 2 not wired, and one other that doesn't have any HDMI?

Do we really want to have a dts called sun8i-a33-q8h-emmc-lcd800x600-nohdmi-noi2c2-nobuttons.dts?

Especially when we will have the one that we include here that will not have followed this convention because it was introduced before that, and that we have a way to deal with this nicely?

You chose to consider the DTS names an ABI, the best way to handle this is to have a DTS as generic as possible, and leave all these small variations outside of the name.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150603/cf19263b/attachment.sig>
#16 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 26 lines · Maxime Ripard
Quoted 14 lines · Hans de Goede

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

Quoted 8 lines

I would expect the only difference between the 2 dts files to be the node describing the lcd panel, so yes that makes somewhat sense.

Quoted 2 lines

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

No, AFAIK there is no way to tell the difference. There is no eeprom no the board, and we really cannot rely on the nand contents.

Ok.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

That means extra logic in u-boot, and on the kernel side, for what benefit exactly? Such logic would make sense if there was one u-boot image which runtime adjusted itself, but that is not an option.

For what benefit? One kernel image which runtime adjusts itself.

You mean one dtb right, because the kernel itself already runtime adjusts itself.

Quoted 2 lines

It's especially possible if u-boot's image is not, which seems to be what you're saying.

But we will still need different configs in u-boot, and we need to add code + config to u-boot to plug in the extra compatibles to automatically select the right built-in overlays.

Quoted 14 lines
Quoted 4 lines

And we can avoid copy and paste on the dts side by putting all the common stuff in a common file and including that, I believe that that is better (KISS = better) since we've no way to runtime do the right thing AFAICT.

My concern is about the ever-growing number of DTS that just are small variations of one or the other. What about the time when we'll discover that this board has a variant that has an emmc, and some that don't have any button, or the i2c bus 2 not wired, and one other that doesn't have any HDMI?

Do we really want to have a dts called sun8i-a33-q8h-emmc-lcd800x600-nohdmi-noi2c2-nobuttons.dts?

Quoted 7 lines

Especially when we will have the one that we include here that will not have followed this convention because it was introduced before that, and that we have a way to deal with this nicely?

You chose to consider the DTS names an ABI, the best way to handle this is to have a DTS as generic as possible, and leave all these small variations outside of the name.

Ok, so for now this is not really an issue at all since the dts does not yet decribe the lcd at all. So can you merge this one renamed to a more generic name for 4.2?

That will work fine for now.

Then we can use the DT quirks interface to add different lcd nodes for different variants once we get lcd support in the kernel, and teach u-boot to add the extra board compatible to select the right lcd node at that time.

Regards,

Hans

#17 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Sorry for the late reply.

Quoted 32 lines · Hans de Goede

Hi,

Quoted 29 lines · Maxime Ripard
Quoted 14 lines · Hans de Goede

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

Quoted 8 lines

I would expect the only difference between the 2 dts files to be the node describing the lcd panel, so yes that makes somewhat sense.

Quoted 2 lines

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

No, AFAIK there is no way to tell the difference. There is no eeprom no the board, and we really cannot rely on the nand contents.

Ok.

Quoted 3 lines
Quoted 2 lines

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

That means extra logic in u-boot, and on the kernel side, for what benefit exactly? Such logic would make sense if there was one u-boot image which runtime adjusted itself, but that is not an option.

For what benefit? One kernel image which runtime adjusts itself.

You mean one dtb right, because the kernel itself already runtime adjusts itself.

Well, the kernel will runtime adjust the DT, so, both, I'd say?

Quoted 6 lines
Quoted 2 lines

It's especially possible if u-boot's image is not, which seems to be what you're saying.

But we will still need different configs in u-boot, and we need to add code + config to u-boot to plug in the extra compatibles to automatically select the right built-in overlays.

You're going to have a different config anyway, but yeah, that's true.

Quoted 26 lines
Quoted 14 lines
Quoted 4 lines

And we can avoid copy and paste on the dts side by putting all the common stuff in a common file and including that, I believe that that is better (KISS = better) since we've no way to runtime do the right thing AFAICT.

My concern is about the ever-growing number of DTS that just are small variations of one or the other. What about the time when we'll discover that this board has a variant that has an emmc, and some that don't have any button, or the i2c bus 2 not wired, and one other that doesn't have any HDMI?

Do we really want to have a dts called sun8i-a33-q8h-emmc-lcd800x600-nohdmi-noi2c2-nobuttons.dts?

Quoted 7 lines

Especially when we will have the one that we include here that will not have followed this convention because it was introduced before that, and that we have a way to deal with this nicely?

You chose to consider the DTS names an ABI, the best way to handle this is to have a DTS as generic as possible, and leave all these small variations outside of the name.

Ok, so for now this is not really an issue at all since the dts does not yet decribe the lcd at all. So can you merge this one renamed to a more generic name for 4.2?

Quoted 6 lines

That will work fine for now.

Then we can use the DT quirks interface to add different lcd nodes for different variants once we get lcd support in the kernel, and teach u-boot to add the extra board compatible to select the right lcd node at that time.

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150613/f8bc4fef/attachment-0001.sig>
#18 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 85 lines · Maxime Ripard

Hi,

Sorry for the late reply.

Quoted 32 lines · Hans de Goede

Hi,

Quoted 29 lines · Maxime Ripard
Quoted 14 lines · Hans de Goede

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

Quoted 8 lines

I would expect the only difference between the 2 dts files to be the node describing the lcd panel, so yes that makes somewhat sense.

Quoted 2 lines

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

No, AFAIK there is no way to tell the difference. There is no eeprom no the board, and we really cannot rely on the nand contents.

Ok.

Quoted 3 lines
Quoted 2 lines

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

That means extra logic in u-boot, and on the kernel side, for what benefit exactly? Such logic would make sense if there was one u-boot image which runtime adjusted itself, but that is not an option.

For what benefit? One kernel image which runtime adjusts itself.

You mean one dtb right, because the kernel itself already runtime adjusts itself.

Well, the kernel will runtime adjust the DT, so, both, I'd say?

Quoted 6 lines
Quoted 2 lines

It's especially possible if u-boot's image is not, which seems to be what you're saying.

But we will still need different configs in u-boot, and we need to add code + config to u-boot to plug in the extra compatibles to automatically select the right built-in overlays.

You're going to have a different config anyway, but yeah, that's true.

Quoted 28 lines
Quoted 14 lines
Quoted 4 lines

And we can avoid copy and paste on the dts side by putting all the common stuff in a common file and including that, I believe that that is better (KISS = better) since we've no way to runtime do the right thing AFAICT.

My concern is about the ever-growing number of DTS that just are small variations of one or the other. What about the time when we'll discover that this board has a variant that has an emmc, and some that don't have any button, or the i2c bus 2 not wired, and one other that doesn't have any HDMI?

Do we really want to have a dts called sun8i-a33-q8h-emmc-lcd800x600-nohdmi-noi2c2-nobuttons.dts?

Quoted 7 lines

Especially when we will have the one that we include here that will not have followed this convention because it was introduced before that, and that we have a way to deal with this nicely?

You chose to consider the DTS names an ABI, the best way to handle this is to have a DTS as generic as possible, and leave all these small variations outside of the name.

Ok, so for now this is not really an issue at all since the dts does not yet decribe the lcd at all. So can you merge this one renamed to a more generic name for 4.2?

That will work fine for now.

Quoted 7 lines
Quoted 4 lines

Then we can use the DT quirks interface to add different lcd nodes for different variants once we get lcd support in the kernel, and teach u-boot to add the extra board compatible to select the right lcd node at that time.

I think we need to discuss this with Pantelis and what is his feeling about this.

Ok.

Quoted 12 lines

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 5 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

If we go with a separate dts file for each of the 800x480 and 1024x600 screens, I would greatly prefer to stick with the lcd1024x600 in the dts filename instead of using something like xga, the fact that you say:
"I guess" that my answer to that is: I dunno I would need to look this up in wikipedia or some such makes me think that using a qualifier like xga is not going the help end users decide which dts file to pick, it will just lead to them needing to go to wikipedia too. Also note that the advertising of these tablets on ebay / aliexpress almost always uses the resolution and not something like "xga".

So all in all if we do not decide to use quirks for this I would like to keep the filename as is.

Regards,

Hans

Quoted 3 lines

Maxime

#19 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 28 lines · Hans de Goede
Quoted 12 lines

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 5 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

If we go with a separate dts file for each of the 800x480 and 1024x600 screens, I would greatly prefer to stick with the lcd1024x600 in the dts filename instead of using something like xga, the fact that you say:
"I guess" that my answer to that is: I dunno I would need to look this up in wikipedia or some such makes me think that using a qualifier like xga is not going the help end users decide which dts file to pick, it will just lead to them needing to go to wikipedia too. Also note that the advertising of these tablets on ebay / aliexpress almost always uses the resolution and not something like "xga".

Quoted 2 lines

So all in all if we do not decide to use quirks for this I would like to keep the filename as is.

Yeah, except that the display standard is also encoding the refresh rate and color depth, that might change from one board to another.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150616/0174be5b/attachment.sig>
#20 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 31 lines · Maxime Ripard

Hi,

Quoted 28 lines · Hans de Goede
Quoted 12 lines

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 5 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

If we go with a separate dts file for each of the 800x480 and 1024x600 screens, I would greatly prefer to stick with the lcd1024x600 in the dts filename instead of using something like xga, the fact that you say:
"I guess" that my answer to that is: I dunno I would need to look this up in wikipedia or some such makes me think that using a qualifier like xga is not going the help end users decide which dts file to pick, it will just lead to them needing to go to wikipedia too. Also note that the advertising of these tablets on ebay / aliexpress almost always uses the resolution and not something like "xga".

Quoted 5 lines
Quoted 2 lines

So all in all if we do not decide to use quirks for this I would like to keep the filename as is.

Yeah, except that the display standard is also encoding the refresh rate and color depth

Huh? No it does not, see e.g.:

https://en.wikipedia.org/wiki/Graphics_display_resolution

Note nothing about depth and refresh-rate there, and I've really never heard anyone use things like xga to refer to colordepth and/or refreshrate

Regards,

Hans

#21 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Quoted 33 lines · Hans de Goede

Hi,

Quoted 30 lines · Maxime Ripard

Hi,

Quoted 27 lines · Hans de Goede
Quoted 12 lines

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 5 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

If we go with a separate dts file for each of the 800x480 and 1024x600 screens, I would greatly prefer to stick with the lcd1024x600 in the dts filename instead of using something like xga, the fact that you say:
"I guess" that my answer to that is: I dunno I would need to look this up in wikipedia or some such makes me think that using a qualifier like xga is not going the help end users decide which dts file to pick, it will just lead to them needing to go to wikipedia too. Also note that the advertising of these tablets on ebay / aliexpress almost always uses the resolution and not something like "xga".

<> >>

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

So all in all if we do not decide to use quirks for this I would like to keep the filename as is.

Yeah, except that the display standard is also encoding the refresh rate and color depth

Quoted 6 lines

Huh? No it does not, see e.g.:

https://en.wikipedia.org/wiki/Graphics_display_resolution

Note nothing about depth and refresh-rate there, and I've really never heard anyone use things like xga to refer to colordepth and/or refreshrate

I was somehow convinced it did, and

https://en.wikipedia.org/wiki/Computer_display_standard

seems to say that as well... Maybe not then, my bad.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150618/527262e6/attachment.sig>
#22 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 43 lines · Maxime Ripard
Quoted 33 lines · Hans de Goede

Hi,

Quoted 30 lines · Maxime Ripard

Hi,

Quoted 27 lines · Hans de Goede
Quoted 12 lines

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 5 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

If we go with a separate dts file for each of the 800x480 and 1024x600 screens, I would greatly prefer to stick with the lcd1024x600 in the dts filename instead of using something like xga, the fact that you say:
"I guess" that my answer to that is: I dunno I would need to look this up in wikipedia or some such makes me think that using a qualifier like xga is not going the help end users decide which dts file to pick, it will just lead to them needing to go to wikipedia too. Also note that the advertising of these tablets on ebay / aliexpress almost always uses the resolution and not something like "xga".

<> >>

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

So all in all if we do not decide to use quirks for this I would like to keep the filename as is.

Yeah, except that the display standard is also encoding the refresh rate and color depth

Huh? No it does not, see e.g.:

Quoted 8 lines
Quoted 4 lines

https://en.wikipedia.org/wiki/Graphics_display_resolution

Note nothing about depth and refresh-rate there, and I've really never heard anyone use things like xga to refer to colordepth and/or refreshrate

I was somehow convinced it did, and

https://en.wikipedia.org/wiki/Computer_display_standard

Hmm, that is a weird page it seems to be a rather low quality page for wikipedia standards, for some reason it throws Atari ST models in there as being display standards, and the bpp column makes sense for hercules, cga and ega but not much which comes after that.

Regards,

Hans

#23 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

In reply to Maxime Ripard

Hi Maxime,

Quoted 107 lines · Maxime Ripard

Hi,

Sorry for the late reply.

Quoted 32 lines · Hans de Goede

Hi,

Quoted 29 lines · Maxime Ripard
Quoted 14 lines · Hans de Goede

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 5 lines · Hans de Goede

The Ippo-q8h is a tablet circuit board commonly found in cheap Android tablets. The v1.2 version can be used with either an A23 or A33 SoC.

This adds a dts file for the v1.2 board with an A33 SoC and a 1024x600 LCD screen (most of these tablets have a 800x480 screen).

I think the difference between the resolution here is more of a case for the DT quirks interface:
https://lkml.org/lkml/2015/2/18/258

Quoted 8 lines

I would expect the only difference between the 2 dts files to be the node describing the lcd panel, so yes that makes somewhat sense.

Quoted 2 lines

Do you know if there's some way to autodetect the two board versions (like a board id somewhere in an EEPROM)?

No, AFAIK there is no way to tell the difference. There is no eeprom no the board, and we really cannot rely on the nand contents.

Ok.

Quoted 3 lines
Quoted 2 lines

If not, then maybe u-boot can simply add that board compatible to the list, and we'll base our logic on that when we'll need it.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

That means extra logic in u-boot, and on the kernel side, for what benefit exactly? Such logic would make sense if there was one u-boot image which runtime adjusted itself, but that is not an option.

For what benefit? One kernel image which runtime adjusts itself.

You mean one dtb right, because the kernel itself already runtime adjusts itself.

Well, the kernel will runtime adjust the DT, so, both, I'd say?

Quoted 6 lines
Quoted 2 lines

It's especially possible if u-boot's image is not, which seems to be what you're saying.

But we will still need different configs in u-boot, and we need to add code + config to u-boot to plug in the extra compatibles to automatically select the right built-in overlays.

You're going to have a different config anyway, but yeah, that's true.

Quoted 26 lines
Quoted 14 lines
Quoted 4 lines

And we can avoid copy and paste on the dts side by putting all the common stuff in a common file and including that, I believe that that is better (KISS = better) since we've no way to runtime do the right thing AFAICT.

My concern is about the ever-growing number of DTS that just are small variations of one or the other. What about the time when we'll discover that this board has a variant that has an emmc, and some that don't have any button, or the i2c bus 2 not wired, and one other that doesn't have any HDMI?

Do we really want to have a dts called sun8i-a33-q8h-emmc-lcd800x600-nohdmi-noi2c2-nobuttons.dts?

Quoted 7 lines

Especially when we will have the one that we include here that will not have followed this convention because it was introduced before that, and that we have a way to deal with this nicely?

You chose to consider the DTS names an ABI, the best way to handle this is to have a DTS as generic as possible, and leave all these small variations outside of the name.

Ok, so for now this is not really an issue at all since the dts does not yet decribe the lcd at all. So can you merge this one renamed to a more generic name for 4.2?

Quoted 6 lines

That will work fine for now.

Then we can use the DT quirks interface to add different lcd nodes for different variants once we get lcd support in the kernel, and teach u-boot to add the extra board compatible to select the right lcd node at that time.

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

In fact the original patchset does contain a command line quirk for enabling and disabling the onboard emmc & hdmi of the beaglebone black for capes that need to use those signals.

Saying that, if you?re in a hurry I?d say go with a different DTSs for now, since that?s going to go in a near kernel cycle; DT quirks will be discussed at plumber?s in a couple of months, and then we?ll if it will go in and in what form.

Maxime

Quoted 6 lines
Signature · 4 lines
-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Regards

? Pantelis

#24 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi Pantelis,

Quoted 22 lines · Pantelis Antoniou
Quoted 15 lines

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

Quoted 7 lines

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

We're on the same page then :)

Quoted 4 lines

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

Hans actually pointed out that this would just move the logic somewhere else, but not remove it. In our case, that would mean U-Boot (Hans being the U-Boot maintainer for the SoCs that are used in this particular board).

That would still require us to have a different configuration and to add some logic to pass that extra parameter to the kernel. I'd be glad to have less stuff in the kernel, but I can understand that he doesn't want more stuff either.

Quoted 3 lines

In fact the original patchset does contain a command line quirk for enabling and disabling the onboard emmc & hdmi of the beaglebone black for capes that need to use those signals.

Ah. I somehow overlooked that when reading it.

Quoted 4 lines

Saying that, if you?re in a hurry I?d say go with a different DTSs for now, since that?s going to go in a near kernel cycle; DT quirks will be discussed at plumber?s in a couple of months, and then we?ll if it will go in and in what form.

Ok. I won't be here this year, but if you could raise the topic of how to handle "non-discoverable boards" then, it would be great.

Hans, I guess we can go for your suggestion then: apply a "generic" DT for the board right now, we're going to need it anyway. Then, when will have real display support, depending on the current state of the discussion for the quirks, we will either merge a different DT including the generic one, or if the quirks have something that work for both of us then, use the quirks. Sounds good?

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150616/628f0871/attachment-0001.sig>
#25 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi Maxime,

Quoted 31 lines · Maxime Ripard

Hi Pantelis,

Quoted 26 lines · Pantelis Antoniou
Quoted 15 lines

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

Quoted 6 lines
Quoted 3 lines

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

We're on the same page then :)

Heh :)

Quoted 10 lines
Quoted 4 lines

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

Hans actually pointed out that this would just move the logic somewhere else, but not remove it. In our case, that would mean U-Boot (Hans being the U-Boot maintainer for the SoCs that are used in this particular board).

Quoted 5 lines

That would still require us to have a different configuration and to add some logic to pass that extra parameter to the kernel. I'd be glad to have less stuff in the kernel, but I can understand that he doesn't want more stuff either.

Well, I don?t know the specifics of your board, but if you have a configuration subset that works for all the boards and makes it at least possible to load a kernel (i.e. ram, serial, storage) you can keep a single bootloader that?s not full featured, but at least can boot any kind of variant.

Afterwards you can just update the bootargs variable to the correct one for a given board.

Quoted 14 lines
Quoted 3 lines

In fact the original patchset does contain a command line quirk for enabling and disabling the onboard emmc & hdmi of the beaglebone black for capes that need to use those signals.

Ah. I somehow overlooked that when reading it.

Quoted 4 lines

Saying that, if you?re in a hurry I?d say go with a different DTSs for now, since that?s going to go in a near kernel cycle; DT quirks will be discussed at plumber?s in a couple of months, and then we?ll if it will go in and in what form.

Ok. I won't be here this year, but if you could raise the topic of how to handle "non-discoverable boards" then, it would be great.

Quoted 13 lines

Hans, I guess we can go for your suggestion then: apply a "generic" DT for the board right now, we're going to need it anyway. Then, when will have real display support, depending on the current state of the discussion for the quirks, we will either merge a different DT including the generic one, or if the quirks have something that work for both of us then, use the quirks. Sounds good?

Maxime

Signature · 3 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Regards

? Pantelis

#26 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi,

Quoted 58 lines · Pantelis Antoniou

Hi Maxime,

Quoted 31 lines · Maxime Ripard

Hi Pantelis,

Quoted 26 lines · Pantelis Antoniou
Quoted 15 lines

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

Quoted 6 lines
Quoted 3 lines

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

We're on the same page then :)

Heh :)

Quoted 10 lines
Quoted 4 lines

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

Hans actually pointed out that this would just move the logic somewhere else, but not remove it. In our case, that would mean U-Boot (Hans being the U-Boot maintainer for the SoCs that are used in this particular board).

Quoted 5 lines

That would still require us to have a different configuration and to add some logic to pass that extra parameter to the kernel. I'd be glad to have less stuff in the kernel, but I can understand that he doesn't want more stuff either.

Quoted 7 lines

Well, I don?t know the specifics of your board, but if you have a configuration subset that works for all the boards and makes it at least possible to load a kernel (i.e. ram, serial, storage) you can keep a single bootloader that?s not full featured, but at least can boot any kind of variant.

Afterwards you can just update the bootargs variable to the correct one for a given board.

We're talking about tablets here and uboot supports the lcd, as that is the only way to show errors loading the kernel / show a boot menu, etc.

Show u-boot will know which lcd is present (by the user having flashed the right u-boot binary for his model or so we hope). So I really think that this is something which u-boot should pass along in our case.

Talking about how this will all work in the future would it be possible for u-boot to pass this info via devicetree rather then the kernel commandline?

In general we try not to mangle the cmdline in u-boot, while otoh we already patch plenty of stuff into the dtb like memory size and such :)

Regards,

Hans

#27 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Hi Hans,

Quoted 68 lines · Hans de Goede

Hi,

Quoted 63 lines · Pantelis Antoniou

Hi Maxime,

Quoted 31 lines · Maxime Ripard

Hi Pantelis,

Quoted 26 lines · Pantelis Antoniou
Quoted 15 lines

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

Quoted 6 lines
Quoted 3 lines

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

We're on the same page then :)

Heh :)

Quoted 10 lines
Quoted 4 lines

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

Hans actually pointed out that this would just move the logic somewhere else, but not remove it. In our case, that would mean U-Boot (Hans being the U-Boot maintainer for the SoCs that are used in this particular board).

Quoted 5 lines

That would still require us to have a different configuration and to add some logic to pass that extra parameter to the kernel. I'd be glad to have less stuff in the kernel, but I can understand that he doesn't want more stuff either.

Well, I don?t know the specifics of your board, but if you have a configuration subset that works for all the boards and makes it at least possible to load a kernel (i.e. ram, serial, storage) you can keep a single bootloader that?s not full featured, but at least can boot any kind of variant.

Quoted 6 lines
Quoted 2 lines

Afterwards you can just update the bootargs variable to the correct one for a given board.

We're talking about tablets here and uboot supports the lcd, as that is the only way to show errors loading the kernel / show a boot menu, etc.

I see.

Quoted 7 lines

Show u-boot will know which lcd is present (by the user having flashed the right u-boot binary for his model or so we hope). So I really think that this is something which u-boot should pass along in our case.

Talking about how this will all work in the future would it be possible for u-boot to pass this info via devicetree rather then the kernel commandline?

You can already pass it. There?s a compatible property on root in each DT blob. It?s a string property list that goes from most specific to least specific.

You can always tack a most specific compatible in front and that?s what the quirks/variant can pick to apply changes.

I would try to ask Grant or Rob about what they think too however.

Quoted 3 lines

In general we try not to mangle the cmdline in u-boot, while otoh we already patch plenty of stuff into the dtb like memory size and such :)

FWIW if you pass a cmdline you already mangle the DT, since it is put in the chosen node as such.

So there?s mangling already you just got to decide where and what to mangle. :)

Quoted 3 lines

Regards,

Hans

Regards

? Pantelis

#28 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

In reply to Maxime Ripard

Hi,

Quoted 64 lines · Maxime Ripard

Hi Pantelis,

Quoted 22 lines · Pantelis Antoniou
Quoted 15 lines

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

Quoted 7 lines

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

We're on the same page then :)

Quoted 4 lines

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

Hans actually pointed out that this would just move the logic somewhere else, but not remove it. In our case, that would mean U-Boot (Hans being the U-Boot maintainer for the SoCs that are used in this particular board).

That would still require us to have a different configuration and to add some logic to pass that extra parameter to the kernel. I'd be glad to have less stuff in the kernel, but I can understand that he doesn't want more stuff either.

Quoted 3 lines

In fact the original patchset does contain a command line quirk for enabling and disabling the onboard emmc & hdmi of the beaglebone black for capes that need to use those signals.

Ah. I somehow overlooked that when reading it.

Quoted 4 lines

Saying that, if you?re in a hurry I?d say go with a different DTSs for now, since that?s going to go in a near kernel cycle; DT quirks will be discussed at plumber?s in a couple of months, and then we?ll if it will go in and in what form.

Ok. I won't be here this year, but if you could raise the topic of how to handle "non-discoverable boards" then, it would be great.

Quoted 6 lines

Hans, I guess we can go for your suggestion then: apply a "generic" DT for the board right now, we're going to need it anyway. Then, when will have real display support, depending on the current state of the discussion for the quirks, we will either merge a different DT including the generic one, or if the quirks have something that work for both of us then, use the quirks. Sounds good?

Sounds good to me, will you make the changes while merging, or shall I do a new version of the patch ?

Regards,

Hans

#29 lore raw

PATCH v2 6/6 ARM: sun8i: dts: Add Ippo-q8h v1.2 with A33 and 1024x600 lcd support

Quoted 74 lines · Hans de Goede

Hi,

Quoted 64 lines · Maxime Ripard

Hi Pantelis,

Quoted 22 lines · Pantelis Antoniou
Quoted 15 lines

I think we need to discuss this with Pantelis and what is his feeling about this.

Pantelis, to sum things up, we have a case of a tablet that comes with the exact same board, but coming in two flavours with two differents screen resolutions. It looks like a great case for your DT quirks work, but we have no way of runtime detecting the difference between the two variants. What do you think about this? Should we go with using the DT quirks or is this simply out of scope?

There's not so much example of similar cases in the kernel, and none of them use quirks so far (obviously) but they all boil down to either the solution you were suggesting in that patch or adding the alternate configuration as a comment.

Quoted 6 lines

I don't think the latter would work for you, and I agree with that, so I guess that depending on what Pantelis says, either we go with a better solution using the quirks, or we end up using what you suggested (with a nitpick though, I'd prefer if you used the display standard instead of the resolution, which would make it xga I guess?)

Quoted 7 lines

First of all, the quirks interface is at an RFC stage (new name suggested is ?variants?); getting that out of the way this seems like what it is designed to do.

The idea of the DT quirks is to drastically cut down on the number of different DTs required, each different for each board with minute differences from one another.

We're on the same page then :)

Quoted 4 lines

In your case you have boards that have no way to be probed about what they ?are?, but that?s no big problem. You can easily pass the board variant in the kernel command line and use that to select the quirk to apply.

Hans actually pointed out that this would just move the logic somewhere else, but not remove it. In our case, that would mean U-Boot (Hans being the U-Boot maintainer for the SoCs that are used in this particular board).

That would still require us to have a different configuration and to add some logic to pass that extra parameter to the kernel. I'd be glad to have less stuff in the kernel, but I can understand that he doesn't want more stuff either.

Quoted 3 lines

In fact the original patchset does contain a command line quirk for enabling and disabling the onboard emmc & hdmi of the beaglebone black for capes that need to use those signals.

Ah. I somehow overlooked that when reading it.

Quoted 4 lines

Saying that, if you?re in a hurry I?d say go with a different DTSs for now, since that?s going to go in a near kernel cycle; DT quirks will be discussed at plumber?s in a couple of months, and then we?ll if it will go in and in what form.

Ok. I won't be here this year, but if you could raise the topic of how to handle "non-discoverable boards" then, it would be great.

Quoted 6 lines

Hans, I guess we can go for your suggestion then: apply a "generic" DT for the board right now, we're going to need it anyway. Then, when will have real display support, depending on the current state of the discussion for the quirks, we will either merge a different DT including the generic one, or if the quirks have something that work for both of us then, use the quirks. Sounds good?

Quoted 2 lines

Sounds good to me, will you make the changes while merging, or shall I do a new version of the patch ?

I'll apply and fix.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150618/f8946e28/attachment.sig>
#30 lore raw

v2 cover Introduce Allwinner A33 support

In reply to Hans de Goede

Is the A33 Lollipop SDK somewhere?

Quoted 24 lines · Hans de Goede

Hi Maxime,

Here is a cleaned up series of Vishnu Patekar's A33 support. This should address all concerns raised during the posting of v1.

I've tested that all peripherals declared in the shared sun8i-a23-a33.dtsi work on the A33 too, with the exception of the dma-controller. For the dma-controller I've compared the A23 vs A33 manual and the entire dma- controller description including the register description is bit for bit identical.

This has been tested on a 7" Ippo Q8H v1.2 A23 tablet, a 7" Ippo Q8H v1.2 A33 tablet and a 10" GA10H A33 tablet. The dts for the 10" tablet still needs some work wrt the lradc button voltages so that is not included in this set.

Regards,

Hans

--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe at googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Signature · 2 lines
Jon Smirl
jonsmirl at gmail.com
#31 lore raw

v2 cover Introduce Allwinner A33 support

In reply to Hans de Goede
Quoted 11 lines · Hans de Goede

Hi Maxime,

Here is a cleaned up series of Vishnu Patekar's A33 support. This should address all concerns raised during the posting of v1.

I've tested that all peripherals declared in the shared sun8i-a23-a33.dtsi work on the A33 too, with the exception of the dma-controller. For the dma-controller I've compared the A23 vs A33 manual and the entire dma- controller description including the register description is bit for bit identical.

Quoted 4 lines

This has been tested on a 7" Ippo Q8H v1.2 A23 tablet, a 7" Ippo Q8H v1.2 A33 tablet and a 10" GA10H A33 tablet. The dts for the 10" tablet still needs some work wrt the lradc button voltages so that is not included in this set.

Whole series is

on my Sinlinx SinA33 dev board. I'll send patches for it later.

#32 lore raw

v2 cover Introduce Allwinner A33 support

In reply to Hans de Goede

El s?bado, 30 de mayo de 2015, 9:55:10 (UTC-5), Hans de Goede escribi?:

Quoted 11 lines

Hi Maxime,

Here is a cleaned up series of Vishnu Patekar's A33 support. This should address all concerns raised during the posting of v1.

I've tested that all peripherals declared in the shared sun8i-a23-a33.dtsi work on the A33 too, with the exception of the dma-controller. For the dma-controller I've compared the A23 vs A33 manual and the entire dma- controller description including the register description is bit for bit identical.

Quoted 8 lines

This has been tested on a 7" Ippo Q8H v1.2 A23 tablet, a 7" Ippo Q8H v1.2 A33 tablet and a 10" GA10H A33 tablet. The dts for the 10" tablet still needs some work wrt the lradc button voltages so that is not included in this set.

Regards,

Hans

http://hp7g2.blogspot.com