mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
sunxi-6.10: Add megous patches
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
From 022825af6d7cd605691a71d320c3176153adeb08 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Tue, 14 Nov 2017 02:47:51 +0100
|
||||
Subject: ARM: dts: axp813: Add charger LED
|
||||
|
||||
PMIC supports charging status indication via a LED. Add support
|
||||
for it.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/axp81x.dtsi | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/axp81x.dtsi b/arch/arm/boot/dts/allwinner/axp81x.dtsi
|
||||
index ebaf1c3ce8db..a4b1be159b02 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/axp81x.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/axp81x.dtsi
|
||||
@@ -161,4 +161,9 @@ reg_drivevbus: drivevbus {
|
||||
usb_power_supply: usb-power {
|
||||
compatible = "x-powers,axp813-usb-power-supply";
|
||||
};
|
||||
+
|
||||
+ charger_led: charger-led {
|
||||
+ compatible = "x-powers,axp813-charger-led";
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
From 8bc6a1bfb39350a2ea451c6108e92a79b1eec29b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sun, 23 Feb 2020 01:23:10 +0100
|
||||
Subject: ARM: dts: sun5i: Add PocketBook Touch Lux 3 display/ctp support
|
||||
|
||||
Add support for display and touchscreen via out-of-tree drivers.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
.../sun5i-a13-pocketbook-touch-lux-3.dts | 105 +++++++++++++++++-
|
||||
1 file changed, 103 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
|
||||
index d60407772e5d..db28ab621804 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
|
||||
@@ -62,6 +62,11 @@ key-left {
|
||||
};
|
||||
};
|
||||
|
||||
+ regulator-eink {
|
||||
+ compatible = "custom,reg-userspace-consumer";
|
||||
+ controlled-supply = <&tp65185x>;
|
||||
+ };
|
||||
+
|
||||
reg_1v8: regulator-1v8 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd-1v8-nor-ctp";
|
||||
@@ -79,7 +84,6 @@ reg_1v8_nor: regulator-nor {
|
||||
gpio = <&pio 2 14 GPIO_ACTIVE_HIGH>;
|
||||
enable-active-high;
|
||||
vin-supply = <®_1v8>;
|
||||
- regulator-always-on;
|
||||
};
|
||||
|
||||
reg_1v8_ctp: regulator-ctp {
|
||||
@@ -112,6 +116,7 @@ &ehci0 {
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
+ //XXX: bsp has pullup on PB0/PB1 pins enabled, but it works without it
|
||||
|
||||
axp209: pmic@34 {
|
||||
reg = <0x34>;
|
||||
@@ -128,12 +133,42 @@ pcf8563: rtc@51 {
|
||||
compatible = "nxp,pcf8563";
|
||||
reg = <0x51>;
|
||||
};
|
||||
+
|
||||
+ // hacky PMIC driver for eInk display
|
||||
+ tp65185x: regulator@68 {
|
||||
+ compatible = "tp,tp65185x";
|
||||
+ reg = <0x68>;
|
||||
+
|
||||
+ regulator-min-microvolt = <3120000>;
|
||||
+ regulator-max-microvolt = <3120000>;
|
||||
+ regulator-name = "eink-vcom";
|
||||
+
|
||||
+ //XXX: we don't use interrupts in the driver right now
|
||||
+ //interrupt-parent = <&pio>;
|
||||
+ //interrupts = <1 10 IRQ_TYPE_LEVEL_LOW>; /* PB10 */
|
||||
+
|
||||
+ wakeup-gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */
|
||||
+ powerup-gpios = <&pio 4 7 GPIO_ACTIVE_HIGH>; /* PE7 */
|
||||
+ vcom-gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */
|
||||
+ //XXX: not a pullup on BSP (might have an external resistor)
|
||||
+ powergood-gpios = <&pio 4 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PE6 */
|
||||
+ };
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
|
||||
- /* Touchpanel is connected here. */
|
||||
+ touchpanel@24 {
|
||||
+ compatible = "cypress,cyttsp4_i2c_adapter";
|
||||
+ reg = <0x24>;
|
||||
+
|
||||
+ interrupt-parent = <&pio>;
|
||||
+ interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; /* PG11 */
|
||||
+
|
||||
+ vdd-supply = <®_1v8_ctp>;
|
||||
+ power-gpios = <&pio 4 5 GPIO_ACTIVE_LOW>; /* PE5 */
|
||||
+ reset-gpios = <&pio 1 3 GPIO_ACTIVE_LOW>; /* PB3 */
|
||||
+ };
|
||||
};
|
||||
|
||||
&lradc {
|
||||
@@ -179,6 +214,20 @@ &otg_sram {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&pio {
|
||||
+ eink_pins_active: eink-pins-lcd {
|
||||
+ pins = "PD3", "PD4", "PD5", "PD6", "PD7", "PD10", "PD11", "PD12",
|
||||
+ "PD13", "PD15", "PD20", "PD21", "PD22", "PD23", "PD24";
|
||||
+ function = "lcd0";
|
||||
+ };
|
||||
+
|
||||
+ eink_pins_idle: eink-pins-gpio {
|
||||
+ pins = "PD3", "PD4", "PD5", "PD6", "PD7", "PD10", "PD11", "PD12",
|
||||
+ "PD13", "PD15", "PD20", "PD21", "PD22", "PD23", "PD24";
|
||||
+ function = "gpio_out";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&pwm {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm0_pin>;
|
||||
@@ -219,6 +268,55 @@ ®_ldo3 {
|
||||
regulator-ramp-delay = <1600>;
|
||||
};
|
||||
|
||||
+&soc {
|
||||
+ display-controller@1c0c000 {
|
||||
+ pinctrl-names = "idle", "active";
|
||||
+ pinctrl-0 = <&eink_pins_idle>;
|
||||
+ pinctrl-1 = <&eink_pins_active>;
|
||||
+
|
||||
+ all-gpios = <&pio 3 3 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 4 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 5 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 6 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 7 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 10 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 11 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 12 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 13 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 15 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 20 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 21 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 22 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 23 GPIO_ACTIVE_HIGH>,
|
||||
+ <&pio 3 24 GPIO_ACTIVE_HIGH>;
|
||||
+
|
||||
+ compatible = "custom,pocketbook-touch-lux-3-tcon0-ed060xd4-display";
|
||||
+ reg = <0x01c0c000 0x1000>, // TCON0 regs
|
||||
+ <0x01e60000 0x10000>; // DEBE regs
|
||||
+
|
||||
+ interrupts = <44>; // TCON interrupt
|
||||
+
|
||||
+ resets = <&ccu RST_LCD>, <&ccu RST_DE_BE>;
|
||||
+ reset-names = "tcon", "be";
|
||||
+
|
||||
+ clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_TCON_CH0>,
|
||||
+ <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
|
||||
+ <&ccu CLK_DRAM_DE_BE>;
|
||||
+ clock-names = "tcon_bus", "tcon_mod",
|
||||
+ "be_bus", "be_mod",
|
||||
+ "be_ram";
|
||||
+
|
||||
+ assigned-clocks = <&ccu CLK_DE_BE>;
|
||||
+ assigned-clock-rates = <300000000>;
|
||||
+
|
||||
+ interconnects = <&mbus 18>;
|
||||
+ interconnect-names = "dma-mem";
|
||||
+
|
||||
+ panel-supply = <&tp65185x>;
|
||||
+ control-device-name = "eink-panel";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&spi2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spi2_pe_pins>, <&spi2_cs0_pe_pin>;
|
||||
@@ -230,6 +328,7 @@ epd_flash: flash@0 {
|
||||
compatible = "macronix,mx25u4033", "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <4000000>;
|
||||
+ vdd-supply = <®_1v8_nor>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -253,6 +352,8 @@ &usb_power_supply {
|
||||
};
|
||||
|
||||
&usbphy {
|
||||
+ //XXX: might not work, need to test
|
||||
+ usb0_vbus_det-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
|
||||
usb1_vbus-supply = <®_ldo3>;
|
||||
status = "okay";
|
||||
};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 54fcdf77e056758e20cff5f7e23f45bf1eff80cf Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sat, 5 Oct 2019 15:04:43 +0200
|
||||
Subject: ARM: dts: sun5i: Add soc handle
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun5i.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun5i.dtsi b/arch/arm/boot/dts/allwinner/sun5i.dtsi
|
||||
index e6836fd4b8dc..126b80f3ca70 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun5i.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun5i.dtsi
|
||||
@@ -123,7 +123,7 @@ default-pool {
|
||||
};
|
||||
};
|
||||
|
||||
- soc {
|
||||
+ soc: soc {
|
||||
compatible = "simple-bus";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From ebf6714ed4c060fc42d78b0945d4b13b785e80f7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Thu, 25 Jun 2020 01:57:27 +0200
|
||||
Subject: ARM: dts: sun5i-a13-pocketbook-touch-lux-3: Add RTC clock-cells
|
||||
|
||||
This stop the driver from complaining in dmesg.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
|
||||
index db28ab621804..ee81db68e546 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-touch-lux-3.dts
|
||||
@@ -132,6 +132,7 @@ &i2c1 {
|
||||
pcf8563: rtc@51 {
|
||||
compatible = "nxp,pcf8563";
|
||||
reg = <0x51>;
|
||||
+ #clock-cells = <0>;
|
||||
};
|
||||
|
||||
// hacky PMIC driver for eInk display
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 2a7ede988f5cd049f6d5bda08c53e600b1c5acbf Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Holland <samuel@sholland.org>
|
||||
Date: Sat, 3 Apr 2021 20:53:26 -0500
|
||||
Subject: ARM: dts: sun8i: a83t: Add MBUS node
|
||||
|
||||
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 15 +++++++++++++++
|
||||
1 file changed, 15 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index ef62ced26684..04b33b42b414 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -1056,6 +1056,21 @@ mdio: mdio {
|
||||
};
|
||||
};
|
||||
|
||||
+ mbus: dram-controller@1c62000 {
|
||||
+ compatible = "allwinner,sun8i-a83t-mbus";
|
||||
+ reg = <0x01c62000 0x1000>,
|
||||
+ <0x01c63000 0x1000>;
|
||||
+ reg-names = "mbus", "dram";
|
||||
+ clocks = <&ccu CLK_BUS_DRAM>,
|
||||
+ <&ccu CLK_DRAM>,
|
||||
+ <&ccu CLK_MBUS>;
|
||||
+ clock-names = "apb", "dram", "mbus";
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ dma-ranges = <0x00000000 0x40000000 0xc0000000>;
|
||||
+ #interconnect-cells = <1>;
|
||||
+ };
|
||||
+
|
||||
gic: interrupt-controller@1c81000 {
|
||||
compatible = "arm,gic-400";
|
||||
reg = <0x01c81000 0x1000>,
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From 77eed4b2f47883d2330f10bb19c6a5c11987497c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Mon, 9 Sep 2019 06:02:10 +0200
|
||||
Subject: ARM: dts: sun8i-a83t: Add cedrus video codec support to A83T
|
||||
[untested]
|
||||
|
||||
Not tested at all.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index addf0cb0f465..ed3d8e692d84 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -441,6 +441,16 @@ syscon: syscon@1c00000 {
|
||||
reg = <0x01c00000 0x1000>;
|
||||
};
|
||||
|
||||
+ video-codec@01c0e000 {
|
||||
+ compatible = "allwinner,sun8i-a83t-video-engine";
|
||||
+ reg = <0x01c0e000 0x1000>;
|
||||
+ clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
|
||||
+ <&ccu CLK_DRAM_VE>;
|
||||
+ clock-names = "ahb", "mod", "ram";
|
||||
+ resets = <&ccu RST_BUS_VE>;
|
||||
+ interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
|
||||
+ };
|
||||
+
|
||||
dma: dma-controller@1c02000 {
|
||||
compatible = "allwinner,sun8i-a83t-dma";
|
||||
reg = <0x01c02000 0x1000>;
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
From 45c38d0b6350c244ba1d3ddfc589fcf87200d0e6 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
||||
Date: Sun, 9 May 2021 11:32:57 +0200
|
||||
Subject: ARM: dts: sun8i: a83t: Add hdmi sound card
|
||||
|
||||
A83t support HDMI audio. Add a sound card node for it.
|
||||
|
||||
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 15 +++++++++++++++
|
||||
1 file changed, 15 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index 026c9b1b2217..cc86d3755036 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -150,6 +150,20 @@ cpu103: cpu@103 {
|
||||
};
|
||||
};
|
||||
|
||||
+ sound_hdmi: sound_hdmi {
|
||||
+ compatible = "allwinner,sun9i-a80-hdmi-audio",
|
||||
+ "allwinner,sun8i-a83t-hdmi-audio";
|
||||
+ status = "disabled";
|
||||
+
|
||||
+ codec {
|
||||
+ sound-dai = <&hdmi>;
|
||||
+ };
|
||||
+
|
||||
+ cpu {
|
||||
+ sound-dai = <&i2s2>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
timer {
|
||||
compatible = "arm,armv7-timer";
|
||||
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
|
||||
@@ -1059,6 +1073,7 @@ csi: camera@1cb0000 {
|
||||
};
|
||||
|
||||
hdmi: hdmi@1ee0000 {
|
||||
+ #sound-dai-cells = <0>;
|
||||
compatible = "allwinner,sun8i-a83t-dw-hdmi";
|
||||
reg = <0x01ee0000 0x10000>;
|
||||
reg-io-width = <1>;
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From 7439414f92df1ca313b6d96fc1b5aab946977433 Mon Sep 17 00:00:00 2001
|
||||
From: Ondrej Jirman <megi@xff.cz>
|
||||
Date: Mon, 13 Mar 2023 06:02:27 +0100
|
||||
Subject: ARM: dts: sun8i-a83t: Add missing GPU trip point
|
||||
|
||||
Without this, thermal sensor driver fails to probe.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index 660a2e29bc68..7a5dc8a18906 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -1309,6 +1309,15 @@ gpu_thermal: gpu-thermal {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&ths 2>;
|
||||
+
|
||||
+ trips {
|
||||
+ gpu_crit: gpu-crit {
|
||||
+ /* milliCelsius */
|
||||
+ temperature = <100000>;
|
||||
+ hysteresis = <2000>;
|
||||
+ type = "critical";
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
};
|
||||
};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
From 4afe0b795a351420113f1f0dd2ab13aa15d5c8d9 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
||||
Date: Sun, 9 May 2021 11:34:43 +0200
|
||||
Subject: ARM: dts: sun8i: a83t: Enable hdmi sound card on boards with hdmi
|
||||
|
||||
Each board that has HDMI connector can also transmit audio through it.
|
||||
Enable HDMI sound card on all A83t boards with HDMI connector.
|
||||
|
||||
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3.dts | 8 ++++++++
|
||||
.../arm/boot/dts/allwinner/sun8i-a83t-cubietruck-plus.dts | 8 ++++++++
|
||||
2 files changed, 16 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3.dts
|
||||
index 32e811fa23e2..9a7117bca70d 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3.dts
|
||||
@@ -162,6 +162,10 @@ hdmi_out_con: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+&i2s2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&mdio {
|
||||
rgmii_phy: ethernet-phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
@@ -380,6 +384,10 @@ ®_sw {
|
||||
regulator-name = "vcc-ephy";
|
||||
};
|
||||
|
||||
+&sound_hdmi {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&uart0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&uart0_pb_pins>;
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-cubietruck-plus.dts
|
||||
index d5e6ddaffbce..d4d834084b12 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-cubietruck-plus.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-cubietruck-plus.dts
|
||||
@@ -197,6 +197,10 @@ hdmi_out_con: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+&i2s2 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&mdio {
|
||||
rgmii_phy: ethernet-phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
@@ -417,6 +421,10 @@ ®_sw {
|
||||
regulator-name = "vcc-wifi-io";
|
||||
};
|
||||
|
||||
+&sound_hdmi {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
&spdif {
|
||||
status = "okay";
|
||||
};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
From 0806fda6ae3778bca7b3e09e21f31940bcd9ca98 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sun, 1 Sep 2019 23:56:49 +0200
|
||||
Subject: ARM: dts: sun8i-a83t: Improve CPU OPP tables (go up to 1.8GHz)
|
||||
|
||||
This table is for the worst SoC bin, so it should work on all A83T
|
||||
bins.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 80 ++++++---------------
|
||||
1 file changed, 22 insertions(+), 58 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index 04b33b42b414..026c9b1b2217 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -210,45 +210,27 @@ opp-480000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-600000000 {
|
||||
- opp-hz = /bits/ 64 <600000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
- clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
- };
|
||||
-
|
||||
- opp-720000000 {
|
||||
- opp-hz = /bits/ 64 <720000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
- clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
- };
|
||||
-
|
||||
- opp-864000000 {
|
||||
- opp-hz = /bits/ 64 <864000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
- clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
- };
|
||||
-
|
||||
- opp-912000000 {
|
||||
- opp-hz = /bits/ 64 <912000000>;
|
||||
+ opp-1008000000 {
|
||||
+ opp-hz = /bits/ 64 <1008000000>;
|
||||
opp-microvolt = <840000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-1008000000 {
|
||||
- opp-hz = /bits/ 64 <1008000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
+ opp-1412000000 {
|
||||
+ opp-hz = /bits/ 64 <1412000000>;
|
||||
+ opp-microvolt = <920000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-1128000000 {
|
||||
- opp-hz = /bits/ 64 <1128000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
+ opp-1608000000 {
|
||||
+ opp-hz = /bits/ 64 <1608000000>;
|
||||
+ opp-microvolt = <1000000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-1200000000 {
|
||||
- opp-hz = /bits/ 64 <1200000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
+ opp-1800000000 {
|
||||
+ opp-hz = /bits/ 64 <1800000000>;
|
||||
+ opp-microvolt = <1080000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
};
|
||||
@@ -263,45 +245,27 @@ opp-480000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-600000000 {
|
||||
- opp-hz = /bits/ 64 <600000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
- clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
- };
|
||||
-
|
||||
- opp-720000000 {
|
||||
- opp-hz = /bits/ 64 <720000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
- clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
- };
|
||||
-
|
||||
- opp-864000000 {
|
||||
- opp-hz = /bits/ 64 <864000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
- clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
- };
|
||||
-
|
||||
- opp-912000000 {
|
||||
- opp-hz = /bits/ 64 <912000000>;
|
||||
+ opp-1008000000 {
|
||||
+ opp-hz = /bits/ 64 <1008000000>;
|
||||
opp-microvolt = <840000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-1008000000 {
|
||||
- opp-hz = /bits/ 64 <1008000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
+ opp-1412000000 {
|
||||
+ opp-hz = /bits/ 64 <1412000000>;
|
||||
+ opp-microvolt = <920000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-1128000000 {
|
||||
- opp-hz = /bits/ 64 <1128000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
+ opp-1608000000 {
|
||||
+ opp-hz = /bits/ 64 <1608000000>;
|
||||
+ opp-microvolt = <1000000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
|
||||
- opp-1200000000 {
|
||||
- opp-hz = /bits/ 64 <1200000000>;
|
||||
- opp-microvolt = <840000>;
|
||||
+ opp-1800000000 {
|
||||
+ opp-hz = /bits/ 64 <1800000000>;
|
||||
+ opp-microvolt = <1080000>;
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
};
|
||||
};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
From 87a1df65d1aa8d9f01ac8b18f62525aee4049a3f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sat, 1 Feb 2020 23:41:47 +0100
|
||||
Subject: ARM: dts: sun8i-a83t: Set fifo-size for uarts
|
||||
|
||||
Boot time optimization.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index cc86d3755036..0bbf43850c95 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -926,6 +926,7 @@ uart0: serial@1c28000 {
|
||||
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
+ fifo-size = <64>;
|
||||
clocks = <&ccu CLK_BUS_UART0>;
|
||||
resets = <&ccu RST_BUS_UART0>;
|
||||
status = "disabled";
|
||||
@@ -937,6 +938,7 @@ uart1: serial@1c28400 {
|
||||
interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
+ fifo-size = <64>;
|
||||
clocks = <&ccu CLK_BUS_UART1>;
|
||||
resets = <&ccu RST_BUS_UART1>;
|
||||
status = "disabled";
|
||||
@@ -948,6 +950,7 @@ uart2: serial@1c28800 {
|
||||
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
+ fifo-size = <64>;
|
||||
clocks = <&ccu CLK_BUS_UART2>;
|
||||
resets = <&ccu RST_BUS_UART2>;
|
||||
status = "disabled";
|
||||
@@ -959,6 +962,7 @@ uart3: serial@1c28c00 {
|
||||
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
+ fifo-size = <64>;
|
||||
clocks = <&ccu CLK_BUS_UART3>;
|
||||
resets = <&ccu RST_BUS_UART3>;
|
||||
status = "disabled";
|
||||
@@ -970,6 +974,7 @@ uart4: serial@1c29000 {
|
||||
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
|
||||
reg-shift = <2>;
|
||||
reg-io-width = <4>;
|
||||
+ fifo-size = <64>;
|
||||
clocks = <&ccu CLK_BUS_UART4>;
|
||||
resets = <&ccu RST_BUS_UART4>;
|
||||
status = "disabled";
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
From 1acac9e981b42164fe68442fe206a1d7ced96be5 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Fri, 10 Nov 2017 14:33:28 +0100
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add PN544 NFC support
|
||||
|
||||
Regulators on the schematic are named incorrectly. Both cameras are
|
||||
is in fact connected to the dvdd-csi-f regulator and dvdd-csi-r is
|
||||
in reality used for digital pad supply for NFC chip.
|
||||
|
||||
At the same time vcc-mipi regulator is not used for MIPI, but for NFC
|
||||
VBAT power.
|
||||
|
||||
Interpreting schematics is an art form! :D
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
.../boot/dts/allwinner/sun8i-a83t-tbs-a711.dts | 18 +++++++++++++++---
|
||||
1 file changed, 15 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index 43982b106a4d..5cedbe2455db 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -190,6 +190,16 @@ accelerometer@18 {
|
||||
interrupt-parent = <&pio>;
|
||||
interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */
|
||||
};
|
||||
+
|
||||
+ /* NFC (NPC 100) */
|
||||
+ npc100: nfc@28 {
|
||||
+ compatible = "nxp,nxp-nci-i2c";
|
||||
+ reg = <0x28>;
|
||||
+ interrupt-parent = <&r_pio>;
|
||||
+ interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>; /* PL6 */
|
||||
+ enable-gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
|
||||
+ firmware-gpios = <&pio 3 3 GPIO_ACTIVE_HIGH>; /* PD3 */
|
||||
+ };
|
||||
};
|
||||
|
||||
&mmc0 {
|
||||
@@ -368,9 +378,10 @@ ®_dldo1 {
|
||||
};
|
||||
|
||||
®_dldo2 {
|
||||
- regulator-min-microvolt = <2800000>;
|
||||
+ regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <4200000>;
|
||||
- regulator-name = "vcc-mipi";
|
||||
+ regulator-name = "vbat-nfc";
|
||||
+ regulator-always-on;
|
||||
};
|
||||
|
||||
®_dldo3 {
|
||||
@@ -393,7 +404,8 @@ ®_drivevbus {
|
||||
®_eldo1 {
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
- regulator-name = "dvdd-csi-r";
|
||||
+ regulator-name = "pvdd-nfc";
|
||||
+ regulator-always-on;
|
||||
};
|
||||
|
||||
®_eldo2 {
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
From 275f7a22d3eed955503f03b2e56967a30f9b22af Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Tue, 23 Jun 2020 19:43:24 +0200
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add camera sensors (HM5065, GC2145)
|
||||
|
||||
The tablet has two cameras, that can be switched between. Add
|
||||
support for the both of them.
|
||||
|
||||
Sensor is connected via parallel bus to CSI and via I2C bus to
|
||||
PE14/PE15 pins. Enable CSI module and add the node for HM5065
|
||||
camera sensor.
|
||||
|
||||
Camera sensors are connected via I2C to PE14/PE15 pins on A83T.
|
||||
Unfortunately while the A83T datasheet suggests TWI2 I2C controller
|
||||
can be configured to have SDA/SCL on these pins, this configuration
|
||||
doesn't work in reality. We need to either use CCI I2C controller
|
||||
that is part of the CSI module, or as is done in this patch, use GPIO
|
||||
based bitbanging I2C driver.
|
||||
|
||||
Reduce camera IOVDD voltage.
|
||||
|
||||
Force dvdd-csi-r/f regulators to 1.8V.
|
||||
|
||||
This is required by camera sensors that are connected to them.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
.../dts/allwinner/sun8i-a83t-tbs-a711.dts | 101 +++++++++++++++++-
|
||||
1 file changed, 99 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index ce1a8d98b548..ba3ea3199c69 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -70,6 +70,16 @@ backlight: backlight {
|
||||
default-brightness-level = <9>;
|
||||
};
|
||||
|
||||
+ i2c_gpio: i2c-gpio {
|
||||
+ compatible = "i2c-gpio";
|
||||
+ /* PE15 = sda, PE14 = scl */
|
||||
+ sda-gpios = <&pio 4 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
+ scl-gpios = <&pio 4 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
+ i2c-gpio,delay-us = <1>; /* ~100 kHz */
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ };
|
||||
+
|
||||
panel {
|
||||
compatible = "tbs,a711-panel", "panel-lvds";
|
||||
backlight = <&backlight>;
|
||||
@@ -215,6 +225,13 @@ link2_codec: codec {
|
||||
};
|
||||
};
|
||||
|
||||
+&ccu {
|
||||
+ /* Use a stable clock source with known fixed rate for MCLK */
|
||||
+ assigned-clocks = <&ccu CLK_CSI_MCLK>;
|
||||
+ assigned-clock-parents = <&osc24M>;
|
||||
+ assigned-clock-rates = <24000000>;
|
||||
+};
|
||||
+
|
||||
&cpu0 {
|
||||
cpu-supply = <®_dcdc2>;
|
||||
};
|
||||
@@ -223,6 +240,37 @@ &cpu100 {
|
||||
cpu-supply = <®_dcdc3>;
|
||||
};
|
||||
|
||||
+&csi {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&csi_8bit_parallel_pins>, <&csi_mclk_pin>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ port {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ csi_hm5065_ep: endpoint@0 {
|
||||
+ reg = <0>;
|
||||
+ remote-endpoint = <&hm5065_ep>;
|
||||
+ bus-width = <8>;
|
||||
+ data-active = <1>;
|
||||
+ pclk-sample = <0>;
|
||||
+ hsync-active = <0>;
|
||||
+ vsync-active = <1>;
|
||||
+ };
|
||||
+
|
||||
+ csi_gc2145_ep: endpoint@1 {
|
||||
+ reg = <1>;
|
||||
+ remote-endpoint = <&gc2145_ep>;
|
||||
+ bus-width = <8>;
|
||||
+ hsync-active = <1>;
|
||||
+ vsync-active = <1>;
|
||||
+ data-active = <1>;
|
||||
+ pclk-sample = <1>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&de {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -283,6 +331,55 @@ npc100: nfc@28 {
|
||||
};
|
||||
};
|
||||
|
||||
+&i2c_gpio {
|
||||
+ hm5065: rear-camera@1f {
|
||||
+ compatible = "himax,hm5065";
|
||||
+ reg = <0x1f>;
|
||||
+ clocks = <&ccu CLK_CSI_MCLK>;
|
||||
+ clock-names = "xclk";
|
||||
+ IOVDD-supply = <®_dldo3>;
|
||||
+ AVDD-supply = <®_dldo4>;
|
||||
+ DVDD-supply = <®_eldo3>;
|
||||
+ AFVDD-supply = <®_dldo3>;
|
||||
+ reset-gpios = <&pio 4 18 GPIO_ACTIVE_LOW>; /* PE18 */
|
||||
+ enable-gpios = <&pio 4 19 GPIO_ACTIVE_HIGH>; /* PE19 */
|
||||
+
|
||||
+ port {
|
||||
+ hm5065_ep: endpoint {
|
||||
+ remote-endpoint = <&csi_hm5065_ep>;
|
||||
+ bus-width = <8>;
|
||||
+ data-active = <1>;
|
||||
+ pclk-sample = <0>;
|
||||
+ hsync-active = <0>;
|
||||
+ vsync-active = <1>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gc2145: front-camera@3c {
|
||||
+ compatible = "galaxycore,gc2145";
|
||||
+ reg = <0x3c>;
|
||||
+ clocks = <&ccu CLK_CSI_MCLK>;
|
||||
+ clock-names = "xclk";
|
||||
+ IOVDD-supply = <®_dldo3>;
|
||||
+ AVDD-supply = <®_dldo4>;
|
||||
+ DVDD-supply = <®_eldo3>;
|
||||
+ reset-gpios = <&pio 4 16 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PE16 */
|
||||
+ enable-gpios = <&pio 4 17 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PE17 */
|
||||
+
|
||||
+ port {
|
||||
+ gc2145_ep: endpoint {
|
||||
+ remote-endpoint = <&csi_gc2145_ep>;
|
||||
+ bus-width = <8>;
|
||||
+ hsync-active = <1>;
|
||||
+ vsync-active = <1>;
|
||||
+ data-active = <1>;
|
||||
+ pclk-sample = <1>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&i2s0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
@@ -500,7 +597,7 @@ ®_drivevbus {
|
||||
};
|
||||
|
||||
®_eldo1 {
|
||||
- regulator-min-microvolt = <1200000>;
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-name = "pvdd-nfc";
|
||||
regulator-always-on;
|
||||
@@ -513,7 +610,7 @@ ®_eldo2 {
|
||||
};
|
||||
|
||||
®_eldo3 {
|
||||
- regulator-min-microvolt = <1200000>;
|
||||
+ regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-name = "dvdd-csi-f";
|
||||
};
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From 340e96224abb9dca4a98ce0d39f2ec7bd9f42b82 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Wed, 8 Nov 2017 21:57:45 +0100
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add flash led support
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index ba3ea3199c69..23eb11e99b98 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -61,6 +61,15 @@ chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ flash_led {
|
||||
+ label = "flash";
|
||||
+ gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
backlight: backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
From ab94581cd06d39c23734852b86d8a7536ebcfcfe Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?=
|
||||
<mylene.josserand@free-electrons.com>
|
||||
Date: Thu, 6 Jul 2017 10:57:55 +0200
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add powerup/down support for the 3G
|
||||
modem
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The modem needs tree gpios to be powered-up:
|
||||
- PL10 = reset
|
||||
- PL8 = On/Off
|
||||
- PL9 = vbat
|
||||
Because of that, the PL9 corresponds to the regulator's gpio whereas
|
||||
the PL8 (on/off) will be a power-gpio of the power sequence.
|
||||
|
||||
Thanks to that, the modem is powered up:
|
||||
# lsusb
|
||||
Bus 001 Device 004: ID 19d2:ffeb
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts | 13 ++++++++++++-
|
||||
1 file changed, 12 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index 5cedbe2455db..f7d8e5425233 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -118,7 +118,7 @@ reg_vmain: reg-vmain {
|
||||
regulator-name = "vmain";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
- gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>;
|
||||
+ gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
|
||||
enable-active-high;
|
||||
vin-supply = <®_vbat>;
|
||||
};
|
||||
@@ -134,6 +134,17 @@ wifi_pwrseq: pwrseq {
|
||||
clocks = <&ac100_rtc 1>;
|
||||
clock-names = "ext_clock";
|
||||
};
|
||||
+
|
||||
+ modem {
|
||||
+ compatible = "zte,mg3732";
|
||||
+ char-device-name = "modem-power";
|
||||
+
|
||||
+ power-supply = <®_vmain>;
|
||||
+
|
||||
+ enable-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
|
||||
+ reset-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
|
||||
+ wakeup-gpios = <&r_pio 0 11 GPIO_ACTIVE_HIGH>; /* PL11 */
|
||||
+ };
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From 63111b65ae2f191f0f69578da5ec3cf4c460f569 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Tue, 23 Jun 2020 19:15:37 +0200
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add regulators to the accelerometer
|
||||
|
||||
The bosch,bma250 driver will fail to probe if the regulators are
|
||||
not specified in DT, because it tries to set voltage on dummy
|
||||
regulators, which fails with EINVAL.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index 925891a1d6d9..ce1a8d98b548 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -268,6 +268,8 @@ accelerometer@18 {
|
||||
reg = <0x18>;
|
||||
interrupt-parent = <&pio>;
|
||||
interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */
|
||||
+ vdd-supply = <®_dcdc1>;
|
||||
+ vddio-supply = <®_dcdc1>;
|
||||
};
|
||||
|
||||
/* NFC (NPC 100) */
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
From 8318600d3dd6b179ef3d157b8d6d525affcf40ce Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sat, 22 Feb 2020 23:40:29 +0100
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add sound support via AC100 codec
|
||||
|
||||
...
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
.../dts/allwinner/sun8i-a83t-tbs-a711.dts | 85 +++++++++++++++++++
|
||||
1 file changed, 85 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index f7d8e5425233..925891a1d6d9 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -145,6 +145,74 @@ modem {
|
||||
reset-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
|
||||
wakeup-gpios = <&r_pio 0 11 GPIO_ACTIVE_HIGH>; /* PL11 */
|
||||
};
|
||||
+
|
||||
+ bt_sco_codec: bt-sco-codec {
|
||||
+ #sound-dai-cells = <1>;
|
||||
+ compatible = "linux,bt-sco";
|
||||
+ sound-name-prefix = "Bluetooth";
|
||||
+ };
|
||||
+
|
||||
+ speaker_amp: audio-amplifier {
|
||||
+ compatible = "simple-audio-amplifier";
|
||||
+ enable-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
|
||||
+ sound-name-prefix = "Speaker Amp";
|
||||
+ };
|
||||
+
|
||||
+ sound: sound {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ compatible = "simple-audio-card";
|
||||
+ simple-audio-card,name = "ac100-audio";
|
||||
+ simple-audio-card,aux-devs = <&ac100_codec_analog>, <&speaker_amp>;
|
||||
+ simple-audio-card,widgets = "Microphone", "Headset Microphone",
|
||||
+ "Microphone", "Internal Microphone",
|
||||
+ "Headphone", "Headphone Jack",
|
||||
+ "Speaker", "Internal Speaker";
|
||||
+ simple-audio-card,routing =
|
||||
+ "Headphone Jack", "HP",
|
||||
+ "Internal Speaker", "Speaker Amp OUTL",
|
||||
+ "Speaker Amp INL", "SPKOUTL",
|
||||
+ "Left DAC", "DACL",
|
||||
+ "Right DAC", "DACR",
|
||||
+ "ADCL", "Left ADC",
|
||||
+ "ADCR", "Right ADC",
|
||||
+ "Internal Microphone", "MBIAS",
|
||||
+ "MIC1", "Internal Microphone",
|
||||
+ "Headset Microphone", "HBIAS",
|
||||
+ "MIC2", "Headset Microphone";
|
||||
+
|
||||
+ simple-audio-card,dai-link@0 {
|
||||
+ format = "i2s";
|
||||
+ frame-master = <&link0_cpu>;
|
||||
+ bitclock-master = <&link0_cpu>;
|
||||
+ mclk-fs = <512>;
|
||||
+
|
||||
+ link0_cpu: cpu {
|
||||
+ sound-dai = <&i2s0>;
|
||||
+ };
|
||||
+
|
||||
+ link0_codec: codec {
|
||||
+ sound-dai = <&ac100_codec 0>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ simple-audio-card,dai-link@2 {
|
||||
+ format = "dsp_a";
|
||||
+ frame-master = <&link2_codec>;
|
||||
+ bitclock-master = <&link2_codec>;
|
||||
+ bitclock-inversion;
|
||||
+
|
||||
+ link2_cpu: cpu {
|
||||
+ sound-dai = <&bt_sco_codec 0>;
|
||||
+ };
|
||||
+
|
||||
+ link2_codec: codec {
|
||||
+ sound-dai = <&ac100_codec 2>;
|
||||
+ dai-tdm-slot-num = <2>;
|
||||
+ dai-tdm-slot-width = <16>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
@@ -213,6 +281,12 @@ npc100: nfc@28 {
|
||||
};
|
||||
};
|
||||
|
||||
+&i2s0 {
|
||||
+ status = "okay";
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&i2s0_pins>;
|
||||
+};
|
||||
+
|
||||
&mmc0 {
|
||||
vmmc-supply = <®_dcdc1>;
|
||||
pinctrl-names = "default";
|
||||
@@ -293,12 +367,23 @@ ac100: codec@e89 {
|
||||
compatible = "x-powers,ac100";
|
||||
reg = <0xe89>;
|
||||
|
||||
+ ac100_codec_analog: codec-analog {
|
||||
+ compatible = "x-powers,ac100-codec-analog";
|
||||
+ cpvdd-supply = <®_aldo2>;
|
||||
+ };
|
||||
+
|
||||
ac100_codec: codec {
|
||||
+ #sound-dai-cells = <1>;
|
||||
compatible = "x-powers,ac100-codec";
|
||||
interrupt-parent = <&r_pio>;
|
||||
interrupts = <0 12 IRQ_TYPE_LEVEL_LOW>; /* PL12 */
|
||||
#clock-cells = <0>;
|
||||
clock-output-names = "4M_adda";
|
||||
+
|
||||
+ LDOIN-supply = <®_aldo2>;
|
||||
+ AVCC-supply = <®_aldo3>;
|
||||
+ VDDIO1-supply = <®_dcdc1>;
|
||||
+ VDDIO2-supply = <®_dldo1>;
|
||||
};
|
||||
|
||||
ac100_rtc: rtc {
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From 58d2e468a9b4042575fd208fe7e9392fc53b7b14 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sat, 9 Nov 2019 23:55:48 +0100
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor
|
||||
|
||||
The board has a vibrator mottor. Hook it to the input subsystem.
|
||||
|
||||
According to the PMIC specification, LDO needs to be enabled (value 0b11)
|
||||
to achieve the specified max driving current of 150mA. We can't drive
|
||||
the motor with just GPIO mode.
|
||||
|
||||
In GPIO mode the chip is probably just using the regular CMOS logic
|
||||
output circuitry (typically limited to around 20-35mA, but not specified
|
||||
in this datasheet).
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index 23eb11e99b98..81e1271482ed 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -118,6 +118,11 @@ panel_input: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
+ vibrator {
|
||||
+ compatible = "gpio-vibrator";
|
||||
+ vcc-supply = <®_ldo_io1>;
|
||||
+ };
|
||||
+
|
||||
reg_gps: reg-gps {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "gps";
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From cd7f3c1c64eb26582e22d48a8894d035b5bae590 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Sun, 23 Feb 2020 13:21:58 +0100
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Enable charging LED
|
||||
|
||||
The tablet has a LED connected to the PMIC. The LED is visible in the
|
||||
top right corner of the tablet. Enable it.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
index 6a90763d8736..6edeaf8ed431 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t-tbs-a711.dts
|
||||
@@ -519,6 +519,10 @@ &battery_power_supply {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&charger_led {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
®_aldo1 {
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From 0fa9d7ec82f52d1864a326736cb0131ccebc4b09 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
|
||||
Date: Tue, 23 Jun 2020 19:19:46 +0200
|
||||
Subject: ARM: dts: sun8i-a83t-tbs-a711: Give Linux more privileges over SCPI
|
||||
|
||||
This is needed since on A83T there's no PSCI/ATF implementation.
|
||||
|
||||
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||||
---
|
||||
arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
index b95da4c64dee..660a2e29bc68 100644
|
||||
--- a/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
+++ b/arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi
|
||||
@@ -286,7 +286,7 @@ opp-1800000000 {
|
||||
|
||||
scpi_protocol: scpi {
|
||||
compatible = "arm,scpi";
|
||||
- mboxes = <&msgbox 2>, <&msgbox 3>;
|
||||
+ mboxes = <&msgbox 0>, <&msgbox 1>;
|
||||
mbox-names = "tx", "rx";
|
||||
shmem = <&scpi_sram>;
|
||||
};
|
||||
@@ -424,6 +424,9 @@ syscon: syscon@1c00000 {
|
||||
compatible = "allwinner,sun8i-a83t-system-controller",
|
||||
"syscon";
|
||||
reg = <0x01c00000 0x1000>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ ranges;
|
||||
|
||||
sram_a2: sram@40000 {
|
||||
compatible = "mmio-sram";
|
||||
@@ -434,7 +437,7 @@ sram_a2: sram@40000 {
|
||||
|
||||
scpi_sram: scp-shmem@13c00 {
|
||||
compatible = "arm,scp-shmem";
|
||||
- reg = <0x13c00 0x200>;
|
||||
+ reg = <0x13e00 0x200>;
|
||||
};
|
||||
};
|
||||
|
||||
--
|
||||
2.35.3
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user