Skip to contentSkip to conversation

ARM: dts: Add support for dra72-evm rev C (SR2.0)

PATCH In review Nishanth Menon 2 participants 2 messages Apr 14, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

DRA72-EVM now has an upgrade to Rev C with SR2.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 use cases.
- 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 ldo3 and ldo2 (ldo2 was previously unused). NOTE: DSS (VDDA_VIDEO) is still supplied by ldo5, HDMI is now supplied by LDO2 instead of using LDO3.

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

---
Updates in v2:
- minor fixes + rebase to
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
omap-for-v4.7/dt 4cb53a2308a9 ARM: dts: omap3-beagle: Provide NAND ready pin

V1: https://patchwork.kernel.org/patch/8665261/

 arch/arm/boot/dts/Makefile                         |   3 +-
 .../dts/{dra72-evm.dts => dra72-evm-common.dtsi}   |  28 +-
 arch/arm/boot/dts/dra72-evm-revc.dts               |  73 ++
 arch/arm/boot/dts/dra72-evm.dts                    | 838 +--------------------
 4 files changed, 90 insertions(+), 852 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 a721c4cc3548..e32392228748 100644
@@ -530,7 +530,8 @@ dtb-$(CONFIG_SOC_DRA7XX) += \
 	am57xx-sbc-am57x.dtb \
 	am572x-idk.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 +2 -26
similarity index 97%
copy from arch/arm/boot/dts/dra72-evm.dts
copy to arch/arm/boot/dts/dra72-evm-common.dtsi
index 3e63f660cd7c..2c880501ba2e 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -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>;
 	};
@@ -690,13 +674,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 {
@@ -786,7 +763,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 -825

868 lines not on this page · raw message

Signature · 1 line
2.8.0
#1 lore raw
Quoted 15 lines · Nishanth Menon

DRA72-EVM now has an upgrade to Rev C with SR2.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 use cases.
- 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 ldo3 and ldo2 (ldo2 was previously unused). NOTE: DSS (VDDA_VIDEO) is still supplied by ldo5, HDMI is now supplied by LDO2 instead of using LDO3.

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

Quoted 6 lines

---
Updates in v2:
- minor fixes + rebase to
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
omap-for-v4.7/dt 4cb53a2308a9 ARM: dts: omap3-beagle: Provide NAND ready pin

Thanks for updating this, applying into omap-for-v4.7/dt.

Tony