Skip to contentSkip to conversation

ARM: am335x: Add phyBOARD REGOR support

PATCH Superseded Parthiban Nallathambi 2 participants 3 messages Oct 22, 2020 – Oct 23, 2020 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: am335x: Add phyBOARD REGOR support

phyBOARD-REGOR is based on phyCORE AM335x R2 SoM (PCL060).

CPU  : AM335X-GP rev 2.1
Model: Phytec AM335x phyBOARD-REGOR
DRAM:  512 MiB
NAND:  512 MiB
MMC:   OMAP SD/MMC: 0
eth0: ethernet at 4a100000

Working:
- Eth0
- i2C
- MMC/SD
- NAND
- UART
- USB (host)

Device trees were taken from Linux mainline:
commit c4d6fe731176 ("Linux 5.9.0")

---
 arch/arm/dts/Makefile                     |   3 +-
 arch/arm/dts/am335x-regor-rdk-u-boot.dtsi |  31 +++++
 arch/arm/dts/am335x-regor-rdk.dts         |  24 ++++
 arch/arm/dts/am335x-regor.dtsi            | 202 ++++++++++++++++++++++++++++++
 configs/phycore-am335x-r2-regor_defconfig |  88 +++++++++++++
 5 files changed, 347 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/am335x-regor-rdk-u-boot.dtsi
 create mode 100644 arch/arm/dts/am335x-regor-rdk.dts
 create mode 100644 arch/arm/dts/am335x-regor.dtsi
 create mode 100644 configs/phycore-am335x-r2-regor_defconfig
arch/arm/dts/Makefile +2 -1
index b195723f16..4f67108e7f 100644
@@ -347,7 +347,8 @@ dtb-$(CONFIG_AM33XX) += \
 	am335x-sl50.dtb \
 	am335x-base0033.dtb \
 	am335x-guardian.dtb \
-	am335x-wega-rdk.dtb
+	am335x-wega-rdk.dtb \
+	am335x-regor-rdk.dtb
 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb	\
 	am43x-epos-evm.dtb \
 	am437x-idk-evm.dtb \
arch/arm/dts/am335x-regor-rdk-u-boot.dtsi new file +31 -0
new file mode 100644
index 0000000000..1ddd715875
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2020 Linumiz
+ */
+
+/ {
+	chosen {
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		bootargs = "console=ttyO0,115200 earlyprintk";
+		stdout-path = &uart0;
+	};
+
+	ocp {
+		u-boot,dm-pre-reloc;
+	};
+};
+
+&i2c0 {
+	u-boot,dm-pre-reloc;
+};
+
+&uart0 {
+	u-boot,dm-pre-reloc;
+};
+
+&mmc1 {
+	u-boot,dm-pre-reloc;
+	cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+};
arch/arm/dts/am335x-regor-rdk.dts new file +24 -0
new file mode 100644
index 0000000000..66a1360b83
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 Phytec Messtechnik GmbH
+ * Author: Teresa Remmet <[email protected]>
+ *
+ */
+
+/dts-v1/;
+
+#include "am335x-phycore-som.dtsi"
+#include "am335x-regor.dtsi"
+
+/* SoM */
+&gpmc {
+	status = "okay";
+};
+
+&i2c_eeprom {
+	status = "okay";
+};
+
+&serial_flash {
+	status = "okay";
+};
arch/arm/dts/am335x-regor.dtsi new file +202 -0

202 lines not on this page · raw message

configs/phycore-am335x-r2-regor_defconfig new file +88 -0

88 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 ARM: am335x: Add phyBOARD REGOR support

Quoted 20 lines · Parthiban Nallathambi

phyBOARD-REGOR is based on phyCORE AM335x R2 SoM (PCL060).

CPU  : AM335X-GP rev 2.1
Model: Phytec AM335x phyBOARD-REGOR
DRAM:  512 MiB
NAND:  512 MiB
MMC:   OMAP SD/MMC: 0
eth0: ethernet at 4a100000

Working:
- Eth0
- i2C
- MMC/SD
- NAND
- UART
- USB (host)

Device trees were taken from Linux mainline:
commit c4d6fe731176 ("Linux 5.9.0")

Quoted 7 lines
---
 arch/arm/dts/Makefile                     |   3 +-
 arch/arm/dts/am335x-regor-rdk-u-boot.dtsi |  31 +++++
 arch/arm/dts/am335x-regor-rdk.dts         |  24 ++++
 arch/arm/dts/am335x-regor.dtsi            | 202 ++++++++++++++++++++++++++++++
 configs/phycore-am335x-r2-regor_defconfig |  88 +++++++++++++

You need to update the relevant for TARGET_PHYCORE_AM335X_R2 MAINTAINERS file to list this new config entry, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201022/af606b6d/attachment.sig>
author
#2 lore raw

PATCH 1/1 ARM: am335x: Add phyBOARD REGOR support

Dear Tom,

Quoted 30 lines · Tom Rini
Quoted 20 lines · Parthiban Nallathambi

phyBOARD-REGOR is based on phyCORE AM335x R2 SoM (PCL060).

CPU  : AM335X-GP rev 2.1
Model: Phytec AM335x phyBOARD-REGOR
DRAM:  512 MiB
NAND:  512 MiB
MMC:   OMAP SD/MMC: 0
eth0: ethernet at 4a100000

Working:
- Eth0
- i2C
- MMC/SD
- NAND
- UART
- USB (host)

Device trees were taken from Linux mainline:
commit c4d6fe731176 ("Linux 5.9.0")

Quoted 7 lines
---
 arch/arm/dts/Makefile                     |   3 +-
 arch/arm/dts/am335x-regor-rdk-u-boot.dtsi |  31 +++++
 arch/arm/dts/am335x-regor-rdk.dts         |  24 ++++
 arch/arm/dts/am335x-regor.dtsi            | 202 ++++++++++++++++++++++++++++++
 configs/phycore-am335x-r2-regor_defconfig |  88 +++++++++++++
Quoted 2 lines

You need to update the relevant for TARGET_PHYCORE_AM335X_R2 MAINTAINERS file to list this new config entry, thanks!

Thanks, addressed in v2.

Quoted 1 line