Skip to contentSkip to conversation

bcm63158: add initial support

PATCH New Philippe Reynes 2 participants 10 messages Jan 31, 2019 – Feb 10, 2019

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

PATCH 1/5 bcm63158: add initial support

This add the initial support of the broadcom bcm63158 SoC family, only the cpu, dram and uart are supported.

---
 arch/arm/Kconfig           |  6 ++++
 arch/arm/dts/bcm63158.dtsi | 85 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)
 create mode 100644 arch/arm/dts/bcm63158.dtsi
arch/arm/Kconfig +6 -0
index f0edb10..4316de0 100644
@@ -528,6 +528,12 @@ config ARCH_BCM283X
 	imply CMD_DM
 	imply FAT_WRITE
 
+config ARCH_BCM63158
+	bool "Broadcom BCM63158 family"
+	select DM
+	select OF_CONTROL
+	imply CMD_DM
+
 config ARCH_BCM6858
 	bool "Broadcom BCM6858 family"
 	select DM
arch/arm/dts/bcm63158.dtsi new file +85 -0

85 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/5 bcm963158: add initial support

This add the initial support of the broadcom reference board bcm963158 with a bcm63158 SoC.

This board has 1 GB of ram, 512 MB of flash (nand),
2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN).

---
 arch/arm/Kconfig                     |  1 +
 arch/arm/dts/bcm963158.dts           | 31 ++++++++++++++++++
 board/broadcom/bcm963158/Kconfig     | 17 ++++++++++
 board/broadcom/bcm963158/MAINTAINERS |  6 ++++
 board/broadcom/bcm963158/Makefile    |  3 ++
 board/broadcom/bcm963158/bcm963158.c | 61 ++++++++++++++++++++++++++++++++++++
 configs/bcm963158_ram_defconfig      | 40 +++++++++++++++++++++++
 include/configs/broadcom_bcm963158.h | 37 ++++++++++++++++++++++
 8 files changed, 196 insertions(+)
 create mode 100644 arch/arm/dts/bcm963158.dts
 create mode 100644 board/broadcom/bcm963158/Kconfig
 create mode 100644 board/broadcom/bcm963158/MAINTAINERS
 create mode 100644 board/broadcom/bcm963158/Makefile
 create mode 100644 board/broadcom/bcm963158/bcm963158.c
 create mode 100644 configs/bcm963158_ram_defconfig
 create mode 100644 include/configs/broadcom_bcm963158.h
arch/arm/Kconfig +1 -0
index 4316de0..455f06c 100644
@@ -1532,6 +1532,7 @@ source "board/armltd/vexpress/Kconfig"
 source "board/armltd/vexpress64/Kconfig"
 source "board/broadcom/bcm23550_w1d/Kconfig"
 source "board/broadcom/bcm28155_ap/Kconfig"
+source "board/broadcom/bcm963158/Kconfig"
 source "board/broadcom/bcm968580xref/Kconfig"
 source "board/broadcom/bcmcygnus/Kconfig"
 source "board/broadcom/bcmnsp/Kconfig"
arch/arm/dts/bcm963158.dts new file +31 -0
new file mode 100644
index 0000000..dc5afb5
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2019 Philippe Reynes <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "bcm63158.dtsi"
+
+/ {
+	model = "Broadcom bcm963158";
+	compatible = "broadcom,bcm963158", "brcm,bcm63158";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0x40000000>;
+	};
+};
+
+&uart0 {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};
board/broadcom/bcm963158/Kconfig new file +17 -0
new file mode 100644
index 0000000..41b6adb
@@ -0,0 +1,17 @@
+if ARCH_BCM63158
+
+config SYS_VENDOR
+	default "broadcom"
+
+config SYS_BOARD
+	default "bcm963158"
+
+config SYS_CONFIG_NAME
+	default "broadcom_bcm963158"
+
+endif
+
+config TARGET_BCM963158
+	bool "Support Broadcom bcm963158"
+	depends on ARCH_BCM63158
+	select ARM64
board/broadcom/bcm963158/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..d28d971
@@ -0,0 +1,6 @@
+BROADCOM BCM963158
+M:	Philippe Reynes <[email protected]>
+S:	Maintained
+F:	board/broadcom/bcm963158/
+F:	include/configs/broadcom_bcm963158.h
+F:	configs/bcm963158_ram_defconfig
board/broadcom/bcm963158/Makefile new file +3 -0
new file mode 100644
index 0000000..0a902c9
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+obj-y	+= bcm963158.o
board/broadcom/bcm963158/bcm963158.c new file +61 -0

61 lines not on this page · raw message

configs/bcm963158_ram_defconfig new file +40 -0
new file mode 100644
index 0000000..6e3b688
@@ -0,0 +1,40 @@
+CONFIG_ARM=y
+# CONFIG_ARM64_SUPPORT_AARCH32 is not set
+CONFIG_ARCH_BCM63158=y
+CONFIG_SYS_TEXT_BASE=0x10000000
+CONFIG_SYS_MALLOC_F_LEN=0x8000
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
+CONFIG_TARGET_BCM963158=y
+CONFIG_ENV_VARS_UBOOT_CONFIG=y
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_TPL_SYS_MALLOC_F_LEN=0x400
+CONFIG_FIT=y
+CONFIG_FIT_SIGNATURE=y
+CONFIG_FIT_ENABLE_RSASSA_PSS_SUPPORT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_IMAGE_FORMAT_LEGACY=y
+CONFIG_SUPPORT_RAW_INITRD=y
+CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_BOOTEFI_SELFTEST=y
+# CONFIG_CMD_LZMADEC is not set
+# CONFIG_CMD_UNZIP is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_CACHE=y
+CONFIG_DOS_PARTITION=y
+CONFIG_ISO_PARTITION=y
+CONFIG_EFI_PARTITION=y
+CONFIG_DEFAULT_DEVICE_TREE="bcm963158"
+# CONFIG_NET is not set
+CONFIG_BLK=y
+CONFIG_CLK=y
+# CONFIG_MMC is not set
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+# CONFIG_SPL_SERIAL_PRESENT is not set
+CONFIG_CONS_INDEX=0
+CONFIG_DM_SERIAL=y
+CONFIG_SERIAL_SEARCH_ALL=y
+CONFIG_PL01X_SERIAL=y
+CONFIG_SYSRESET=y
+CONFIG_REGEX=y
+# CONFIG_GENERATE_SMBIOS_TABLE is not set
include/configs/broadcom_bcm963158.h new file +37 -0
new file mode 100644
index 0000000..5834e1e
@@ -0,0 +1,37 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2019 Philippe Reynes <[email protected]>
+ */
+
+#include <linux/sizes.h>
+
+/*
+ * common
+ */
+
+/* UART */
+#define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200, \
+					  230400, 500000, 1500000 }
+/* Memory usage */
+#define CONFIG_SYS_MAXARGS		24
+#define CONFIG_SYS_MALLOC_LEN		(1024 * 1024)
+#define CONFIG_SYS_BOOTM_LEN		(16 * 1024 * 1024)
+
+/*
+ * 63158
+ */
+
+/* RAM */
+#define CONFIG_SYS_SDRAM_BASE		0x00000000
+
+/* U-Boot */
+#define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_TEXT_BASE + SZ_16M)
+#define CONFIG_SYS_LOAD_ADDR		CONFIG_SYS_TEXT_BASE
+
+#define CONFIG_SKIP_LOWLEVEL_INIT
+
+/*
+ * bcm963158
+ */
+
+#define CONFIG_ENV_SIZE			(8 * 1024)
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/5 bcm963158: add initial support

Quoted 7 lines · Philippe Reynes

This add the initial support of the broadcom reference board bcm963158 with a bcm63158 SoC.

This board has 1 GB of ram, 512 MB of flash (nand),
2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN).

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/0dcfef86/attachment.sig>
#3 lore raw

PATCH 3/5 watchdog: bcm6345: allow to use this driver on arm bcm63158

In reply to Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm63158 too.

---
 drivers/watchdog/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/Kconfig +1 -1
index 9456abd..115fc45 100644
@@ -88,7 +88,7 @@ config WDT_ASPEED
 
 config WDT_BCM6345
 	bool "BCM6345 watchdog timer support"
-	depends on WDT && (ARCH_BMIPS || ARCH_BCM6858)
+	depends on WDT && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158)
 	help
 	  Select this to enable watchdog timer for BCM6345 SoCs.
 	  The watchdog timer is stopped when initialized.
Signature · 1 line
2.7.4
#4 lore raw

PATCH 3/5 watchdog: bcm6345: allow to use this driver on arm bcm63158

Quoted 4 lines · Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm63158 too.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/dfb45431/attachment.sig>
#5 lore raw

PATCH 4/5 dt: bcm63158: add watchdog

In reply to Philippe Reynes

This commit add watchdog and sysreset watchdog
in the bcm63158 device tree.

---
 arch/arm/dts/bcm63158.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/dts/bcm63158.dtsi +17 -0
index be68205..6a3fbc9 100644
@@ -81,5 +81,22 @@
 
 			status = "disabled";
 		};
+
+		wdt1: watchdog at ff800480 {
+			compatible = "brcm,bcm6345-wdt";
+			reg = <0x0 0xff800480 0x0 0x14>;
+			clocks = <&periph_osc>;
+		};
+
+		wdt2: watchdog at ff8004c0 {
+			compatible = "brcm,bcm6345-wdt";
+			reg = <0x0 0xff8004c0 0x0 0x14>;
+			clocks = <&periph_osc>;
+		};
+
+		wdt-reboot {
+			compatible = "wdt-reboot";
+			wdt = <&wdt1>;
+		};
 	};
 };
Signature · 1 line
2.7.4
#6 lore raw

PATCH 4/5 dt: bcm63158: add watchdog

Quoted 4 lines · Philippe Reynes

This commit add watchdog and sysreset watchdog
in the bcm63158 device tree.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/66df19b4/attachment.sig>
#7 lore raw

PATCH 5/5 bcm963158: enable watchdog and reboot with watchdog

In reply to Philippe Reynes

Enable watchdog and reboot with watchdog in the configuration.

---
 configs/bcm963158_ram_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/bcm963158_ram_defconfig +2 -0
index 6e3b688..9083f1d 100644
@@ -36,5 +36,7 @@ CONFIG_DM_SERIAL=y
 CONFIG_SERIAL_SEARCH_ALL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
+CONFIG_WDT_BCM6345=y
 CONFIG_REGEX=y
 # CONFIG_GENERATE_SMBIOS_TABLE is not set
Signature · 1 line
2.7.4
#8 lore raw

PATCH 5/5 bcm963158: enable watchdog and reboot with watchdog

Quoted 3 lines · Philippe Reynes

Enable watchdog and reboot with watchdog in the configuration.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/a990766e/attachment.sig>
#9 lore raw

PATCH 1/5 bcm63158: add initial support

In reply to Philippe Reynes
Quoted 4 lines · Philippe Reynes

This add the initial support of the broadcom bcm63158 SoC family, only the cpu, dram and uart are supported.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/2bdee224/attachment.sig>