Skip to contentSkip to conversation

ARM: DRA72: Add support for rev C evm

PATCH Superseded Nishanth Menon 2 participants 6 messages Mar 24, 2016 – Apr 13, 2016

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: DRA72: Add support for rev C evm

Hi,
please find support for DRA72 rev C evm support

Test log: http://pastebin.ubuntu.com/15491059/
Based on 6f30d29c603c Add linux-next specific files for 20160324

Nishanth Menon (2):
ARM: dts: Add support for dra72-evm rev C (ES2.0)
ARM: omap2plus_defconfig: Enable DP83867 support

 arch/arm/boot/dts/Makefile                         |   3 +-
 .../dts/{dra72-evm.dts => dra72-evm-common.dtsi}   |  26 +-
 arch/arm/boot/dts/dra72-evm-revc.dts               |  73 ++
 arch/arm/boot/dts/dra72-evm.dts                    | 835 +--------------------
 arch/arm/configs/omap2plus_defconfig               |   1 +
 5 files changed, 90 insertions(+), 848 deletions(-)
 copy arch/arm/boot/dts/{dra72-evm.dts => dra72-evm-common.dtsi} (97%)
 create mode 100644 arch/arm/boot/dts/dra72-evm-revc.dts
Signature · 1 line
2.8.0.rc3
#1 lore raw

PATCH 1/2 ARM: dts: Add support for dra72-evm rev C (ES2.0)

DRA72-EVM now has an upgrade to Rev C with ES2.0 silicon. As part of this change, a few updates were factored in that were software incompatible with previous board in few areas:
- We now use DP83867 ethernet phy instead of older DP838865 which fails in certain usecases.
- Two ethernet ports now instead of the single one in rev B.
- polarities changed for certain pcf gpios
- Due to SoC phy current requirements, VDDA supplies are split between ldo5 and ldo2 (ldo2 was previously unused). NOTE: DSS (VDDA_VIDEO) is still supplied by ldo5.

NOTE: It does not make much sense to spin off a new board compatible flag since there is no real benefit for the same.

---
 arch/arm/boot/dts/Makefile                         |   3 +-
 .../dts/{dra72-evm.dts => dra72-evm-common.dtsi}   |  26 +-
 arch/arm/boot/dts/dra72-evm-revc.dts               |  73 ++
 arch/arm/boot/dts/dra72-evm.dts                    | 835 +--------------------
 4 files changed, 89 insertions(+), 848 deletions(-)
 copy arch/arm/boot/dts/{dra72-evm.dts => dra72-evm-common.dtsi} (97%)
 create mode 100644 arch/arm/boot/dts/dra72-evm-revc.dts
arch/arm/boot/dts/Makefile +2 -1
index b25621ae2ff7..f74bd41cf58c 100644
@@ -527,7 +527,8 @@ dtb-$(CONFIG_SOC_DRA7XX) += \
 	am57xx-cl-som-am57x.dtb \
 	am57xx-sbc-am57x.dtb \
 	dra7-evm.dtb \
-	dra72-evm.dtb
+	dra72-evm.dtb \
+	dra72-evm-revc.dtb
 dtb-$(CONFIG_ARCH_ORION5X) += \
 	orion5x-lacie-d2-network.dtb \
 	orion5x-lacie-ethernet-disk-mini-v2.dtb \
arch/arm/boot/dts/dra72-evm-common.dtsi renamed from arch/arm/boot/dts/dra72-evm.dts +1 -25
similarity index 97%
copy from arch/arm/boot/dts/dra72-evm.dts
copy to arch/arm/boot/dts/dra72-evm-common.dtsi
index 6affe2d137da..94faab98cf0d 100644
@@ -12,14 +12,8 @@
 #include <dt-bindings/clk/ti-dra7-atl.h>
 
 / {
-	model = "TI DRA722";
 	compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7";
 
-	memory {
-		device_type = "memory";
-		reg = <0x0 0x80000000 0x0 0x40000000>; /* 1024 MB */
-	};
-
 	aliases {
 		display0 = &hdmi0;
 	};
@@ -320,7 +314,7 @@
 		tps65917_pmic {
 			compatible = "ti,tps65917-pmic";
 
-			regulators {
+			tps65917_regulators: regulators {
 				smps1_reg: smps1 {
 					/* VDD_MPU */
 					regulator-name = "smps1";
@@ -376,14 +370,6 @@
 					regulator-allow-bypass;
 				};
 
-				ldo2_reg: ldo2 {
-					/* LDO2_OUT --> TP1017 (UNUSED)  */
-					regulator-name = "ldo2";
-					regulator-min-microvolt = <1800000>;
-					regulator-max-microvolt = <3300000>;
-					regulator-allow-bypass;
-				};
-
 				ldo3_reg: ldo3 {
 					/* VDDA_1V8_PHY */
 					regulator-name = "ldo3";
@@ -427,8 +413,6 @@
 		lines-initial-states = <0x1408>;
 		gpio-controller;
 		#gpio-cells = <2>;
-		interrupt-parent = <&gpio6>;
-		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
 		interrupt-controller;
 		#interrupt-cells = <2>;
 	};
@@ -689,13 +673,6 @@
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
-	slaves = <1>;
-	mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_HIGH>;
-};
-
-&cpsw_emac0 {
-	phy_id = <&davinci_mdio>, <3>;
-	phy-mode = "rgmii";
 };
 
 &davinci_mdio {
@@ -785,7 +762,6 @@
 
 &hdmi {
 	status = "ok";
-	vdda-supply = <&ldo3_reg>;
 
 	pinctrl-names = "default";
 	pinctrl-0 = <&hdmi_pins>;
arch/arm/boot/dts/dra72-evm-revc.dts new file +73 -0

73 lines not on this page · raw message

arch/arm/boot/dts/dra72-evm.dts +13 -822

865 lines not on this page · raw message

Signature · 1 line
2.8.0.rc3
#4 lore raw

PATCH 2/2 ARM: omap2plus_defconfig: Enable DP83867 support

In reply to Nishanth Menon

Enable DP83867 Ethernet phy for supporting networking on DRA72-EVM rev C (SR2.0).

---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/omap2plus_defconfig +1 -0
index 156bc88b8523..9ce8ea53cf51 100644
@@ -178,6 +178,7 @@ CONFIG_TI_CPTS=y
 # CONFIG_NET_VENDOR_WIZNET is not set
 CONFIG_AT803X_PHY=y
 CONFIG_SMSC_PHY=y
+CONFIG_DP83867_PHY=y
 CONFIG_USB_USBNET=m
 CONFIG_USB_NET_SMSC75XX=m
 CONFIG_USB_NET_SMSC95XX=m
Signature · 1 line
2.8.0.rc3
maintainer
#2 lore raw

Re: [PATCH 1/2] ARM: dts: Add support for dra72-evm rev C (ES2.0)

In reply to Nishanth Menon
Quoted 11 lines · Nishanth Menon

DRA72-EVM now has an upgrade to Rev C with ES2.0 silicon. As part of this change, a few updates were factored in that were software incompatible with previous board in few areas:
- We now use DP83867 ethernet phy instead of older DP838865 which fails in certain usecases.
- Two ethernet ports now instead of the single one in rev B.
- polarities changed for certain pcf gpios
- Due to SoC phy current requirements, VDDA supplies are split between ldo5 and ldo2 (ldo2 was previously unused). NOTE: DSS (VDDA_VIDEO) is still supplied by ldo5.

Quoted 2 lines

NOTE: It does not make much sense to spin off a new board compatible flag since there is no real benefit for the same.

I guess that can always be added later on if needed.

Can you please repost this against current omap-for-v4.7/dt as it no longer applies?

Thanks,

Tony

maintainer
#5 lore raw

Re: [PATCH 2/2] ARM: omap2plus_defconfig: Enable DP83867 support

In reply to Nishanth Menon
Quoted 2 lines · Nishanth Menon

Enable DP83867 Ethernet phy for supporting networking on DRA72-EVM rev C (SR2.0).

Applying into omap-for-v4.7/defconfig thanks.

Tony

#3 lore raw

Re: [PATCH 1/2] ARM: dts: Add support for dra72-evm rev C (ES2.0)

In reply to Tony Lindgren
Quoted 12 lines · Tony Lindgren
Quoted 11 lines · Nishanth Menon

DRA72-EVM now has an upgrade to Rev C with ES2.0 silicon. As part of this change, a few updates were factored in that were software incompatible with previous board in few areas:
- We now use DP83867 ethernet phy instead of older DP838865 which fails in certain usecases.
- Two ethernet ports now instead of the single one in rev B.
- polarities changed for certain pcf gpios
- Due to SoC phy current requirements, VDDA supplies are split between ldo5 and ldo2 (ldo2 was previously unused). NOTE: DSS (VDDA_VIDEO) is still supplied by ldo5.

Quoted 7 lines
Quoted 2 lines

NOTE: It does not make much sense to spin off a new board compatible flag since there is no real benefit for the same.

I guess that can always be added later on if needed.

Can you please repost this against current omap-for-v4.7/dt as it no longer applies?

Will do. thanks.

Signature · 2 lines
Regards,
Nishanth Menon