devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement
@ 2023-03-29 19:41 Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 1/6] arm64: dts: qcom: sdm845-tama: Add display nodes Konrad Dybcio
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

v2 -> v3:
- Fix pinctrl-n / -names ordering [1/6], [2/6]
- Drop unnecessary #-cells [1/6]
- Drop GPIO52 (it's apparently some LCD mode, single vs dual port,
  not sure how real it is considering it came from messy downstream
  code and not touching it at all does not seem to break anything) [1/6]
- Use interrupts-extended instead of interrupt-parent+interrupts [2/6]

2/6 is still a total OF abuse and very RFC-ish, pending comments or ideas!

v2: https://lore.kernel.org/r/20230313-topic-tama_disp-v2-0-37ececf43770@linaro.org

v1 -> v2:
- Drop akatsuki touch panel as Marijn figures out some sleep-related
  things
- No more dependencies, the panel driver has been merged into drm-misc
  next
- "*-pin" { -> "*-pins {"
- treset-gpios -> touch-reset-gpios
- Drop "Don't use 0x in unit address" (solved)
- Drop IPA & modem, this keeps crashing for some reason..

2/7 is a total OF abuse and very RFC-ish..

v1: https://lore.kernel.org/lkml/20220930191049.123256-2-konrad.dybcio@somainline.org/

This series enables display and touch panel on XZ2/XZ2c devices
equipped with a JDI panel with a TD4353 driver IC and just
touch panel for all XZ3 phones. It also enables the remote
processors, GPU&GMU and GPI DMA on all Tama devices.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Konrad Dybcio (6):
      arm64: dts: qcom: sdm845-tama: Add display nodes
      [RFC] arm64: dts: qcom: sdm845-tama: Add Synaptics Touchscreen
      arm64: dts: qcom: sdm845-tama: Add regulator-system-load to l14a/l28a
      arm64: dts: qcom: sdm845-tama: Enable remoteprocs
      arm64: dts: qcom: sdm845-tama: Enable GPU
      arm64: dts: qcom: sdm845-tama: Enable GPI_DMA0/1

 .../dts/qcom/sdm845-sony-xperia-tama-akari.dts     |   4 +
 .../dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts  |  47 ++++-
 .../dts/qcom/sdm845-sony-xperia-tama-apollo.dts    |   6 +
 .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     | 199 ++++++++++++++++++++-
 4 files changed, 253 insertions(+), 3 deletions(-)
---
base-commit: 198925fae644b0099b66fac1d972721e6e563b17
change-id: 20230313-topic-tama_disp-f38a116f52df

Best regards,
-- 
Konrad Dybcio <konrad.dybcio@linaro.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v3 1/6] arm64: dts: qcom: sdm845-tama: Add display nodes
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
@ 2023-03-29 19:41 ` Konrad Dybcio
  2023-03-29 19:41 ` [PATCH RFC v3 2/6] arm64: dts: qcom: sdm845-tama: Add Synaptics Touchscreen Konrad Dybcio
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

From: Konrad Dybcio <konrad.dybcio@somainline.org>

Add required nodes to support display on XZ2/XZ2c. XZ3 has a
different power rail setup and needs to be handled separately.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 .../dts/qcom/sdm845-sony-xperia-tama-akari.dts     |  4 +
 .../dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts  | 44 +++++++++-
 .../dts/qcom/sdm845-sony-xperia-tama-apollo.dts    |  6 ++
 .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     | 93 ++++++++++++++++++++++
 4 files changed, 146 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts
index 34f84f1f1eb4..d97b7f1e7140 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts
@@ -11,3 +11,7 @@ / {
 	model = "Sony Xperia XZ2";
 	compatible = "sony,akari-row", "qcom,sdm845";
 };
+
+&panel {
+	compatible = "sony,td4353-jdi-tama";
+};
diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
index 2f5e12deaada..81cbf535cb76 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
@@ -10,9 +10,51 @@
 / {
 	model = "Sony Xperia XZ3";
 	compatible = "sony,akatsuki-row", "qcom,sdm845";
+
+	/* Fixed DCDC for the OLED panel */
+	ts_vddio_supply: ts-vddio-regulator {
+		compatible = "regulator-fixed";
+		regulator-name = "ts_vddio";
+
+		regulator-min-microvolt = <1840000>;
+		regulator-max-microvolt = <1840000>;
+
+		gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-boot-on;
+	};
+};
+
+&ibb {
+	status = "disabled";
+};
+
+&lab {
+	status = "disabled";
+};
+
+&panel {
+	/* Akatsuki uses an OLED panel. */
+	/delete-property/ backlight;
+	/delete-property/ vsp-supply;
+	/delete-property/ vsn-supply;
+	/delete-property/ touch-reset-gpios;
+};
+
+&pmi8998_wled {
+	status = "disabled";
+};
+
+&tlmm {
+	ts_vddio_en: ts-vddio-en-state {
+		pins = "gpio133";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-disable;
+		output-high;
+	};
 };
 
-/* For the future: WLED + LAB/IBB/OLEDB are not used on Akatsuki */
 &vreg_l14a_1p8 {
 	regulator-min-microvolt = <1840000>;
 	regulator-max-microvolt = <1840000>;
diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts
index c9e62c72f60e..cd056f78070f 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts
@@ -11,3 +11,9 @@ / {
 	model = "Sony Xperia XZ2 Compact";
 	compatible = "sony,apollo-row", "qcom,sdm845";
 };
+
+&panel {
+	compatible = "sony,td4353-jdi-tama";
+	height-mm = <112>;
+	width-mm = <56>;
+};
diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 4984c7496c31..3c7d129d9d8e 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -356,6 +356,43 @@ vreg_s3c_0p6: smps3 {
 	};
 };
 
+&dsi0 {
+	vdda-supply = <&vreg_l26a_1p2>;
+	status = "okay";
+
+	panel: panel@0 {
+		/* The compatible is assigned in device DTs. */
+		reg = <0>;
+
+		backlight = <&pmi8998_wled>;
+		vddio-supply = <&vreg_l14a_1p8>;
+		vsp-supply = <&lab>;
+		vsn-supply = <&ibb>;
+		panel-reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>;
+		touch-reset-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>;
+
+		pinctrl-0 = <&sde_dsi_active &sde_te_active_sleep>;
+		pinctrl-1 = <&sde_dsi_sleep &sde_te_active_sleep>;
+		pinctrl-names = "default", "sleep";
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&dsi0_out>;
+			};
+		};
+	};
+};
+
+&dsi0_out {
+	remote-endpoint = <&panel_in>;
+	data-lanes = <0 1 2 3>;
+};
+
+&dsi0_phy {
+	vdds-supply = <&vreg_l1a_0p9>;
+	status = "okay";
+};
+
 &gcc {
 	protected-clocks = <GCC_QSPI_CORE_CLK>,
 			<GCC_QSPI_CORE_CLK_SRC>,
@@ -388,6 +425,31 @@ &i2c14 {
 	/* AMS TCS3490 RGB+IR color sensor @ 72 */
 };
 
+&ibb {
+	qcom,discharge-resistor-kohms = <300>;
+	regulator-min-microvolt = <5500000>;
+	regulator-max-microvolt = <5700000>;
+	regulator-min-microamp = <0>;
+	regulator-max-microamp = <800000>;
+	regulator-over-current-protection;
+	regulator-soft-start;
+	regulator-pull-down;
+};
+
+&lab {
+	regulator-min-microvolt = <5500000>;
+	regulator-max-microvolt = <5700000>;
+	regulator-min-microamp = <200000>;
+	regulator-max-microamp = <200000>;
+	regulator-over-current-protection;
+	regulator-soft-start;
+	regulator-pull-down;
+};
+
+&mdss {
+	status = "okay";
+};
+
 &pm8998_gpios {
 	focus_n: focus-n-state {
 		pins = "gpio2";
@@ -422,6 +484,16 @@ snapshot_n: snapshot-n-state {
 	};
 };
 
+&pmi8998_wled {
+	default-brightness = <800>;
+	qcom,switching-freq = <800>;
+	qcom,ovp-millivolt = <29600>;
+	qcom,current-boost-limit = <970>;
+	qcom,current-limit-microamp = <20000>;
+	qcom,enabled-strings = <0 1 2 3>;
+	status = "okay";
+};
+
 &qupv3_id_0 {
 	status = "okay";
 };
@@ -465,6 +537,27 @@ data-pins {
 			bias-pull-up;
 		};
 	};
+
+	sde_dsi_active: sde-dsi-active-state {
+		pins = "gpio6";
+		function = "gpio";
+		drive-strength = <8>;
+		bias-disable;
+	};
+
+	sde_dsi_sleep: sde-dsi-sleep-state {
+		pins = "gpio6";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-pull-down;
+	};
+
+	sde_te_active_sleep: sde-te-active-sleep-state {
+		pins = "gpio10";
+		function = "mdp_vsync";
+		drive-strength = <2>;
+		bias-pull-down;
+	};
 };
 
 &uart6 {

-- 
2.40.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH RFC v3 2/6] arm64: dts: qcom: sdm845-tama: Add Synaptics Touchscreen
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 1/6] arm64: dts: qcom: sdm845-tama: Add display nodes Konrad Dybcio
@ 2023-03-29 19:41 ` Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 3/6] arm64: dts: qcom: sdm845-tama: Add regulator-system-load to l14a/l28a Konrad Dybcio
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

From: Konrad Dybcio <konrad.dybcio@somainline.org>

Add required pins and RMI4 node to the common DT and remove it
from Akatsuki, as it uses a different touch.

Since the panels are super high tech proprietary incell, they
need to be handled with very precise timings. As such the panel
driver sets up the power rails and GPIOs and the touchscreen
driver *has to* probe afterwards.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 .../dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts  |  3 +
 .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     | 68 +++++++++++++++++++++-
 2 files changed, 69 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
index 81cbf535cb76..5d2052a0ff69 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
@@ -7,6 +7,9 @@
 
 #include "sdm845-sony-xperia-tama.dtsi"
 
+/* XZ3 uses an Atmel touchscreen instead. */
+/delete-node/ &touchscreen;
+
 / {
 	model = "Sony Xperia XZ3";
 	compatible = "sony,akatsuki-row", "qcom,sdm845";
diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 3c7d129d9d8e..8172d0c9c1a3 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -402,10 +402,42 @@ &gcc {
 };
 
 &i2c5 {
-	status = "okay";
 	clock-frequency = <400000>;
+	status = "okay";
+
+	touchscreen: touchscreen@2c {
+		compatible = "syna,rmi4-i2c";
+		reg = <0x2c>;
+
+		interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
+		vdd-supply = <&vreg_l14a_1p8>;
+		/*
+		 * This is a blatant abuse of OF, but the panel driver *needs*
+		 * to probe first, as the power/gpio switching needs to be precisely
+		 * timed in order for both the display and touch panel to function properly.
+		 */
+		incell-supply = <&panel>;
+
+		syna,reset-delay-ms = <220>;
+		syna,startup-delay-ms = <1000>;
+
+		pinctrl-0 = <&ts_default>;
+		pinctrl-1 = <&ts_sleep>;
+		pinctrl-names = "default", "sleep";
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		rmi4-f01@1 {
+			reg = <0x01>;
+			syna,nosleep-mode = <1>;
+		};
 
-	/* Synaptics touchscreen @ 2c, 3c */
+		rmi4-f12@12 {
+			reg = <0x12>;
+			syna,sensor-type = <1>;
+		};
+	};
 };
 
 &i2c10 {
@@ -558,6 +590,38 @@ sde_te_active_sleep: sde-te-active-sleep-state {
 		drive-strength = <2>;
 		bias-pull-down;
 	};
+
+	ts_default: ts-default-state {
+		reset-pins {
+			pins = "gpio99";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-up;
+		};
+
+		int-pins {
+			pins = "gpio125";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-up;
+		};
+	};
+
+	ts_sleep: ts-sleep-state {
+		reset-pins {
+			pins = "gpio99";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-down;
+		};
+
+		int-pins {
+			pins = "gpio125";
+			function = "gpio";
+			drive-strength = <2>;
+			bias-pull-down;
+		};
+	};
 };
 
 &uart6 {

-- 
2.40.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v3 3/6] arm64: dts: qcom: sdm845-tama: Add regulator-system-load to l14a/l28a
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 1/6] arm64: dts: qcom: sdm845-tama: Add display nodes Konrad Dybcio
  2023-03-29 19:41 ` [PATCH RFC v3 2/6] arm64: dts: qcom: sdm845-tama: Add Synaptics Touchscreen Konrad Dybcio
@ 2023-03-29 19:41 ` Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 4/6] arm64: dts: qcom: sdm845-tama: Enable remoteprocs Konrad Dybcio
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

From: Konrad Dybcio <konrad.dybcio@somainline.org>

Add the properties to ensure the ever so delicate touchscreen setup
matches downstream.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 8172d0c9c1a3..208ed466081d 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -228,6 +228,7 @@ vreg_l14a_1p8: ldo14 {
 			regulator-min-microvolt = <1800000>;
 			regulator-max-microvolt = <1800000>;
 			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-system-load = <62000>;
 		};
 
 		vreg_l15a_1p8: ldo15 {
@@ -314,6 +315,7 @@ vreg_l28a_2p8: ldo28 {
 			regulator-min-microvolt = <2856000>;
 			regulator-max-microvolt = <3008000>;
 			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-system-load = <100000>;
 		};
 
 		vreg_lvs1a_1p8: lvs1 {

-- 
2.40.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v3 4/6] arm64: dts: qcom: sdm845-tama: Enable remoteprocs
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
                   ` (2 preceding siblings ...)
  2023-03-29 19:41 ` [PATCH v3 3/6] arm64: dts: qcom: sdm845-tama: Add regulator-system-load to l14a/l28a Konrad Dybcio
@ 2023-03-29 19:41 ` Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 5/6] arm64: dts: qcom: sdm845-tama: Enable GPU Konrad Dybcio
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

From: Konrad Dybcio <konrad.dybcio@somainline.org>

Enable ADSP, CDSP and Venus.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 208ed466081d..48916a3216e5 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -98,6 +98,11 @@ ramoops@ffc00000 {
 	};
 };
 
+&adsp_pas {
+	firmware-name = "qcom/sdm845/Sony/tama/adsp.mbn";
+	status = "okay";
+};
+
 &apps_rsc {
 	regulators-0 {
 		compatible = "qcom,pm8998-rpmh-regulators";
@@ -358,6 +363,11 @@ vreg_s3c_0p6: smps3 {
 	};
 };
 
+&cdsp_pas {
+	firmware-name = "qcom/sdm845/Sony/tama/cdsp.mbn";
+	status = "okay";
+};
+
 &dsi0 {
 	vdda-supply = <&vreg_l26a_1p2>;
 	status = "okay";
@@ -659,3 +669,8 @@ &usb_1_hsphy {
 	vdda-pll-supply = <&vreg_l12a_1p8>;
 	vdda-phy-dpdm-supply = <&vreg_l24a_3p1>;
 };
+
+&venus {
+	firmware-name = "qcom/sdm845/Sony/tama/venus.mbn";
+	status = "okay";
+};

-- 
2.40.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v3 5/6] arm64: dts: qcom: sdm845-tama: Enable GPU
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
                   ` (3 preceding siblings ...)
  2023-03-29 19:41 ` [PATCH v3 4/6] arm64: dts: qcom: sdm845-tama: Enable remoteprocs Konrad Dybcio
@ 2023-03-29 19:41 ` Konrad Dybcio
  2023-03-29 19:41 ` [PATCH v3 6/6] arm64: dts: qcom: sdm845-tama: Enable GPI_DMA0/1 Konrad Dybcio
  2023-04-05  4:08 ` [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Bjorn Andersson
  6 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

From: Konrad Dybcio <konrad.dybcio@somainline.org>

Enable the A630 GPU and its GMU.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index 48916a3216e5..df8dd6e45a38 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -413,6 +413,19 @@ &gcc {
 			<GCC_LPASS_SWAY_CLK>;
 };
 
+&gmu {
+	status = "okay";
+};
+
+&gpu {
+	status = "okay";
+
+	zap-shader {
+		memory-region = <&gpu_mem>;
+		firmware-name = "qcom/sdm845/Sony/tama/a630_zap.mbn";
+	};
+};
+
 &i2c5 {
 	clock-frequency = <400000>;
 	status = "okay";

-- 
2.40.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v3 6/6] arm64: dts: qcom: sdm845-tama: Enable GPI_DMA0/1
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
                   ` (4 preceding siblings ...)
  2023-03-29 19:41 ` [PATCH v3 5/6] arm64: dts: qcom: sdm845-tama: Enable GPU Konrad Dybcio
@ 2023-03-29 19:41 ` Konrad Dybcio
  2023-04-05  4:08 ` [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Bjorn Andersson
  6 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-03-29 19:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree, linux-kernel, Marijn Suijten,
	Konrad Dybcio, Konrad Dybcio

From: Konrad Dybcio <konrad.dybcio@somainline.org>

Enable both GPI DMAs.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
index df8dd6e45a38..420ffede3e80 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi
@@ -417,6 +417,14 @@ &gmu {
 	status = "okay";
 };
 
+&gpi_dma0 {
+	status = "okay";
+};
+
+&gpi_dma1 {
+	status = "okay";
+};
+
 &gpu {
 	status = "okay";
 

-- 
2.40.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement
  2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
                   ` (5 preceding siblings ...)
  2023-03-29 19:41 ` [PATCH v3 6/6] arm64: dts: qcom: sdm845-tama: Enable GPI_DMA0/1 Konrad Dybcio
@ 2023-04-05  4:08 ` Bjorn Andersson
  6 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2023-04-05  4:08 UTC (permalink / raw)
  To: Andy Gross, Rob Herring, Krzysztof Kozlowski, Konrad Dybcio
  Cc: linux-arm-msm, devicetree, Konrad Dybcio, Marijn Suijten,
	linux-kernel

On Wed, 29 Mar 2023 21:41:17 +0200, Konrad Dybcio wrote:
> v2 -> v3:
> - Fix pinctrl-n / -names ordering [1/6], [2/6]
> - Drop unnecessary #-cells [1/6]
> - Drop GPIO52 (it's apparently some LCD mode, single vs dual port,
>   not sure how real it is considering it came from messy downstream
>   code and not touching it at all does not seem to break anything) [1/6]
> - Use interrupts-extended instead of interrupt-parent+interrupts [2/6]
> 
> [...]

Applied, thanks!

[1/6] arm64: dts: qcom: sdm845-tama: Add display nodes
      commit: 5dcc6587fde26fa03fe6993278d9bd01daed09b1
[2/6] arm64: dts: qcom: sdm845-tama: Add Synaptics Touchscreen
      commit: 3ab8216de2fab6a6efeb5b22d8d61676b67964dc
[3/6] arm64: dts: qcom: sdm845-tama: Add regulator-system-load to l14a/l28a
      commit: 1d99fee382a6ada0cd05ae8afaea2dd1884c58a3
[4/6] arm64: dts: qcom: sdm845-tama: Enable remoteprocs
      commit: 39e0f8076f6fc5022902c62f5046ad91cf2b7a59
[5/6] arm64: dts: qcom: sdm845-tama: Enable GPU
      commit: ff9108ea69adc0b38e5bbc8575434355f0e20579
[6/6] arm64: dts: qcom: sdm845-tama: Enable GPI_DMA0/1
      commit: da51e2ceedc2df7248bad6bec45ae3280de9ada2

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-05  4:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 19:41 [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Konrad Dybcio
2023-03-29 19:41 ` [PATCH v3 1/6] arm64: dts: qcom: sdm845-tama: Add display nodes Konrad Dybcio
2023-03-29 19:41 ` [PATCH RFC v3 2/6] arm64: dts: qcom: sdm845-tama: Add Synaptics Touchscreen Konrad Dybcio
2023-03-29 19:41 ` [PATCH v3 3/6] arm64: dts: qcom: sdm845-tama: Add regulator-system-load to l14a/l28a Konrad Dybcio
2023-03-29 19:41 ` [PATCH v3 4/6] arm64: dts: qcom: sdm845-tama: Enable remoteprocs Konrad Dybcio
2023-03-29 19:41 ` [PATCH v3 5/6] arm64: dts: qcom: sdm845-tama: Enable GPU Konrad Dybcio
2023-03-29 19:41 ` [PATCH v3 6/6] arm64: dts: qcom: sdm845-tama: Enable GPI_DMA0/1 Konrad Dybcio
2023-04-05  4:08 ` [PATCH v3 0/6] Sony SDM845 panel and remoteproc enablement Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).