* [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches
@ 2020-07-23 8:56 Luka Kovacic
2020-07-23 8:56 ` [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board Luka Kovacic
` (4 more replies)
0 siblings, 5 replies; 16+ messages in thread
From: Luka Kovacic @ 2020-07-23 8:56 UTC (permalink / raw)
To: u-boot
These patches add support for a series of MikroTik CRS3xx, 98DX3236 based
switches.
Namely, support is added for:
- MikroTik CRS305-1G-4S+ Bit variant
- MikroTik CRS326-24G-2S+ (including the Bit variant)
- MikroTik CRS328-4C-20S-4S+ (including the Bit variant)
The Bit board variant is added for each of the boards.
These boards were modified to use a bigger Macronix flash.
This work is a follow-up on the previous patch, which prepared the board
support for CRS3xx-98DX3236 boards.
Luka Kovacic (5):
arm: mvebu: Add CRS305-1G-4S Bit board
arm: mvebu: Add CRS326-24G-2S board
arm: mvebu: Add CRS328-4C-20S-4S board
arm: mvebu: crs3xx-98dx3236: Add a maintainer
arm: mvebu: Update CRS305-1G-4S board flash layout
arch/arm/dts/Makefile | 5 +
arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts | 43 +++++++
arch/arm/dts/armada-xp-crs305-1g-4s.dtsi | 10 +-
arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts | 43 +++++++
.../dts/armada-xp-crs326-24g-2s-u-boot.dtsi | 13 +++
arch/arm/dts/armada-xp-crs326-24g-2s.dts | 17 +++
arch/arm/dts/armada-xp-crs326-24g-2s.dtsi | 110 ++++++++++++++++++
.../dts/armada-xp-crs328-4c-20s-4s-bit.dts | 43 +++++++
.../armada-xp-crs328-4c-20s-4s-u-boot.dtsi | 13 +++
arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts | 17 +++
arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi | 110 ++++++++++++++++++
board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 22 ++++
configs/crs305-1g-4s-bit_defconfig | 54 +++++++++
configs/crs305-1g-4s_defconfig | 9 +-
configs/crs326-24g-2s-bit_defconfig | 54 +++++++++
configs/crs326-24g-2s_defconfig | 54 +++++++++
configs/crs328-4c-20s-4s-bit_defconfig | 54 +++++++++
configs/crs328-4c-20s-4s_defconfig | 54 +++++++++
18 files changed, 719 insertions(+), 6 deletions(-)
create mode 100644 arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dts
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
create mode 100644 configs/crs305-1g-4s-bit_defconfig
create mode 100644 configs/crs326-24g-2s-bit_defconfig
create mode 100644 configs/crs326-24g-2s_defconfig
create mode 100644 configs/crs328-4c-20s-4s-bit_defconfig
create mode 100644 configs/crs328-4c-20s-4s_defconfig
--
2.26.2
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board
2020-07-23 8:56 [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches Luka Kovacic
@ 2020-07-23 8:56 ` Luka Kovacic
2020-08-06 12:07 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board Luka Kovacic
` (3 subsequent siblings)
4 siblings, 1 reply; 16+ messages in thread
From: Luka Kovacic @ 2020-07-23 8:56 UTC (permalink / raw)
To: u-boot
MikroTik CRS305-1G-4S Bit board has a switch chip with an integrated
Marvell Prestera 98DX3236 CPU.
The Bit board variant is added, which has a bigger Macronix flash.
Add basic U-Boot, UART and Winbond SPI flash support.
Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Jakov Petrina <jakov.petrina@sartura.hr>
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts | 43 ++++++++++++++++
board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 3 ++
configs/crs305-1g-4s-bit_defconfig | 54 +++++++++++++++++++++
4 files changed, 101 insertions(+)
create mode 100644 arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
create mode 100644 configs/crs305-1g-4s-bit_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index cee10f533f..72e1f4fa20 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -213,6 +213,7 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
armada-8040-db.dtb \
armada-8040-mcbin.dtb \
armada-xp-crs305-1g-4s.dtb \
+ armada-xp-crs305-1g-4s-bit.dtb \
armada-xp-db-xc3-24g4xg.dtb \
armada-xp-gp.dtb \
armada-xp-maxbcm.dtb \
diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts b/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
new file mode 100644
index 0000000000..059bf48aeb
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for MikroTik CRS305-1G-4S+ Bit board
+ *
+ * Copyright (C) 2020 Sartura Ltd.
+ * Author: Luka Kovacic <luka.kovacic@sartura.hr>
+ */
+
+#include "armada-xp-crs305-1g-4s.dtsi"
+
+/ {
+ model = "MikroTik CRS305-1G-4S+ Bit";
+};
+
+&spi0 {
+ status = "okay";
+
+ spi-flash at 0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-flash", "jedec,spi-nor";
+ reg = <0>; /* Chip select 0 */
+ spi-max-frequency = <108000000>;
+ m25p,fast-read;
+
+ partition at u-boot {
+ reg = <0x00000000 0x001f0000>;
+ label = "u-boot";
+ };
+ partition at u-boot-env {
+ reg = <0x001f0000 0x00010000>;
+ label = "u-boot-env";
+ };
+ partition at ubi1 {
+ reg = <0x00200000 0x03f00000>;
+ label = "ubi1";
+ };
+ partition at ubi2 {
+ reg = <0x04100000 0x03f00000>;
+ label = "ubi2";
+ };
+ };
+};
diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
index 127e0eac60..d02584bb1d 100644
--- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
+++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
@@ -6,6 +6,9 @@ F: include/configs/crs3xx-98dx3236.h
CRS305-1G-4S BOARD
M: Luka Kovacic <luka.kovacic@sartura.hr>
+M: Luka Perkov <luka.perkov@sartura.hr>
S: Maintained
F: configs/crs305-1g-4s_defconfig
+F: configs/crs305-1g-4s-bit_defconfig
F: arch/arm/dts/armada-xp-crs305-1g-4s.dts
+F: arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
diff --git a/configs/crs305-1g-4s-bit_defconfig b/configs/crs305-1g-4s-bit_defconfig
new file mode 100644
index 0000000000..0ecf11acb2
--- /dev/null
+++ b/configs/crs305-1g-4s-bit_defconfig
@@ -0,0 +1,54 @@
+CONFIG_ARM=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_ARCH_MVEBU=y
+CONFIG_SYS_TEXT_BASE=0x00800000
+CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_TARGET_CRS3XX_98DX3236=y
+CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_OFFSET=0x1F0000
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
+# CONFIG_EFI_LOADER is not set
+CONFIG_BUILD_TARGET="u-boot.kwb"
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
+CONFIG_AUTOBOOT_STOP_STR="s"
+CONFIG_AUTOBOOT_KEYED_CTRLC=y
+CONFIG_CMD_BOOTZ=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_I2C is not set
+CONFIG_CMD_SPI=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_UBI=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_MTD=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs305-1g-4s-bit"
+CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_BLK=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
+# CONFIG_DM_I2C is not set
+# CONFIG_SYS_I2C_MVTWSI is not set
+# CONFIG_MMC is not set
+CONFIG_MTD=y
+CONFIG_MTD_PARTITIONS=y
+CONFIG_DM_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_MACRONIX=y
+# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+CONFIG_FIT=y
+CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_BEST_MATCH=y
+CONFIG_PCI=y
+CONFIG_PCI_MVEBU=y
+CONFIG_SYS_NS16550=y
+CONFIG_KIRKWOOD_SPI=y
--
2.26.2
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board
2020-07-23 8:56 [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches Luka Kovacic
2020-07-23 8:56 ` [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board Luka Kovacic
@ 2020-07-23 8:56 ` Luka Kovacic
2020-08-06 12:07 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board Luka Kovacic
` (2 subsequent siblings)
4 siblings, 1 reply; 16+ messages in thread
From: Luka Kovacic @ 2020-07-23 8:56 UTC (permalink / raw)
To: u-boot
MikroTik CRS326-24G-2S board has a switch chip with an integrated
Marvell Prestera 98DX3236 CPU.
This commit includes two board variants, namely the factory
default one and a Bit variant. The Bit board variant has a
bigger Macronix flash.
Add basic U-Boot, UART and SPI flash support.
Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Jakov Petrina <jakov.petrina@sartura.hr>
---
arch/arm/dts/Makefile | 2 +
arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts | 43 +++++++
.../dts/armada-xp-crs326-24g-2s-u-boot.dtsi | 13 +++
arch/arm/dts/armada-xp-crs326-24g-2s.dts | 17 +++
arch/arm/dts/armada-xp-crs326-24g-2s.dtsi | 110 ++++++++++++++++++
board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 9 ++
configs/crs326-24g-2s-bit_defconfig | 54 +++++++++
configs/crs326-24g-2s_defconfig | 54 +++++++++
8 files changed, 302 insertions(+)
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dts
create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
create mode 100644 configs/crs326-24g-2s-bit_defconfig
create mode 100644 configs/crs326-24g-2s_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 72e1f4fa20..9f8ca61f28 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -214,6 +214,8 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
armada-8040-mcbin.dtb \
armada-xp-crs305-1g-4s.dtb \
armada-xp-crs305-1g-4s-bit.dtb \
+ armada-xp-crs326-24g-2s.dtb \
+ armada-xp-crs326-24g-2s-bit.dtb \
armada-xp-db-xc3-24g4xg.dtb \
armada-xp-gp.dtb \
armada-xp-maxbcm.dtb \
diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts b/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
new file mode 100644
index 0000000000..b340eedf71
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for MikroTik CRS326-24G-2S+ Bit board
+ *
+ * Copyright (C) 2020 Sartura Ltd.
+ * Author: Luka Kovacic <luka.kovacic@sartura.hr>
+ */
+
+#include "armada-xp-crs326-24g-2s.dtsi"
+
+/ {
+ model = "MikroTik CRS326-24G-2S+ Bit";
+};
+
+&spi0 {
+ status = "okay";
+
+ spi-flash at 0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-flash", "jedec,spi-nor";
+ reg = <0>; /* Chip select 0 */
+ spi-max-frequency = <108000000>;
+ m25p,fast-read;
+
+ partition at u-boot {
+ reg = <0x00000000 0x001f0000>;
+ label = "u-boot";
+ };
+ partition at u-boot-env {
+ reg = <0x001f0000 0x00010000>;
+ label = "u-boot-env";
+ };
+ partition at ubi1 {
+ reg = <0x00200000 0x03f00000>;
+ label = "ubi1";
+ };
+ partition at ubi2 {
+ reg = <0x04100000 0x03f00000>;
+ label = "ubi2";
+ };
+ };
+};
diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
new file mode 100644
index 0000000000..8576a02730
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+&uart0 {
+ u-boot,dm-pre-reloc;
+};
+
+&spi0 {
+ u-boot,dm-pre-reloc;
+
+ spi-flash at 0 {
+ u-boot,dm-pre-reloc;
+ };
+};
diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s.dts b/arch/arm/dts/armada-xp-crs326-24g-2s.dts
new file mode 100644
index 0000000000..83aef43f66
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs326-24g-2s.dts
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for MikroTik CRS326-24G-2S+ board
+ *
+ * Copyright (C) 2020 Sartura Ltd.
+ * Author: Luka Kovacic <luka.kovacic@sartura.hr>
+ */
+
+#include "armada-xp-crs326-24g-2s.dtsi"
+
+/ {
+ model = "MikroTik CRS326-24G-2S+";
+};
+
+&spi0 {
+ status = "okay";
+};
diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi b/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
new file mode 100644
index 0000000000..e50f3ead13
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for CRS326-24G-2S board
+ *
+ * Copyright (C) 2016 Allied Telesis Labs
+ * Copyright (C) 2020 Sartura Ltd.
+ *
+ * Based on armada-xp-db.dts
+ *
+ * Note: this Device Tree assumes that the bootloader has remapped the
+ * internal registers to 0xf1000000 (instead of the default
+ * 0xd0000000). The 0xf1000000 is the default used by the recent,
+ * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
+ * boards were delivered with an older version of the bootloader that
+ * left internal registers mapped at 0xd0000000. If you are in this
+ * situation, you should either update your bootloader (preferred
+ * solution) or the below Device Tree should be adjusted.
+ */
+
+/dts-v1/;
+#include "armada-xp-98dx3236.dtsi"
+#include "armada-xp-crs326-24g-2s-u-boot.dtsi"
+
+/ {
+ model = "CRS326-24G-2S+";
+ compatible = "marvell,armadaxp-98dx3236", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ bootargs = "console=ttyS0,115200 earlyprintk";
+ };
+
+ aliases {
+ spi0 = &spi0;
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <0 0x00000000 0 0x20000000>; /* 512 MB */
+ };
+};
+
+&L2 {
+ arm,parity-enable;
+ marvell,ecc-enable;
+};
+
+&devbus_bootcs {
+ status = "okay";
+
+ /* Device Bus parameters are required */
+
+ /* Read parameters */
+ devbus,bus-width = <16>;
+ devbus,turn-off-ps = <60000>;
+ devbus,badr-skew-ps = <0>;
+ devbus,acc-first-ps = <124000>;
+ devbus,acc-next-ps = <248000>;
+ devbus,rd-setup-ps = <0>;
+ devbus,rd-hold-ps = <0>;
+
+ /* Write parameters */
+ devbus,sync-enable = <0>;
+ devbus,wr-high-ps = <60000>;
+ devbus,wr-low-ps = <60000>;
+ devbus,ale-wr-ps = <60000>;
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
+
+&i2c0 {
+ clock-frequency = <100000>;
+ status = "okay";
+};
+
+&usb0 {
+ status = "okay";
+};
+
+&spi0 {
+ status = "okay";
+
+ spi-flash at 0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-flash", "jedec,spi-nor";
+ reg = <0>; /* Chip select 0 */
+ spi-max-frequency = <108000000>;
+ m25p,fast-read;
+
+ partition at u-boot {
+ reg = <0x00000000 0x001f0000>;
+ label = "u-boot";
+ };
+ partition at u-boot-env {
+ reg = <0x001f0000 0x00010000>;
+ label = "u-boot-env";
+ };
+ partition at ubi1 {
+ reg = <0x00200000 0x00e00000>;
+ label = "ubi1";
+ };
+ };
+};
diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
index d02584bb1d..7f01f4318e 100644
--- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
+++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
@@ -12,3 +12,12 @@ F: configs/crs305-1g-4s_defconfig
F: configs/crs305-1g-4s-bit_defconfig
F: arch/arm/dts/armada-xp-crs305-1g-4s.dts
F: arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
+
+CRS326-24G-2S BOARD
+M: Luka Kovacic <luka.kovacic@sartura.hr>
+M: Luka Perkov <luka.perkov@sartura.hr>
+S: Maintained
+F: configs/crs326-24g-2s_defconfig
+F: configs/crs326-24g-2s-bit_defconfig
+F: arch/arm/dts/armada-xp-crs326-24g-2s.dts
+F: arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
diff --git a/configs/crs326-24g-2s-bit_defconfig b/configs/crs326-24g-2s-bit_defconfig
new file mode 100644
index 0000000000..18f2d34453
--- /dev/null
+++ b/configs/crs326-24g-2s-bit_defconfig
@@ -0,0 +1,54 @@
+CONFIG_ARM=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_ARCH_MVEBU=y
+CONFIG_SYS_TEXT_BASE=0x00800000
+CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_TARGET_CRS3XX_98DX3236=y
+CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_OFFSET=0x1F0000
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
+# CONFIG_EFI_LOADER is not set
+CONFIG_BUILD_TARGET="u-boot.kwb"
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
+CONFIG_AUTOBOOT_STOP_STR="s"
+CONFIG_AUTOBOOT_KEYED_CTRLC=y
+CONFIG_CMD_BOOTZ=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_I2C is not set
+CONFIG_CMD_SPI=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_UBI=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_MTD=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs326-24g-2s-bit"
+CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_BLK=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
+# CONFIG_DM_I2C is not set
+# CONFIG_SYS_I2C_MVTWSI is not set
+# CONFIG_MMC is not set
+CONFIG_MTD=y
+CONFIG_MTD_PARTITIONS=y
+CONFIG_DM_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_MACRONIX=y
+# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+CONFIG_FIT=y
+CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_BEST_MATCH=y
+CONFIG_PCI=y
+CONFIG_PCI_MVEBU=y
+CONFIG_SYS_NS16550=y
+CONFIG_KIRKWOOD_SPI=y
diff --git a/configs/crs326-24g-2s_defconfig b/configs/crs326-24g-2s_defconfig
new file mode 100644
index 0000000000..fec7922f4c
--- /dev/null
+++ b/configs/crs326-24g-2s_defconfig
@@ -0,0 +1,54 @@
+CONFIG_ARM=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_ARCH_MVEBU=y
+CONFIG_SYS_TEXT_BASE=0x00800000
+CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_TARGET_CRS3XX_98DX3236=y
+CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_OFFSET=0x1F0000
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
+# CONFIG_EFI_LOADER is not set
+CONFIG_BUILD_TARGET="u-boot.kwb"
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
+CONFIG_AUTOBOOT_STOP_STR="s"
+CONFIG_AUTOBOOT_KEYED_CTRLC=y
+CONFIG_CMD_BOOTZ=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_I2C is not set
+CONFIG_CMD_SPI=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_UBI=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_MTD=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs326-24g-2s"
+CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_BLK=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
+# CONFIG_DM_I2C is not set
+# CONFIG_SYS_I2C_MVTWSI is not set
+# CONFIG_MMC is not set
+CONFIG_MTD=y
+CONFIG_MTD_PARTITIONS=y
+CONFIG_DM_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_WINBOND=y
+# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+CONFIG_FIT=y
+CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_BEST_MATCH=y
+CONFIG_PCI=y
+CONFIG_PCI_MVEBU=y
+CONFIG_SYS_NS16550=y
+CONFIG_KIRKWOOD_SPI=y
--
2.26.2
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board
2020-07-23 8:56 [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches Luka Kovacic
2020-07-23 8:56 ` [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board Luka Kovacic
2020-07-23 8:56 ` [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board Luka Kovacic
@ 2020-07-23 8:56 ` Luka Kovacic
2020-08-06 12:08 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer Luka Kovacic
2020-07-23 8:56 ` [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout Luka Kovacic
4 siblings, 1 reply; 16+ messages in thread
From: Luka Kovacic @ 2020-07-23 8:56 UTC (permalink / raw)
To: u-boot
MikroTik CRS328-4C-20S-4S board has a switch chip with an integrated
Marvell Prestera 98DX3236 CPU.
This commit includes two board variants, namely the factory
default one and a Bit variant. The Bit board variant has a
bigger Macronix flash.
Add basic U-Boot, UART and SPI flash support.
Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Jakov Petrina <jakov.petrina@sartura.hr>
---
arch/arm/dts/Makefile | 2 +
.../dts/armada-xp-crs328-4c-20s-4s-bit.dts | 43 +++++++
.../armada-xp-crs328-4c-20s-4s-u-boot.dtsi | 13 +++
arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts | 17 +++
arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi | 110 ++++++++++++++++++
board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 9 ++
configs/crs328-4c-20s-4s-bit_defconfig | 54 +++++++++
configs/crs328-4c-20s-4s_defconfig | 54 +++++++++
8 files changed, 302 insertions(+)
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
create mode 100644 configs/crs328-4c-20s-4s-bit_defconfig
create mode 100644 configs/crs328-4c-20s-4s_defconfig
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 9f8ca61f28..deced1ad7d 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -216,6 +216,8 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
armada-xp-crs305-1g-4s-bit.dtb \
armada-xp-crs326-24g-2s.dtb \
armada-xp-crs326-24g-2s-bit.dtb \
+ armada-xp-crs328-4c-20s-4s.dtb \
+ armada-xp-crs328-4c-20s-4s-bit.dtb \
armada-xp-db-xc3-24g4xg.dtb \
armada-xp-gp.dtb \
armada-xp-maxbcm.dtb \
diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
new file mode 100644
index 0000000000..d684c895ff
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for MikroTik CRS328-4C-20S-4S+ Bit board
+ *
+ * Copyright (C) 2020 Sartura Ltd.
+ * Author: Luka Kovacic <luka.kovacic@sartura.hr>
+ */
+
+#include "armada-xp-crs328-4c-20s-4s.dtsi"
+
+/ {
+ model = "MikroTik CRS328-4C-20S-4S+ Bit";
+};
+
+&spi0 {
+ status = "okay";
+
+ spi-flash at 0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-flash", "jedec,spi-nor";
+ reg = <0>; /* Chip select 0 */
+ spi-max-frequency = <108000000>;
+ m25p,fast-read;
+
+ partition at u-boot {
+ reg = <0x00000000 0x001f0000>;
+ label = "u-boot";
+ };
+ partition at u-boot-env {
+ reg = <0x001f0000 0x00010000>;
+ label = "u-boot-env";
+ };
+ partition at ubi1 {
+ reg = <0x00200000 0x03f00000>;
+ label = "ubi1";
+ };
+ partition at ubi2 {
+ reg = <0x04100000 0x03f00000>;
+ label = "ubi2";
+ };
+ };
+};
diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
new file mode 100644
index 0000000000..8576a02730
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+&uart0 {
+ u-boot,dm-pre-reloc;
+};
+
+&spi0 {
+ u-boot,dm-pre-reloc;
+
+ spi-flash at 0 {
+ u-boot,dm-pre-reloc;
+ };
+};
diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
new file mode 100644
index 0000000000..665757f6e1
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for MikroTik CRS328-4C-20S-4S+ board
+ *
+ * Copyright (C) 2020 Sartura Ltd.
+ * Author: Luka Kovacic <luka.kovacic@sartura.hr>
+ */
+
+#include "armada-xp-crs328-4c-20s-4s.dtsi"
+
+/ {
+ model = "MikroTik CRS328-4C-20S-4S+";
+};
+
+&spi0 {
+ status = "okay";
+};
diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
new file mode 100644
index 0000000000..daff1af2a2
--- /dev/null
+++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Device Tree file for CRS328-4C-20S-4S+ board
+ *
+ * Copyright (C) 2016 Allied Telesis Labs
+ * Copyright (C) 2020 Sartura Ltd.
+ *
+ * Based on armada-xp-db.dts
+ *
+ * Note: this Device Tree assumes that the bootloader has remapped the
+ * internal registers to 0xf1000000 (instead of the default
+ * 0xd0000000). The 0xf1000000 is the default used by the recent,
+ * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
+ * boards were delivered with an older version of the bootloader that
+ * left internal registers mapped at 0xd0000000. If you are in this
+ * situation, you should either update your bootloader (preferred
+ * solution) or the below Device Tree should be adjusted.
+ */
+
+/dts-v1/;
+#include "armada-xp-98dx3236.dtsi"
+#include "armada-xp-crs328-4c-20s-4s-u-boot.dtsi"
+
+/ {
+ model = "CRS328-4C-20S-4S+";
+ compatible = "marvell,armadaxp-98dx3236", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ bootargs = "console=ttyS0,115200 earlyprintk";
+ };
+
+ aliases {
+ spi0 = &spi0;
+ };
+
+ memory {
+ device_type = "memory";
+ reg = <0 0x00000000 0 0x20000000>; /* 512 MB */
+ };
+};
+
+&L2 {
+ arm,parity-enable;
+ marvell,ecc-enable;
+};
+
+&devbus_bootcs {
+ status = "okay";
+
+ /* Device Bus parameters are required */
+
+ /* Read parameters */
+ devbus,bus-width = <16>;
+ devbus,turn-off-ps = <60000>;
+ devbus,badr-skew-ps = <0>;
+ devbus,acc-first-ps = <124000>;
+ devbus,acc-next-ps = <248000>;
+ devbus,rd-setup-ps = <0>;
+ devbus,rd-hold-ps = <0>;
+
+ /* Write parameters */
+ devbus,sync-enable = <0>;
+ devbus,wr-high-ps = <60000>;
+ devbus,wr-low-ps = <60000>;
+ devbus,ale-wr-ps = <60000>;
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
+
+&i2c0 {
+ clock-frequency = <100000>;
+ status = "okay";
+};
+
+&usb0 {
+ status = "okay";
+};
+
+&spi0 {
+ status = "okay";
+
+ spi-flash at 0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-flash", "jedec,spi-nor";
+ reg = <0>; /* Chip select 0 */
+ spi-max-frequency = <108000000>;
+ m25p,fast-read;
+
+ partition at u-boot {
+ reg = <0x00000000 0x001f0000>;
+ label = "u-boot";
+ };
+ partition at u-boot-env {
+ reg = <0x001f0000 0x00010000>;
+ label = "u-boot-env";
+ };
+ partition at ubi1 {
+ reg = <0x00200000 0x00e00000>;
+ label = "ubi1";
+ };
+ };
+};
diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
index 7f01f4318e..e6fbf3db1c 100644
--- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
+++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
@@ -21,3 +21,12 @@ F: configs/crs326-24g-2s_defconfig
F: configs/crs326-24g-2s-bit_defconfig
F: arch/arm/dts/armada-xp-crs326-24g-2s.dts
F: arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
+
+CRS328-4C-20S-4S BOARD
+M: Luka Kovacic <luka.kovacic@sartura.hr>
+M: Luka Perkov <luka.perkov@sartura.hr>
+S: Maintained
+F: configs/crs328-4c-20s-4s_defconfig
+F: configs/crs328-4c-20s-4s-bit_defconfig
+F: arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
+F: arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
diff --git a/configs/crs328-4c-20s-4s-bit_defconfig b/configs/crs328-4c-20s-4s-bit_defconfig
new file mode 100644
index 0000000000..9b949e63da
--- /dev/null
+++ b/configs/crs328-4c-20s-4s-bit_defconfig
@@ -0,0 +1,54 @@
+CONFIG_ARM=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_ARCH_MVEBU=y
+CONFIG_SYS_TEXT_BASE=0x00800000
+CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_TARGET_CRS3XX_98DX3236=y
+CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_OFFSET=0x1F0000
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
+# CONFIG_EFI_LOADER is not set
+CONFIG_BUILD_TARGET="u-boot.kwb"
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
+CONFIG_AUTOBOOT_STOP_STR="s"
+CONFIG_AUTOBOOT_KEYED_CTRLC=y
+CONFIG_CMD_BOOTZ=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_I2C is not set
+CONFIG_CMD_SPI=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_UBI=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_MTD=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs328-4c-20s-4s-bit"
+CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_BLK=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
+# CONFIG_DM_I2C is not set
+# CONFIG_SYS_I2C_MVTWSI is not set
+# CONFIG_MMC is not set
+CONFIG_MTD=y
+CONFIG_MTD_PARTITIONS=y
+CONFIG_DM_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_MACRONIX=y
+# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+CONFIG_FIT=y
+CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_BEST_MATCH=y
+CONFIG_PCI=y
+CONFIG_PCI_MVEBU=y
+CONFIG_SYS_NS16550=y
+CONFIG_KIRKWOOD_SPI=y
diff --git a/configs/crs328-4c-20s-4s_defconfig b/configs/crs328-4c-20s-4s_defconfig
new file mode 100644
index 0000000000..33eefbd475
--- /dev/null
+++ b/configs/crs328-4c-20s-4s_defconfig
@@ -0,0 +1,54 @@
+CONFIG_ARM=y
+CONFIG_ARCH_CPU_INIT=y
+CONFIG_ARCH_MVEBU=y
+CONFIG_SYS_TEXT_BASE=0x00800000
+CONFIG_SYS_MALLOC_F_LEN=0x2000
+CONFIG_TARGET_CRS3XX_98DX3236=y
+CONFIG_ENV_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_OFFSET=0x1F0000
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
+# CONFIG_EFI_LOADER is not set
+CONFIG_BUILD_TARGET="u-boot.kwb"
+CONFIG_USE_PREBOOT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
+CONFIG_AUTOBOOT_STOP_STR="s"
+CONFIG_AUTOBOOT_KEYED_CTRLC=y
+CONFIG_CMD_BOOTZ=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_I2C is not set
+CONFIG_CMD_SPI=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_UBI=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_MTD=y
+CONFIG_CMD_MTDPARTS=y
+CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs328-4c-20s-4s"
+CONFIG_ENV_IS_IN_SPI_FLASH=y
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_BLK=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
+# CONFIG_DM_I2C is not set
+# CONFIG_SYS_I2C_MVTWSI is not set
+# CONFIG_MMC is not set
+CONFIG_MTD=y
+CONFIG_MTD_PARTITIONS=y
+CONFIG_DM_MTD=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_WINBOND=y
+# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+CONFIG_FIT=y
+CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_BEST_MATCH=y
+CONFIG_PCI=y
+CONFIG_PCI_MVEBU=y
+CONFIG_SYS_NS16550=y
+CONFIG_KIRKWOOD_SPI=y
--
2.26.2
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer
2020-07-23 8:56 [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches Luka Kovacic
` (2 preceding siblings ...)
2020-07-23 8:56 ` [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board Luka Kovacic
@ 2020-07-23 8:56 ` Luka Kovacic
2020-08-06 12:08 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout Luka Kovacic
4 siblings, 1 reply; 16+ messages in thread
From: Luka Kovacic @ 2020-07-23 8:56 UTC (permalink / raw)
To: u-boot
Add Luka Perkov to CRS3xx-98DX3236 MAINTAINERS.
Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Jakov Petrina <jakov.petrina@sartura.hr>
---
board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
index e6fbf3db1c..906ff98970 100644
--- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
+++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
@@ -1,5 +1,6 @@
CRS3XX-98DX3236 BOARD
M: Luka Kovacic <luka.kovacic@sartura.hr>
+M: Luka Perkov <luka.perkov@sartura.hr>
S: Maintained
F: board/mikrotik/crs3xx-98dx3236/
F: include/configs/crs3xx-98dx3236.h
--
2.26.2
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout
2020-07-23 8:56 [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches Luka Kovacic
` (3 preceding siblings ...)
2020-07-23 8:56 ` [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer Luka Kovacic
@ 2020-07-23 8:56 ` Luka Kovacic
2020-08-06 12:08 ` Stefan Roese
4 siblings, 1 reply; 16+ messages in thread
From: Luka Kovacic @ 2020-07-23 8:56 UTC (permalink / raw)
To: u-boot
Update the MikroTik CRS305-1G-4S flash layout to support redundant UBI
partitions.
Additionally enable the UBI commands in crs305-1g-4s_defconfig.
Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Jakov Petrina <jakov.petrina@sartura.hr>
---
arch/arm/dts/armada-xp-crs305-1g-4s.dtsi | 10 +++++-----
configs/crs305-1g-4s_defconfig | 9 ++++++++-
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi b/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
index c8839eac94..1a74ecd5b5 100644
--- a/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
+++ b/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
@@ -95,16 +95,16 @@
m25p,fast-read;
partition at u-boot {
- reg = <0x00000000 0x00080000>;
+ reg = <0x00000000 0x001f0000>;
label = "u-boot";
};
partition at u-boot-env {
- reg = <0x00080000 0x00010000>;
+ reg = <0x001f0000 0x00010000>;
label = "u-boot-env";
};
- partition at firmware {
- reg = <0x00090000 0x00f70000>;
- label = "firmware";
+ partition at ubi1 {
+ reg = <0x00200000 0x00e00000>;
+ label = "ubi1";
};
};
diff --git a/configs/crs305-1g-4s_defconfig b/configs/crs305-1g-4s_defconfig
index a360fc5d3f..a62b14e856 100644
--- a/configs/crs305-1g-4s_defconfig
+++ b/configs/crs305-1g-4s_defconfig
@@ -5,14 +5,17 @@ CONFIG_SYS_TEXT_BASE=0x00800000
CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_TARGET_CRS3XX_98DX3236=y
CONFIG_ENV_SIZE=0x10000
-CONFIG_ENV_OFFSET=0x80000
+CONFIG_ENV_OFFSET=0x1F0000
CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_BOOTCOUNT_BOOTLIMIT=3
CONFIG_BUILD_TARGET="u-boot.kwb"
CONFIG_FIT=y
+CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
CONFIG_FIT_VERBOSE=y
CONFIG_FIT_BEST_MATCH=y
CONFIG_USE_PREBOOT=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
CONFIG_AUTOBOOT_KEYED=y
CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
CONFIG_AUTOBOOT_STOP_STR="s"
@@ -22,11 +25,15 @@ CONFIG_CMD_BOOTZ=y
CONFIG_CMD_MTD=y
CONFIG_CMD_SPI=y
CONFIG_CMD_CACHE=y
+CONFIG_CMD_UBI=y
+CONFIG_CMD_FS_GENERIC=y
CONFIG_CMD_MTDPARTS=y
CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs305-1g-4s"
CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_BLK=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
# CONFIG_MMC is not set
CONFIG_MTD=y
CONFIG_DM_MTD=y
--
2.26.2
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board
2020-07-23 8:56 ` [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board Luka Kovacic
@ 2020-08-06 12:07 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
0 siblings, 1 reply; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 12:07 UTC (permalink / raw)
To: u-boot
On 23.07.20 10:56, Luka Kovacic wrote:
> MikroTik CRS305-1G-4S Bit board has a switch chip with an integrated
> Marvell Prestera 98DX3236 CPU.
>
> The Bit board variant is added, which has a bigger Macronix flash.
>
> Add basic U-Boot, UART and Winbond SPI flash support.
>
> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
> Cc: Luka Perkov <luka.perkov@sartura.hr>
> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> arch/arm/dts/Makefile | 1 +
> arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts | 43 ++++++++++++++++
> board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 3 ++
> configs/crs305-1g-4s-bit_defconfig | 54 +++++++++++++++++++++
> 4 files changed, 101 insertions(+)
> create mode 100644 arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
> create mode 100644 configs/crs305-1g-4s-bit_defconfig
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index cee10f533f..72e1f4fa20 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -213,6 +213,7 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
> armada-8040-db.dtb \
> armada-8040-mcbin.dtb \
> armada-xp-crs305-1g-4s.dtb \
> + armada-xp-crs305-1g-4s-bit.dtb \
> armada-xp-db-xc3-24g4xg.dtb \
> armada-xp-gp.dtb \
> armada-xp-maxbcm.dtb \
> diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts b/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
> new file mode 100644
> index 0000000000..059bf48aeb
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
> @@ -0,0 +1,43 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for MikroTik CRS305-1G-4S+ Bit board
> + *
> + * Copyright (C) 2020 Sartura Ltd.
> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
> + */
> +
> +#include "armada-xp-crs305-1g-4s.dtsi"
> +
> +/ {
> + model = "MikroTik CRS305-1G-4S+ Bit";
> +};
> +
> +&spi0 {
> + status = "okay";
> +
> + spi-flash at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spi-flash", "jedec,spi-nor";
> + reg = <0>; /* Chip select 0 */
> + spi-max-frequency = <108000000>;
> + m25p,fast-read;
> +
> + partition at u-boot {
> + reg = <0x00000000 0x001f0000>;
> + label = "u-boot";
> + };
> + partition at u-boot-env {
> + reg = <0x001f0000 0x00010000>;
> + label = "u-boot-env";
> + };
> + partition at ubi1 {
> + reg = <0x00200000 0x03f00000>;
> + label = "ubi1";
> + };
> + partition at ubi2 {
> + reg = <0x04100000 0x03f00000>;
> + label = "ubi2";
> + };
> + };
> +};
> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> index 127e0eac60..d02584bb1d 100644
> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> @@ -6,6 +6,9 @@ F: include/configs/crs3xx-98dx3236.h
>
> CRS305-1G-4S BOARD
> M: Luka Kovacic <luka.kovacic@sartura.hr>
> +M: Luka Perkov <luka.perkov@sartura.hr>
> S: Maintained
> F: configs/crs305-1g-4s_defconfig
> +F: configs/crs305-1g-4s-bit_defconfig
> F: arch/arm/dts/armada-xp-crs305-1g-4s.dts
> +F: arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
> diff --git a/configs/crs305-1g-4s-bit_defconfig b/configs/crs305-1g-4s-bit_defconfig
> new file mode 100644
> index 0000000000..0ecf11acb2
> --- /dev/null
> +++ b/configs/crs305-1g-4s-bit_defconfig
> @@ -0,0 +1,54 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_CPU_INIT=y
> +CONFIG_ARCH_MVEBU=y
> +CONFIG_SYS_TEXT_BASE=0x00800000
> +CONFIG_SYS_MALLOC_F_LEN=0x2000
> +CONFIG_TARGET_CRS3XX_98DX3236=y
> +CONFIG_ENV_SIZE=0x10000
> +CONFIG_ENV_SECT_SIZE=0x10000
> +CONFIG_ENV_OFFSET=0x1F0000
> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
> +# CONFIG_EFI_LOADER is not set
> +CONFIG_BUILD_TARGET="u-boot.kwb"
> +CONFIG_USE_PREBOOT=y
> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
> +CONFIG_HUSH_PARSER=y
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
> +CONFIG_AUTOBOOT_STOP_STR="s"
> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
> +CONFIG_CMD_BOOTZ=y
> +# CONFIG_CMD_FLASH is not set
> +# CONFIG_CMD_I2C is not set
> +CONFIG_CMD_SPI=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_UBI=y
> +CONFIG_CMD_FS_GENERIC=y
> +CONFIG_CMD_MTD=y
> +CONFIG_CMD_MTDPARTS=y
> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs305-1g-4s-bit"
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_BLK=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y
> +# CONFIG_DM_I2C is not set
> +# CONFIG_SYS_I2C_MVTWSI is not set
> +# CONFIG_MMC is not set
> +CONFIG_MTD=y
> +CONFIG_MTD_PARTITIONS=y
> +CONFIG_DM_MTD=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MTD=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> +CONFIG_SPI_FLASH_BAR=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> +CONFIG_FIT=y
> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
> +CONFIG_FIT_VERBOSE=y
> +CONFIG_FIT_BEST_MATCH=y
> +CONFIG_PCI=y
> +CONFIG_PCI_MVEBU=y
> +CONFIG_SYS_NS16550=y
> +CONFIG_KIRKWOOD_SPI=y
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board
2020-07-23 8:56 ` [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board Luka Kovacic
@ 2020-08-06 12:07 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
0 siblings, 1 reply; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 12:07 UTC (permalink / raw)
To: u-boot
On 23.07.20 10:56, Luka Kovacic wrote:
> MikroTik CRS326-24G-2S board has a switch chip with an integrated
> Marvell Prestera 98DX3236 CPU.
>
> This commit includes two board variants, namely the factory
> default one and a Bit variant. The Bit board variant has a
> bigger Macronix flash.
>
> Add basic U-Boot, UART and SPI flash support.
>
> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
> Cc: Luka Perkov <luka.perkov@sartura.hr>
> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> arch/arm/dts/Makefile | 2 +
> arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts | 43 +++++++
> .../dts/armada-xp-crs326-24g-2s-u-boot.dtsi | 13 +++
> arch/arm/dts/armada-xp-crs326-24g-2s.dts | 17 +++
> arch/arm/dts/armada-xp-crs326-24g-2s.dtsi | 110 ++++++++++++++++++
> board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 9 ++
> configs/crs326-24g-2s-bit_defconfig | 54 +++++++++
> configs/crs326-24g-2s_defconfig | 54 +++++++++
> 8 files changed, 302 insertions(+)
> create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
> create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
> create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dts
> create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
> create mode 100644 configs/crs326-24g-2s-bit_defconfig
> create mode 100644 configs/crs326-24g-2s_defconfig
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 72e1f4fa20..9f8ca61f28 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -214,6 +214,8 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
> armada-8040-mcbin.dtb \
> armada-xp-crs305-1g-4s.dtb \
> armada-xp-crs305-1g-4s-bit.dtb \
> + armada-xp-crs326-24g-2s.dtb \
> + armada-xp-crs326-24g-2s-bit.dtb \
> armada-xp-db-xc3-24g4xg.dtb \
> armada-xp-gp.dtb \
> armada-xp-maxbcm.dtb \
> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts b/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
> new file mode 100644
> index 0000000000..b340eedf71
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
> @@ -0,0 +1,43 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for MikroTik CRS326-24G-2S+ Bit board
> + *
> + * Copyright (C) 2020 Sartura Ltd.
> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
> + */
> +
> +#include "armada-xp-crs326-24g-2s.dtsi"
> +
> +/ {
> + model = "MikroTik CRS326-24G-2S+ Bit";
> +};
> +
> +&spi0 {
> + status = "okay";
> +
> + spi-flash at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spi-flash", "jedec,spi-nor";
> + reg = <0>; /* Chip select 0 */
> + spi-max-frequency = <108000000>;
> + m25p,fast-read;
> +
> + partition at u-boot {
> + reg = <0x00000000 0x001f0000>;
> + label = "u-boot";
> + };
> + partition at u-boot-env {
> + reg = <0x001f0000 0x00010000>;
> + label = "u-boot-env";
> + };
> + partition at ubi1 {
> + reg = <0x00200000 0x03f00000>;
> + label = "ubi1";
> + };
> + partition at ubi2 {
> + reg = <0x04100000 0x03f00000>;
> + label = "ubi2";
> + };
> + };
> +};
> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
> new file mode 100644
> index 0000000000..8576a02730
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
> @@ -0,0 +1,13 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +
> +&uart0 {
> + u-boot,dm-pre-reloc;
> +};
> +
> +&spi0 {
> + u-boot,dm-pre-reloc;
> +
> + spi-flash at 0 {
> + u-boot,dm-pre-reloc;
> + };
> +};
> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s.dts b/arch/arm/dts/armada-xp-crs326-24g-2s.dts
> new file mode 100644
> index 0000000000..83aef43f66
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s.dts
> @@ -0,0 +1,17 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for MikroTik CRS326-24G-2S+ board
> + *
> + * Copyright (C) 2020 Sartura Ltd.
> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
> + */
> +
> +#include "armada-xp-crs326-24g-2s.dtsi"
> +
> +/ {
> + model = "MikroTik CRS326-24G-2S+";
> +};
> +
> +&spi0 {
> + status = "okay";
> +};
> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi b/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
> new file mode 100644
> index 0000000000..e50f3ead13
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
> @@ -0,0 +1,110 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for CRS326-24G-2S board
> + *
> + * Copyright (C) 2016 Allied Telesis Labs
> + * Copyright (C) 2020 Sartura Ltd.
> + *
> + * Based on armada-xp-db.dts
> + *
> + * Note: this Device Tree assumes that the bootloader has remapped the
> + * internal registers to 0xf1000000 (instead of the default
> + * 0xd0000000). The 0xf1000000 is the default used by the recent,
> + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
> + * boards were delivered with an older version of the bootloader that
> + * left internal registers mapped at 0xd0000000. If you are in this
> + * situation, you should either update your bootloader (preferred
> + * solution) or the below Device Tree should be adjusted.
> + */
> +
> +/dts-v1/;
> +#include "armada-xp-98dx3236.dtsi"
> +#include "armada-xp-crs326-24g-2s-u-boot.dtsi"
> +
> +/ {
> + model = "CRS326-24G-2S+";
> + compatible = "marvell,armadaxp-98dx3236", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + bootargs = "console=ttyS0,115200 earlyprintk";
> + };
> +
> + aliases {
> + spi0 = &spi0;
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0 0x00000000 0 0x20000000>; /* 512 MB */
> + };
> +};
> +
> +&L2 {
> + arm,parity-enable;
> + marvell,ecc-enable;
> +};
> +
> +&devbus_bootcs {
> + status = "okay";
> +
> + /* Device Bus parameters are required */
> +
> + /* Read parameters */
> + devbus,bus-width = <16>;
> + devbus,turn-off-ps = <60000>;
> + devbus,badr-skew-ps = <0>;
> + devbus,acc-first-ps = <124000>;
> + devbus,acc-next-ps = <248000>;
> + devbus,rd-setup-ps = <0>;
> + devbus,rd-hold-ps = <0>;
> +
> + /* Write parameters */
> + devbus,sync-enable = <0>;
> + devbus,wr-high-ps = <60000>;
> + devbus,wr-low-ps = <60000>;
> + devbus,ale-wr-ps = <60000>;
> +};
> +
> +&uart0 {
> + status = "okay";
> +};
> +
> +&uart1 {
> + status = "okay";
> +};
> +
> +&i2c0 {
> + clock-frequency = <100000>;
> + status = "okay";
> +};
> +
> +&usb0 {
> + status = "okay";
> +};
> +
> +&spi0 {
> + status = "okay";
> +
> + spi-flash at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spi-flash", "jedec,spi-nor";
> + reg = <0>; /* Chip select 0 */
> + spi-max-frequency = <108000000>;
> + m25p,fast-read;
> +
> + partition at u-boot {
> + reg = <0x00000000 0x001f0000>;
> + label = "u-boot";
> + };
> + partition at u-boot-env {
> + reg = <0x001f0000 0x00010000>;
> + label = "u-boot-env";
> + };
> + partition at ubi1 {
> + reg = <0x00200000 0x00e00000>;
> + label = "ubi1";
> + };
> + };
> +};
> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> index d02584bb1d..7f01f4318e 100644
> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> @@ -12,3 +12,12 @@ F: configs/crs305-1g-4s_defconfig
> F: configs/crs305-1g-4s-bit_defconfig
> F: arch/arm/dts/armada-xp-crs305-1g-4s.dts
> F: arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
> +
> +CRS326-24G-2S BOARD
> +M: Luka Kovacic <luka.kovacic@sartura.hr>
> +M: Luka Perkov <luka.perkov@sartura.hr>
> +S: Maintained
> +F: configs/crs326-24g-2s_defconfig
> +F: configs/crs326-24g-2s-bit_defconfig
> +F: arch/arm/dts/armada-xp-crs326-24g-2s.dts
> +F: arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
> diff --git a/configs/crs326-24g-2s-bit_defconfig b/configs/crs326-24g-2s-bit_defconfig
> new file mode 100644
> index 0000000000..18f2d34453
> --- /dev/null
> +++ b/configs/crs326-24g-2s-bit_defconfig
> @@ -0,0 +1,54 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_CPU_INIT=y
> +CONFIG_ARCH_MVEBU=y
> +CONFIG_SYS_TEXT_BASE=0x00800000
> +CONFIG_SYS_MALLOC_F_LEN=0x2000
> +CONFIG_TARGET_CRS3XX_98DX3236=y
> +CONFIG_ENV_SIZE=0x10000
> +CONFIG_ENV_SECT_SIZE=0x10000
> +CONFIG_ENV_OFFSET=0x1F0000
> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
> +# CONFIG_EFI_LOADER is not set
> +CONFIG_BUILD_TARGET="u-boot.kwb"
> +CONFIG_USE_PREBOOT=y
> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
> +CONFIG_HUSH_PARSER=y
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
> +CONFIG_AUTOBOOT_STOP_STR="s"
> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
> +CONFIG_CMD_BOOTZ=y
> +# CONFIG_CMD_FLASH is not set
> +# CONFIG_CMD_I2C is not set
> +CONFIG_CMD_SPI=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_UBI=y
> +CONFIG_CMD_FS_GENERIC=y
> +CONFIG_CMD_MTD=y
> +CONFIG_CMD_MTDPARTS=y
> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs326-24g-2s-bit"
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_BLK=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y
> +# CONFIG_DM_I2C is not set
> +# CONFIG_SYS_I2C_MVTWSI is not set
> +# CONFIG_MMC is not set
> +CONFIG_MTD=y
> +CONFIG_MTD_PARTITIONS=y
> +CONFIG_DM_MTD=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MTD=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> +CONFIG_SPI_FLASH_BAR=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> +CONFIG_FIT=y
> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
> +CONFIG_FIT_VERBOSE=y
> +CONFIG_FIT_BEST_MATCH=y
> +CONFIG_PCI=y
> +CONFIG_PCI_MVEBU=y
> +CONFIG_SYS_NS16550=y
> +CONFIG_KIRKWOOD_SPI=y
> diff --git a/configs/crs326-24g-2s_defconfig b/configs/crs326-24g-2s_defconfig
> new file mode 100644
> index 0000000000..fec7922f4c
> --- /dev/null
> +++ b/configs/crs326-24g-2s_defconfig
> @@ -0,0 +1,54 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_CPU_INIT=y
> +CONFIG_ARCH_MVEBU=y
> +CONFIG_SYS_TEXT_BASE=0x00800000
> +CONFIG_SYS_MALLOC_F_LEN=0x2000
> +CONFIG_TARGET_CRS3XX_98DX3236=y
> +CONFIG_ENV_SIZE=0x10000
> +CONFIG_ENV_SECT_SIZE=0x10000
> +CONFIG_ENV_OFFSET=0x1F0000
> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
> +# CONFIG_EFI_LOADER is not set
> +CONFIG_BUILD_TARGET="u-boot.kwb"
> +CONFIG_USE_PREBOOT=y
> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
> +CONFIG_HUSH_PARSER=y
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
> +CONFIG_AUTOBOOT_STOP_STR="s"
> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
> +CONFIG_CMD_BOOTZ=y
> +# CONFIG_CMD_FLASH is not set
> +# CONFIG_CMD_I2C is not set
> +CONFIG_CMD_SPI=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_UBI=y
> +CONFIG_CMD_FS_GENERIC=y
> +CONFIG_CMD_MTD=y
> +CONFIG_CMD_MTDPARTS=y
> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs326-24g-2s"
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_BLK=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y
> +# CONFIG_DM_I2C is not set
> +# CONFIG_SYS_I2C_MVTWSI is not set
> +# CONFIG_MMC is not set
> +CONFIG_MTD=y
> +CONFIG_MTD_PARTITIONS=y
> +CONFIG_DM_MTD=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MTD=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> +CONFIG_SPI_FLASH_BAR=y
> +CONFIG_SPI_FLASH_WINBOND=y
> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> +CONFIG_FIT=y
> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
> +CONFIG_FIT_VERBOSE=y
> +CONFIG_FIT_BEST_MATCH=y
> +CONFIG_PCI=y
> +CONFIG_PCI_MVEBU=y
> +CONFIG_SYS_NS16550=y
> +CONFIG_KIRKWOOD_SPI=y
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board
2020-07-23 8:56 ` [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board Luka Kovacic
@ 2020-08-06 12:08 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
0 siblings, 1 reply; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 12:08 UTC (permalink / raw)
To: u-boot
On 23.07.20 10:56, Luka Kovacic wrote:
> MikroTik CRS328-4C-20S-4S board has a switch chip with an integrated
> Marvell Prestera 98DX3236 CPU.
>
> This commit includes two board variants, namely the factory
> default one and a Bit variant. The Bit board variant has a
> bigger Macronix flash.
>
> Add basic U-Boot, UART and SPI flash support.
>
> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
> Cc: Luka Perkov <luka.perkov@sartura.hr>
> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> arch/arm/dts/Makefile | 2 +
> .../dts/armada-xp-crs328-4c-20s-4s-bit.dts | 43 +++++++
> .../armada-xp-crs328-4c-20s-4s-u-boot.dtsi | 13 +++
> arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts | 17 +++
> arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi | 110 ++++++++++++++++++
> board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 9 ++
> configs/crs328-4c-20s-4s-bit_defconfig | 54 +++++++++
> configs/crs328-4c-20s-4s_defconfig | 54 +++++++++
> 8 files changed, 302 insertions(+)
> create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
> create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
> create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
> create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
> create mode 100644 configs/crs328-4c-20s-4s-bit_defconfig
> create mode 100644 configs/crs328-4c-20s-4s_defconfig
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 9f8ca61f28..deced1ad7d 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -216,6 +216,8 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
> armada-xp-crs305-1g-4s-bit.dtb \
> armada-xp-crs326-24g-2s.dtb \
> armada-xp-crs326-24g-2s-bit.dtb \
> + armada-xp-crs328-4c-20s-4s.dtb \
> + armada-xp-crs328-4c-20s-4s-bit.dtb \
> armada-xp-db-xc3-24g4xg.dtb \
> armada-xp-gp.dtb \
> armada-xp-maxbcm.dtb \
> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
> new file mode 100644
> index 0000000000..d684c895ff
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
> @@ -0,0 +1,43 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for MikroTik CRS328-4C-20S-4S+ Bit board
> + *
> + * Copyright (C) 2020 Sartura Ltd.
> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
> + */
> +
> +#include "armada-xp-crs328-4c-20s-4s.dtsi"
> +
> +/ {
> + model = "MikroTik CRS328-4C-20S-4S+ Bit";
> +};
> +
> +&spi0 {
> + status = "okay";
> +
> + spi-flash at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spi-flash", "jedec,spi-nor";
> + reg = <0>; /* Chip select 0 */
> + spi-max-frequency = <108000000>;
> + m25p,fast-read;
> +
> + partition at u-boot {
> + reg = <0x00000000 0x001f0000>;
> + label = "u-boot";
> + };
> + partition at u-boot-env {
> + reg = <0x001f0000 0x00010000>;
> + label = "u-boot-env";
> + };
> + partition at ubi1 {
> + reg = <0x00200000 0x03f00000>;
> + label = "ubi1";
> + };
> + partition at ubi2 {
> + reg = <0x04100000 0x03f00000>;
> + label = "ubi2";
> + };
> + };
> +};
> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
> new file mode 100644
> index 0000000000..8576a02730
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
> @@ -0,0 +1,13 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +
> +&uart0 {
> + u-boot,dm-pre-reloc;
> +};
> +
> +&spi0 {
> + u-boot,dm-pre-reloc;
> +
> + spi-flash at 0 {
> + u-boot,dm-pre-reloc;
> + };
> +};
> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
> new file mode 100644
> index 0000000000..665757f6e1
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
> @@ -0,0 +1,17 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for MikroTik CRS328-4C-20S-4S+ board
> + *
> + * Copyright (C) 2020 Sartura Ltd.
> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
> + */
> +
> +#include "armada-xp-crs328-4c-20s-4s.dtsi"
> +
> +/ {
> + model = "MikroTik CRS328-4C-20S-4S+";
> +};
> +
> +&spi0 {
> + status = "okay";
> +};
> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
> new file mode 100644
> index 0000000000..daff1af2a2
> --- /dev/null
> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
> @@ -0,0 +1,110 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +/*
> + * Device Tree file for CRS328-4C-20S-4S+ board
> + *
> + * Copyright (C) 2016 Allied Telesis Labs
> + * Copyright (C) 2020 Sartura Ltd.
> + *
> + * Based on armada-xp-db.dts
> + *
> + * Note: this Device Tree assumes that the bootloader has remapped the
> + * internal registers to 0xf1000000 (instead of the default
> + * 0xd0000000). The 0xf1000000 is the default used by the recent,
> + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
> + * boards were delivered with an older version of the bootloader that
> + * left internal registers mapped at 0xd0000000. If you are in this
> + * situation, you should either update your bootloader (preferred
> + * solution) or the below Device Tree should be adjusted.
> + */
> +
> +/dts-v1/;
> +#include "armada-xp-98dx3236.dtsi"
> +#include "armada-xp-crs328-4c-20s-4s-u-boot.dtsi"
> +
> +/ {
> + model = "CRS328-4C-20S-4S+";
> + compatible = "marvell,armadaxp-98dx3236", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + bootargs = "console=ttyS0,115200 earlyprintk";
> + };
> +
> + aliases {
> + spi0 = &spi0;
> + };
> +
> + memory {
> + device_type = "memory";
> + reg = <0 0x00000000 0 0x20000000>; /* 512 MB */
> + };
> +};
> +
> +&L2 {
> + arm,parity-enable;
> + marvell,ecc-enable;
> +};
> +
> +&devbus_bootcs {
> + status = "okay";
> +
> + /* Device Bus parameters are required */
> +
> + /* Read parameters */
> + devbus,bus-width = <16>;
> + devbus,turn-off-ps = <60000>;
> + devbus,badr-skew-ps = <0>;
> + devbus,acc-first-ps = <124000>;
> + devbus,acc-next-ps = <248000>;
> + devbus,rd-setup-ps = <0>;
> + devbus,rd-hold-ps = <0>;
> +
> + /* Write parameters */
> + devbus,sync-enable = <0>;
> + devbus,wr-high-ps = <60000>;
> + devbus,wr-low-ps = <60000>;
> + devbus,ale-wr-ps = <60000>;
> +};
> +
> +&uart0 {
> + status = "okay";
> +};
> +
> +&uart1 {
> + status = "okay";
> +};
> +
> +&i2c0 {
> + clock-frequency = <100000>;
> + status = "okay";
> +};
> +
> +&usb0 {
> + status = "okay";
> +};
> +
> +&spi0 {
> + status = "okay";
> +
> + spi-flash at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spi-flash", "jedec,spi-nor";
> + reg = <0>; /* Chip select 0 */
> + spi-max-frequency = <108000000>;
> + m25p,fast-read;
> +
> + partition at u-boot {
> + reg = <0x00000000 0x001f0000>;
> + label = "u-boot";
> + };
> + partition at u-boot-env {
> + reg = <0x001f0000 0x00010000>;
> + label = "u-boot-env";
> + };
> + partition at ubi1 {
> + reg = <0x00200000 0x00e00000>;
> + label = "ubi1";
> + };
> + };
> +};
> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> index 7f01f4318e..e6fbf3db1c 100644
> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> @@ -21,3 +21,12 @@ F: configs/crs326-24g-2s_defconfig
> F: configs/crs326-24g-2s-bit_defconfig
> F: arch/arm/dts/armada-xp-crs326-24g-2s.dts
> F: arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
> +
> +CRS328-4C-20S-4S BOARD
> +M: Luka Kovacic <luka.kovacic@sartura.hr>
> +M: Luka Perkov <luka.perkov@sartura.hr>
> +S: Maintained
> +F: configs/crs328-4c-20s-4s_defconfig
> +F: configs/crs328-4c-20s-4s-bit_defconfig
> +F: arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
> +F: arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
> diff --git a/configs/crs328-4c-20s-4s-bit_defconfig b/configs/crs328-4c-20s-4s-bit_defconfig
> new file mode 100644
> index 0000000000..9b949e63da
> --- /dev/null
> +++ b/configs/crs328-4c-20s-4s-bit_defconfig
> @@ -0,0 +1,54 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_CPU_INIT=y
> +CONFIG_ARCH_MVEBU=y
> +CONFIG_SYS_TEXT_BASE=0x00800000
> +CONFIG_SYS_MALLOC_F_LEN=0x2000
> +CONFIG_TARGET_CRS3XX_98DX3236=y
> +CONFIG_ENV_SIZE=0x10000
> +CONFIG_ENV_SECT_SIZE=0x10000
> +CONFIG_ENV_OFFSET=0x1F0000
> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
> +# CONFIG_EFI_LOADER is not set
> +CONFIG_BUILD_TARGET="u-boot.kwb"
> +CONFIG_USE_PREBOOT=y
> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
> +CONFIG_HUSH_PARSER=y
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
> +CONFIG_AUTOBOOT_STOP_STR="s"
> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
> +CONFIG_CMD_BOOTZ=y
> +# CONFIG_CMD_FLASH is not set
> +# CONFIG_CMD_I2C is not set
> +CONFIG_CMD_SPI=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_UBI=y
> +CONFIG_CMD_FS_GENERIC=y
> +CONFIG_CMD_MTD=y
> +CONFIG_CMD_MTDPARTS=y
> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs328-4c-20s-4s-bit"
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_BLK=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y
> +# CONFIG_DM_I2C is not set
> +# CONFIG_SYS_I2C_MVTWSI is not set
> +# CONFIG_MMC is not set
> +CONFIG_MTD=y
> +CONFIG_MTD_PARTITIONS=y
> +CONFIG_DM_MTD=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MTD=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> +CONFIG_SPI_FLASH_BAR=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> +CONFIG_FIT=y
> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
> +CONFIG_FIT_VERBOSE=y
> +CONFIG_FIT_BEST_MATCH=y
> +CONFIG_PCI=y
> +CONFIG_PCI_MVEBU=y
> +CONFIG_SYS_NS16550=y
> +CONFIG_KIRKWOOD_SPI=y
> diff --git a/configs/crs328-4c-20s-4s_defconfig b/configs/crs328-4c-20s-4s_defconfig
> new file mode 100644
> index 0000000000..33eefbd475
> --- /dev/null
> +++ b/configs/crs328-4c-20s-4s_defconfig
> @@ -0,0 +1,54 @@
> +CONFIG_ARM=y
> +CONFIG_ARCH_CPU_INIT=y
> +CONFIG_ARCH_MVEBU=y
> +CONFIG_SYS_TEXT_BASE=0x00800000
> +CONFIG_SYS_MALLOC_F_LEN=0x2000
> +CONFIG_TARGET_CRS3XX_98DX3236=y
> +CONFIG_ENV_SIZE=0x10000
> +CONFIG_ENV_SECT_SIZE=0x10000
> +CONFIG_ENV_OFFSET=0x1F0000
> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
> +# CONFIG_EFI_LOADER is not set
> +CONFIG_BUILD_TARGET="u-boot.kwb"
> +CONFIG_USE_PREBOOT=y
> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
> +CONFIG_HUSH_PARSER=y
> +CONFIG_AUTOBOOT_KEYED=y
> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
> +CONFIG_AUTOBOOT_STOP_STR="s"
> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
> +CONFIG_CMD_BOOTZ=y
> +# CONFIG_CMD_FLASH is not set
> +# CONFIG_CMD_I2C is not set
> +CONFIG_CMD_SPI=y
> +CONFIG_CMD_CACHE=y
> +CONFIG_CMD_UBI=y
> +CONFIG_CMD_FS_GENERIC=y
> +CONFIG_CMD_MTD=y
> +CONFIG_CMD_MTDPARTS=y
> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs328-4c-20s-4s"
> +CONFIG_ENV_IS_IN_SPI_FLASH=y
> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> +CONFIG_BLK=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y
> +# CONFIG_DM_I2C is not set
> +# CONFIG_SYS_I2C_MVTWSI is not set
> +# CONFIG_MMC is not set
> +CONFIG_MTD=y
> +CONFIG_MTD_PARTITIONS=y
> +CONFIG_DM_MTD=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_MTD=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> +CONFIG_SPI_FLASH_BAR=y
> +CONFIG_SPI_FLASH_WINBOND=y
> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> +CONFIG_FIT=y
> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
> +CONFIG_FIT_VERBOSE=y
> +CONFIG_FIT_BEST_MATCH=y
> +CONFIG_PCI=y
> +CONFIG_PCI_MVEBU=y
> +CONFIG_SYS_NS16550=y
> +CONFIG_KIRKWOOD_SPI=y
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer
2020-07-23 8:56 ` [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer Luka Kovacic
@ 2020-08-06 12:08 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
0 siblings, 1 reply; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 12:08 UTC (permalink / raw)
To: u-boot
On 23.07.20 10:56, Luka Kovacic wrote:
> Add Luka Perkov to CRS3xx-98DX3236 MAINTAINERS.
>
> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
> Cc: Luka Perkov <luka.perkov@sartura.hr>
> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> index e6fbf3db1c..906ff98970 100644
> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
> @@ -1,5 +1,6 @@
> CRS3XX-98DX3236 BOARD
> M: Luka Kovacic <luka.kovacic@sartura.hr>
> +M: Luka Perkov <luka.perkov@sartura.hr>
> S: Maintained
> F: board/mikrotik/crs3xx-98dx3236/
> F: include/configs/crs3xx-98dx3236.h
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout
2020-07-23 8:56 ` [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout Luka Kovacic
@ 2020-08-06 12:08 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
0 siblings, 1 reply; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 12:08 UTC (permalink / raw)
To: u-boot
On 23.07.20 10:56, Luka Kovacic wrote:
> Update the MikroTik CRS305-1G-4S flash layout to support redundant UBI
> partitions.
> Additionally enable the UBI commands in crs305-1g-4s_defconfig.
>
> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
> Cc: Luka Perkov <luka.perkov@sartura.hr>
> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
> ---
> arch/arm/dts/armada-xp-crs305-1g-4s.dtsi | 10 +++++-----
> configs/crs305-1g-4s_defconfig | 9 ++++++++-
> 2 files changed, 13 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi b/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
> index c8839eac94..1a74ecd5b5 100644
> --- a/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
> +++ b/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
> @@ -95,16 +95,16 @@
> m25p,fast-read;
>
> partition at u-boot {
> - reg = <0x00000000 0x00080000>;
> + reg = <0x00000000 0x001f0000>;
> label = "u-boot";
> };
> partition at u-boot-env {
> - reg = <0x00080000 0x00010000>;
> + reg = <0x001f0000 0x00010000>;
> label = "u-boot-env";
> };
> - partition at firmware {
> - reg = <0x00090000 0x00f70000>;
> - label = "firmware";
> + partition at ubi1 {
> + reg = <0x00200000 0x00e00000>;
> + label = "ubi1";
> };
>
> };
> diff --git a/configs/crs305-1g-4s_defconfig b/configs/crs305-1g-4s_defconfig
> index a360fc5d3f..a62b14e856 100644
> --- a/configs/crs305-1g-4s_defconfig
> +++ b/configs/crs305-1g-4s_defconfig
> @@ -5,14 +5,17 @@ CONFIG_SYS_TEXT_BASE=0x00800000
> CONFIG_SYS_MALLOC_F_LEN=0x2000
> CONFIG_TARGET_CRS3XX_98DX3236=y
> CONFIG_ENV_SIZE=0x10000
> -CONFIG_ENV_OFFSET=0x80000
> +CONFIG_ENV_OFFSET=0x1F0000
> CONFIG_ENV_SECT_SIZE=0x10000
> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
> CONFIG_BUILD_TARGET="u-boot.kwb"
> CONFIG_FIT=y
> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
> CONFIG_FIT_VERBOSE=y
> CONFIG_FIT_BEST_MATCH=y
> CONFIG_USE_PREBOOT=y
> CONFIG_SYS_CONSOLE_INFO_QUIET=y
> +CONFIG_HUSH_PARSER=y
> CONFIG_AUTOBOOT_KEYED=y
> CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
> CONFIG_AUTOBOOT_STOP_STR="s"
> @@ -22,11 +25,15 @@ CONFIG_CMD_BOOTZ=y
> CONFIG_CMD_MTD=y
> CONFIG_CMD_SPI=y
> CONFIG_CMD_CACHE=y
> +CONFIG_CMD_UBI=y
> +CONFIG_CMD_FS_GENERIC=y
> CONFIG_CMD_MTDPARTS=y
> CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs305-1g-4s"
> CONFIG_ENV_IS_IN_SPI_FLASH=y
> CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> CONFIG_BLK=y
> +CONFIG_BOOTCOUNT_LIMIT=y
> +CONFIG_BOOTCOUNT_ENV=y
> # CONFIG_MMC is not set
> CONFIG_MTD=y
> CONFIG_DM_MTD=y
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board
2020-08-06 12:07 ` Stefan Roese
@ 2020-08-06 14:26 ` Stefan Roese
0 siblings, 0 replies; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 14:26 UTC (permalink / raw)
To: u-boot
On 06.08.20 14:07, Stefan Roese wrote:
> On 23.07.20 10:56, Luka Kovacic wrote:
>> MikroTik CRS305-1G-4S Bit board has a switch chip with an integrated
>> Marvell Prestera 98DX3236 CPU.
>>
>> The Bit board variant is added, which has a bigger Macronix flash.
>>
>> Add basic U-Boot, UART and Winbond SPI flash support.
>>
>> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
>> Cc: Luka Perkov <luka.perkov@sartura.hr>
>> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
>
> Reviewed-by: Stefan Roese <sr@denx.de>
Applied to u-boot-marvell/master
Thanks,
Stefan
> Thanks,
> Stefan
>
>> ---
>> ? arch/arm/dts/Makefile?????????????????????? |? 1 +
>> ? arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts | 43 ++++++++++++++++
>> ? board/mikrotik/crs3xx-98dx3236/MAINTAINERS? |? 3 ++
>> ? configs/crs305-1g-4s-bit_defconfig????????? | 54 +++++++++++++++++++++
>> ? 4 files changed, 101 insertions(+)
>> ? create mode 100644 arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
>> ? create mode 100644 configs/crs305-1g-4s-bit_defconfig
>>
>> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
>> index cee10f533f..72e1f4fa20 100644
>> --- a/arch/arm/dts/Makefile
>> +++ b/arch/arm/dts/Makefile
>> @@ -213,6 +213,7 @@ dtb-$(CONFIG_ARCH_MVEBU) +=??????????? \
>> ????? armada-8040-db.dtb??????????? \
>> ????? armada-8040-mcbin.dtb??????????? \
>> ????? armada-xp-crs305-1g-4s.dtb??????? \
>> +??? armada-xp-crs305-1g-4s-bit.dtb??????? \
>> ????? armada-xp-db-xc3-24g4xg.dtb??????? \
>> ????? armada-xp-gp.dtb??????????? \
>> ????? armada-xp-maxbcm.dtb??????????? \
>> diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
>> b/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
>> new file mode 100644
>> index 0000000000..059bf48aeb
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
>> @@ -0,0 +1,43 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for MikroTik CRS305-1G-4S+ Bit board
>> + *
>> + * Copyright (C) 2020 Sartura Ltd.
>> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
>> + */
>> +
>> +#include "armada-xp-crs305-1g-4s.dtsi"
>> +
>> +/ {
>> +??? model = "MikroTik CRS305-1G-4S+ Bit";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +
>> +??? spi-flash at 0 {
>> +??????? #address-cells = <1>;
>> +??????? #size-cells = <1>;
>> +??????? compatible = "spi-flash", "jedec,spi-nor";
>> +??????? reg = <0>; /* Chip select 0 */
>> +??????? spi-max-frequency = <108000000>;
>> +??????? m25p,fast-read;
>> +
>> +??????? partition at u-boot {
>> +??????????? reg = <0x00000000 0x001f0000>;
>> +??????????? label = "u-boot";
>> +??????? };
>> +??????? partition at u-boot-env {
>> +??????????? reg = <0x001f0000 0x00010000>;
>> +??????????? label = "u-boot-env";
>> +??????? };
>> +??????? partition at ubi1 {
>> +??????????? reg = <0x00200000 0x03f00000>;
>> +??????????? label = "ubi1";
>> +??????? };
>> +??????? partition at ubi2 {
>> +??????????? reg = <0x04100000 0x03f00000>;
>> +??????????? label = "ubi2";
>> +??????? };
>> +??? };
>> +};
>> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> index 127e0eac60..d02584bb1d 100644
>> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> @@ -6,6 +6,9 @@ F:??? include/configs/crs3xx-98dx3236.h
>> ? CRS305-1G-4S BOARD
>> ? M:??? Luka Kovacic <luka.kovacic@sartura.hr>
>> +M:??? Luka Perkov <luka.perkov@sartura.hr>
>> ? S:??? Maintained
>> ? F:??? configs/crs305-1g-4s_defconfig
>> +F:??? configs/crs305-1g-4s-bit_defconfig
>> ? F:??? arch/arm/dts/armada-xp-crs305-1g-4s.dts
>> +F:??? arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
>> diff --git a/configs/crs305-1g-4s-bit_defconfig
>> b/configs/crs305-1g-4s-bit_defconfig
>> new file mode 100644
>> index 0000000000..0ecf11acb2
>> --- /dev/null
>> +++ b/configs/crs305-1g-4s-bit_defconfig
>> @@ -0,0 +1,54 @@
>> +CONFIG_ARM=y
>> +CONFIG_ARCH_CPU_INIT=y
>> +CONFIG_ARCH_MVEBU=y
>> +CONFIG_SYS_TEXT_BASE=0x00800000
>> +CONFIG_SYS_MALLOC_F_LEN=0x2000
>> +CONFIG_TARGET_CRS3XX_98DX3236=y
>> +CONFIG_ENV_SIZE=0x10000
>> +CONFIG_ENV_SECT_SIZE=0x10000
>> +CONFIG_ENV_OFFSET=0x1F0000
>> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> +# CONFIG_EFI_LOADER is not set
>> +CONFIG_BUILD_TARGET="u-boot.kwb"
>> +CONFIG_USE_PREBOOT=y
>> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
>> +CONFIG_HUSH_PARSER=y
>> +CONFIG_AUTOBOOT_KEYED=y
>> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
>> +CONFIG_AUTOBOOT_STOP_STR="s"
>> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
>> +CONFIG_CMD_BOOTZ=y
>> +# CONFIG_CMD_FLASH is not set
>> +# CONFIG_CMD_I2C is not set
>> +CONFIG_CMD_SPI=y
>> +CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_UBI=y
>> +CONFIG_CMD_FS_GENERIC=y
>> +CONFIG_CMD_MTD=y
>> +CONFIG_CMD_MTDPARTS=y
>> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs305-1g-4s-bit"
>> +CONFIG_ENV_IS_IN_SPI_FLASH=y
>> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>> +CONFIG_BLK=y
>> +CONFIG_BOOTCOUNT_LIMIT=y
>> +CONFIG_BOOTCOUNT_ENV=y
>> +# CONFIG_DM_I2C is not set
>> +# CONFIG_SYS_I2C_MVTWSI is not set
>> +# CONFIG_MMC is not set
>> +CONFIG_MTD=y
>> +CONFIG_MTD_PARTITIONS=y
>> +CONFIG_DM_MTD=y
>> +CONFIG_DM_SPI_FLASH=y
>> +CONFIG_SPI_FLASH_MTD=y
>> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>> +CONFIG_SPI_FLASH_BAR=y
>> +CONFIG_SPI_FLASH_MACRONIX=y
>> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>> +CONFIG_FIT=y
>> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
>> +CONFIG_FIT_VERBOSE=y
>> +CONFIG_FIT_BEST_MATCH=y
>> +CONFIG_PCI=y
>> +CONFIG_PCI_MVEBU=y
>> +CONFIG_SYS_NS16550=y
>> +CONFIG_KIRKWOOD_SPI=y
>>
>
>
> Viele Gr??e,
> Stefan
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board
2020-08-06 12:07 ` Stefan Roese
@ 2020-08-06 14:26 ` Stefan Roese
0 siblings, 0 replies; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 14:26 UTC (permalink / raw)
To: u-boot
On 06.08.20 14:07, Stefan Roese wrote:
> On 23.07.20 10:56, Luka Kovacic wrote:
>> MikroTik CRS326-24G-2S board has a switch chip with an integrated
>> Marvell Prestera 98DX3236 CPU.
>>
>> This commit includes two board variants, namely the factory
>> default one and a Bit variant. The Bit board variant has a
>> bigger Macronix flash.
>>
>> Add basic U-Boot, UART and SPI flash support.
>>
>> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
>> Cc: Luka Perkov <luka.perkov@sartura.hr>
>> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
>
> Reviewed-by: Stefan Roese <sr@denx.de>
Applied to u-boot-marvell/master
Thanks,
Stefan
> Thanks,
> Stefan
>
>> ---
>> ? arch/arm/dts/Makefile???????????????????????? |?? 2 +
>> ? arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts? |? 43 +++++++
>> ? .../dts/armada-xp-crs326-24g-2s-u-boot.dtsi?? |? 13 +++
>> ? arch/arm/dts/armada-xp-crs326-24g-2s.dts????? |? 17 +++
>> ? arch/arm/dts/armada-xp-crs326-24g-2s.dtsi???? | 110 ++++++++++++++++++
>> ? board/mikrotik/crs3xx-98dx3236/MAINTAINERS??? |?? 9 ++
>> ? configs/crs326-24g-2s-bit_defconfig?????????? |? 54 +++++++++
>> ? configs/crs326-24g-2s_defconfig?????????????? |? 54 +++++++++
>> ? 8 files changed, 302 insertions(+)
>> ? create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
>> ? create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
>> ? create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dts
>> ? create mode 100644 arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
>> ? create mode 100644 configs/crs326-24g-2s-bit_defconfig
>> ? create mode 100644 configs/crs326-24g-2s_defconfig
>>
>> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
>> index 72e1f4fa20..9f8ca61f28 100644
>> --- a/arch/arm/dts/Makefile
>> +++ b/arch/arm/dts/Makefile
>> @@ -214,6 +214,8 @@ dtb-$(CONFIG_ARCH_MVEBU) +=??????????? \
>> ????? armada-8040-mcbin.dtb??????????? \
>> ????? armada-xp-crs305-1g-4s.dtb??????? \
>> ????? armada-xp-crs305-1g-4s-bit.dtb??????? \
>> +??? armada-xp-crs326-24g-2s.dtb??????? \
>> +??? armada-xp-crs326-24g-2s-bit.dtb??????? \
>> ????? armada-xp-db-xc3-24g4xg.dtb??????? \
>> ????? armada-xp-gp.dtb??????????? \
>> ????? armada-xp-maxbcm.dtb??????????? \
>> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
>> b/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
>> new file mode 100644
>> index 0000000000..b340eedf71
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
>> @@ -0,0 +1,43 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for MikroTik CRS326-24G-2S+ Bit board
>> + *
>> + * Copyright (C) 2020 Sartura Ltd.
>> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
>> + */
>> +
>> +#include "armada-xp-crs326-24g-2s.dtsi"
>> +
>> +/ {
>> +??? model = "MikroTik CRS326-24G-2S+ Bit";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +
>> +??? spi-flash at 0 {
>> +??????? #address-cells = <1>;
>> +??????? #size-cells = <1>;
>> +??????? compatible = "spi-flash", "jedec,spi-nor";
>> +??????? reg = <0>; /* Chip select 0 */
>> +??????? spi-max-frequency = <108000000>;
>> +??????? m25p,fast-read;
>> +
>> +??????? partition at u-boot {
>> +??????????? reg = <0x00000000 0x001f0000>;
>> +??????????? label = "u-boot";
>> +??????? };
>> +??????? partition at u-boot-env {
>> +??????????? reg = <0x001f0000 0x00010000>;
>> +??????????? label = "u-boot-env";
>> +??????? };
>> +??????? partition at ubi1 {
>> +??????????? reg = <0x00200000 0x03f00000>;
>> +??????????? label = "ubi1";
>> +??????? };
>> +??????? partition at ubi2 {
>> +??????????? reg = <0x04100000 0x03f00000>;
>> +??????????? label = "ubi2";
>> +??????? };
>> +??? };
>> +};
>> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
>> b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
>> new file mode 100644
>> index 0000000000..8576a02730
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s-u-boot.dtsi
>> @@ -0,0 +1,13 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +
>> +&uart0 {
>> +??? u-boot,dm-pre-reloc;
>> +};
>> +
>> +&spi0 {
>> +??? u-boot,dm-pre-reloc;
>> +
>> +??? spi-flash at 0 {
>> +??????? u-boot,dm-pre-reloc;
>> +??? };
>> +};
>> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s.dts
>> b/arch/arm/dts/armada-xp-crs326-24g-2s.dts
>> new file mode 100644
>> index 0000000000..83aef43f66
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s.dts
>> @@ -0,0 +1,17 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for MikroTik CRS326-24G-2S+ board
>> + *
>> + * Copyright (C) 2020 Sartura Ltd.
>> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
>> + */
>> +
>> +#include "armada-xp-crs326-24g-2s.dtsi"
>> +
>> +/ {
>> +??? model = "MikroTik CRS326-24G-2S+";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +};
>> diff --git a/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
>> b/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
>> new file mode 100644
>> index 0000000000..e50f3ead13
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs326-24g-2s.dtsi
>> @@ -0,0 +1,110 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for CRS326-24G-2S board
>> + *
>> + * Copyright (C) 2016 Allied Telesis Labs
>> + * Copyright (C) 2020 Sartura Ltd.
>> + *
>> + * Based on armada-xp-db.dts
>> + *
>> + * Note: this Device Tree assumes that the bootloader has remapped the
>> + * internal registers to 0xf1000000 (instead of the default
>> + * 0xd0000000). The 0xf1000000 is the default used by the recent,
>> + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
>> + * boards were delivered with an older version of the bootloader that
>> + * left internal registers mapped at 0xd0000000. If you are in this
>> + * situation, you should either update your bootloader (preferred
>> + * solution) or the below Device Tree should be adjusted.
>> + */
>> +
>> +/dts-v1/;
>> +#include "armada-xp-98dx3236.dtsi"
>> +#include "armada-xp-crs326-24g-2s-u-boot.dtsi"
>> +
>> +/ {
>> +??? model = "CRS326-24G-2S+";
>> +??? compatible = "marvell,armadaxp-98dx3236",
>> "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
>> +
>> +??? chosen {
>> +??????? stdout-path = "serial0:115200n8";
>> +??????? bootargs = "console=ttyS0,115200 earlyprintk";
>> +??? };
>> +
>> +??? aliases {
>> +??????? spi0 = &spi0;
>> +??? };
>> +
>> +??? memory {
>> +??????? device_type = "memory";
>> +??????? reg = <0 0x00000000 0 0x20000000>; /* 512 MB */
>> +??? };
>> +};
>> +
>> +&L2 {
>> +??? arm,parity-enable;
>> +??? marvell,ecc-enable;
>> +};
>> +
>> +&devbus_bootcs {
>> +??? status = "okay";
>> +
>> +??? /* Device Bus parameters are required */
>> +
>> +??? /* Read parameters */
>> +??? devbus,bus-width??? = <16>;
>> +??? devbus,turn-off-ps? = <60000>;
>> +??? devbus,badr-skew-ps = <0>;
>> +??? devbus,acc-first-ps = <124000>;
>> +??? devbus,acc-next-ps? = <248000>;
>> +??? devbus,rd-setup-ps? = <0>;
>> +??? devbus,rd-hold-ps?? = <0>;
>> +
>> +??? /* Write parameters */
>> +??? devbus,sync-enable = <0>;
>> +??? devbus,wr-high-ps? = <60000>;
>> +??? devbus,wr-low-ps?? = <60000>;
>> +??? devbus,ale-wr-ps?? = <60000>;
>> +};
>> +
>> +&uart0 {
>> +??? status = "okay";
>> +};
>> +
>> +&uart1 {
>> +??? status = "okay";
>> +};
>> +
>> +&i2c0 {
>> +??? clock-frequency = <100000>;
>> +??? status = "okay";
>> +};
>> +
>> +&usb0 {
>> +??? status = "okay";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +
>> +??? spi-flash at 0 {
>> +??????? #address-cells = <1>;
>> +??????? #size-cells = <1>;
>> +??????? compatible = "spi-flash", "jedec,spi-nor";
>> +??????? reg = <0>; /* Chip select 0 */
>> +??????? spi-max-frequency = <108000000>;
>> +??????? m25p,fast-read;
>> +
>> +??????? partition at u-boot {
>> +??????????? reg = <0x00000000 0x001f0000>;
>> +??????????? label = "u-boot";
>> +??????? };
>> +??????? partition at u-boot-env {
>> +??????????? reg = <0x001f0000 0x00010000>;
>> +??????????? label = "u-boot-env";
>> +??????? };
>> +??????? partition at ubi1 {
>> +??????????? reg = <0x00200000 0x00e00000>;
>> +??????????? label = "ubi1";
>> +??????? };
>> +??? };
>> +};
>> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> index d02584bb1d..7f01f4318e 100644
>> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> @@ -12,3 +12,12 @@ F:??? configs/crs305-1g-4s_defconfig
>> ? F:??? configs/crs305-1g-4s-bit_defconfig
>> ? F:??? arch/arm/dts/armada-xp-crs305-1g-4s.dts
>> ? F:??? arch/arm/dts/armada-xp-crs305-1g-4s-bit.dts
>> +
>> +CRS326-24G-2S BOARD
>> +M:??? Luka Kovacic <luka.kovacic@sartura.hr>
>> +M:??? Luka Perkov <luka.perkov@sartura.hr>
>> +S:??? Maintained
>> +F:??? configs/crs326-24g-2s_defconfig
>> +F:??? configs/crs326-24g-2s-bit_defconfig
>> +F:??? arch/arm/dts/armada-xp-crs326-24g-2s.dts
>> +F:??? arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
>> diff --git a/configs/crs326-24g-2s-bit_defconfig
>> b/configs/crs326-24g-2s-bit_defconfig
>> new file mode 100644
>> index 0000000000..18f2d34453
>> --- /dev/null
>> +++ b/configs/crs326-24g-2s-bit_defconfig
>> @@ -0,0 +1,54 @@
>> +CONFIG_ARM=y
>> +CONFIG_ARCH_CPU_INIT=y
>> +CONFIG_ARCH_MVEBU=y
>> +CONFIG_SYS_TEXT_BASE=0x00800000
>> +CONFIG_SYS_MALLOC_F_LEN=0x2000
>> +CONFIG_TARGET_CRS3XX_98DX3236=y
>> +CONFIG_ENV_SIZE=0x10000
>> +CONFIG_ENV_SECT_SIZE=0x10000
>> +CONFIG_ENV_OFFSET=0x1F0000
>> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> +# CONFIG_EFI_LOADER is not set
>> +CONFIG_BUILD_TARGET="u-boot.kwb"
>> +CONFIG_USE_PREBOOT=y
>> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
>> +CONFIG_HUSH_PARSER=y
>> +CONFIG_AUTOBOOT_KEYED=y
>> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
>> +CONFIG_AUTOBOOT_STOP_STR="s"
>> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
>> +CONFIG_CMD_BOOTZ=y
>> +# CONFIG_CMD_FLASH is not set
>> +# CONFIG_CMD_I2C is not set
>> +CONFIG_CMD_SPI=y
>> +CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_UBI=y
>> +CONFIG_CMD_FS_GENERIC=y
>> +CONFIG_CMD_MTD=y
>> +CONFIG_CMD_MTDPARTS=y
>> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs326-24g-2s-bit"
>> +CONFIG_ENV_IS_IN_SPI_FLASH=y
>> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>> +CONFIG_BLK=y
>> +CONFIG_BOOTCOUNT_LIMIT=y
>> +CONFIG_BOOTCOUNT_ENV=y
>> +# CONFIG_DM_I2C is not set
>> +# CONFIG_SYS_I2C_MVTWSI is not set
>> +# CONFIG_MMC is not set
>> +CONFIG_MTD=y
>> +CONFIG_MTD_PARTITIONS=y
>> +CONFIG_DM_MTD=y
>> +CONFIG_DM_SPI_FLASH=y
>> +CONFIG_SPI_FLASH_MTD=y
>> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>> +CONFIG_SPI_FLASH_BAR=y
>> +CONFIG_SPI_FLASH_MACRONIX=y
>> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>> +CONFIG_FIT=y
>> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
>> +CONFIG_FIT_VERBOSE=y
>> +CONFIG_FIT_BEST_MATCH=y
>> +CONFIG_PCI=y
>> +CONFIG_PCI_MVEBU=y
>> +CONFIG_SYS_NS16550=y
>> +CONFIG_KIRKWOOD_SPI=y
>> diff --git a/configs/crs326-24g-2s_defconfig
>> b/configs/crs326-24g-2s_defconfig
>> new file mode 100644
>> index 0000000000..fec7922f4c
>> --- /dev/null
>> +++ b/configs/crs326-24g-2s_defconfig
>> @@ -0,0 +1,54 @@
>> +CONFIG_ARM=y
>> +CONFIG_ARCH_CPU_INIT=y
>> +CONFIG_ARCH_MVEBU=y
>> +CONFIG_SYS_TEXT_BASE=0x00800000
>> +CONFIG_SYS_MALLOC_F_LEN=0x2000
>> +CONFIG_TARGET_CRS3XX_98DX3236=y
>> +CONFIG_ENV_SIZE=0x10000
>> +CONFIG_ENV_SECT_SIZE=0x10000
>> +CONFIG_ENV_OFFSET=0x1F0000
>> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> +# CONFIG_EFI_LOADER is not set
>> +CONFIG_BUILD_TARGET="u-boot.kwb"
>> +CONFIG_USE_PREBOOT=y
>> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
>> +CONFIG_HUSH_PARSER=y
>> +CONFIG_AUTOBOOT_KEYED=y
>> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
>> +CONFIG_AUTOBOOT_STOP_STR="s"
>> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
>> +CONFIG_CMD_BOOTZ=y
>> +# CONFIG_CMD_FLASH is not set
>> +# CONFIG_CMD_I2C is not set
>> +CONFIG_CMD_SPI=y
>> +CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_UBI=y
>> +CONFIG_CMD_FS_GENERIC=y
>> +CONFIG_CMD_MTD=y
>> +CONFIG_CMD_MTDPARTS=y
>> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs326-24g-2s"
>> +CONFIG_ENV_IS_IN_SPI_FLASH=y
>> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>> +CONFIG_BLK=y
>> +CONFIG_BOOTCOUNT_LIMIT=y
>> +CONFIG_BOOTCOUNT_ENV=y
>> +# CONFIG_DM_I2C is not set
>> +# CONFIG_SYS_I2C_MVTWSI is not set
>> +# CONFIG_MMC is not set
>> +CONFIG_MTD=y
>> +CONFIG_MTD_PARTITIONS=y
>> +CONFIG_DM_MTD=y
>> +CONFIG_DM_SPI_FLASH=y
>> +CONFIG_SPI_FLASH_MTD=y
>> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>> +CONFIG_SPI_FLASH_BAR=y
>> +CONFIG_SPI_FLASH_WINBOND=y
>> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>> +CONFIG_FIT=y
>> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
>> +CONFIG_FIT_VERBOSE=y
>> +CONFIG_FIT_BEST_MATCH=y
>> +CONFIG_PCI=y
>> +CONFIG_PCI_MVEBU=y
>> +CONFIG_SYS_NS16550=y
>> +CONFIG_KIRKWOOD_SPI=y
>>
>
>
> Viele Gr??e,
> Stefan
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board
2020-08-06 12:08 ` Stefan Roese
@ 2020-08-06 14:26 ` Stefan Roese
0 siblings, 0 replies; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 14:26 UTC (permalink / raw)
To: u-boot
On 06.08.20 14:08, Stefan Roese wrote:
> On 23.07.20 10:56, Luka Kovacic wrote:
>> MikroTik CRS328-4C-20S-4S board has a switch chip with an integrated
>> Marvell Prestera 98DX3236 CPU.
>>
>> This commit includes two board variants, namely the factory
>> default one and a Bit variant. The Bit board variant has a
>> bigger Macronix flash.
>>
>> Add basic U-Boot, UART and SPI flash support.
>>
>> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
>> Cc: Luka Perkov <luka.perkov@sartura.hr>
>> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
>
> Reviewed-by: Stefan Roese <sr@denx.de>
Applied to u-boot-marvell/master
Thanks,
Stefan
> Thanks,
> Stefan
>
>> ---
>> ? arch/arm/dts/Makefile???????????????????????? |?? 2 +
>> ? .../dts/armada-xp-crs328-4c-20s-4s-bit.dts??? |? 43 +++++++
>> ? .../armada-xp-crs328-4c-20s-4s-u-boot.dtsi??? |? 13 +++
>> ? arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts?? |? 17 +++
>> ? arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi? | 110 ++++++++++++++++++
>> ? board/mikrotik/crs3xx-98dx3236/MAINTAINERS??? |?? 9 ++
>> ? configs/crs328-4c-20s-4s-bit_defconfig??????? |? 54 +++++++++
>> ? configs/crs328-4c-20s-4s_defconfig??????????? |? 54 +++++++++
>> ? 8 files changed, 302 insertions(+)
>> ? create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
>> ? create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
>> ? create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
>> ? create mode 100644 arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
>> ? create mode 100644 configs/crs328-4c-20s-4s-bit_defconfig
>> ? create mode 100644 configs/crs328-4c-20s-4s_defconfig
>>
>> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
>> index 9f8ca61f28..deced1ad7d 100644
>> --- a/arch/arm/dts/Makefile
>> +++ b/arch/arm/dts/Makefile
>> @@ -216,6 +216,8 @@ dtb-$(CONFIG_ARCH_MVEBU) +=??????????? \
>> ????? armada-xp-crs305-1g-4s-bit.dtb??????? \
>> ????? armada-xp-crs326-24g-2s.dtb??????? \
>> ????? armada-xp-crs326-24g-2s-bit.dtb??????? \
>> +??? armada-xp-crs328-4c-20s-4s.dtb??????? \
>> +??? armada-xp-crs328-4c-20s-4s-bit.dtb??? \
>> ????? armada-xp-db-xc3-24g4xg.dtb??????? \
>> ????? armada-xp-gp.dtb??????????? \
>> ????? armada-xp-maxbcm.dtb??????????? \
>> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
>> b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
>> new file mode 100644
>> index 0000000000..d684c895ff
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
>> @@ -0,0 +1,43 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for MikroTik CRS328-4C-20S-4S+ Bit board
>> + *
>> + * Copyright (C) 2020 Sartura Ltd.
>> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
>> + */
>> +
>> +#include "armada-xp-crs328-4c-20s-4s.dtsi"
>> +
>> +/ {
>> +??? model = "MikroTik CRS328-4C-20S-4S+ Bit";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +
>> +??? spi-flash at 0 {
>> +??????? #address-cells = <1>;
>> +??????? #size-cells = <1>;
>> +??????? compatible = "spi-flash", "jedec,spi-nor";
>> +??????? reg = <0>; /* Chip select 0 */
>> +??????? spi-max-frequency = <108000000>;
>> +??????? m25p,fast-read;
>> +
>> +??????? partition at u-boot {
>> +??????????? reg = <0x00000000 0x001f0000>;
>> +??????????? label = "u-boot";
>> +??????? };
>> +??????? partition at u-boot-env {
>> +??????????? reg = <0x001f0000 0x00010000>;
>> +??????????? label = "u-boot-env";
>> +??????? };
>> +??????? partition at ubi1 {
>> +??????????? reg = <0x00200000 0x03f00000>;
>> +??????????? label = "ubi1";
>> +??????? };
>> +??????? partition at ubi2 {
>> +??????????? reg = <0x04100000 0x03f00000>;
>> +??????????? label = "ubi2";
>> +??????? };
>> +??? };
>> +};
>> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
>> b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
>> new file mode 100644
>> index 0000000000..8576a02730
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s-u-boot.dtsi
>> @@ -0,0 +1,13 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +
>> +&uart0 {
>> +??? u-boot,dm-pre-reloc;
>> +};
>> +
>> +&spi0 {
>> +??? u-boot,dm-pre-reloc;
>> +
>> +??? spi-flash at 0 {
>> +??????? u-boot,dm-pre-reloc;
>> +??? };
>> +};
>> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
>> b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
>> new file mode 100644
>> index 0000000000..665757f6e1
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
>> @@ -0,0 +1,17 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for MikroTik CRS328-4C-20S-4S+ board
>> + *
>> + * Copyright (C) 2020 Sartura Ltd.
>> + * Author: Luka Kovacic <luka.kovacic@sartura.hr>
>> + */
>> +
>> +#include "armada-xp-crs328-4c-20s-4s.dtsi"
>> +
>> +/ {
>> +??? model = "MikroTik CRS328-4C-20S-4S+";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +};
>> diff --git a/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
>> b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
>> new file mode 100644
>> index 0000000000..daff1af2a2
>> --- /dev/null
>> +++ b/arch/arm/dts/armada-xp-crs328-4c-20s-4s.dtsi
>> @@ -0,0 +1,110 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Device Tree file for CRS328-4C-20S-4S+ board
>> + *
>> + * Copyright (C) 2016 Allied Telesis Labs
>> + * Copyright (C) 2020 Sartura Ltd.
>> + *
>> + * Based on armada-xp-db.dts
>> + *
>> + * Note: this Device Tree assumes that the bootloader has remapped the
>> + * internal registers to 0xf1000000 (instead of the default
>> + * 0xd0000000). The 0xf1000000 is the default used by the recent,
>> + * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
>> + * boards were delivered with an older version of the bootloader that
>> + * left internal registers mapped at 0xd0000000. If you are in this
>> + * situation, you should either update your bootloader (preferred
>> + * solution) or the below Device Tree should be adjusted.
>> + */
>> +
>> +/dts-v1/;
>> +#include "armada-xp-98dx3236.dtsi"
>> +#include "armada-xp-crs328-4c-20s-4s-u-boot.dtsi"
>> +
>> +/ {
>> +??? model = "CRS328-4C-20S-4S+";
>> +??? compatible = "marvell,armadaxp-98dx3236",
>> "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
>> +
>> +??? chosen {
>> +??????? stdout-path = "serial0:115200n8";
>> +??????? bootargs = "console=ttyS0,115200 earlyprintk";
>> +??? };
>> +
>> +??? aliases {
>> +??????? spi0 = &spi0;
>> +??? };
>> +
>> +??? memory {
>> +??????? device_type = "memory";
>> +??????? reg = <0 0x00000000 0 0x20000000>; /* 512 MB */
>> +??? };
>> +};
>> +
>> +&L2 {
>> +??? arm,parity-enable;
>> +??? marvell,ecc-enable;
>> +};
>> +
>> +&devbus_bootcs {
>> +??? status = "okay";
>> +
>> +??? /* Device Bus parameters are required */
>> +
>> +??? /* Read parameters */
>> +??? devbus,bus-width??? = <16>;
>> +??? devbus,turn-off-ps? = <60000>;
>> +??? devbus,badr-skew-ps = <0>;
>> +??? devbus,acc-first-ps = <124000>;
>> +??? devbus,acc-next-ps? = <248000>;
>> +??? devbus,rd-setup-ps? = <0>;
>> +??? devbus,rd-hold-ps?? = <0>;
>> +
>> +??? /* Write parameters */
>> +??? devbus,sync-enable = <0>;
>> +??? devbus,wr-high-ps? = <60000>;
>> +??? devbus,wr-low-ps?? = <60000>;
>> +??? devbus,ale-wr-ps?? = <60000>;
>> +};
>> +
>> +&uart0 {
>> +??? status = "okay";
>> +};
>> +
>> +&uart1 {
>> +??? status = "okay";
>> +};
>> +
>> +&i2c0 {
>> +??? clock-frequency = <100000>;
>> +??? status = "okay";
>> +};
>> +
>> +&usb0 {
>> +??? status = "okay";
>> +};
>> +
>> +&spi0 {
>> +??? status = "okay";
>> +
>> +??? spi-flash at 0 {
>> +??????? #address-cells = <1>;
>> +??????? #size-cells = <1>;
>> +??????? compatible = "spi-flash", "jedec,spi-nor";
>> +??????? reg = <0>; /* Chip select 0 */
>> +??????? spi-max-frequency = <108000000>;
>> +??????? m25p,fast-read;
>> +
>> +??????? partition at u-boot {
>> +??????????? reg = <0x00000000 0x001f0000>;
>> +??????????? label = "u-boot";
>> +??????? };
>> +??????? partition at u-boot-env {
>> +??????????? reg = <0x001f0000 0x00010000>;
>> +??????????? label = "u-boot-env";
>> +??????? };
>> +??????? partition at ubi1 {
>> +??????????? reg = <0x00200000 0x00e00000>;
>> +??????????? label = "ubi1";
>> +??????? };
>> +??? };
>> +};
>> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> index 7f01f4318e..e6fbf3db1c 100644
>> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> @@ -21,3 +21,12 @@ F:??? configs/crs326-24g-2s_defconfig
>> ? F:??? configs/crs326-24g-2s-bit_defconfig
>> ? F:??? arch/arm/dts/armada-xp-crs326-24g-2s.dts
>> ? F:??? arch/arm/dts/armada-xp-crs326-24g-2s-bit.dts
>> +
>> +CRS328-4C-20S-4S BOARD
>> +M:??? Luka Kovacic <luka.kovacic@sartura.hr>
>> +M:??? Luka Perkov <luka.perkov@sartura.hr>
>> +S:??? Maintained
>> +F:??? configs/crs328-4c-20s-4s_defconfig
>> +F:??? configs/crs328-4c-20s-4s-bit_defconfig
>> +F:??? arch/arm/dts/armada-xp-crs328-4c-20s-4s.dts
>> +F:??? arch/arm/dts/armada-xp-crs328-4c-20s-4s-bit.dts
>> diff --git a/configs/crs328-4c-20s-4s-bit_defconfig
>> b/configs/crs328-4c-20s-4s-bit_defconfig
>> new file mode 100644
>> index 0000000000..9b949e63da
>> --- /dev/null
>> +++ b/configs/crs328-4c-20s-4s-bit_defconfig
>> @@ -0,0 +1,54 @@
>> +CONFIG_ARM=y
>> +CONFIG_ARCH_CPU_INIT=y
>> +CONFIG_ARCH_MVEBU=y
>> +CONFIG_SYS_TEXT_BASE=0x00800000
>> +CONFIG_SYS_MALLOC_F_LEN=0x2000
>> +CONFIG_TARGET_CRS3XX_98DX3236=y
>> +CONFIG_ENV_SIZE=0x10000
>> +CONFIG_ENV_SECT_SIZE=0x10000
>> +CONFIG_ENV_OFFSET=0x1F0000
>> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> +# CONFIG_EFI_LOADER is not set
>> +CONFIG_BUILD_TARGET="u-boot.kwb"
>> +CONFIG_USE_PREBOOT=y
>> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
>> +CONFIG_HUSH_PARSER=y
>> +CONFIG_AUTOBOOT_KEYED=y
>> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
>> +CONFIG_AUTOBOOT_STOP_STR="s"
>> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
>> +CONFIG_CMD_BOOTZ=y
>> +# CONFIG_CMD_FLASH is not set
>> +# CONFIG_CMD_I2C is not set
>> +CONFIG_CMD_SPI=y
>> +CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_UBI=y
>> +CONFIG_CMD_FS_GENERIC=y
>> +CONFIG_CMD_MTD=y
>> +CONFIG_CMD_MTDPARTS=y
>> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs328-4c-20s-4s-bit"
>> +CONFIG_ENV_IS_IN_SPI_FLASH=y
>> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>> +CONFIG_BLK=y
>> +CONFIG_BOOTCOUNT_LIMIT=y
>> +CONFIG_BOOTCOUNT_ENV=y
>> +# CONFIG_DM_I2C is not set
>> +# CONFIG_SYS_I2C_MVTWSI is not set
>> +# CONFIG_MMC is not set
>> +CONFIG_MTD=y
>> +CONFIG_MTD_PARTITIONS=y
>> +CONFIG_DM_MTD=y
>> +CONFIG_DM_SPI_FLASH=y
>> +CONFIG_SPI_FLASH_MTD=y
>> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>> +CONFIG_SPI_FLASH_BAR=y
>> +CONFIG_SPI_FLASH_MACRONIX=y
>> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>> +CONFIG_FIT=y
>> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
>> +CONFIG_FIT_VERBOSE=y
>> +CONFIG_FIT_BEST_MATCH=y
>> +CONFIG_PCI=y
>> +CONFIG_PCI_MVEBU=y
>> +CONFIG_SYS_NS16550=y
>> +CONFIG_KIRKWOOD_SPI=y
>> diff --git a/configs/crs328-4c-20s-4s_defconfig
>> b/configs/crs328-4c-20s-4s_defconfig
>> new file mode 100644
>> index 0000000000..33eefbd475
>> --- /dev/null
>> +++ b/configs/crs328-4c-20s-4s_defconfig
>> @@ -0,0 +1,54 @@
>> +CONFIG_ARM=y
>> +CONFIG_ARCH_CPU_INIT=y
>> +CONFIG_ARCH_MVEBU=y
>> +CONFIG_SYS_TEXT_BASE=0x00800000
>> +CONFIG_SYS_MALLOC_F_LEN=0x2000
>> +CONFIG_TARGET_CRS3XX_98DX3236=y
>> +CONFIG_ENV_SIZE=0x10000
>> +CONFIG_ENV_SECT_SIZE=0x10000
>> +CONFIG_ENV_OFFSET=0x1F0000
>> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> +# CONFIG_EFI_LOADER is not set
>> +CONFIG_BUILD_TARGET="u-boot.kwb"
>> +CONFIG_USE_PREBOOT=y
>> +CONFIG_SYS_CONSOLE_INFO_QUIET=y
>> +CONFIG_HUSH_PARSER=y
>> +CONFIG_AUTOBOOT_KEYED=y
>> +CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
>> +CONFIG_AUTOBOOT_STOP_STR="s"
>> +CONFIG_AUTOBOOT_KEYED_CTRLC=y
>> +CONFIG_CMD_BOOTZ=y
>> +# CONFIG_CMD_FLASH is not set
>> +# CONFIG_CMD_I2C is not set
>> +CONFIG_CMD_SPI=y
>> +CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_UBI=y
>> +CONFIG_CMD_FS_GENERIC=y
>> +CONFIG_CMD_MTD=y
>> +CONFIG_CMD_MTDPARTS=y
>> +CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs328-4c-20s-4s"
>> +CONFIG_ENV_IS_IN_SPI_FLASH=y
>> +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>> +CONFIG_BLK=y
>> +CONFIG_BOOTCOUNT_LIMIT=y
>> +CONFIG_BOOTCOUNT_ENV=y
>> +# CONFIG_DM_I2C is not set
>> +# CONFIG_SYS_I2C_MVTWSI is not set
>> +# CONFIG_MMC is not set
>> +CONFIG_MTD=y
>> +CONFIG_MTD_PARTITIONS=y
>> +CONFIG_DM_MTD=y
>> +CONFIG_DM_SPI_FLASH=y
>> +CONFIG_SPI_FLASH_MTD=y
>> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>> +CONFIG_SPI_FLASH_BAR=y
>> +CONFIG_SPI_FLASH_WINBOND=y
>> +# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>> +CONFIG_FIT=y
>> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
>> +CONFIG_FIT_VERBOSE=y
>> +CONFIG_FIT_BEST_MATCH=y
>> +CONFIG_PCI=y
>> +CONFIG_PCI_MVEBU=y
>> +CONFIG_SYS_NS16550=y
>> +CONFIG_KIRKWOOD_SPI=y
>>
>
>
> Viele Gr??e,
> Stefan
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer
2020-08-06 12:08 ` Stefan Roese
@ 2020-08-06 14:26 ` Stefan Roese
0 siblings, 0 replies; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 14:26 UTC (permalink / raw)
To: u-boot
On 06.08.20 14:08, Stefan Roese wrote:
> On 23.07.20 10:56, Luka Kovacic wrote:
>> Add Luka Perkov to CRS3xx-98DX3236 MAINTAINERS.
>>
>> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
>> Cc: Luka Perkov <luka.perkov@sartura.hr>
>> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
>
> Reviewed-by: Stefan Roese <sr@denx.de>
Applied to u-boot-marvell/master
Thanks,
Stefan
> Thanks,
> Stefan
>
>> ---
>> ? board/mikrotik/crs3xx-98dx3236/MAINTAINERS | 1 +
>> ? 1 file changed, 1 insertion(+)
>>
>> diff --git a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> index e6fbf3db1c..906ff98970 100644
>> --- a/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> +++ b/board/mikrotik/crs3xx-98dx3236/MAINTAINERS
>> @@ -1,5 +1,6 @@
>> ? CRS3XX-98DX3236 BOARD
>> ? M:??? Luka Kovacic <luka.kovacic@sartura.hr>
>> +M:??? Luka Perkov <luka.perkov@sartura.hr>
>> ? S:??? Maintained
>> ? F:??? board/mikrotik/crs3xx-98dx3236/
>> ? F:??? include/configs/crs3xx-98dx3236.h
>>
>
>
> Viele Gr??e,
> Stefan
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout
2020-08-06 12:08 ` Stefan Roese
@ 2020-08-06 14:26 ` Stefan Roese
0 siblings, 0 replies; 16+ messages in thread
From: Stefan Roese @ 2020-08-06 14:26 UTC (permalink / raw)
To: u-boot
On 06.08.20 14:08, Stefan Roese wrote:
> On 23.07.20 10:56, Luka Kovacic wrote:
>> Update the MikroTik CRS305-1G-4S flash layout to support redundant UBI
>> partitions.
>> Additionally enable the UBI commands in crs305-1g-4s_defconfig.
>>
>> Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr>
>> Cc: Luka Perkov <luka.perkov@sartura.hr>
>> Cc: Jakov Petrina <jakov.petrina@sartura.hr>
>
> Reviewed-by: Stefan Roese <sr@denx.de>
Applied to u-boot-marvell/master
Thanks,
Stefan
> Thanks,
> Stefan
>
>> ---
>> ? arch/arm/dts/armada-xp-crs305-1g-4s.dtsi | 10 +++++-----
>> ? configs/crs305-1g-4s_defconfig?????????? |? 9 ++++++++-
>> ? 2 files changed, 13 insertions(+), 6 deletions(-)
>>
>> diff --git a/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
>> b/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
>> index c8839eac94..1a74ecd5b5 100644
>> --- a/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
>> +++ b/arch/arm/dts/armada-xp-crs305-1g-4s.dtsi
>> @@ -95,16 +95,16 @@
>> ????????? m25p,fast-read;
>> ????????? partition at u-boot {
>> -??????????? reg = <0x00000000 0x00080000>;
>> +??????????? reg = <0x00000000 0x001f0000>;
>> ????????????? label = "u-boot";
>> ????????? };
>> ????????? partition at u-boot-env {
>> -??????????? reg = <0x00080000 0x00010000>;
>> +??????????? reg = <0x001f0000 0x00010000>;
>> ????????????? label = "u-boot-env";
>> ????????? };
>> -??????? partition at firmware {
>> -??????????? reg = <0x00090000 0x00f70000>;
>> -??????????? label = "firmware";
>> +??????? partition at ubi1 {
>> +??????????? reg = <0x00200000 0x00e00000>;
>> +??????????? label = "ubi1";
>> ????????? };
>> ????? };
>> diff --git a/configs/crs305-1g-4s_defconfig
>> b/configs/crs305-1g-4s_defconfig
>> index a360fc5d3f..a62b14e856 100644
>> --- a/configs/crs305-1g-4s_defconfig
>> +++ b/configs/crs305-1g-4s_defconfig
>> @@ -5,14 +5,17 @@ CONFIG_SYS_TEXT_BASE=0x00800000
>> ? CONFIG_SYS_MALLOC_F_LEN=0x2000
>> ? CONFIG_TARGET_CRS3XX_98DX3236=y
>> ? CONFIG_ENV_SIZE=0x10000
>> -CONFIG_ENV_OFFSET=0x80000
>> +CONFIG_ENV_OFFSET=0x1F0000
>> ? CONFIG_ENV_SECT_SIZE=0x10000
>> +CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> ? CONFIG_BUILD_TARGET="u-boot.kwb"
>> ? CONFIG_FIT=y
>> +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
>> ? CONFIG_FIT_VERBOSE=y
>> ? CONFIG_FIT_BEST_MATCH=y
>> ? CONFIG_USE_PREBOOT=y
>> ? CONFIG_SYS_CONSOLE_INFO_QUIET=y
>> +CONFIG_HUSH_PARSER=y
>> ? CONFIG_AUTOBOOT_KEYED=y
>> ? CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, to stop use 's' key\n"
>> ? CONFIG_AUTOBOOT_STOP_STR="s"
>> @@ -22,11 +25,15 @@ CONFIG_CMD_BOOTZ=y
>> ? CONFIG_CMD_MTD=y
>> ? CONFIG_CMD_SPI=y
>> ? CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_UBI=y
>> +CONFIG_CMD_FS_GENERIC=y
>> ? CONFIG_CMD_MTDPARTS=y
>> ? CONFIG_DEFAULT_DEVICE_TREE="armada-xp-crs305-1g-4s"
>> ? CONFIG_ENV_IS_IN_SPI_FLASH=y
>> ? CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>> ? CONFIG_BLK=y
>> +CONFIG_BOOTCOUNT_LIMIT=y
>> +CONFIG_BOOTCOUNT_ENV=y
>> ? # CONFIG_MMC is not set
>> ? CONFIG_MTD=y
>> ? CONFIG_DM_MTD=y
>>
>
>
> Viele Gr??e,
> Stefan
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2020-08-06 14:26 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 8:56 [PATCH 0/5] Add support for a series of MikroTik CRS3xx switches Luka Kovacic
2020-07-23 8:56 ` [PATCH 1/5] arm: mvebu: Add CRS305-1G-4S Bit board Luka Kovacic
2020-08-06 12:07 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 2/5] arm: mvebu: Add CRS326-24G-2S board Luka Kovacic
2020-08-06 12:07 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 3/5] arm: mvebu: Add CRS328-4C-20S-4S board Luka Kovacic
2020-08-06 12:08 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 4/5] arm: mvebu: crs3xx-98dx3236: Add a maintainer Luka Kovacic
2020-08-06 12:08 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
2020-07-23 8:56 ` [PATCH 5/5] arm: mvebu: Update CRS305-1G-4S board flash layout Luka Kovacic
2020-08-06 12:08 ` Stefan Roese
2020-08-06 14:26 ` Stefan Roese
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.