arm: bcmbca: Move BCM63138 SoC support under ARCH_BCMBCA
Subsystems (14)
William Zhang
maintainercover arm: bcmbca: Move BCM63138 SoC support under ARCH_BCMBCA
Now that Broadcom Broadband arch ARCH_BCMBCA is in the kernel, this change migrates the existing broadband chip BCM63138 support to ARCH_BCMBCA. It also delete the old ARCH_BCM_63XX config as no other chip uses it.
Verified on BCM963138REF board with ramdisk boot.
William Zhang (9):
dt-bindings: arm: add BCM63138 SoC
ARM: dts: Move BCM963138DVT board dts to ARCH_BCMBCA
ARM: dts: update dts files for bcmbca SoC BCM63138
ARM: dts: Add BCM63138 generic board dts
arm: bcmbca: Replace ARCH_BCM_63XX with ARCH_BCMBCA
arm: bcmbca: Move BCM63138 ARCH_BCM_63XX config to ARCH_BCMBCA
arm: bcmbca: Add BCMBCA sub platforms
MAINTAINERS: Move BCM63138 to bcmbca arch entry
ARM: multi_v7_defconfig: Update configs for BCM63138
.../bindings/arm/bcm/brcm,bcmbca.yaml | 8 +++ MAINTAINERS | 10 +-- arch/arm/Kconfig.debug | 2 +- arch/arm/boot/dts/Makefile | 4 +- arch/arm/boot/dts/bcm63138.dtsi | 18 +++--- arch/arm/boot/dts/bcm963138.dts | 26 ++++++++ arch/arm/boot/dts/bcm963138dvt.dts | 8 +-- arch/arm/configs/multi_v7_defconfig | 4 +- arch/arm/mach-bcm/Kconfig | 61 +++++++++++++------ arch/arm/mach-bcm/Makefile | 7 +-- arch/arm/mach-bcm/bcm63xx.c | 17 ------ drivers/ata/Kconfig | 2 +- drivers/char/hw_random/Kconfig | 2 +- drivers/clk/bcm/Kconfig | 4 +- drivers/i2c/busses/Kconfig | 2 +- drivers/phy/broadcom/Kconfig | 2 +- drivers/spi/Kconfig | 2 +- drivers/tty/serial/Kconfig | 4 +- 18 files changed, 108 insertions(+), 75 deletions(-) create mode 100644 arch/arm/boot/dts/bcm963138.dts delete mode 100644 arch/arm/mach-bcm/bcm63xx.c
Signature · 1 line
2.34.1
William Zhang
maintainerPATCH 1/9 dt-bindings: arm: add BCM63138 SoC
Add BCM63138 SoC device tree description to bcmbca binding document.
---
.../devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +8 -0
@@ -35,6 +35,14 @@ properties: - const: brcm,bcm4912 - const: brcm,bcmbca + - description: BCM63138 based boards + items: + - enum: + - brcm,bcm963138 + - brcm,BCM963138DVT + - const: brcm,bcm63138 + - const: brcm,bcmbca + - description: BCM63146 based boards items: - enum:
Signature · 1 line
2.34.1
Re: [PATCH 1/9] dt-bindings: arm: add BCM63138 SoC
Quoted 4 lines · William Zhang
Add BCM63138 SoC device tree description to bcmbca binding document.
Signed-off-by William Zhang <[email protected]>---
Best regards,
Krzysztof
William Zhang
maintainerPATCH 2/9 ARM: dts: Move BCM963138DVT board dts to ARCH_BCMBCA
In reply to William ZhangUse CONFIG_ARCH_BCMBCA to build all the BCMBCA SoC dts and remove CONFIG_ARCH_BCM_63XX from the makefile
---
arch/arm/boot/dts/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/boot/dts/Makefile +1 -2
@@ -147,8 +147,6 @@ dtb-$(CONFIG_ARCH_BCM_53573) += \ bcm47189-luxul-xap-810.dtb \ bcm47189-tenda-ac9.dtb \ bcm947189acdbmr.dtb -dtb-$(CONFIG_ARCH_BCM_63XX) += \ - bcm963138dvt.dtb dtb-$(CONFIG_ARCH_BCM_CYGNUS) += \ bcm911360_entphn.dtb \ bcm911360k.dtb \
@@ -184,6 +182,7 @@ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_BCMBCA) += \ bcm947622.dtb \ + bcm963138dvt.dtb \ bcm963148.dtb \ bcm963178.dtb \ bcm96756.dtb \
Signature · 1 line
2.34.1
William Zhang
maintainerPATCH 3/9 ARM: dts: update dts files for bcmbca SoC BCM63138
In reply to William ZhangUpdate compatible string and UART node and clock name based on device tree binding documents.
---
arch/arm/boot/dts/bcm63138.dtsi | 18 +++++++++--------- arch/arm/boot/dts/bcm963138dvt.dts | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-)
arch/arm/boot/dts/bcm63138.dtsi +9 -9
@@ -9,13 +9,13 @@ / { #address-cells = <1>; #size-cells = <1>; - compatible = "brcm,bcm63138"; - model = "Broadcom BCM63138 DSL SoC"; + compatible = "brcm,bcm63138", "brcm,bcmbca"; + model = "Broadcom BCM963138 Reference Board"; interrupt-parent = <&gic>; aliases { - uart0 = &serial0; - uart1 = &serial1; + serial0 = &uart0; + serial1 = &uart1; }; cpus {
@@ -174,7 +174,7 @@ sata_phy0: sata-phy@0 { }; /* Legacy UBUS base */ - ubus@fffe8000 { + bus@fffe8000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
@@ -185,21 +185,21 @@ timer: timer@80 { reg = <0x80 0x3c>; }; - serial0: serial@600 { + uart0: serial@600 { compatible = "brcm,bcm6345-uart"; reg = <0x600 0x1b>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; clocks = <&periph_clk>; - clock-names = "periph"; + clock-names = "refclk"; status = "disabled"; }; - serial1: serial@620 { + uart1: serial@620 { compatible = "brcm,bcm6345-uart"; reg = <0x620 0x1b>; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; clocks = <&periph_clk>; - clock-names = "periph"; + clock-names = "refclk"; status = "disabled"; };
arch/arm/boot/dts/bcm963138dvt.dts +4 -4
@@ -8,12 +8,12 @@ #include "bcm63138.dtsi" / { - compatible = "brcm,BCM963138DVT", "brcm,bcm63138"; + compatible = "brcm,BCM963138DVT", "brcm,bcm63138", "brcm,bcmbca"; model = "Broadcom BCM963138DVT"; chosen { bootargs = "console=ttyS0,115200"; - stdout-path = &serial0; + stdout-path = &uart0; }; memory@0 {
@@ -23,11 +23,11 @@ memory@0 { }; -&serial0 { +&uart0 { status = "okay"; }; -&serial1 { +&uart1 { status = "okay"; };
Signature · 1 line
2.34.1
Re: [PATCH 3/9] ARM: dts: update dts files for bcmbca SoC BCM63138
Quoted 15 lines · William Zhang
Update compatible string and UART node and clock name based on device tree binding documents.
Signed-off-by William Zhang <[email protected]>---
arch/arm/boot/dts/bcm63138.dtsi | 18 +++++++++--------- arch/arm/boot/dts/bcm963138dvt.dts | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-)arch/arm/boot/dts/bcm63138.dtsi +0
-0
arch/arm/boot/dts/bcm63138.dtsi line 12
Quoted 6 lines
arch/arm/boot/dts/bcm63138.dtsi +1
-2@@ -9,13 +9,13 @@ / { #address-cells = <1>; #size-cells = <1>; - compatible = "brcm,bcm63138"; - model = "Broadcom BCM63138 DSL SoC"; + compatible = "brcm,bcm63138", "brcm,bcmbca";
Changing compatibles affects ABI, so you should not combine it with some node renaming/cleanup patch. Split these.
Quoted 33 lines
arch/arm/boot/dts/bcm63138.dtsi +6
-5+ model = "Broadcom BCM963138 Reference Board"; interrupt-parent = <&gic>; aliases { - uart0 = &serial0; - uart1 = &serial1; + serial0 = &uart0; + serial1 = &uart1; }; cpus {@@ -174,7 +174,7 @@ sata_phy0: sata-phy@0 { }; /* Legacy UBUS base */ - ubus@fffe8000 { + bus@fffe8000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;@@ -185,21 +185,21 @@ timer: timer@80 { reg = <0x80 0x3c>; }; - serial0: serial@600 { + uart0: serial@600 { compatible = "brcm,bcm6345-uart"; reg = <0x600 0x1b>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; clocks = <&periph_clk>; - clock-names = "periph"; + clock-names = "refclk"; status = "disabled";
arch/arm/boot/dts/bcm63138.dtsi timer: timer@80 { · line 202
Quoted 10 lines
arch/arm/boot/dts/bcm63138.dtsi +2
-2}; - serial1: serial@620 { + uart1: serial@620 { compatible = "brcm,bcm6345-uart"; reg = <0x620 0x1b>; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; clocks = <&periph_clk>; - clock-names = "periph"; + clock-names = "refclk";
This is even more confusing. You now rename clock-names. How is this related to board compatible or to node names?
Best regards,
Krzysztof
William Zhang
maintainerRe: [PATCH 3/9] ARM: dts: update dts files for bcmbca SoC BCM63138
Quoted 61 lines · Krzysztof Kozlowski
Quoted 15 lines · William Zhang
Update compatible string and UART node and clock name based on device tree binding documents.
Signed-off-by William Zhang <[email protected]>---
arch/arm/boot/dts/bcm63138.dtsi | 18 +++++++++--------- arch/arm/boot/dts/bcm963138dvt.dts | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-)arch/arm/boot/dts/bcm63138.dtsi +0
-0arch/arm/boot/dts/bcm63138.dtsi line 12
Quoted 6 lines
arch/arm/boot/dts/bcm63138.dtsi +1
-2@@ -9,13 +9,13 @@ / { #address-cells = <1>; #size-cells = <1>; - compatible = "brcm,bcm63138"; - model = "Broadcom BCM63138 DSL SoC"; + compatible = "brcm,bcm63138", "brcm,bcmbca";Changing compatibles affects ABI, so you should not combine it with some node renaming/cleanup patch. Split these.
Quoted 35 lines
arch/arm/boot/dts/bcm63138.dtsi +6
-5+ model = "Broadcom BCM963138 Reference Board"; interrupt-parent = <&gic>; aliases { - uart0 = &serial0; - uart1 = &serial1; + serial0 = &uart0; + serial1 = &uart1; }; cpus {@@ -174,7 +174,7 @@ sata_phy0: sata-phy@0 { }; /* Legacy UBUS base */ - ubus@fffe8000 { + bus@fffe8000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;@@ -185,21 +185,21 @@ timer: timer@80 { reg = <0x80 0x3c>; }; - serial0: serial@600 { + uart0: serial@600 { compatible = "brcm,bcm6345-uart"; reg = <0x600 0x1b>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; clocks = <&periph_clk>; - clock-names = "periph"; + clock-names = "refclk"; status = "disabled"; };
Quoted 11 lines
arch/arm/boot/dts/bcm63138.dtsi timer: timer@80 { · line 202
Quoted 8 lines
arch/arm/boot/dts/bcm63138.dtsi +2
-2- serial1: serial@620 { + uart1: serial@620 { compatible = "brcm,bcm6345-uart"; reg = <0x620 0x1b>; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; clocks = <&periph_clk>; - clock-names = "periph"; + clock-names = "refclk";This is even more confusing. You now rename clock-names. How is this related to board compatible or to node names?
Not related to board compatible string but it is the same board dts file that require some updates. Anyway I don't have to change anything else other than the compatible string for this patchset. So I will revert those changes.
Quoted 5 lines
Best regards,
Krzysztof
William Zhang
maintainerPATCH 4/9 ARM: dts: Add BCM63138 generic board dts
In reply to William ZhangAdd generic bcm963138.dts file.
---
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm963138.dts | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/bcm963138.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -182,6 +182,7 @@ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_BCMBCA) += \ bcm947622.dtb \ + bcm963138.dtb \ bcm963138dvt.dtb \ bcm963148.dtb \ bcm963178.dtb \
arch/arm/boot/dts/bcm963138.dts new file +26 -0
@@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm63138.dtsi" + +/ { + model = "Broadcom BCM963138 Reference Board"; + compatible = "brcm,bcm963138", "brcm,bcm63138", "brcm,bcmbca"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};
Signature · 1 line
2.34.1
William Zhang
maintainerPATCH 5/9 arm: bcmbca: Replace ARCH_BCM_63XX with ARCH_BCMBCA
In reply to William ZhangUpdate ARCH_BCM_63XX in all sources to use ARCHB_BCMBCA instead.
---
arch/arm/Kconfig.debug | 2 +- drivers/ata/Kconfig | 2 +- drivers/char/hw_random/Kconfig | 2 +- drivers/clk/bcm/Kconfig | 4 ++-- drivers/i2c/busses/Kconfig | 2 +- drivers/phy/broadcom/Kconfig | 2 +- drivers/spi/Kconfig | 2 +- drivers/tty/serial/Kconfig | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/Kconfig.debug +1 -1
@@ -271,7 +271,7 @@ choice config DEBUG_BCM63XX_UART bool "Kernel low-level debugging on BCM63XX UART" - depends on ARCH_BCM_63XX + depends on ARCH_BCMBCA config DEBUG_BERLIN_UART bool "Marvell Berlin SoC Debug UART"
drivers/ata/Kconfig +1 -1
@@ -148,7 +148,7 @@ config SATA_AHCI_PLATFORM config AHCI_BRCM tristate "Broadcom AHCI SATA support" depends on ARCH_BRCMSTB || BMIPS_GENERIC || ARCH_BCM_NSP || \ - ARCH_BCM_63XX || COMPILE_TEST + ARCH_BCMBCA || COMPILE_TEST select SATA_HOST help This option enables support for the AHCI SATA3 controller found on
drivers/char/hw_random/Kconfig +1 -1
@@ -87,7 +87,7 @@ config HW_RANDOM_BA431 config HW_RANDOM_BCM2835 tristate "Broadcom BCM2835/BCM63xx Random Number Generator support" depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \ - ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC || COMPILE_TEST + ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC || COMPILE_TEST default HW_RANDOM help This driver provides kernel-side support for the Random Number
drivers/clk/bcm/Kconfig +2 -2
@@ -22,9 +22,9 @@ config CLK_BCM2835 config CLK_BCM_63XX bool "Broadcom BCM63xx clock support" - depends on ARCH_BCM_63XX || COMPILE_TEST + depends on ARCH_BCMBCA || COMPILE_TEST select COMMON_CLK_IPROC - default ARCH_BCM_63XX + default ARCH_BCMBCA help Enable common clock framework support for Broadcom BCM63xx DSL SoCs based on the ARM architecture
drivers/i2c/busses/Kconfig +1 -1
@@ -486,7 +486,7 @@ config I2C_BCM_KONA config I2C_BRCMSTB tristate "BRCM Settop/DSL I2C controller" - depends on ARCH_BCM2835 || ARCH_BCM4908 || ARCH_BCM_63XX || \ + depends on ARCH_BCM2835 || ARCH_BCM4908 || ARCH_BCMBCA || \ ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST default y help
drivers/phy/broadcom/Kconfig +1 -1
@@ -83,7 +83,7 @@ config PHY_NS2_USB_DRD config PHY_BRCM_SATA tristate "Broadcom SATA PHY driver" depends on ARCH_BRCMSTB || ARCH_BCM_IPROC || BMIPS_GENERIC || \ - ARCH_BCM_63XX || COMPILE_TEST + ARCH_BCMBCA || COMPILE_TEST depends on OF select GENERIC_PHY default ARCH_BCM_IPROC
drivers/spi/Kconfig +1 -1
@@ -183,7 +183,7 @@ config SPI_BCM63XX config SPI_BCM63XX_HSSPI tristate "Broadcom BCM63XX HS SPI controller driver" - depends on BCM63XX || BMIPS_GENERIC || ARCH_BCM_63XX || COMPILE_TEST + depends on BCM63XX || BMIPS_GENERIC || ARCH_BCMBCA || COMPILE_TEST help This enables support for the High Speed SPI controller present on newer Broadcom BCM63XX SoCs.
drivers/tty/serial/Kconfig +2 -2
@@ -1100,8 +1100,8 @@ config SERIAL_TIMBERDALE config SERIAL_BCM63XX tristate "Broadcom BCM63xx/BCM33xx UART support" select SERIAL_CORE - depends on ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC || COMPILE_TEST - default ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC + depends on ARCH_BCM4908 || ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC || COMPILE_TEST + default ARCH_BCM4908 || ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC help This enables the driver for the onchip UART core found on the following chipsets:
Signature · 1 line
2.34.1
Re: [PATCH 5/9] arm: bcmbca: Replace ARCH_BCM_63XX with ARCH_BCMBCA
Quoted 3 lines · William Zhang
Update
ARCH_BCM_63XXin all sources to useARCHB_BCMBCAinstead.Signed-off-by William Zhang <[email protected]>
Re: [PATCH 5/9] arm: bcmbca: Replace ARCH_BCM_63XX with ARCH_BCMBCA
In reply to William ZhangQuoted 3 lines · William Zhang
Update
ARCH_BCM_63XXin all sources to useARCHB_BCMBCAinstead.Signed-off-by William Zhang <[email protected]>
For the ata Kconfig change:
Quoted 121 lines
---
arch/arm/Kconfig.debug | 2 +- drivers/ata/Kconfig | 2 +- drivers/char/hw_random/Kconfig | 2 +- drivers/clk/bcm/Kconfig | 4 ++-- drivers/i2c/busses/Kconfig | 2 +- drivers/phy/broadcom/Kconfig | 2 +- drivers/spi/Kconfig | 2 +- drivers/tty/serial/Kconfig | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-)arch/arm/Kconfig.debug +1
-1@@ -271,7 +271,7 @@ choice config DEBUG_BCM63XX_UART bool "Kernel low-level debugging on BCM63XX UART" - depends on ARCH_BCM_63XX + depends on ARCH_BCMBCA config DEBUG_BERLIN_UART bool "Marvell Berlin SoC Debug UART"drivers/ata/Kconfig +1
-1@@ -148,7 +148,7 @@ config SATA_AHCI_PLATFORM config AHCI_BRCM tristate "Broadcom AHCI SATA support" depends on ARCH_BRCMSTB || BMIPS_GENERIC || ARCH_BCM_NSP || \ - ARCH_BCM_63XX || COMPILE_TEST + ARCH_BCMBCA || COMPILE_TEST select SATA_HOST help This option enables support for the AHCI SATA3 controller found ondrivers/char/hw_random/Kconfig +1
-1@@ -87,7 +87,7 @@ config HW_RANDOM_BA431 config HW_RANDOM_BCM2835 tristate "Broadcom BCM2835/BCM63xx Random Number Generator support" depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X || \ - ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC || COMPILE_TEST + ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC || COMPILE_TEST default HW_RANDOM help This driver provides kernel-side support for the Random Numberdrivers/clk/bcm/Kconfig +2
-2@@ -22,9 +22,9 @@ config CLK_BCM2835 config CLK_BCM_63XX bool "Broadcom BCM63xx clock support" - depends on ARCH_BCM_63XX || COMPILE_TEST + depends on ARCH_BCMBCA || COMPILE_TEST select COMMON_CLK_IPROC - default ARCH_BCM_63XX + default ARCH_BCMBCA help Enable common clock framework support for Broadcom BCM63xx DSL SoCs based on the ARM architecturedrivers/i2c/busses/Kconfig +1
-1@@ -486,7 +486,7 @@ config I2C_BCM_KONA config I2C_BRCMSTB tristate "BRCM Settop/DSL I2C controller" - depends on ARCH_BCM2835 || ARCH_BCM4908 || ARCH_BCM_63XX || \ + depends on ARCH_BCM2835 || ARCH_BCM4908 || ARCH_BCMBCA || \ ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST default y helpdrivers/phy/broadcom/Kconfig +1
-1@@ -83,7 +83,7 @@ config PHY_NS2_USB_DRD config PHY_BRCM_SATA tristate "Broadcom SATA PHY driver" depends on ARCH_BRCMSTB || ARCH_BCM_IPROC || BMIPS_GENERIC || \ - ARCH_BCM_63XX || COMPILE_TEST + ARCH_BCMBCA || COMPILE_TEST depends on OF select GENERIC_PHY default ARCH_BCM_IPROCdrivers/spi/Kconfig +1
-1@@ -183,7 +183,7 @@ config SPI_BCM63XX config SPI_BCM63XX_HSSPI tristate "Broadcom BCM63XX HS SPI controller driver" - depends on BCM63XX || BMIPS_GENERIC || ARCH_BCM_63XX || COMPILE_TEST + depends on BCM63XX || BMIPS_GENERIC || ARCH_BCMBCA || COMPILE_TEST help This enables support for the High Speed SPI controller present on newer Broadcom BCM63XX SoCs.drivers/tty/serial/Kconfig +2
-2@@ -1100,8 +1100,8 @@ config SERIAL_TIMBERDALE config SERIAL_BCM63XX tristate "Broadcom BCM63xx/BCM33xx UART support" select SERIAL_CORE - depends on ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC || COMPILE_TEST - default ARCH_BCM4908 || ARCH_BCM_63XX || BCM63XX || BMIPS_GENERIC + depends on ARCH_BCM4908 || ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC || COMPILE_TEST + default ARCH_BCM4908 || ARCH_BCMBCA || BCM63XX || BMIPS_GENERIC help This enables the driver for the onchip UART core found on the following chipsets:
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH 5/9] arm: bcmbca: Replace ARCH_BCM_63XX with ARCH_BCMBCA
In reply to William ZhangQuoted 11 lines · William Zhang
Update
ARCH_BCM_63XXin all sources to useARCHB_BCMBCAinstead.Signed-off-by William Zhang <[email protected]>---
arch/arm/Kconfig.debug | 2 +- drivers/ata/Kconfig | 2 +- drivers/char/hw_random/Kconfig | 2 +- drivers/clk/bcm/Kconfig | 4 ++-- drivers/i2c/busses/Kconfig | 2 +- drivers/phy/broadcom/Kconfig | 2 +-
Signature · 1 line
~Vinod
William Zhang
maintainerPATCH 6/9 arm: bcmbca: Move BCM63138 ARCH_BCM_63XX config to ARCH_BCMBCA
In reply to William ZhangRemove ARCH_BCM_63XX for BCM63138 and move it to ARCH_BCMBCA. Delete bcm63xx.c as it is no longer needed.
---
arch/arm/mach-bcm/Kconfig | 26 +++++++++----------------- arch/arm/mach-bcm/Makefile | 7 +------ arch/arm/mach-bcm/bcm63xx.c | 17 ----------------- 3 files changed, 10 insertions(+), 40 deletions(-) delete mode 100644 arch/arm/mach-bcm/bcm63xx.c
arch/arm/mach-bcm/Kconfig +9 -17
@@ -182,23 +182,6 @@ config ARCH_BCM_53573 The base chip is BCM53573 and there are some packaging modifications like BCM47189 and BCM47452. -config ARCH_BCM_63XX - bool "Broadcom BCM63xx DSL SoC" - depends on ARCH_MULTI_V7 - select ARCH_HAS_RESET_CONTROLLER - select ARM_ERRATA_754322 - select ARM_ERRATA_764369 if SMP - select ARM_GIC - select ARM_GLOBAL_TIMER - select CACHE_L2X0 - select HAVE_ARM_ARCH_TIMER - select HAVE_ARM_TWD if SMP - select HAVE_ARM_SCU if SMP - help - This enables support for systems based on Broadcom DSL SoCs. - It currently supports the 'BCM63XX' ARM-based family, which includes - the BCM63138 variant. - config ARCH_BRCMSTB bool "Broadcom BCM7XXX based boards" depends on ARCH_MULTI_V7
@@ -224,10 +207,19 @@ config ARCH_BCMBCA select ARM_AMBA select ARM_GIC select HAVE_ARM_ARCH_TIMER + select ARCH_HAS_RESET_CONTROLLER + select ARM_ERRATA_754322 + select ARM_ERRATA_764369 if SMP + select ARM_GLOBAL_TIMER + select CACHE_L2X0 + select HAVE_ARM_TWD if SMP + select HAVE_ARM_SCU if SMP + help Say Y if you intend to run the kernel on a Broadcom Broadband ARM-based BCA chipset. This enables support for Broadcom BCA ARM-based broadband chipsets, including the DSL, PON and Wireless family of chips. + endif
arch/arm/mach-bcm/Makefile +1 -6
@@ -50,12 +50,6 @@ ifeq ($(CONFIG_ARCH_BCM_5301X),y) obj-$(CONFIG_SMP) += platsmp.o endif -# BCM63XXx -ifeq ($(CONFIG_ARCH_BCM_63XX),y) -obj-y += bcm63xx.o -obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o -endif - ifeq ($(CONFIG_ARCH_BRCMSTB),y) CFLAGS_platsmp-brcmstb.o += -march=armv7-a obj-y += brcmstb.o
@@ -64,5 +58,6 @@ endif # BCMBCA ifeq ($(CONFIG_ARCH_BCMBCA),y) +obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o obj-y += bcmbca.o endif
arch/arm/mach-bcm/bcm63xx.c deleted +0 -17
@@ -1,17 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -// Copyright (C) 2014 Broadcom Corporation - -#include <linux/of_platform.h> - -#include <asm/mach/arch.h> - -static const char *const bcm63xx_dt_compat[] = { -"brcm,bcm63138" , -NULL -}; - -DT_MACHINE_START (BCM63XXX_DT ,"BCM63xx DSL SoC" ) - .dt_compat = bcm63xx_dt_compat, - .l2c_aux_val = 0, - .l2c_aux_mask = ~0 , -MACHINE_END
Signature · 1 line
2.34.1
William Zhang
maintainerPATCH 7/9 arm: bcmbca: Add BCMBCA sub platforms
In reply to William ZhangCreate new CORTEXA7, CORTEXA9 and BRAHMAB15 BCMBCA sub platform configs to enable fine-grained selection for each type of ARMv7 SoC.
---
arch/arm/mach-bcm/Kconfig | 45 +++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-)
arch/arm/mach-bcm/Kconfig +39 -6
@@ -201,25 +201,58 @@ config ARCH_BRCMSTB This enables support for Broadcom ARM-based set-top box chipsets, including the 7445 family of chips. -config ARCH_BCMBCA +menuconfig ARCH_BCMBCA bool "Broadcom Broadband SoC" depends on ARCH_MULTI_V7 select ARM_AMBA select ARM_GIC select HAVE_ARM_ARCH_TIMER - select ARCH_HAS_RESET_CONTROLLER + help + Say Y if you intend to run the kernel on a Broadcom Broadband ARM-based + BCA chipset. + + This enables support for Broadcom BCA ARM-based broadband chipsets, + including the DSL, PON and Wireless family of chips. + +comment "BCMBCA sub platforms" + +if ARCH_BCMBCA + +config ARCH_BCMBCA_CORTEXA7 + bool "Cortex-A7 SoCs" + help + Say Y if you intend to run the kernel on a Broadcom Broadband ARM A7 + based chipset. + + This enables support for Broadcom BCA ARM A7 broadband chipsets, + including various DSL, PON and Wireless family of chips. + +config ARCH_BCMBCA_CORTEXA9 + bool "Cortex-A9 SoCS" select ARM_ERRATA_754322 select ARM_ERRATA_764369 if SMP + select ARCH_HAS_RESET_CONTROLLER select ARM_GLOBAL_TIMER select CACHE_L2X0 select HAVE_ARM_TWD if SMP select HAVE_ARM_SCU if SMP + help + Say Y if you intend to run the kernel on a Broadcom Broadband ARM A9 + based BCA chipset. + This enables support for Broadcom BCA ARM A9 broadband chipset. Currently + only DSL chip BCM63138. + +config ARCH_BCMBCA_BRAHMAB15 + bool "Brahma-B15 SoCs" + select ARM_ERRATA_798181 if SMP help - Say Y if you intend to run the kernel on a Broadcom Broadband ARM-based - BCA chipset. + Say Y if you intend to run the kernel on a Broadcom Broadband ARM B15 + based BCA chipset. - This enables support for Broadcom BCA ARM-based broadband chipsets, - including the DSL, PON and Wireless family of chips. + This enables support for Broadcom BCA ARM B15 broadband chipset. Currently + only DSL chip BCM63148. + +endif endif
Signature · 1 line
2.34.1
William Zhang
maintainerPATCH 8/9 MAINTAINERS: Move BCM63138 to bcmbca arch entry
In reply to William ZhangMove BCM63138 related files to BCMBCA ARCH maintainer list entry and delete the BCM63XX ARM ARCHITECTURE entry
---
MAINTAINERS | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
MAINTAINERS +2 -8
@@ -3898,6 +3898,7 @@ BROADCOM BCMBCA ARM ARCHITECTURE M: William Zhang <[email protected]> M: Anand Gore <[email protected]> M: Kursad Oney <[email protected]> +M: Florian Fainelli <[email protected]> R: Broadcom internal kernel review list <[email protected]> L: [email protected] (moderated for non-subscribers) S: Maintained
@@ -3907,6 +3908,7 @@ F: arch/arm64/boot/dts/broadcom/bcmbca/* N: bcmbca N: bcm[9]?47622 N: bcm[9]?4912 +N: bcm[9]?63138 N: bcm[9]?63146 N: bcm[9]?63148 N: bcm[9]?63158
@@ -3993,14 +3995,6 @@ S: Maintained F: arch/arm/boot/dts/bcm47189* F: arch/arm/boot/dts/bcm53573* -BROADCOM BCM63XX ARM ARCHITECTURE -M: Florian Fainelli <[email protected]> -R: Broadcom internal kernel review list <[email protected]> -L: [email protected] (moderated for non-subscribers) -S: Maintained -T: git git://github.com/broadcom/stblinux.git -N: bcm63xx - BROADCOM BCM63XX/BCM33XX UDC DRIVER M: Kevin Cernekee <[email protected]> L: [email protected]
Signature · 1 line
2.34.1
William Zhang
maintainerPATCH 9/9 ARM: multi_v7_defconfig: Update configs for BCM63138
In reply to William ZhangRemove CONFIG_ARCH_BCM_63XX and add BCMBCA sub platform configs.
---
arch/arm/configs/multi_v7_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/configs/multi_v7_defconfig +3 -1
@@ -28,9 +28,11 @@ CONFIG_ARCH_BCM_21664=y CONFIG_ARCH_BCM_23550=y CONFIG_ARCH_BCM2835=y CONFIG_ARCH_BCM_53573=y -CONFIG_ARCH_BCM_63XX=y CONFIG_ARCH_BRCMSTB=y CONFIG_ARCH_BCMBCA=y +CONFIG_ARCH_BCMBCA_CORTEXA7=y +CONFIG_ARCH_BCMBCA_CORTEXA9=y +CONFIG_ARCH_BCMBCA_BRAHMAB15=y CONFIG_ARCH_BERLIN=y CONFIG_MACH_BERLIN_BG2=y CONFIG_MACH_BERLIN_BG2CD=y
Signature · 1 line
2.34.1