Skip to contentSkip to conversation

ARM: dts: sun5i: Add support for the Auxtek-T003 HDMI stick

PATCH In review Hans de Goede 3 participants 11 messages Aug 7, 2015 – Sep 29, 2015

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

PATCH 1/3 ARM: dts: sun5i: Add support for the Auxtek-T003 HDMI stick

The Auxtek-T003 HDMI stick is an A10s based HDMI stick with USB wifi, and composite video out support.

---
 arch/arm/boot/dts/Makefile                   |   1 +
 arch/arm/boot/dts/sun5i-a10s-auxtek-t003.dts | 159 +++++++++++++++++++++++++++
 2 files changed, 160 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun5i-a10s-auxtek-t003.dts
arch/arm/boot/dts/Makefile +1 -0
index 151a413..95daf91 100644
@@ -563,6 +563,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \
 	sun4i-a10-olinuxino-lime.dtb \
 	sun4i-a10-pcduino.dtb
 dtb-$(CONFIG_MACH_SUN5I) += \
+	sun5i-a10s-auxtek-t003.dtb \
 	sun5i-a10s-auxtek-t004.dtb \
 	sun5i-a10s-mk802.dtb \
 	sun5i-a10s-olinuxino-micro.dtb \
arch/arm/boot/dts/sun5i-a10s-auxtek-t003.dts new file +159 -0

159 lines not on this page · raw message

Signature · 1 line
2.4.3
#1 lore raw

PATCH 2/3 ARM: dts: sun6i: Turn on gmac on Colombus

We've everything we need to support the gmac on Colombus, turn it on.

---
 arch/arm/boot/dts/sun6i-a31-colombus.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/sun6i-a31-colombus.dts +12 -0
index 0cf9926..0d0b6f2 100644
@@ -66,6 +66,18 @@
 	status = "okay";
 };
 
+&gmac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&gmac_pins_rgmii_a>;
+	phy = <&phy1>;
+	phy-mode = "rgmii";
+	status = "okay";
+
+	phy1: ethernet-phy at 1 {
+		reg = <1>;
+	};
+};
+
 &i2c0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&i2c0_pins_a>;
Signature · 1 line
2.4.3
#2 lore raw

PATCH 2/3 ARM: dts: sun6i: Turn on gmac on Colombus

Quoted 3 lines · Hans de Goede

We've everything we need to support the gmac on Colombus, turn it on.

I recall that the phy was powered by one of the AXP221 regulators, does it require some additional stuff (like a recent u-boot), or does it just work and my memory is bad :) ?

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/20150819/03e65392/attachment.sig>
#3 lore raw

[linux-sunxi] Re: [PATCH 2/3] ARM: dts: sun6i: Turn on gmac on Colombus

Quoted 8 lines · Maxime Ripard
Quoted 3 lines · Hans de Goede

We've everything we need to support the gmac on Colombus, turn it on.

I recall that the phy was powered by one of the AXP221 regulators, does it require some additional stuff (like a recent u-boot), or does it just work and my memory is bad :) ?

I sort of remember that as well.

FYI i have a patch to add axp221.dtsi, though I haven't converted the hummingbird dts yet.

ChenYu

#4 lore raw

PATCH 2/3 ARM: dts: sun6i: Turn on gmac on Colombus

In reply to Maxime Ripard

Hi,

Quoted 8 lines · Maxime Ripard
Quoted 3 lines · Hans de Goede

We've everything we need to support the gmac on Colombus, turn it on.

I recall that the phy was powered by one of the AXP221 regulators, does it require some additional stuff (like a recent u-boot), or does it just work and my memory is bad :) ?

I think it just works, it MAY be connected to aldo1 but according to the git history for the u-boot defconfig that one is used for wifi not for the gmac, and we do not enable any other "spare" regulators in the u-boot config.

I do not have any schematics, so no way to say for sure.

I can confirm that the GMAC work fine with the latest u-boot master. Looking in the history we've always enabled ALDO1 on the Colombus in upstream u-boot, so this should all just work.

Regards,

Hans

#5 lore raw

[linux-sunxi] Re: [PATCH 2/3] ARM: dts: sun6i: Turn on gmac on Colombus

Quoted 21 lines · Hans de Goede

Hi,

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

We've everything we need to support the gmac on Colombus, turn it on.

I recall that the phy was powered by one of the AXP221 regulators, does it require some additional stuff (like a recent u-boot), or does it just work and my memory is bad :) ?

I think it just works, it MAY be connected to aldo1 but according to the git history for the u-boot defconfig that one is used for wifi not for the gmac, and we do not enable any other "spare" regulators in the u-boot config.

Quoted 5 lines

I do not have any schematics, so no way to say for sure.

I can confirm that the GMAC work fine with the latest u-boot master. Looking in the history we've always enabled ALDO1 on the Colombus in upstream u-boot, so this should all just work.

Could you test it with ALDO1 disabled in U-boot? That should give us an answer.

ChenYu

#6 lore raw

PATCH 2/3 ARM: dts: sun6i: Turn on gmac on Colombus

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

Hi,

Quoted 8 lines · Maxime Ripard
Quoted 3 lines · Hans de Goede

We've everything we need to support the gmac on Colombus, turn it on.

I recall that the phy was powered by one of the AXP221 regulators, does it require some additional stuff (like a recent u-boot), or does it just work and my memory is bad :) ?

I think it just works, it MAY be connected to aldo1 but according to the git history for the u-boot defconfig that one is used for wifi not for the gmac, and we do not enable any other "spare" regulators in the u-boot config.

Quoted 5 lines

I do not have any schematics, so no way to say for sure.

I can confirm that the GMAC work fine with the latest u-boot master. Looking in the history we've always enabled ALDO1 on the Colombus in upstream u-boot, so this should all just work.

Except that if it is the case, the DT was working fine with the stock bootloader, and it doesn't anymore, while we have no way to upgrade 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/20150821/844b98f9/attachment.sig>
#7 lore raw

PATCH 2/3 ARM: dts: sun6i: Turn on gmac on Colombus

Hi,

Quoted 20 lines · Maxime Ripard
Quoted 19 lines · Hans de Goede

Hi,

Quoted 8 lines · Maxime Ripard
Quoted 3 lines · Hans de Goede

We've everything we need to support the gmac on Colombus, turn it on.

I recall that the phy was powered by one of the AXP221 regulators, does it require some additional stuff (like a recent u-boot), or does it just work and my memory is bad :) ?

I think it just works, it MAY be connected to aldo1 but according to the git history for the u-boot defconfig that one is used for wifi not for the gmac, and we do not enable any other "spare" regulators in the u-boot config.

I do not have any schematics, so no way to say for sure.

Quoted 7 lines
Quoted 3 lines

I can confirm that the GMAC work fine with the latest u-boot master. Looking in the history we've always enabled ALDO1 on the Colombus in upstream u-boot, so this should all just work.

Except that if it is the case, the DT was working fine with the stock bootloader, and it doesn't anymore, while we have no way to upgrade it.

Ok, I've finally made some time to test this, the gmac works fine with aldo1 disabled, so I believe this patch can be merged as is.

Regards,

Hans

#8 lore raw

PATCH 3/3 ARM: dts: sun6i: Columbus: Add i2c controller for communicating with the LCD

In reply to Hans de Goede

The Colombus development kit uses an optional 2048x1536 edp panel using an anx9804 parallel lcd to edp convertor. The anx9804 chip is controlled via an i2c bus which is connected to 2 regular gpio pins.

---
 arch/arm/boot/dts/sun6i-a31-colombus.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/boot/dts/sun6i-a31-colombus.dts +17 -0
index 0d0b6f2..0e51249 100644
@@ -60,6 +60,16 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	i2c_lcd: i2c at 0 {
+		/* The lcd panel i2c interface is hooked up via gpios */
+		compatible = "i2c-gpio";
+		pinctrl-names = "default";
+		pinctrl-0 = <&i2c_lcd_pins>;
+		gpios = <&pio 0 23 GPIO_ACTIVE_HIGH>, /* PA23, sda */
+			<&pio 0 24 GPIO_ACTIVE_HIGH>; /* PA24, scl */
+		i2c-gpio,delay-us = <5>;
+	};
 };
 
 &ehci1 {
@@ -124,6 +134,13 @@
 		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
 		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
 	};
+
+	i2c_lcd_pins: i2c_lcd_pin at 0 {
+		allwinner,pins = "PA23", "PA24";
+		allwinner,function = "gpio_out";
+		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+	};
 };
 
 &reg_usb2_vbus {
Signature · 1 line
2.4.3
#9 lore raw

PATCH 3/3 ARM: dts: sun6i: Columbus: Add i2c controller for communicating with the LCD

Quoted 5 lines · Hans de Goede

The Colombus development kit uses an optional 2048x1536 edp panel using an anx9804 parallel lcd to edp convertor. The anx9804 chip is controlled via an i2c bus which is connected to 2 regular gpio pins.

Fixed the checkpatch warning (convertor vs converter) and queued, 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/20150819/67817c7d/attachment.sig>
#10 lore raw

PATCH 1/3 ARM: dts: sun5i: Add support for the Auxtek-T003 HDMI stick

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

The Auxtek-T003 HDMI stick is an A10s based HDMI stick with USB wifi, and composite video out support.

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/20150824/ece8275d/attachment.sig>