* [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support
@ 2015-01-27 18:58 Paul Kocialkowski
2015-01-27 18:58 ` Paul Kocialkowski
0 siblings, 1 reply; 4+ messages in thread
From: Paul Kocialkowski @ 2015-01-27 18:58 UTC (permalink / raw)
To: u-boot
This patch adds support for the TZX-Q8-713B7 tablet as described at:
http://linux-sunxi.org/TZX-Q8-713B7
All the things that are expected to work are going just fine, even host USB OTG
with the MUSB driver worked with both storage and a USB keyboard.
The DRAM configuration was not directly imported from the legacy u-boot-sunxi
tree. Instead, this uses dram_sun5i_auto with appropriate configuration.
The resulting DRAM config is not exactly the same, but things appear to work
just fine with dram_sun5i_auto (when booting a kernel and a full graphical
session).
The LCD mode configuration (CONFIG_VIDEO_LCD_MODE) only has fields that could
be determined reliably. Other fields (such as le,ri,up,lo and hs,vs) are left
to default values. Despite this, the LCD appears to be working just fine.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support
2015-01-27 18:58 [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support Paul Kocialkowski
@ 2015-01-27 18:58 ` Paul Kocialkowski
2015-01-28 10:07 ` Hans de Goede
0 siblings, 1 reply; 4+ messages in thread
From: Paul Kocialkowski @ 2015-01-27 18:58 UTC (permalink / raw)
To: u-boot
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
board/sunxi/Kconfig | 4 ++++
board/sunxi/MAINTAINERS | 5 +++++
board/sunxi/Makefile | 1 +
configs/TZX-Q8-713B7_defconfig | 15 +++++++++++++++
4 files changed, 25 insertions(+)
create mode 100644 configs/TZX-Q8-713B7_defconfig
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 738b55e..5c78cdf 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -147,6 +147,10 @@ config TARGET_R7DONGLE
bool "R7DONGLE"
depends on MACH_SUN5I
+config TARGET_TZX_Q8_713B7
+ bool "TZX-Q8-713B7"
+ depends on MACH_SUN5I
+
endchoice
config SYS_BOARD
diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
index 743e7f5..da5419c 100644
--- a/board/sunxi/MAINTAINERS
+++ b/board/sunxi/MAINTAINERS
@@ -100,3 +100,8 @@ MELE M5 BOARD
M: Ian Campbell <ijc@hellion.org.uk>
S: Maintained
F: configs/Mele_M5_defconfig
+
+TZX-Q8-713B7 BOARD
+M: Paul Kocialkowski <contact@paulk.fr>
+S: Maintained
+F: configs/TZX-Q8-713B7_defconfig
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index 71edb83..b14a8b2 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -20,3 +20,4 @@ obj-$(CONFIG_TARGET_A13_OLINUXINOM) += dram_a13_oli_micro.o
obj-$(CONFIG_TARGET_AUXTEK_T004) += dram_a10s_olinuxino_m.o
obj-$(CONFIG_TARGET_MK802_A10S) += dram_sun5i_auto.o
obj-$(CONFIG_TARGET_R7DONGLE) += dram_r7dongle.o
+obj-$(CONFIG_TARGET_TZX_Q8_713B7) += dram_sun5i_auto.o
diff --git a/configs/TZX-Q8-713B7_defconfig b/configs/TZX-Q8-713B7_defconfig
new file mode 100644
index 0000000..8696bdf
--- /dev/null
+++ b/configs/TZX-Q8-713B7_defconfig
@@ -0,0 +1,15 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=2,AXP209_POWER"
+CONFIG_USB_MUSB_SUNXI=y
+CONFIG_USB0_VBUS_PIN="PG12"
+CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:24,pclk_khz:33000,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_POWER="AXP0-0"
+CONFIG_VIDEO_LCD_BL_EN="AXP0-1"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
++S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
++S:CONFIG_MACH_SUN5I=y
++S:CONFIG_TARGET_TZX_Q8_713B7=y
++S:CONFIG_DRAM_CLK=408
++S:CONFIG_DRAM_ZQ=123
++S:CONFIG_DRAM_EMR1=4
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support
2015-01-27 18:58 ` Paul Kocialkowski
@ 2015-01-28 10:07 ` Hans de Goede
2015-01-28 21:48 ` Paul Kocialkowski
0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2015-01-28 10:07 UTC (permalink / raw)
To: u-boot
Hi,
On 27-01-15 19:58, Paul Kocialkowski wrote:
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Thanks, I've merged this with a number of changes:
- Fixed op the CONFIG_VIDEO_LCD_MODE to also properly define left/right
and top/bottom margins. See: http://linux-sunxi.org/LCD
- Added a "CONFIG_FDTFILE="sun5i-a13-tzx-q8-713b7.dtb" line, so that when
future upstream kernels get a dtb file for this board things will just
work. When submitting a dts file upstream for this board please use
the same name :)
Talking about upstream dts files, it would be great if you could write
one. Note that we've recently adapted a new style for upstream dts files,
so it is best to use one of the recent added boards as example, e.g. :
https://git.kernel.org/cgit/linux/kernel/git/mripard/linux.git/commit/?h=sunxi/dt-for-3.20&id=19a08b6b3f782f577b4b0fef9b6e60beba66c2f3
Regards,
Hans
> ---
> board/sunxi/Kconfig | 4 ++++
> board/sunxi/MAINTAINERS | 5 +++++
> board/sunxi/Makefile | 1 +
> configs/TZX-Q8-713B7_defconfig | 15 +++++++++++++++
> 4 files changed, 25 insertions(+)
> create mode 100644 configs/TZX-Q8-713B7_defconfig
>
> diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
> index 738b55e..5c78cdf 100644
> --- a/board/sunxi/Kconfig
> +++ b/board/sunxi/Kconfig
> @@ -147,6 +147,10 @@ config TARGET_R7DONGLE
> bool "R7DONGLE"
> depends on MACH_SUN5I
>
> +config TARGET_TZX_Q8_713B7
> + bool "TZX-Q8-713B7"
> + depends on MACH_SUN5I
> +
> endchoice
>
> config SYS_BOARD
> diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
> index 743e7f5..da5419c 100644
> --- a/board/sunxi/MAINTAINERS
> +++ b/board/sunxi/MAINTAINERS
> @@ -100,3 +100,8 @@ MELE M5 BOARD
> M: Ian Campbell <ijc@hellion.org.uk>
> S: Maintained
> F: configs/Mele_M5_defconfig
> +
> +TZX-Q8-713B7 BOARD
> +M: Paul Kocialkowski <contact@paulk.fr>
> +S: Maintained
> +F: configs/TZX-Q8-713B7_defconfig
> diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
> index 71edb83..b14a8b2 100644
> --- a/board/sunxi/Makefile
> +++ b/board/sunxi/Makefile
> @@ -20,3 +20,4 @@ obj-$(CONFIG_TARGET_A13_OLINUXINOM) += dram_a13_oli_micro.o
> obj-$(CONFIG_TARGET_AUXTEK_T004) += dram_a10s_olinuxino_m.o
> obj-$(CONFIG_TARGET_MK802_A10S) += dram_sun5i_auto.o
> obj-$(CONFIG_TARGET_R7DONGLE) += dram_r7dongle.o
> +obj-$(CONFIG_TARGET_TZX_Q8_713B7) += dram_sun5i_auto.o
> diff --git a/configs/TZX-Q8-713B7_defconfig b/configs/TZX-Q8-713B7_defconfig
> new file mode 100644
> index 0000000..8696bdf
> --- /dev/null
> +++ b/configs/TZX-Q8-713B7_defconfig
> @@ -0,0 +1,15 @@
> +CONFIG_SPL=y
> +CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=2,AXP209_POWER"
> +CONFIG_USB_MUSB_SUNXI=y
> +CONFIG_USB0_VBUS_PIN="PG12"
> +CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:24,pclk_khz:33000,sync:3,vmode:0"
> +CONFIG_VIDEO_LCD_POWER="AXP0-0"
> +CONFIG_VIDEO_LCD_BL_EN="AXP0-1"
> +CONFIG_VIDEO_LCD_BL_PWM="PB2"
> ++S:CONFIG_ARM=y
> ++S:CONFIG_ARCH_SUNXI=y
> ++S:CONFIG_MACH_SUN5I=y
> ++S:CONFIG_TARGET_TZX_Q8_713B7=y
> ++S:CONFIG_DRAM_CLK=408
> ++S:CONFIG_DRAM_ZQ=123
> ++S:CONFIG_DRAM_EMR1=4
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support
2015-01-28 10:07 ` Hans de Goede
@ 2015-01-28 21:48 ` Paul Kocialkowski
0 siblings, 0 replies; 4+ messages in thread
From: Paul Kocialkowski @ 2015-01-28 21:48 UTC (permalink / raw)
To: u-boot
> Thanks, I've merged this with a number of changes:
> - Fixed op the CONFIG_VIDEO_LCD_MODE to also properly define left/right
> and top/bottom margins. See: http://linux-sunxi.org/LCD
Wow, that's great, this is exactly what I was looking for. I guess I
hadn't been looking hard enough for it!
> - Added a "CONFIG_FDTFILE="sun5i-a13-tzx-q8-713b7.dtb" line, so that when
> future upstream kernels get a dtb file for this board things will just
> work. When submitting a dts file upstream for this board please use
> the same name :)
I was a little unsure about adding it or not, thanks for taking the
decision. I will certainly try to add mainline support for the tablet at
some point in the future, even though I will be using it with sunxi-3.4
on Replicant in the near future.
> Talking about upstream dts files, it would be great if you could write
> one. Note that we've recently adapted a new style for upstream dts files,
> so it is best to use one of the recent added boards as example, e.g. :
>
> https://git.kernel.org/cgit/linux/kernel/git/mripard/linux.git/commit/?h=sunxi/dt-for-3.20&id=19a08b6b3f782f577b4b0fef9b6e60beba66c2f3
Thanks!
> Regards,
>
> Hans
>
>
> > ---
> > board/sunxi/Kconfig | 4 ++++
> > board/sunxi/MAINTAINERS | 5 +++++
> > board/sunxi/Makefile | 1 +
> > configs/TZX-Q8-713B7_defconfig | 15 +++++++++++++++
> > 4 files changed, 25 insertions(+)
> > create mode 100644 configs/TZX-Q8-713B7_defconfig
> >
> > diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
> > index 738b55e..5c78cdf 100644
> > --- a/board/sunxi/Kconfig
> > +++ b/board/sunxi/Kconfig
> > @@ -147,6 +147,10 @@ config TARGET_R7DONGLE
> > bool "R7DONGLE"
> > depends on MACH_SUN5I
> >
> > +config TARGET_TZX_Q8_713B7
> > + bool "TZX-Q8-713B7"
> > + depends on MACH_SUN5I
> > +
> > endchoice
> >
> > config SYS_BOARD
> > diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS
> > index 743e7f5..da5419c 100644
> > --- a/board/sunxi/MAINTAINERS
> > +++ b/board/sunxi/MAINTAINERS
> > @@ -100,3 +100,8 @@ MELE M5 BOARD
> > M: Ian Campbell <ijc@hellion.org.uk>
> > S: Maintained
> > F: configs/Mele_M5_defconfig
> > +
> > +TZX-Q8-713B7 BOARD
> > +M: Paul Kocialkowski <contact@paulk.fr>
> > +S: Maintained
> > +F: configs/TZX-Q8-713B7_defconfig
> > diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
> > index 71edb83..b14a8b2 100644
> > --- a/board/sunxi/Makefile
> > +++ b/board/sunxi/Makefile
> > @@ -20,3 +20,4 @@ obj-$(CONFIG_TARGET_A13_OLINUXINOM) += dram_a13_oli_micro.o
> > obj-$(CONFIG_TARGET_AUXTEK_T004) += dram_a10s_olinuxino_m.o
> > obj-$(CONFIG_TARGET_MK802_A10S) += dram_sun5i_auto.o
> > obj-$(CONFIG_TARGET_R7DONGLE) += dram_r7dongle.o
> > +obj-$(CONFIG_TARGET_TZX_Q8_713B7) += dram_sun5i_auto.o
> > diff --git a/configs/TZX-Q8-713B7_defconfig b/configs/TZX-Q8-713B7_defconfig
> > new file mode 100644
> > index 0000000..8696bdf
> > --- /dev/null
> > +++ b/configs/TZX-Q8-713B7_defconfig
> > @@ -0,0 +1,15 @@
> > +CONFIG_SPL=y
> > +CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=2,AXP209_POWER"
> > +CONFIG_USB_MUSB_SUNXI=y
> > +CONFIG_USB0_VBUS_PIN="PG12"
> > +CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:24,pclk_khz:33000,sync:3,vmode:0"
> > +CONFIG_VIDEO_LCD_POWER="AXP0-0"
> > +CONFIG_VIDEO_LCD_BL_EN="AXP0-1"
> > +CONFIG_VIDEO_LCD_BL_PWM="PB2"
> > ++S:CONFIG_ARM=y
> > ++S:CONFIG_ARCH_SUNXI=y
> > ++S:CONFIG_MACH_SUN5I=y
> > ++S:CONFIG_TARGET_TZX_Q8_713B7=y
> > ++S:CONFIG_DRAM_CLK=408
> > ++S:CONFIG_DRAM_ZQ=123
> > ++S:CONFIG_DRAM_EMR1=4
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150128/2b09b710/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-28 21:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 18:58 [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support Paul Kocialkowski
2015-01-27 18:58 ` Paul Kocialkowski
2015-01-28 10:07 ` Hans de Goede
2015-01-28 21:48 ` Paul Kocialkowski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.