* [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
@ 2019-03-27 0:18 ` megous via linux-sunxi
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 via linux-sunxi
` (5 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
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-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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 via linux-sunxi
@ 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
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-27 0:18 ` [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth megous via linux-sunxi
@ 2019-03-27 0:18 ` megous via linux-sunxi
[not found] ` <20190327001843.2420-3-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-27 0:18 ` [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4 megous via linux-sunxi
` (4 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
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-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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* [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-27 0:18 ` [PATCH 1/7] ARM: dts: sun8i: tbs-a711: Enable bluetooth megous via linux-sunxi
2019-03-27 0:18 ` [PATCH 2/7] ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer megous via linux-sunxi
@ 2019-03-27 0:18 ` megous via linux-sunxi
[not found] ` <20190327001843.2420-4-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-27 0:18 ` [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins megous via linux-sunxi
` (3 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
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-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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* [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
` (2 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 3/7] ARM: dts: sun8i: a83t: Add nodes for UART2-UART4 megous via linux-sunxi
@ 2019-03-27 0:18 ` megous via linux-sunxi
[not found] ` <20190327001843.2420-5-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
2019-03-27 0:18 ` [PATCH 5/7] gnss: Add u-blox,neo-6m compatible megous via linux-sunxi
` (2 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
Add pin definitions for UART2 PB pins. These are used on TBS-A711
tablet.
Signed-off-by: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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* [PATCH 5/7] gnss: Add u-blox,neo-6m compatible
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
` (3 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 4/7] ARM: dts: sun8i: a83t: Add UART2 PB pins megous via linux-sunxi
@ 2019-03-27 0:18 ` megous via linux-sunxi
2019-03-27 0:18 ` [PATCH 6/7] dt-bindings: " megous via linux-sunxi
2019-03-27 0:18 ` [PATCH 7/7] ARM: dts: sun8i: tbs-a711: Enable UART2 (for NEO-6M GPS module) megous via linux-sunxi
6 siblings, 0 replies; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
Add compatible for u-blox NEO-6M GPS module.
Signed-off-by: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
` (4 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 5/7] gnss: Add u-blox,neo-6m compatible megous via linux-sunxi
@ 2019-03-27 0:18 ` megous via linux-sunxi
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 via linux-sunxi
6 siblings, 1 reply; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
Add compatible for u-blox NEO-6M GPS module.
Signed-off-by: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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 via linux-sunxi
@ 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, 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)
[not found] ` <20190327001843.2420-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
` (5 preceding siblings ...)
2019-03-27 0:18 ` [PATCH 6/7] dt-bindings: " megous via linux-sunxi
@ 2019-03-27 0:18 ` megous via linux-sunxi
6 siblings, 0 replies; 14+ messages in thread
From: megous via linux-sunxi @ 2019-03-27 0:18 UTC (permalink / raw)
To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, wens-jdAy2FN1RRM,
robh-DgEjT+Ai2ygdnm+yROfE0A, johan-DgEjT+Ai2ygdnm+yROfE0A,
mark.rutland-5wv7dgnIgG8
Cc: Ondrej Jirman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw
From: Ondrej Jirman <megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
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-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org>
---
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