Skip to contentSkip to conversation

bcm68360: add initial support

PATCH New Philippe Reynes 2 participants 16 messages Jan 7, 2020 – Jan 23, 2020

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

PATCH 1/8 bcm68360: add initial support

This add the initial support of the broadcom bcm68360 SoC family.

---
 arch/arm/Kconfig           |   6 ++
 arch/arm/dts/bcm68360.dtsi | 217 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 223 insertions(+)
 create mode 100644 arch/arm/dts/bcm68360.dtsi
arch/arm/Kconfig +6 -0
index 36c9c2f..17f7454 100644
@@ -622,6 +622,12 @@ config ARCH_BCM63158
 	select OF_CONTROL
 	imply CMD_DM
 
+config ARCH_BCM68360
+	bool "Broadcom BCM68360 family"
+	select DM
+	select OF_CONTROL
+	imply CMD_DM
+
 config ARCH_BCM6858
 	bool "Broadcom BCM6858 family"
 	select DM
arch/arm/dts/bcm68360.dtsi new file +217 -0

217 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/8 watchdog: bcm6345: allow to use this driver on arm bcm68360

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

---
 drivers/watchdog/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/watchdog/Kconfig +2 -1
index 8c16d69..2b8064d 100644
@@ -85,7 +85,8 @@ config WDT_AT91
 
 config WDT_BCM6345
 	bool "BCM6345 watchdog timer support"
-	depends on WDT && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158)
+	depends on WDT && (ARCH_BMIPS || ARCH_BCM68360 || \
+			   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
#2 lore raw

PATCH 2/8 watchdog: bcm6345: allow to use this driver on arm bcm68360

Quoted 4 lines · Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/aa3e3ec3/attachment.sig>
#3 lore raw

PATCH 3/8 spi: bcm63xx-hsspi: allow to use this driver on arm bcm68360

In reply to Philippe Reynes

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

---
 drivers/spi/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/spi/Kconfig +2 -1
index fae2040..73d1a69 100644
@@ -84,7 +84,8 @@ config ATMEL_SPI
 
 config BCM63XX_HSSPI
 	bool "BCM63XX HSSPI driver"
-	depends on (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158)
+	depends on (ARCH_BMIPS || ARCH_BCM68360 || \
+		    ARCH_BCM6858 || ARCH_BCM63158)
 	help
 	  Enable the BCM6328 HSSPI driver. This driver can be used to
 	  access the SPI NOR flash on platforms embedding this Broadcom
Signature · 1 line
2.7.4
#4 lore raw

PATCH 3/8 spi: bcm63xx-hsspi: allow to use this driver on arm bcm68360

Quoted 4 lines · Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/0b091ae5/attachment.sig>
#5 lore raw

PATCH 4/8 nand: brcmnand: add bcm68360 support

In reply to Philippe Reynes

This adds the nand support for chipset bcm68360.

---
 drivers/mtd/nand/raw/Kconfig                  |   6 ++
 drivers/mtd/nand/raw/brcmnand/Makefile        |   1 +
 drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c | 123 ++++++++++++++++++++++++++
 3 files changed, 130 insertions(+)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
drivers/mtd/nand/raw/Kconfig +6 -0
index 16165f8..158bb1b 100644
@@ -78,6 +78,12 @@ config NAND_BRCMNAND_6368
 	help
 	  Enable support for broadcom nand driver on bcm6368.
 
+config NAND_BRCMNAND_68360
+       bool "Support Broadcom NAND controller on bcm68360"
+       depends on NAND_BRCMNAND && ARCH_BCM68360
+       help
+         Enable support for broadcom nand driver on bcm68360.
+
 config NAND_BRCMNAND_6838
        bool "Support Broadcom NAND controller on bcm6838"
        depends on NAND_BRCMNAND && ARCH_BMIPS && SOC_BMIPS_BCM6838
drivers/mtd/nand/raw/brcmnand/Makefile +1 -0
index 7e70b85..5d9e7e3 100644
@@ -2,6 +2,7 @@
 
 obj-$(CONFIG_NAND_BRCMNAND_6368) += bcm6368_nand.o
 obj-$(CONFIG_NAND_BRCMNAND_63158) += bcm63158_nand.o
+obj-$(CONFIG_NAND_BRCMNAND_68360) += bcm68360_nand.o
 obj-$(CONFIG_NAND_BRCMNAND_6838) += bcm6838_nand.o
 obj-$(CONFIG_NAND_BRCMNAND_6858) += bcm6858_nand.o
 obj-$(CONFIG_NAND_BRCMNAND) += brcmnand.o
drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c new file +123 -0

123 lines not on this page · raw message

Signature · 1 line
2.7.4
#6 lore raw

PATCH 4/8 nand: brcmnand: add bcm68360 support

Quoted 3 lines · Philippe Reynes

This adds the nand support for chipset bcm68360.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/30638cb8/attachment.sig>
#7 lore raw

PATCH 5/8 led: bcm6858: allow to use this driver on arm bcm68360

In reply to Philippe Reynes

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

---
 drivers/led/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/led/Kconfig +1 -1
index 5643939..6675934 100644
@@ -30,7 +30,7 @@ config LED_BCM6358
 
 config LED_BCM6858
 	bool "LED Support for BCM6858"
-	depends on LED && (ARCH_BCM6858 || ARCH_BCM63158)
+	depends on LED && (ARCH_BCM68360 || ARCH_BCM6858 || ARCH_BCM63158)
 	help
 	  This option enables support for LEDs connected to the BCM6858
 	  HW has blinking capabilities and up to 32 LEDs can be controlled.
Signature · 1 line
2.7.4
#8 lore raw

PATCH 5/8 led: bcm6858: allow to use this driver on arm bcm68360

Quoted 4 lines · Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/60549e0e/attachment.sig>
#9 lore raw

PATCH 6/8 gpio: bcm6345: allow to use this driver on arm bcm68360

In reply to Philippe Reynes

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

---
 drivers/gpio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpio/Kconfig +2 -1
index 1de6f52..4e5a707 100644
@@ -55,7 +55,8 @@ config ALTERA_PIO
 
 config BCM6345_GPIO
 	bool "BCM6345 GPIO driver"
-	depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM6858 || ARCH_BCM63158)
+	depends on DM_GPIO && (ARCH_BMIPS || ARCH_BCM68360 || \
+			       ARCH_BCM6858 || ARCH_BCM63158)
 	help
 	  This driver supports the GPIO banks on BCM6345 SoCs.
 
Signature · 1 line
2.7.4
#10 lore raw

PATCH 6/8 gpio: bcm6345: allow to use this driver on arm bcm68360

Quoted 4 lines · Philippe Reynes

This IP is also used on some arm SoC, so we allow to use it on arm bcm68360 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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/1d32a139/attachment.sig>
#11 lore raw

PATCH 7/8 gpio: do not include <asm/arch/gpio.h> on ARCH_BCM68360

In reply to Philippe Reynes

As no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch bcm68360.

---
 arch/arm/include/asm/gpio.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/include/asm/gpio.h +5 -5
index 6ff5f42..5b4dee0 100644
@@ -1,9 +1,9 @@
 #if !defined(CONFIG_ARCH_UNIPHIER) && !defined(CONFIG_ARCH_STI) && \
-	!defined(CONFIG_ARCH_K3) && !defined(CONFIG_ARCH_BCM6858) && \
-	!defined(CONFIG_ARCH_BCM63158) && !defined(CONFIG_ARCH_ROCKCHIP) && \
-	!defined(CONFIG_ARCH_LX2160A) && !defined(CONFIG_ARCH_LS1028A) && \
-	!defined(CONFIG_ARCH_LS2080A) && !defined(CONFIG_ARCH_LS1088A) && \
-	!defined(CONFIG_ARCH_ASPEED)
+	!defined(CONFIG_ARCH_K3) && !defined(CONFIG_ARCH_BCM68360) && \
+	!defined(CONFIG_ARCH_BCM6858) && !defined(CONFIG_ARCH_BCM63158) && \
+	!defined(CONFIG_ARCH_ROCKCHIP) && !defined(CONFIG_ARCH_LX2160A) && \
+	!defined(CONFIG_ARCH_LS1028A) && !defined(CONFIG_ARCH_LS2080A) && \
+	!defined(CONFIG_ARCH_LS1088A) && !defined(CONFIG_ARCH_ASPEED)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>
Signature · 1 line
2.7.4
#12 lore raw

PATCH 7/8 gpio: do not include <asm/arch/gpio.h> on ARCH_BCM68360

Quoted 5 lines · Philippe Reynes

As no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for arch bcm68360.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/513a086c/attachment.sig>
#13 lore raw

PATCH 8/8 bcm968360bg: add initial support

In reply to Philippe Reynes

This add the initial support of the broadcom reference board bcm968360bg with a bcm68360 SoC.

This board has 512 MB of RAM, 256 MB of flash (nand), 2 USB port, 1 UART, and 4 ethernet ports.

---
 arch/arm/Kconfig                         |   1 +
 arch/arm/dts/Makefile                    |   3 +
 arch/arm/dts/bcm968360bg.dts             | 168 +++++++++++++++++++++++++++++++
 board/broadcom/bcm968360bg/Kconfig       |  17 ++++
 board/broadcom/bcm968360bg/MAINTAINERS   |   6 ++
 board/broadcom/bcm968360bg/Makefile      |   3 +
 board/broadcom/bcm968360bg/bcm968360bg.c |  61 +++++++++++
 configs/bcm968360bg_ram_defconfig        |  53 ++++++++++
 include/configs/broadcom_bcm968360bg.h   |  40 ++++++++
 9 files changed, 352 insertions(+)
 create mode 100644 arch/arm/dts/bcm968360bg.dts
 create mode 100644 board/broadcom/bcm968360bg/Kconfig
 create mode 100644 board/broadcom/bcm968360bg/MAINTAINERS
 create mode 100644 board/broadcom/bcm968360bg/Makefile
 create mode 100644 board/broadcom/bcm968360bg/bcm968360bg.c
 create mode 100644 configs/bcm968360bg_ram_defconfig
 create mode 100644 include/configs/broadcom_bcm968360bg.h
arch/arm/Kconfig +1 -0
index 17f7454..60e0f6e 100644
@@ -1791,6 +1791,7 @@ 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/bcm968360bg/Kconfig"
 source "board/broadcom/bcm968580xref/Kconfig"
 source "board/broadcom/bcmcygnus/Kconfig"
 source "board/broadcom/bcmnsp/Kconfig"
arch/arm/dts/Makefile +3 -0
index 0127a91..92d47e7 100644
@@ -816,6 +816,9 @@ dtb-$(CONFIG_ARCH_BCM283X) += \
 dtb-$(CONFIG_ARCH_BCM63158) += \
 	bcm963158.dtb
 
+dtb-$(CONFIG_ARCH_BCM68360) += \
+	bcm968360bg.dtb
+
 dtb-$(CONFIG_ARCH_BCM6858) += \
 	bcm968580xref.dtb
 
arch/arm/dts/bcm968360bg.dts new file +168 -0

168 lines not on this page · raw message

board/broadcom/bcm968360bg/Kconfig new file +17 -0
new file mode 100644
index 0000000..dd372f1
@@ -0,0 +1,17 @@
+if ARCH_BCM68360
+
+config SYS_VENDOR
+	default "broadcom"
+
+config SYS_BOARD
+	default "bcm968360bg"
+
+config SYS_CONFIG_NAME
+	default "broadcom_bcm968360bg"
+
+endif
+
+config TARGET_BCM968360BG
+	bool "Support Broadcom bcm968360bg"
+	depends on ARCH_BCM68360
+	select ARM64
board/broadcom/bcm968360bg/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..cfcbbc5
@@ -0,0 +1,6 @@
+BCM968360BG BOARD
+M:	Philippe Reynes <[email protected]>
+S:	Maintained
+F:	board/broadcom/bcm968360bg
+F:	include/configs/broadcom_bcm968360bg.h
+F:	configs/bcm968360bg_ram_defconfig
board/broadcom/bcm968360bg/Makefile new file +3 -0
new file mode 100644
index 0000000..d099c1c
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+obj-y	+= bcm968360bg.o
board/broadcom/bcm968360bg/bcm968360bg.c new file +61 -0

61 lines not on this page · raw message

configs/bcm968360bg_ram_defconfig new file +53 -0

53 lines not on this page · raw message

include/configs/broadcom_bcm968360bg.h new file +40 -0
new file mode 100644
index 0000000..77690ff
@@ -0,0 +1,40 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2020 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)
+
+/*
+ * 6858
+ */
+
+/* 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
+
+#ifdef CONFIG_MTD_RAW_NAND
+#define CONFIG_SYS_MAX_NAND_DEVICE	1
+#define CONFIG_SYS_NAND_SELF_INIT
+#define CONFIG_SYS_NAND_ONFI_DETECTION
+#endif /* CONFIG_MTD_RAW_NAND */
+
+/*
+ * 968360bg
+ */
Signature · 1 line
2.7.4
#14 lore raw

PATCH 8/8 bcm968360bg: add initial support

Quoted 7 lines · Philippe Reynes

This add the initial support of the broadcom reference board bcm968360bg with a bcm68360 SoC.

This board has 512 MB of RAM, 256 MB of flash (nand), 2 USB port, 1 UART, and 4 ethernet ports.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/20f3610d/attachment.sig>
#15 lore raw

PATCH 1/8 bcm68360: add initial support

In reply to Philippe Reynes
Quoted 3 lines · Philippe Reynes

This add the initial support of the broadcom bcm68360 SoC family.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/1b32c194/attachment.sig>