[PATCH] arm64: Add support for cisco craw64 ARMv8 SoCs

Rob Herring robh+dt at kernel.org
Wed Mar 31 16:06:15 BST 2021


On Tue, Mar 30, 2021 at 8:46 PM Daniel Walker <danielwa at cisco.com> wrote:
>
> From: Ofer Licht <olicht at cisco.com>
>
> Define craw64 config, dts and Makefile for Cisco
> SoCs known as Craw.

Build the dtb with 'make W=1 dtbs_check' and fix warnings.

>
> Cc: xe-linux-external at cisco.com
> Signed-off-by: Ofer Licht <olicht at cisco.com>
> Signed-off-by: Daniel Walker <danielwa at cisco.com>
> ---
>  .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
>  arch/arm64/Kconfig.platforms                  |   5 +
>  arch/arm64/boot/dts/Makefile                  |   1 +
>  arch/arm64/boot/dts/cisco/Makefile            |   5 +
>  .../arm64/boot/dts/cisco/craw64-dopplerg2.dts | 239 +++++++++++
>  arch/arm64/boot/dts/cisco/craw64.dtsi         | 392 ++++++++++++++++++
>  arch/arm64/configs/defconfig                  |   1 +
>  7 files changed, 645 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/cisco/Makefile
>  create mode 100644 arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts
>  create mode 100644 arch/arm64/boot/dts/cisco/craw64.dtsi
>
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index f6064d84a424..10ac5fa4c3e7 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -229,6 +229,8 @@ patternProperties:
>      description: Chuwi Innovation Ltd.
>    "^ciaa,.*":
>      description: Computadora Industrial Abierta Argentina
> +  "^cisco,.*":
> +    description: Cisco Systems, Inc
>    "^cirrus,.*":
>      description: Cirrus Logic, Inc.
>    "^cisco,.*":
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index cdfd5fed457f..861f16ceec9d 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -91,6 +91,11 @@ config ARCH_BRCMSTB
>         help
>           This enables support for Broadcom's ARMv8 Set Top Box SoCs
>
> +config ARCH_CRAW64
> +       bool "Cisco craw64 ARMv8 SoC Family"
> +       help
> +         This enables support for Cisco craw64 ARMv8 SoCs
> +
>  config ARCH_EXYNOS
>         bool "ARMv8 based Samsung Exynos SoC family"
>         select COMMON_CLK_SAMSUNG
> diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
> index f1173cd93594..10fbd54f4424 100644
> --- a/arch/arm64/boot/dts/Makefile
> +++ b/arch/arm64/boot/dts/Makefile
> @@ -10,6 +10,7 @@ subdir-y += arm
>  subdir-y += bitmain
>  subdir-y += broadcom
>  subdir-y += cavium
> +subdir-y += cisco
>  subdir-y += exynos
>  subdir-y += freescale
>  subdir-y += hisilicon
> diff --git a/arch/arm64/boot/dts/cisco/Makefile b/arch/arm64/boot/dts/cisco/Makefile
> new file mode 100644
> index 000000000000..8503887f6a7d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/cisco/Makefile
> @@ -0,0 +1,5 @@
> +dtb-$(CONFIG_ARCH_CRAW64) += craw64-dopplerg2.dtb
> +

> +always          := $(dtb-y)
> +subdir-y        := $(dts-dirs)
> +clean-files     := *.dtb

These lines aren't needed.

> diff --git a/arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts b/arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts
> new file mode 100644
> index 000000000000..20ecc57b4e5c
> --- /dev/null
> +++ b/arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts
> @@ -0,0 +1,239 @@

Needs an SPDX license tag.

> +/dts-v1/;
> +
> +#include "craw64.dtsi"
> +
> +/ {
> +       model = "Cisco Craw64 on DopplerG 2.0";
> +       compatible = "cisco,craw64-dopplerg2", "cisco,craw64";
> +
> +       memory {
> +               device_type = "memory";
> +               reg = <0x0 0x80000000 0x0 0x80000000>;
> +       };
> +
> +       soc: soc {
> +               uart0: serial at 23f80000 {
> +                       clock-frequency = <250000000>;
> +                       status = "ok";
> +               };
> +
> +               uart1: serial at 23fc0000 {
> +                       clock-frequency = <250000000>;
> +                       status = "ok";
> +               };
> +
> +               spiclk: spiclk {
> +                       clock-frequency = <250000000>;
> +               };
> +
> +               spi: spi at 24000000 {
> +                       status="ok";
> +                       flash: flash at 0 {
> +                               compatible = "micron,n25q128a13", "jedec,spi-nor";

"micron,n25q128a13" is not documented.

> +                               #address-cells = <1>;
> +                               #size-cells = <1>;
> +                               spi-max-frequency = <8000000>;
> +                               reg = <0>;
> +                               partition at 0 {
> +                                       label = "unused0";
> +                                       reg = <0x0 0x10000>;
> +                                       read-only;
> +                               };
> +                               partition at 1 {
> +                                       label = "brom";
> +                                       reg = <0x10000 0x10000>;
> +                               };
> +                               partition at 2 {
> +                                       label = "bromg";
> +                                       reg = <0x20000 0x10000>;
> +                                       read-only;
> +                               };
> +                               partition at 3 {
> +                                       label = "vb";
> +                                       reg = <0x30000 0x10000>;
> +                               };
> +                               partition at 4 {
> +                                       label = "vbg";
> +                                       reg = <0x40000 0x10000>;
> +                               };
> +                               partition at 5 {
> +                                       label = "rsvd";
> +                                       reg = <0x50000 0x10000>;
> +                               };
> +                               partition at 6 {
> +                                       label = "keys";
> +                                       reg = <0x60000 0x10000>;
> +                               };
> +                               partition at 7 {
> +                                       label = "ddrinit";
> +                                       reg = <0x70000 0x20000>;
> +                               };
> +                               partition at 8 {
> +                                       label = "bs";
> +                                       reg = <0x90000 0x1E0000>;
> +                               };
> +                               partition at 9 {
> +                                       label = "ddrinitg";
> +                                       reg = <0x270000 0x20000>;
> +                                       read-only;
> +                               };
> +                               partition at 10 {
> +                                       label = "bsg";
> +                                       reg = <0x290000 0x1E0000>;
> +                                       read-only;
> +                               };
> +                               partition at 11 {
> +                                       label = "rsvd1";
> +                                       reg = <0x470000 0xB90000>;
> +                               };
> +                       };
> +               };
> +
> +               sdmmc: sdmmc at 28100000 {

mmc@

> +                       clock-frequency = <50000000>;
> +                       max-frequency = <25000000>;
> +                       status = "ok";
> +                       cap-mmc-highspeed;
> +                       non-removable;
> +                       no-sdio;
> +                       no-sd;
> +               };
> +
> +               ciu: ciu {
> +                       clock-frequency = <50000000>;
> +               };
> +
> +               biu: biu {
> +                       clock-frequency = <5000000>;
> +               };
> +
> +               i2c at 23f70400 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;

This is board specific?

> +                       status = "ok";
> +
> +                       rtc: ds1339 at 68 {
> +                               compatible = "dallas,ds1339";
> +                               reg = <0x68>;
> +                               interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
> +                       };
> +               };
> +
> +               i2c at 23f70500 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "disabled";
> +               };
> +
> +               i2c at 23f70600 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "ok";
> +               };
> +
> +               i2c at 23f70700 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "ok";
> +               };
> +
> +               i2c at 23f70800 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "ok";
> +               };
> +
> +               i2c at 23f70900 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "ok";
> +               };
> +
> +               i2c at 23f70A00 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "ok";
> +               };
> +
> +               i2c at 23f70B00 {
> +                       clock-frequency = <100000>;
> +                       i2c-sda-hold-time-ns = <108800>;
> +                       i2c-ss-hcnt = /bits/ 16 <1250>;
> +                       i2c-ss-lcnt = /bits/ 16 <1250>;
> +                       cntrl-reg = <&doppler_i2c>;
> +                       status = "ok";
> +               };
> +
> +               stmmaceth: stmmaceth {
> +                       clock-frequency = <250000000>;
> +               };
> +
> +               eth0: dwmac at 282c0000 {
> +                       status = "ok";
> +                       mdio-channel = <0>;
> +               };
> +
> +               wd at 28500200 {
> +                       compatible = "cisco,craw-smgmt-wdt";
> +                       reg = <0x28500200 0x140>;
> +               };
> +
> +               doppler_i2c: bsp_i2c {
> +                       compatible = "cisco,dplr-i2c";
> +                       reg = <0x23f71000 0x10>;
> +               };
> +       };
> +
> +       doppler {
> +               intrpt {
> +                       compatible = "cisco,dplr_intrpt";
> +                       reg = <0x0 0x20000000 0x0 0x0FFFFFFF>;
> +                       interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
> +                               <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
> +                               <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
> +                               <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
> +                               <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
> +                               <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
> +                               <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
> +                       interrupt-names = "dpu", "oob", "packet", "offload",
> +                               "tla0", "tla1", "misc";
> +               };
> +
> +               mmap {
> +                       compatible = "cisco,dplr_dma_mmap";

mmap? That's an OS thing, not h/w.

> +                       reg =   <0x0 0x20000000 0x0 0x10000000>,
> +                               <0x0 0x1fe00000 0x0 0x00040000>,
> +                               <0x0 0x28500000 0x0 0x00040000>,
> +                               <0x0 0x0e000000 0x0 0x0>,
> +                               <0x0 0x03f71208 0x0 0x0>;
> +                       reg-names = "base", "local_sram", "bsp_sram",
> +                               "sup_id_off", "bsp_exp0_off";
> +               };
> +
> +               gpio {
> +                       compatible = "cisco,dplr_gpio";
> +                       reg = <0x0 0x23f700e0 0x0 0x120>;
> +               };
> +       };
> +};
> diff --git a/arch/arm64/boot/dts/cisco/craw64.dtsi b/arch/arm64/boot/dts/cisco/craw64.dtsi
> new file mode 100644
> index 000000000000..9c3c5c8c252e
> --- /dev/null
> +++ b/arch/arm64/boot/dts/cisco/craw64.dtsi
> @@ -0,0 +1,392 @@
> +#include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +/* the mbox for spin-table; not sure if this is needed given that it's outside our defined memory zone */
> +/memreserve/ 0x285001F8 0x00000008;
> +
> +/ {
> +       compatible = "cisco,craw64";
> +       interrupt-parent = <&gic>;
> +       #address-cells = <2>;
> +       #size-cells = <2>;
> +
> +       aliases {
> +               serial0 = &uart0;
> +               spi0 = &spi; /* spi driver uses this to set bus number 0, which is tacked onto the reported device name
> +                               so that we get device spi0 instead of spiN where N is some arbitrary large integer. */
> +       };
> +
> +       cpus {
> +               #address-cells = <2>;
> +               #size-cells = <0>;
> +
> +               cpu at 0 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a53", "arm,armv8";

Doesn't match the schema.

> +                       reg = <0x0 0x0>;
> +                       enable-method = "spin-table";
> +                       cpu-release-addr = <0 0x285001F8>;
> +                       next-level-cache = <&L2_0>;
> +                       cci-control-port = <&cci_control4>;

I don't think this is documented.

> +               };
> +               cpu at 1 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a53", "arm,armv8";
> +                       reg = <0x0 0x1>;
> +                       enable-method = "spin-table";
> +                       cpu-release-addr = <0 0x285001F8>;
> +                       next-level-cache = <&L2_0>;
> +                       cci-control-port = <&cci_control4>;
> +               };
> +
> +               cpu at 2 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a53", "arm,armv8";
> +                       reg = <0x0 0x2>;
> +                       enable-method = "spin-table";
> +                       cpu-release-addr = <0 0x285001F8>;
> +                       next-level-cache = <&L2_0>;
> +                       cci-control-port = <&cci_control4>;
> +               };
> +
> +               cpu at 3 {
> +                       device_type = "cpu";
> +                       compatible = "arm,cortex-a53", "arm,armv8";
> +                       reg = <0x0 0x3>;
> +                       enable-method = "spin-table";
> +                       cpu-release-addr = <0 0x285001F8>;
> +                       next-level-cache = <&L2_0>;
> +                       cci-control-port = <&cci_control4>;
> +               };
> +
> +               L2_0: l2-cache0 {
> +                       compatible = "cache";
> +               };
> +       };
> +
> +        cci at 28d70000 {
> +               compatible = "arm,cci-400";
> +               #address-cells = <1>;
> +               #size-cells = <1>;
> +               reg = <0x0 0x28d70000 0 0x1000>;
> +               ranges = <0x0 0x0 0x28d70000 0x6000>; /* size should be 0x10000 if including pmu node */
> +
> +               cci_control0: slave-if at 1000 {  /* Nmp */
> +                       compatible = "arm,cci-400-ctrl-if";
> +                       interface-type = "ace-lite";
> +                       reg = <0x1000 0x1000>;
> +               };
> +
> +               cci_control1: slave-if at 2000 {  /* Nap */
> +                       compatible = "arm,cci-400-ctrl-if";
> +                       interface-type = "ace-lite";
> +                       reg = <0x2000 0x1000>;
> +               };
> +
> +               cci_control2: slave-if at 3000 {  /* Nap */
> +                       compatible = "arm,cci-400-ctrl-if";
> +                       interface-type = "ace-lite";
> +                       reg = <0x3000 0x1000>;
> +               };
> +
> +               cci_control3: slave-if at 4000 {  /* Lil1 */
> +                       compatible = "arm,cci-400-ctrl-if";
> +                       interface-type = "ace";
> +                       reg = <0x4000 0x1000>;
> +               };
> +
> +               cci_control4: slave-if at 5000 {  /* Lil0 */
> +                       compatible = "arm,cci-400-ctrl-if";
> +                       interface-type = "ace";
> +                       reg = <0x5000 0x1000>;
> +               };
> +        };
> +
> +/* Macro definitions for reference
> + *
> + * define GIC_SPI 0
> + * define GIC_PPI 1
> + *
> + * define GIC_CPU_MASK_RAW(x) ((x) << 8)
> + *
> + * define IRQ_TYPE_EDGE_RISING    1
> + * define IRQ_TYPE_LEVEL_HIGH     4
> + */
> +
> +       timer {
> +               compatible = "arm,armv8-timer";
> +               interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>,
> +                            <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>,
> +                            <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>,
> +                            <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_EDGE_RISING)>;
> +       };
> +
> +       soc: soc {
> +               compatible = "simple-bus";
> +               #address-cells = <1>;
> +               #size-cells = <1>;
> +               ranges = <0 0 0 0xffffffff>;
> +
> +               reset: reset at 20001004 {
> +                       compatible = "syscon";
> +                       reg = <0x20001004 0x4>;
> +               };
> +
> +               reboot: reboot at 20001004 {
> +                       compatible = "syscon-reboot";
> +                       regmap = <&reset>;
> +                       offset = <0x0>;
> +                       mask = <0xE0002001>;
> +               };
> +
> +               gic: interrupt-controller at 28381000 {
> +                       compatible = "arm,gic-400";
> +                       #interrupt-cells = <3>;
> +                       interrupt-controller;
> +                       reg = <0x28381000 0x1000>,
> +                             <0x28382000 0x1000>,
> +                             <0x28384000 0x2000>,
> +                             <0x28386000 0x2000>;
> +               };
> +
> +               uart0: serial at 23f80000 {
> +                       compatible = "ns16550a";
> +                       reg = <0x23f80000 0x100>;
> +                       interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
> +                       reg-shift = <2>;
> +                       reg-io-width = <4>;
> +                       status = "disabled";
> +               };
> +
> +               uart1: serial at 23fc0000 {
> +                       compatible = "ns16550a";
> +                       reg = <0x23fc0000 0x100>;
> +                       interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
> +                       reg-shift = <2>;
> +                       reg-io-width = <4>;
> +                       status = "disabled";
> +               };
> +
> +               spiclk: spiclk {
> +                       compatible = "fixed-clock";
> +                       #clock-cells = <1>;
> +                       clock-output-names = "spiclk";
> +               };
> +
> +               spi:    spi at 24000000 {
> +                       compatible      = "snps,dw-spi-nor";
> +                       reg = <0x24000000 0x1000>;
> +                       interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       num-cs = <4>;
> +                       clocks = <&spiclk 0>;
> +                       status="disabled";
> +               };
> +
> +               ciu: ciu {
> +                       compatible = "fixed-clock";
> +                       #clock-cells = <1>;
> +                       clock-output-names = "ciu";
> +               };
> +
> +               biu: biu {
> +                       compatible = "fixed-clock";
> +                       #clock-cells = <1>;
> +                       clock-output-names = "biu";
> +               };
> +
> +               i2c at 23f70400 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70400 0x100>;
> +                       interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-0";
> +                       status="disabled";
> +                       controller-id = <0>;

What's this for? We generally don't do device indexes in DT.

> +               };
> +
> +               i2c at 23f70500 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70500 0x100>;
> +                       interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-1";
> +                       status="disabled";
> +                       controller-id = <1>;
> +               };
> +
> +               i2c at 23f70600 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70600 0x100>;
> +                       interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-2";
> +                       status="disabled";
> +                       controller-id = <2>;
> +               };
> +
> +               i2c at 23f70700 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70700 0x100>;
> +                       interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-3";
> +                       status="disabled";
> +                       controller-id = <3>;
> +               };
> +
> +               i2c at 23f70800 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70800 0x100>;
> +                       interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-4";
> +                       status="disabled";
> +                       controller-id = <4>;
> +               };
> +
> +               i2c at 23f70900 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70900 0x100>;
> +                       interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-5";
> +                       status="disabled";
> +                       controller-id = <5>;
> +               };
> +
> +               i2c at 23f70A00 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70a00 0x100>;
> +                       interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-6";
> +                       status="disabled";
> +                       controller-id = <6>;
> +               };
> +
> +               i2c at 23f70B00 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "snps,designware-i2c";
> +                       reg = <0x23f70b00 0x100>;
> +                       interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +                       interrupt-names = "dwi2c-7";
> +                       status="disabled";
> +                       controller-id = <7>;
> +               };
> +
> +               sdmmc: sdmmc at 28100000 {
> +                       compatible = "snps,dw-mshc";
> +                       reg = <0x28100000 0x1000>;
> +                       interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       fifo-depth = <4096>;
> +                       card-detect-delay = <200>; /* XXX: millisecond; do we need this? */
> +                       bus-width = <8>;
> +                       status = "disabled";
> +               };
> +
> +               stmmaceth: stmmaceth {
> +                       compatible = "fixed-clock";
> +                       #clock-cells = <1>;
> +                       clock-output-names = "stmmaceth";
> +               };
> +
> +               eth0: dwmac at 282c0000 {

ethernet at ...

> +                       compatible = "snps,craw-dwmac";
> +                       reg = <0x282c0000 0x8000>;
> +                       interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
> +                       interrupt-names = "macirq";
> +                       clock-names = "stmmaceth";
> +                       clocks = <&stmmaceth 0>;
> +                       phy-mode = "sgmii";
> +                       status = "disabled";
> +               };
> +
> +               ehci: ehci at 281c0000 {

usb at ...

> +                       compatible = "generic-ehci";
> +                       interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
> +                       reg = <0x281c0000 0x90 0x281c0000 0x24>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +               };
> +
> +               ohci: ohci at 0x28200000 {

usb at 28200000

> +                       compatible = "generic-ohci";
> +                       interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
> +                       reg = <0x28200000 0x90>;
> +                       clocks = <&biu 0 &ciu 0>;
> +                       clock-names = "biu", "ciu";
> +               };
> +
> +               mc: memory-controller at 20140000 {
> +                       compatible = "cisco,craw-dmc-400";
> +                       reg = <0x20140000 0x40000
> +                               0x20200000 0x1000>;
> +                       reg-names = "dmc", "config";
> +                       interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
> +               };
> +       };
> +
> +       pcie0: pcie at 0 {

pcie at 28370004

Though 0x28370004 doesn't seem like the 'main' registers being all of 8 bytes.

> +               status = "disabled";
> +               compatible = "cisco,craw-pcie", "snps,dw-pcie";
> +               interrupts = <GIC_SPI 184 IRQ_TYPE_EDGE_RISING>;
> +               reg = <0x0 0x28370004 0x0 0x00000008    /* controller registers */
> +                       0x0 0x73ffe000 0x0 0x00004000>;  /* configuration space */
> +               reg-names = "regs", "config";

DWC controller needs a 'dbi' region.

> +               #address-cells = <3>;
> +               #size-cells = <2>;
> +               device_type = "pci";
> +               num-lanes = <1>;
> +               bus-range = <0x0 0xff>;
> +               ranges = <0x43000000 0x20 0x00000000 0x20 0x00000000 0x0 0x80000000>; /* prefetchable memory */
> +       };
> +
> +       pcie1: pcie at 1 {
> +               status = "disabled";
> +               compatible = "cisco,craw-pcie", "snps,dw-pcie";
> +               interrupts = <GIC_SPI 185 IRQ_TYPE_EDGE_RISING>;
> +               reg = <0x0 0x2837000C 0x0 0x00000008    /* controller registers */
> +                       0x0 0x7bffe000 0x0 0x00004000>;  /* configuration space */
> +               reg-names = "regs", "config";
> +               #address-cells = <3>;
> +               #size-cells = <2>;
> +               device_type = "pci";
> +               num-lanes = <1>;
> +               bus-range = <0x0 0xff>;
> +               ranges = <0x43000000 0x30 0x00000000 0x30 0x00000000 0x0 0x80000000>; /* prefetchable memory */
> +       };
> +
> +       doppler {
> +               #address-cells = <2>;
> +               #size-cells = <2>;
> +               compatible = "simple-bus";
> +               ranges;
> +       };
> +};
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index d612f633b771..f7cd34931cb4 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -36,6 +36,7 @@ CONFIG_ARCH_BCM4908=y
>  CONFIG_ARCH_BCM_IPROC=y
>  CONFIG_ARCH_BERLIN=y
>  CONFIG_ARCH_BRCMSTB=y
> +CONFIG_ARCH_CRAW64=y
>  CONFIG_ARCH_EXYNOS=y
>  CONFIG_ARCH_K3=y
>  CONFIG_ARCH_LAYERSCAPE=y
> --
> 2.25.1
>



More information about the linux-arm-kernel mailing list