ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module)
authorOndrej Jirman <megous@megous.com>
Mon, 1 Apr 2019 11:56:16 +0000 (13:56 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 5 Apr 2019 15:06:31 +0000 (17:06 +0200)
TBS A711 tablet contains u-blox NEO-6M module connected to UART2.
Enable UART2 to gain access to the module from userspace.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

index 066d95a7cb7830999a0b2b36b102dabb0c8d84ca..87c04d4b6ba3145f645edc223bbfe04acea2808a 100644 (file)
                };
        };
 
+       reg_gps: reg-gps {
+               compatible = "regulator-fixed";
+               regulator-name = "gps";
+               regulator-min-microvolt = <3000000>;
+               regulator-max-microvolt = <3000000>;
+       };
+
        reg_vbat: reg-vbat {
                compatible = "regulator-fixed";
                regulator-name = "vbat";
        };
 };
 
+&uart2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart2_pb_pins>;
+       status = "okay";
+
+       gnss {
+               compatible = "u-blox,neo-6m";
+
+               v-bckp-supply = <&reg_rtc_ldo>;
+               vcc-supply = <&reg_gps>;
+               current-speed = <9600>;
+       };
+};
+
 &usb_otg {
        dr_mode = "otg";
        status = "okay";