Skip to contentSkip to conversation

This enables more recently added drivers for starqltechn.

PATCH In review Dzmitry Sankouski 2 participants 7 messages Dec 21, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover This enables more recently added drivers for starqltechn.

Series is based on top of caleb work [1] and should be merged after that.

[1]: https://lore.kernel.org/u-boot/[email protected]/

Dzmitry Sankouski (4):
arm: dts: starqltechn: 4K align memory
arm: dts: starqltechn: add ufs support
arm: dts: starqltechn: add buttons
arm: dts: starqltechn: add muic i2c interface

 arch/arm/dts/starqltechn.dts | 38 ++++++++++++++++++++++++++++++++++--
 1 file changed, 36 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/4 arm: dts: starqltechn: 4K align memory

Fix memory size to 4K aligned.

Cc Caleb Connolly <[email protected]>
Cc Dzmitry Sankouski <[email protected]>
Cc Simon Glass <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Tom Rini <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>

---

 arch/arm/dts/starqltechn.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/starqltechn.dts +1 -1
index 3c0f42c977..e6d57d2668 100644
@@ -25,7 +25,7 @@
 
 	memory@80000000 {
 		device_type = "memory";
-		reg = <0 0x80000000 0 0xfe1bffff>;
+		reg = <0 0x80000000 0 0xfe1c0000>;
 	};
 
 	framebuffer: framebuffer@9D400000 {
Signature · 1 line
2.39.2
#2 lore raw

Re: [PATCH 1/4] arm: dts: starqltechn: 4K align memory

Hi Dzmitry,

Thanks for sending this series.

I think these changes should be mostly encompassed by [1].

With the exception of the MUIC which we should add in a -u-boot.dtsi file.

Could you give that seris a spin?

Quoted 27 lines · Dzmitry Sankouski

Fix memory size to 4K aligned.

Cc Caleb Connolly <[email protected]>
Cc Dzmitry Sankouski <[email protected]>
Cc Simon Glass <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Tom Rini <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>

---

 arch/arm/dts/starqltechn.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/starqltechn.dts +1 -1
index 3c0f42c977..e6d57d2668 100644
@@ -25,7 +25,7 @@
 
 	memory@80000000 {
 		device_type = "memory";
-		reg = <0 0x80000000 0 0xfe1bffff>;
+		reg = <0 0x80000000 0 0xfe1c0000>;
 	};
 
 	framebuffer: framebuffer@9D400000 {
Signature · 2 lines
Thanks and regards,
// Caleb (they/them)
#3 lore raw

Re: [PATCH 1/4] arm: dts: starqltechn: 4K align memory

Quoted 9 lines · Caleb Connolly

Hi Dzmitry,

Thanks for sending this series.

I think these changes should be mostly encompassed by [1].

With the exception of the MUIC which we should add in a -u-boot.dtsi file.

Could you give that seris a spin?

ah, would help if I actually included the link!

[1]:
https://lore.kernel.org/u-boot/[email protected]/

Quoted 30 lines · Dzmitry Sankouski
Quoted 27 lines

Fix memory size to 4K aligned.

Cc Caleb Connolly <[email protected]>
Cc Dzmitry Sankouski <[email protected]>
Cc Simon Glass <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Tom Rini <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>

---

 arch/arm/dts/starqltechn.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/starqltechn.dts +1 -1
index 3c0f42c977..e6d57d2668 100644
@@ -25,7 +25,7 @@
 
 	memory@80000000 {
 		device_type = "memory";
-		reg = <0 0x80000000 0 0xfe1bffff>;
+		reg = <0 0x80000000 0 0xfe1c0000>;
 	};
 
 	framebuffer: framebuffer@9D400000 {
Signature · 1 line
// Caleb (they/them)
#4 lore raw

PATCH 2/4 arm: dts: starqltechn: add ufs support

In reply to Dzmitry Sankouski

Add ufs storage support.

Cc Caleb Connolly <[email protected]>
Cc Dzmitry Sankouski <[email protected]>
Cc Simon Glass <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Tom Rini <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>

---

 arch/arm/dts/starqltechn.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/dts/starqltechn.dts +8 -0
index e6d57d2668..5bb1a7f90a 100644
@@ -54,3 +54,11 @@
 &uart9 {
 	status = "okay";
 };
+
+&ufs_mem_hc {
+	status = "okay";
+};
+
+&ufs_mem_phy {
+	status = "okay";
+};
Signature · 1 line
2.39.2
#5 lore raw

PATCH 3/4 arm: dts: starqltechn: add buttons

In reply to Dzmitry Sankouski

Add volume up and Bixby buttons.

Cc Caleb Connolly <[email protected]>
Cc Dzmitry Sankouski <[email protected]>
Cc Simon Glass <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Tom Rini <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>

---

 arch/arm/dts/starqltechn.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/dts/starqltechn.dts +16 -0
index 5bb1a7f90a..539c1b51ca 100644
@@ -36,6 +36,22 @@
 		stride = <(1440 * 4)>;
 		format = "a8r8g8b8";
 	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		key-vol-up {
+			label = "Volume Up";
+			linux,code = <KEY_UP>;
+			gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
+		};
+
+		key-bixby {
+			label = "Bixby";
+			linux,code = <KEY_RESERVED>;
+			gpios = <&pm8998_gpios 19 GPIO_ACTIVE_LOW>;
+		};
+	};
 };
 
 &pm8998_resin {
Signature · 1 line
2.39.2
#6 lore raw

PATCH 4/4 arm: dts: starqltechn: add muic i2c interface

In reply to Dzmitry Sankouski

It allows to multiplex debug uart onto usb port, using i2c command.

Cc Caleb Connolly <[email protected]>
Cc Dzmitry Sankouski <[email protected]>
Cc Simon Glass <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Tom Rini <[email protected]>
Cc Vladimir Zapolskiy <[email protected]>

---

 arch/arm/dts/starqltechn.dts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/dts/starqltechn.dts +11 -1
index 539c1b51ca..5b04c3219d 100644
@@ -23,6 +23,16 @@
 		stdout-path = "serial0:921600n8";
 	};
 
+	i2c14 {
+		compatible = "i2c-gpio";
+		pinctrl-names = "default";
+		pinctrl-0 =  <&muic_i2c>;
+		scl-gpios = <&tlmm 34 0>;
+		sda-gpios = <&tlmm 33 0>;
+		i2c-gpio,delay-us = <2>;
+		status = "okay";
+	};
+
 	memory@80000000 {
 		device_type = "memory";
 		reg = <0 0x80000000 0 0xfe1c0000>;
@@ -59,7 +69,7 @@
 };
 
 &tlmm {
-	muic-i2c-n {
+	muic_i2c: muic-i2c-n {
 		pins = "gpio33", "gpio34";
 		drive-strength = <0x2>;
 		function = "gpio";
Signature · 1 line
2.39.2