Skip to contentSkip to conversation

ARM: dts: sun5i: Utoo P66 add uart node and aliases

PATCH New Hans de Goede 1 participant 2 messages Apr 23, 2015

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

PATCH 1/1 ARM: dts: sun5i: Utoo P66 add uart node and aliases

Like on most non devel-boards it is still possible to get an uart on the Utoo P66 tablet by soldering some wires to the right pads on the PCB, add support for this to the dts, like we do with all sunxi boards.

---
 arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts +14 -0
index 00bdf28..bb8d61a 100644
@@ -57,6 +57,14 @@
 	model = "Utoo P66";
 	compatible = "utoo,p66", "allwinner,sun5i-a13";
 
+	aliases {
+		serial0 = &uart1;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
 	i2c_lcd: i2c at 0 {
 		/* The lcd panel i2c interface is hooked up via gpios */
 		compatible = "i2c-gpio";
@@ -238,6 +246,12 @@
 	status = "okay";
 };
 
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart1_pins_b>;
+	status = "okay";
+};
+
 &usb_otg {
 	dr_mode = "otg";
 	status = "okay";
Signature · 1 line
2.3.5
#1 lore raw

PATCH 1/1 ARM: dts: sun5i: Utoo P66 add uart node and aliases

Hi,

Quoted 5 lines · Hans de Goede

Like on most non devel-boards it is still possible to get an uart on the Utoo P66 tablet by soldering some wires to the right pads on the PCB, add support for this to the dts, like we do with all sunxi boards.

This one is no good, the uart cannot be used as it shares a pin with the lcd-panel, self-NACK.

Regards,

Hans

Quoted 37 lines
---
  arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts +14 -0
index 00bdf28..bb8d61a 100644
@@ -57,6 +57,14 @@
  	model = "Utoo P66";
  	compatible = "utoo,p66", "allwinner,sun5i-a13";
 
+	aliases {
+		serial0 = &uart1;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
  	i2c_lcd: i2c at 0 {
  		/* The lcd panel i2c interface is hooked up via gpios */
  		compatible = "i2c-gpio";
@@ -238,6 +246,12 @@
  	status = "okay";
  };
 
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart1_pins_b>;
+	status = "okay";
+};
+
  &usb_otg {
  	dr_mode = "otg";
  	status = "okay";