ARM: sun5i: Add DT for HSG H702 tablet board
Subsystems (3)
PATCH v2 1/1 ARM: sun5i: Add DT for HSG H702 tablet board
This is a Q8 format 7 inch tablet with an Allwinner A13 SoC. It has 512MB DRAM, 4GB NAND flash, an accelerometer, camera, RTL8188-based WiFi, and micro SD slot for external storage.
It is likely made by a subsidiary of Hanns.G (Hannstar).
---
Added missing '>' to the email address in the header.
Sorry for the noise.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a13-hsg-h702.dts | 101 +++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -406,6 +406,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a10s-olinuxino-micro.dtb \ sun5i-a10s-r7-tv-dongle.dtb \ + sun5i-a13-hsg-h702.dtb \ sun5i-a13-olinuxino.dtb \ sun5i-a13-olinuxino-micro.dtb dtb-$(CONFIG_MACH_SUN6I) += \
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +101 -0
101 lines not on this page · raw message
Signature · 1 line
2.1.0
PATCH v2 1/1 ARM: sun5i: Add DT for HSG H702 tablet board
Hi,
Quoted 37 lines · Chen-Yu Tsai
This is a Q8 format 7 inch tablet with an Allwinner A13 SoC. It has 512MB DRAM, 4GB NAND flash, an accelerometer, camera, RTL8188-based WiFi, and micro SD slot for external storage.
It is likely made by a subsidiary of Hanns.G (Hannstar).
Signed-off-by Chen-Yu Tsai <[email protected]>---
Added missing '>' to the email address in the header.
Sorry for the noise.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a13-hsg-h702.dts | 101 +++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a13-hsg-h702.dtsarch/arm/boot/dts/Makefile +1
-0@@ -406,6 +406,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a10s-olinuxino-micro.dtb \ sun5i-a10s-r7-tv-dongle.dtb \ + sun5i-a13-hsg-h702.dtb \ sun5i-a13-olinuxino.dtb \ sun5i-a13-olinuxino-micro.dtb dtb-$(CONFIG_MACH_SUN6I) += \arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +0
-0
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts line 6
Quoted 6 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +6
-0@@ -0,0 +1,101 @@ +/* + * Copyright 2014 Chen-Yu Tsai <[email protected]> + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations:
Could you relicense the file to match the GPL/X11 dual license we've been working on?
Quoted 83 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +83
-0+ * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +/include/ "sun5i-a13.dtsi" +/include/ "sunxi-common-regulators.dtsi" + +/ { + model = "HSG H702"; + compatible = "hsg,h702", "allwinner,sun5i-a13"; + + soc at 01c00000 { + mmc0: mmc at 01c0f000 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 6 0 0>; /* PG0 */ + cd-inverted; + status = "okay"; + }; + + usbphy: phy at 01c13400 { + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; + }; + + ehci0: usb at 01c14000 { + status = "okay"; + }; + + ohci0: usb at 01c14400 { + status = "okay"; + }; + + pinctrl at 01c20800 { + mmc0_cd_pin_h702: mmc0_cd_pin at 0 { + allwinner,pins = "PG0"; + allwinner,function = "gpio_in"; + allwinner,drive = <0>; + allwinner,pull = <1>; + }; + }; + + uart1: serial at 01c28400 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins_b>; + status = "okay"; + }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + i2c1: i2c at 01c2b000 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins_a>; + status = "okay"; + + pcf8563: rtc at 51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + }; + + i2c2: i2c at 01c2b400 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins_a>; + status = "okay"; + }; + };
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts line 99
Quoted 10 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +10
-0+ + reg_usb1_vbus: usb1-vbus { + /* + * There doesn't seem to be a GPIO for controlling + * vbus, despite the fex file saying otherwise. + * Override the original settings with empty ones. + */ + pinctrl-0 = <>; + gpio = <>; + status = "okay";
Hmmmm, no. Just use a regular fixed regulator here, like reg_vcc3v3.
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/20140908/d6981696/attachment.sig>
PATCH v2 1/1 ARM: sun5i: Add DT for HSG H702 tablet board
Quoted 41 lines · Maxime Ripard
Hi,
Quoted 38 lines · Chen-Yu Tsai
This is a Q8 format 7 inch tablet with an Allwinner A13 SoC. It has 512MB DRAM, 4GB NAND flash, an accelerometer, camera, RTL8188-based WiFi, and micro SD slot for external storage.
It is likely made by a subsidiary of Hanns.G (Hannstar).
Signed-off-by Chen-Yu Tsai <[email protected]>---
Added missing '>' to the email address in the header.
Sorry for the noise.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a13-hsg-h702.dts | 101 +++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a13-hsg-h702.dtsarch/arm/boot/dts/Makefile +1
-0@@ -406,6 +406,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a10s-olinuxino-micro.dtb \ sun5i-a10s-r7-tv-dongle.dtb \ + sun5i-a13-hsg-h702.dtb \ sun5i-a13-olinuxino.dtb \ sun5i-a13-olinuxino-micro.dtb dtb-$(CONFIG_MACH_SUN6I) += \arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +1
-0@@ -0,0 +1,101 @@ +/*
Quoted 8 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts line 6
Quoted 5 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +5
-0+ * Copyright 2014 Chen-Yu Tsai <[email protected]> + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations:Could you relicense the file to match the GPL/X11 dual license we've been working on?
Sure. That's the plan. :)
Waiting for that series to be merged before I send a new version.
Quoted 87 lines
Quoted 87 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +87
-0+ * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +/include/ "sun5i-a13.dtsi" +/include/ "sunxi-common-regulators.dtsi" + +/ { + model = "HSG H702"; + compatible = "hsg,h702", "allwinner,sun5i-a13"; + + soc at 01c00000 { + mmc0: mmc at 01c0f000 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 6 0 0>; /* PG0 */ + cd-inverted; + status = "okay"; + }; + + usbphy: phy at 01c13400 { + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; + }; + + ehci0: usb at 01c14000 { + status = "okay"; + }; + + ohci0: usb at 01c14400 { + status = "okay"; + }; + + pinctrl at 01c20800 { + mmc0_cd_pin_h702: mmc0_cd_pin at 0 { + allwinner,pins = "PG0"; + allwinner,function = "gpio_in"; + allwinner,drive = <0>; + allwinner,pull = <1>; + }; + }; + + uart1: serial at 01c28400 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins_b>; + status = "okay"; + }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + i2c1: i2c at 01c2b000 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins_a>; + status = "okay"; + + pcf8563: rtc at 51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + }; + + i2c2: i2c at 01c2b400 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins_a>; + status = "okay"; + }; + }; + + reg_usb1_vbus: usb1-vbus { + /* + * There doesn't seem to be a GPIO for controlling
Quoted 8 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts line 99
Quoted 6 lines
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts new file +6
-0+ * vbus, despite the fex file saying otherwise. + * Override the original settings with empty ones. + */ + pinctrl-0 = <>; + gpio = <>; + status = "okay";Hmmmm, no. Just use a regular fixed regulator here, like
reg_vcc3v3.
Ok, will fix.
Thanks
ChenYu