linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: dts: couple of DTS patches for DRA7 boards
@ 2020-12-07 14:33 Tero Kristo
  2020-12-07 14:33 ` [PATCH 1/3] ARM: dts: am574x-idk: add support for EMIF1 ECC Tero Kristo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tero Kristo @ 2020-12-07 14:33 UTC (permalink / raw)
  To: linux-omap, tony; +Cc: linux-arm-kernel

Hi Tony,

Here are couple of missing DTS patches for DRA7 family of boards.

-Tero


--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

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

* [PATCH 1/3] ARM: dts: am574x-idk: add support for EMIF1 ECC
  2020-12-07 14:33 [PATCH 0/3] ARM: dts: couple of DTS patches for DRA7 boards Tero Kristo
@ 2020-12-07 14:33 ` Tero Kristo
  2020-12-07 14:33 ` [PATCH 2/3] ARM: dts: dra76x: add support for OPP_PLUS Tero Kristo
  2020-12-07 14:33 ` [PATCH 3/3] ARM: dts: dra71-evm: mark ldo0 regulator as always on Tero Kristo
  2 siblings, 0 replies; 4+ messages in thread
From: Tero Kristo @ 2020-12-07 14:33 UTC (permalink / raw)
  To: linux-omap, tony; +Cc: linux-arm-kernel

EMIF1 has ECC support, so add the DT node with address and interrupt
details to handle this.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 arch/arm/boot/dts/am574x-idk.dts | 4 ++++
 arch/arm/boot/dts/dra76x.dtsi    | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/am574x-idk.dts b/arch/arm/boot/dts/am574x-idk.dts
index 37758761cd88..1b8f3a28af05 100644
--- a/arch/arm/boot/dts/am574x-idk.dts
+++ b/arch/arm/boot/dts/am574x-idk.dts
@@ -39,3 +39,7 @@
 &m_can0 {
 	status = "disabled";
 };
+
+&emif1 {
+	status = "okay";
+};
diff --git a/arch/arm/boot/dts/dra76x.dtsi b/arch/arm/boot/dts/dra76x.dtsi
index b69c7d40f5d8..4a2840c0b6ad 100644
--- a/arch/arm/boot/dts/dra76x.dtsi
+++ b/arch/arm/boot/dts/dra76x.dtsi
@@ -9,6 +9,13 @@
 	compatible = "ti,dra762", "ti,dra7";
 
 	ocp {
+		emif1: emif@4c000000 {
+			compatible = "ti,emif-dra7xx";
+			reg = <0x4c000000 0x200>;
+			interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 		target-module@42c01900 {
 			compatible = "ti,sysc-dra7-mcan", "ti,sysc";
 			ranges = <0x0 0x42c00000 0x2000>;
-- 
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

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

* [PATCH 2/3] ARM: dts: dra76x: add support for OPP_PLUS
  2020-12-07 14:33 [PATCH 0/3] ARM: dts: couple of DTS patches for DRA7 boards Tero Kristo
  2020-12-07 14:33 ` [PATCH 1/3] ARM: dts: am574x-idk: add support for EMIF1 ECC Tero Kristo
@ 2020-12-07 14:33 ` Tero Kristo
  2020-12-07 14:33 ` [PATCH 3/3] ARM: dts: dra71-evm: mark ldo0 regulator as always on Tero Kristo
  2 siblings, 0 replies; 4+ messages in thread
From: Tero Kristo @ 2020-12-07 14:33 UTC (permalink / raw)
  To: linux-omap, tony; +Cc: linux-arm-kernel

Add support for the OPP_PLUS (1.8GHz) for MPU.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 arch/arm/boot/dts/dra76x.dtsi | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/dra76x.dtsi b/arch/arm/boot/dts/dra76x.dtsi
index 4a2840c0b6ad..c62c83a1e298 100644
--- a/arch/arm/boot/dts/dra76x.dtsi
+++ b/arch/arm/boot/dts/dra76x.dtsi
@@ -140,3 +140,32 @@
 	/* dra76x is not affected by i887 */
 	max-frequency = <96000000>;
 };
+
+&cpu0_opp_table {
+	opp_plus@1800000000 {
+		opp-hz = /bits/ 64 <1800000000>;
+		opp-microvolt = <1250000 950000 1250000>,
+				<1250000 950000 1250000>;
+		opp-supported-hw = <0xFF 0x08>;
+	};
+};
+
+&opp_supply_mpu {
+	ti,efuse-settings = <
+	/* uV   offset */
+	1060000 0x0
+	1160000 0x4
+	1210000 0x8
+	1250000 0xC
+	>;
+};
+
+&abb_mpu {
+	ti,abb_info = <
+	/*uV		ABB	efuse	rbb_m fbb_m	vset_m*/
+	1060000		0	0x0	0 0x02000000 0x01F00000
+	1160000		0	0x4	0 0x02000000 0x01F00000
+	1210000		0	0x8	0 0x02000000 0x01F00000
+	1250000		0	0xC	0 0x02000000 0x01F00000
+	>;
+};
-- 
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

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

* [PATCH 3/3] ARM: dts: dra71-evm: mark ldo0 regulator as always on
  2020-12-07 14:33 [PATCH 0/3] ARM: dts: couple of DTS patches for DRA7 boards Tero Kristo
  2020-12-07 14:33 ` [PATCH 1/3] ARM: dts: am574x-idk: add support for EMIF1 ECC Tero Kristo
  2020-12-07 14:33 ` [PATCH 2/3] ARM: dts: dra76x: add support for OPP_PLUS Tero Kristo
@ 2020-12-07 14:33 ` Tero Kristo
  2 siblings, 0 replies; 4+ messages in thread
From: Tero Kristo @ 2020-12-07 14:33 UTC (permalink / raw)
  To: linux-omap, tony; +Cc: linux-arm-kernel

LDO0 regulator must remain enabled always on dra71-evm boards. Disabling
this violates the data manual and will damage the device over time.

Reported-by: Brad Griffis <bgriffis@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm/boot/dts/dra71-evm.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm.dts
index cad58f733bd6..6d2cca6b4488 100644
--- a/arch/arm/boot/dts/dra71-evm.dts
+++ b/arch/arm/boot/dts/dra71-evm.dts
@@ -112,6 +112,8 @@
 				regulator-name = "lp8733-ldo0";
 				regulator-min-microvolt = <3300000>;
 				regulator-max-microvolt = <3300000>;
+				regulator-boot-on;
+				regulator-always-on;
 			};
 
 			lp8733_ldo1_reg: ldo1 {
-- 
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

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

end of thread, other threads:[~2020-12-07 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 14:33 [PATCH 0/3] ARM: dts: couple of DTS patches for DRA7 boards Tero Kristo
2020-12-07 14:33 ` [PATCH 1/3] ARM: dts: am574x-idk: add support for EMIF1 ECC Tero Kristo
2020-12-07 14:33 ` [PATCH 2/3] ARM: dts: dra76x: add support for OPP_PLUS Tero Kristo
2020-12-07 14:33 ` [PATCH 3/3] ARM: dts: dra71-evm: mark ldo0 regulator as always on Tero Kristo

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).