* [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
@ 2019-03-27 0:18 ` megous
2019-04-01 8:00 ` Maxime Ripard
2019-03-27 0:18 ` [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer megous
` (5 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
TBS A711 tablet has a bcm20702a1 bluetooth chip (part of AP6210 WiFi/BT
module) connected to UART1. Add node for the blutooth chip.
The driver needs brcm/BCM20702A1.hcd firmware file to run.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 1e840ab5a541..6aae70c89a1e 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -406,7 +406,20 @@
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+ uart-has-rtscts;
status = "okay";
+
+ bluetooth {
+ compatible = "brcm,bcm20702a1";
+ clocks = <&ac100_rtc 1>;
+ clock-names = "lpo";
+ vbat-supply = <®_vbat>;
+ vddio-supply = <®_dldo1>;
+ device-wakeup-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
+ host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
+ shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ max-speed = <1500000>;
+ };
};
&usb_otg {
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth
2019-03-27 0:18 ` [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth megous
@ 2019-04-01 8:00 ` Maxime Ripard
0 siblings, 0 replies; 14+ messages in thread
From: Maxime Ripard @ 2019-04-01 8:00 UTC (permalink / raw)
To: megous
Cc: wens, robh, johan, mark.rutland, devicetree, linux-arm-kernel,
linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
Hi,
On Wed, Mar 27, 2019 at 01:18:37AM +0100, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
>
> TBS A711 tablet has a bcm20702a1 bluetooth chip (part of AP6210 WiFi/BT
> module) connected to UART1. Add node for the blutooth chip.
>
> The driver needs brcm/BCM20702A1.hcd firmware file to run.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
Applied, thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
2019-03-27 0:18 ` [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth megous
@ 2019-03-27 0:18 ` megous
2019-04-01 6:30 ` Maxime Ripard
2019-03-27 0:18 ` [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4 megous
` (4 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable
both the I2C1 bus and add the accelerometer device to it.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 6aae70c89a1e..347fc0c31fa4 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -156,6 +156,21 @@
status = "okay";
};
+&i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_pins>;
+ clock-frequency = <400000>;
+ status = "okay";
+
+ /* Accelerometer */
+ bma250@18 {
+ compatible = "bosch,bma250";
+ reg = <0x18>;
+ interrupt-parent = <&pio>;
+ interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */
+ };
+};
+
&mmc0 {
vmmc-supply = <®_dcdc1>;
pinctrl-names = "default";
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer
2019-03-27 0:18 ` [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer megous
@ 2019-04-01 6:30 ` Maxime Ripard
2019-04-01 11:34 ` Ondřej Jirman
0 siblings, 1 reply; 14+ messages in thread
From: Maxime Ripard @ 2019-04-01 6:30 UTC (permalink / raw)
To: megous
Cc: wens, robh, johan, mark.rutland, devicetree, linux-arm-kernel,
linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
Hi,
On Wed, Mar 27, 2019 at 01:18:38AM +0100, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
>
> A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable
> both the I2C1 bus and add the accelerometer device to it.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> ---
> arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> index 6aae70c89a1e..347fc0c31fa4 100644
> --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> @@ -156,6 +156,21 @@
> status = "okay";
> };
>
> +&i2c1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c1_pins>;
It's there already
> + clock-frequency = <400000>;
> + status = "okay";
> +
> + /* Accelerometer */
> + bma250@18 {
The node name should be the class of the device, not its model, so
something like accelerometer.
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer
2019-04-01 6:30 ` Maxime Ripard
@ 2019-04-01 11:34 ` Ondřej Jirman
0 siblings, 0 replies; 14+ messages in thread
From: Ondřej Jirman @ 2019-04-01 11:34 UTC (permalink / raw)
To: Maxime Ripard
Cc: wens, robh, johan, mark.rutland, devicetree, linux-arm-kernel,
linux-kernel, linux-sunxi
Hello Maxime,
On Mon, Apr 01, 2019 at 08:30:49AM +0200, Maxime Ripard wrote:
> Hi,
>
> On Wed, Mar 27, 2019 at 01:18:38AM +0100, megous@megous.com wrote:
> > From: Ondrej Jirman <megous@megous.com>
> >
> > A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable
> > both the I2C1 bus and add the accelerometer device to it.
> >
> > Signed-off-by: Ondrej Jirman <megous@megous.com>
> > ---
> > arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> > index 6aae70c89a1e..347fc0c31fa4 100644
> > --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> > +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
> > @@ -156,6 +156,21 @@
> > status = "okay";
> > };
> >
> > +&i2c1 {
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&i2c1_pins>;
>
> It's there already
I see, I'll drop it. Thanks.
> > + clock-frequency = <400000>;
> > + status = "okay";
> > +
> > + /* Accelerometer */
> > + bma250@18 {
>
> The node name should be the class of the device, not its model, so
> something like accelerometer.
I'll rename this.
thank you,
Ondrej
> Maxime
>
> --
> Maxime Ripard, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
2019-03-27 0:18 ` [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth megous
2019-03-27 0:18 ` [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer megous
@ 2019-03-27 0:18 ` megous
2019-04-01 8:00 ` Maxime Ripard
2019-03-27 0:18 ` [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins megous
` (3 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
A83T has 5 UART interfaces, but only the first two have their nodes
defined in sun8i-a83t.dtsi. Add nodes for the missing interfaces.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 33 +++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index fcb7ef5ce2df..e5c39eef1c29 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -873,6 +873,39 @@
status = "disabled";
};
+ uart2: serial@1c28800 {
+ compatible = "snps,dw-apb-uart";
+ reg = <0x01c28800 0x400>;
+ interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+ reg-shift = <2>;
+ reg-io-width = <4>;
+ clocks = <&ccu CLK_BUS_UART2>;
+ resets = <&ccu RST_BUS_UART2>;
+ status = "disabled";
+ };
+
+ uart3: serial@1c28c00 {
+ compatible = "snps,dw-apb-uart";
+ reg = <0x01c28c00 0x400>;
+ interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+ reg-shift = <2>;
+ reg-io-width = <4>;
+ clocks = <&ccu CLK_BUS_UART3>;
+ resets = <&ccu RST_BUS_UART3>;
+ status = "disabled";
+ };
+
+ uart4: serial@1c29000 {
+ compatible = "snps,dw-apb-uart";
+ reg = <0x01c29000 0x400>;
+ interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+ reg-shift = <2>;
+ reg-io-width = <4>;
+ clocks = <&ccu CLK_BUS_UART4>;
+ resets = <&ccu RST_BUS_UART4>;
+ status = "disabled";
+ };
+
i2c0: i2c@1c2ac00 {
compatible = "allwinner,sun8i-a83t-i2c",
"allwinner,sun6i-a31-i2c";
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4
2019-03-27 0:18 ` [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4 megous
@ 2019-04-01 8:00 ` Maxime Ripard
0 siblings, 0 replies; 14+ messages in thread
From: Maxime Ripard @ 2019-04-01 8:00 UTC (permalink / raw)
To: megous
Cc: wens, robh, johan, mark.rutland, devicetree, linux-arm-kernel,
linux-kernel, linux-sunxi
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
On Wed, Mar 27, 2019 at 01:18:39AM +0100, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
>
> A83T has 5 UART interfaces, but only the first two have their nodes
> defined in sun8i-a83t.dtsi. Add nodes for the missing interfaces.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
Applied, thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
` (2 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4 megous
@ 2019-03-27 0:18 ` megous
2019-03-28 8:01 ` [linux-sunxi] " Chen-Yu Tsai
2019-03-27 0:18 ` [PATCH 5/7] gnss: Add u-blox,neo-6m compatible megous
` (2 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
Add pin definitions for UART2 PB pins. These are used on TBS-A711
tablet.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
index e5c39eef1c29..921cfb30ab46 100644
--- a/arch/arm/boot/dts/sun8i-a83t.dtsi
+++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
@@ -768,6 +768,11 @@
pins = "PG8", "PG9";
function = "uart1";
};
+
+ uart2_pb_pins: uart2-pb-pins {
+ pins = "PB0", "PB1";
+ function = "uart2";
+ };
};
timer@1c20c00 {
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [linux-sunxi] [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins
2019-03-27 0:18 ` [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins megous
@ 2019-03-28 8:01 ` Chen-Yu Tsai
0 siblings, 0 replies; 14+ messages in thread
From: Chen-Yu Tsai @ 2019-03-28 8:01 UTC (permalink / raw)
To: Ondřej Jirman
Cc: Maxime Ripard, Rob Herring, johan, Mark Rutland, devicetree,
linux-arm-kernel, linux-kernel, linux-sunxi
On Wed, Mar 27, 2019 at 8:18 AM megous via linux-sunxi
<linux-sunxi@googlegroups.com> wrote:
>
> From: Ondrej Jirman <megous@megous.com>
>
> Add pin definitions for UART2 PB pins. These are used on TBS-A711
> tablet.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> ---
> arch/arm/boot/dts/sun8i-a83t.dtsi | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi
> index e5c39eef1c29..921cfb30ab46 100644
> --- a/arch/arm/boot/dts/sun8i-a83t.dtsi
> +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi
> @@ -768,6 +768,11 @@
> pins = "PG8", "PG9";
> function = "uart1";
> };
> +
Please add "/omit-if-no-ref/" before the pin definitions.
See
https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?h=sunxi/dt-for-5.2&id=73b670023327a014688c2d5309a43604cd553f1e
for such an example. This is a new policy.
ChenYu
> + uart2_pb_pins: uart2-pb-pins {
> + pins = "PB0", "PB1";
> + function = "uart2";
> + };
> };
>
> timer@1c20c00 {
> --
> 2.21.0
>
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 5/7] gnss: Add u-blox,neo-6m compatible
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
` (3 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins megous
@ 2019-03-27 0:18 ` megous
2019-03-27 0:18 ` [PATCH 6/7] dt-bindings: " megous
2019-03-27 0:18 ` [PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module) megous
6 siblings, 0 replies; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
Add compatible for u-blox NEO-6M GPS module.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
drivers/gnss/ubx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c
index 12568aebb7f6..1ada2fad1d4e 100644
--- a/drivers/gnss/ubx.c
+++ b/drivers/gnss/ubx.c
@@ -132,6 +132,7 @@ static void ubx_remove(struct serdev_device *serdev)
static const struct of_device_id ubx_of_match[] = {
{ .compatible = "u-blox,neo-8" },
{ .compatible = "u-blox,neo-m8" },
+ { .compatible = "u-blox,neo-6m" },
{},
};
MODULE_DEVICE_TABLE(of, ubx_of_match);
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 6/7] dt-bindings: gnss: Add u-blox,neo-6m compatible
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
` (4 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 5/7] gnss: Add u-blox,neo-6m compatible megous
@ 2019-03-27 0:18 ` megous
2019-03-31 6:42 ` Rob Herring
2019-03-27 0:18 ` [PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module) megous
6 siblings, 1 reply; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
Add compatible for u-blox NEO-6M GPS module.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
Documentation/devicetree/bindings/gnss/u-blox.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt b/Documentation/devicetree/bindings/gnss/u-blox.txt
index e475659cb85f..7cdefd058fe0 100644
--- a/Documentation/devicetree/bindings/gnss/u-blox.txt
+++ b/Documentation/devicetree/bindings/gnss/u-blox.txt
@@ -9,6 +9,7 @@ Required properties:
- compatible : Must be one of
+ "u-blox,neo-6m"
"u-blox,neo-8"
"u-blox,neo-m8"
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 6/7] dt-bindings: gnss: Add u-blox,neo-6m compatible
2019-03-27 0:18 ` [PATCH 6/7] dt-bindings: " megous
@ 2019-03-31 6:42 ` Rob Herring
0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2019-03-31 6:42 UTC (permalink / raw)
To: megous
Cc: maxime.ripard, wens, robh, johan, mark.rutland, Ondrej Jirman,
devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
On Wed, 27 Mar 2019 01:18:42 +0100, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
>
> Add compatible for u-blox NEO-6M GPS module.
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> ---
> Documentation/devicetree/bindings/gnss/u-blox.txt | 1 +
> 1 file changed, 1 insertion(+)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module)
2019-03-27 0:18 [PATCH 0/7] Add bluetooth, gps and accelerometer to TBS A711 megous
` (5 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 6/7] dt-bindings: " megous
@ 2019-03-27 0:18 ` megous
6 siblings, 0 replies; 14+ messages in thread
From: megous @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard, wens, robh, johan, mark.rutland
Cc: Ondrej Jirman, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
From: Ondrej Jirman <megous@megous.com>
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>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 347fc0c31fa4..f9e7f5d3eff5 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -98,6 +98,13 @@
};
};
+ 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";
@@ -437,6 +444,20 @@
};
};
+&uart2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pb_pins>;
+ status = "okay";
+
+ gnss {
+ compatible = "u-blox,neo-6m";
+
+ v-bckp-supply = <®_rtc_ldo>;
+ vcc-supply = <®_gps>;
+ current-speed = <9600>;
+ };
+};
+
&usb_otg {
dr_mode = "otg";
status = "okay";
--
2.21.0
^ permalink raw reply related [flat|nested] 14+ messages in thread