arm64: Add support for cisco craw64 ARMv8 SoCs
PATCH 1/1 arm64: Add support for cisco craw64 ARMv8 SoCs
From: Ofer Licht <[email protected]>
Define craw64 config, dts and Makefile for Cisco
SoCs known as Craw.
--- .../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
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -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,.*":
arch/arm64/Kconfig.platforms +5 -0
@@ -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
arch/arm64/boot/dts/Makefile +1 -0
@@ -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
arch/arm64/boot/dts/cisco/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +dtb-$(CONFIG_ARCH_CRAW64) += craw64-dopplerg2.dtb + +always := $(dtb-y) +subdir-y := $(dts-dirs) +clean-files := *.dtb
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +239 -0
239 lines not on this page · raw message
arch/arm64/boot/dts/cisco/craw64.dtsi new file +392 -0
392 lines not on this page · raw message
arch/arm64/configs/defconfig +1 -0
@@ -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
Signature · 1 line
2.25.1
Arnd Bergmann
maintainerQuoted 1 line · Daniel Walker
From: Ofer Licht <[email protected]>
Thanks for the submission, it's always nice to see a new platform
Quoted 2 lines
Define craw64 config, dts and
Makefilefor Cisco
SoCs known as Craw.
I'd like some more information about the platform, e.g. the target market and maybe a link to the product information.
Quoted 11 lines
Signed-off-by Ofer Licht <[email protected]>Signed-off-by Daniel Walker <[email protected]>--- .../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 +
We have separate branches for dt, defconfig, and the rest, so it would be good to split this patch up a little more.
There should also be an entry in the top-level MAINTAINERS file.
Quoted 8 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +2
-0@@ -0,0 +1,239 @@ +/dts-v1/; +
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 12
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+#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>; + };
The memory size is usually filled by the boot loader, just put an empty node into the .dtsi file
Quoted 5 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +5
-0+ + soc: soc { + uart0: serial@23f80000 { + clock-frequency = <250000000>; + status = "ok";
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 27
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+ }; + + uart1: serial@23fc0000 { + clock-frequency = <250000000>; + status = "ok"; + }; + + spiclk: spiclk { + clock-frequency = <250000000>; + };
The clock frequencies can also normally go into the .dtsi, as those tend to be SoC specific rather than board specific.
Quoted 7 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +7
-0+ spi: spi@24000000 { + status="ok"; + flash: flash@0 { + compatible = "micron,n25q128a13", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <8000000>;
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 45
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+ reg = <0>; + partition@0 { + label = "unused0"; + reg = <0x0 0x10000>; + read-only; + }; + partition@1 { + label = "brom"; + reg = <0x10000 0x10000>; + };
The partitions in turn normally go into the bootloader, which needs to know about them anyway, but might pick different settings.
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 195
Quoted 9 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +9
-0+ + stmmaceth: stmmaceth { + clock-frequency = <250000000>; + }; + + eth0: dwmac@282c0000 { + status = "ok"; + mdio-channel = <0>; + };
There is no point in defining labels in the board specific file, as nothing will reference them. If you define labels in the .dtsi file, you might find it easier to refer to the nodes by those labels rather than by the full path.
Both of the node names look wrong here. The name for an ethernet device should be 'ethernet@282c000'.
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 200
Quoted 4 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +4
-0+ wd@28500200 { + compatible = "cisco,craw-smgmt-wdt"; + reg = <0x28500200 0x140>; + };
Similarly, the watchdog should be watchdog@28500200. I don't see a binding document for a cisco,craw-smgmt-wdt, so please drop this node until the binding has been accepted. You can submit the binding together with the driver or the dts file (as a separate patch), but I don't want to merge dt nodes without a reviewed binding, as that has the risk of requiring incompatible changes later.
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 210
Quoted 9 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +9
-0+ + doppler_i2c: bsp_i2c { + compatible = "cisco,dplr-i2c"; + reg = <0x23f71000 0x10>; + }; + }; + doppler { + intrpt { + compatible = "cisco,dplr_intrpt";
Same for both of these.
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 221
Quoted 11 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +11
-0+ 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"; + };
The interrupt lines and register numbers are most likely hardwired, so this again can go into the .dtsi file. It's impossible to know without the binding document of course.
arch/arm64/boot/dts/cisco/craw64.dtsi line 4
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +4
-0@@ -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;
Please don't use spin-table for new machines.
arch/arm64/boot/dts/cisco/craw64.dtsi line 16
Quoted 12 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +12
-0+ +/ { + 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. */ + };
The aliases go into the .dts file. In particular when there are two uarts, it is not obvious that both of them are always connected on all boards, or which should be the first on a given machine.
arch/arm64/boot/dts/cisco/craw64.dtsi line 113
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+/* 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 + */
If you prefer the numbers, it's generally fine to just open-code these. No need for
the comment here either way.
Quoted 5 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +5
-0+ + reset: reset@20001004 { + compatible = "syscon"; + reg = <0x20001004 0x4>; + };
...
arch/arm64/boot/dts/cisco/craw64.dtsi line 139
Quoted 6 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +6
-0+ reboot: reboot@20001004 { + compatible = "syscon-reboot"; + regmap = <&reset>; + offset = <0x0>; + mask = <0xE0002001>; + };
This doesn't look right, you have two nodes with the same unit address here, and the syscon seems to only have a single register?
Quoted 6 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +6
-0+ spiclk: spiclk { + compatible = "fixed-clock"; + #clock-cells = <1>; + clock-output-names = "spiclk"; + }; +
arch/arm64/boot/dts/cisco/craw64.dtsi line 184
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ spi: spi@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"; + };
Which device is this? I see a binding for a designware SPI controller, but it does not list that compatible string.
arch/arm64/boot/dts/cisco/craw64.dtsi line 196
Quoted 12 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +12
-0+ + ciu: ciu { + compatible = "fixed-clock"; + #clock-cells = <1>; + clock-output-names = "ciu"; + }; + + biu: biu { + compatible = "fixed-clock"; + #clock-cells = <1>; + clock-output-names = "biu"; + };
If you have a fixed-clock, there should be a clock-frequency in the node. If it's not actually fixed, you probably want a clock controller driver.
If these are actually fixed clocks, they should be defined outside of the /soc node, to indicate that they are signals coming into the soc. Normally you'd group them under some other node then for readability.
arch/arm64/boot/dts/cisco/craw64.dtsi line 209
Quoted 12 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +12
-0+ i2c@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>; + };
This is incompatible with the binding: the clock-names are wrong, and there are extraneous interrupt-names and controller-id properties.
arch/arm64/boot/dts/cisco/craw64.dtsi line 329
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ eth0: dwmac@282c0000 { + 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"; + };
There is no binding for this device. It would be good to add a specific version of the dwmac controller as a second compatible string.
The phy-mode usually goes into the .dts file and defines how it is wired up.
Quoted 5 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +5
-0+ ehci: ehci@281c0000 { + compatible = "generic-ehci"; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x281c0000 0x90 0x281c0000 0x24>; + clocks = <&biu 0 &ciu 0>;
arch/arm64/boot/dts/cisco/craw64.dtsi line 345
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ clock-names = "biu", "ciu"; + }; + + ohci: ohci@0x28200000 { + compatible = "generic-ohci"; + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x28200000 0x90>; + clocks = <&biu 0 &ciu 0>; + clock-names = "biu", "ciu"; + };
These bindings do not define clock-names.
arch/arm64/boot/dts/cisco/craw64.dtsi line 354
Quoted 9 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +9
-0+ + mc: memory-controller@20140000 { + compatible = "cisco,craw-dmc-400"; + reg = <0x20140000 0x40000 + 0x20200000 0x1000>; + reg-names = "dmc", "config"; + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; + }; + };
Missing binding.
arch/arm64/boot/dts/cisco/craw64.dtsi line 358
Quoted 3 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +3
-0+ pcie0: pcie@0 { + status = "disabled"; + compatible = "cisco,craw-pcie", "snps,dw-pcie";
Missing binding.
arch/arm64/boot/dts/cisco/craw64.dtsi line 369
Quoted 11 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +11
-0+ 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"; + #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 */ + };
You need at least one non-prefetchable memory area for PCI compliance. There should normally also be an I/O range, but that is optional.
arch/arm64/boot/dts/cisco/craw64.dtsi line 391
Quoted 6 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +6
-0+ doppler { + #address-cells = <2>; + #size-cells = <2>; + compatible = "simple-bus"; + ranges; + };
What is this?
Arnd
Quoted 11 lines · Arnd Bergmann
Quoted 1 line · Daniel Walker
From: Ofer Licht <[email protected]>
Thanks for the submission, it's always nice to see a new platform
Quoted 2 lines
Define craw64 config, dts and
Makefilefor Cisco
SoCs known as Craw.I'd like some more information about the platform, e.g. the target market and maybe a link to the product information.
Our SoC is produced as an internal product. So SoC specifications aren't widely available.
Here is an example of a Cisco product which uses this SoC,
I suspect that's not really what your looking for tho.
Quoted 30 lines
Quoted 11 lines
Signed-off-by Ofer Licht <[email protected]>Signed-off-by Daniel Walker <[email protected]>--- .../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 +We have separate branches for dt, defconfig, and the rest, so it would be good to split this patch up a little more.
There should also be an entry in the top-level
MAINTAINERSfile.Quoted 13 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +7
-0@@ -0,0 +1,239 @@ +/dts-v1/; + +#include "craw64.dtsi" + +/ { + model = "Cisco Craw64 on DopplerG 2.0"; + compatible = "cisco,craw64-dopplerg2", "cisco,craw64";
Quoted 8 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 12
Quoted 5 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +5
-0+ + memory { + device_type = "memory"; + reg = <0x0 0x80000000 0x0 0x80000000>; + };The memory size is usually filled by the boot loader, just put an empty node into the .dtsi file
Arnd, I must regretfully inform you that Cisco has a deep dark addiction to bootloaders which, are, um, how do I say this diplomatically, um , brain dead.
You have some other comments below related to moving things into the bootloader, and I can look into it, but bootloader inflexibility is wide spread inside Cisco.
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 18
Quoted 7 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +6
-0+ doppler { + #address-cells = <2>; + #size-cells = <2>; + compatible = "simple-bus"; + ranges; + };What is this?
It's a device, but the driver is not submitted. I can remove it along with the other device driver binding we have where the drivers and bindings aren't submitted.
I'll do my best to fix the comments your given an resubmit.
Daniel
Arnd Bergmann
maintainerQuoted 14 lines · Daniel Walker
Quoted 11 lines · Arnd Bergmann
Quoted 1 line · Daniel Walker
From: Ofer Licht <[email protected]>
Thanks for the submission, it's always nice to see a new platform
Quoted 2 lines
Define craw64 config, dts and
Makefilefor Cisco
SoCs known as Craw.I'd like some more information about the platform, e.g. the target market and maybe a link to the product information.
Quoted 8 lines
Our SoC is produced as an internal product. So SoC specifications aren't widely available.
Here is an example of a Cisco product which uses this SoC,
I suspect that's not really what your looking for tho.
No, that's pretty much exactly what I was looking for. Just put this one sentence and the link into the patch description and it will be fine.
Quoted 10 lines
Quoted 3 lines
The memory size is usually filled by the boot loader, just put an empty node into the .dtsi file
Arnd, I must regretfully inform you that Cisco has a deep dark addiction to bootloaders which, are, um, how do I say this diplomatically, um , brain dead.
You have some other comments below related to moving things into the bootloader, and I can look into it, but bootloader inflexibility is wide spread inside Cisco.
Ok, no worries. If the bootloader can do it right, you should do it, but this part is not essential.
Arnd
Rob Herring
maintainerQuoted 8 lines · Daniel Walker
From: Ofer Licht <[email protected]>
Define craw64 config, dts and
Makefilefor Cisco
SoCs known as Craw.Signed-off-by Ofer Licht <[email protected]>Signed-off-by Daniel Walker <[email protected]>
Quoted 13 lines
--- .../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
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:./Documentation/devicetree/bindings/vendor-prefixes.yaml:238:3: [error] duplication of key "^cisco,.*" in mapping (key-duplicates)
dtschema/dtc warnings/errors:
make[1]: *** Deleting file 'Documentation/devicetree/bindings/vendor-prefixes.example.dts' Traceback (most recent call last):
File "/usr/local/bin/dt-extract-example", line 45, in <module>
binding = yaml.load(open(args.yamlfile, encoding='utf-8').read())
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 420, in load
return constructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 111, in get_single_data
return self.construct_document(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in construct_document
for _dummy in generator:
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 714, in construct_yaml_map
value = self.construct_mapping(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 435, in construct_mapping
return BaseConstructor.construct_mapping(self, node, deep=deep)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 253, in construct_mapping
if self.check_mapping_key(node, key_node, mapping, key, value):
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 284, in check_mapping_key
raise DuplicateKeyError(*args)
ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping
in "<unicode string>", line 19, column 3
found duplicate key "^cisco,.*" with value "{}" (original value: "{}")
in "<unicode string>", line 238, column 3
To suppress this check see:
http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become an error in future releases, and are errors by default when using the new API.
make[1]: *** [Documentation/devicetree/bindings/Makefile:20: Documentation/devicetree/bindings/vendor-prefixes.example.dts] Error 1 make[1]: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "/usr/local/bin/dt-doc-validate", line 67, in <module>
ret = check_doc(f)
File "/usr/local/bin/dt-doc-validate", line 25, in check_doc
testtree = dtschema.load(filename, line_number=line_number)
File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 625, in load
return yaml.load(f.read())
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 420, in load
return constructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 111, in get_single_data
return self.construct_document(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in construct_document
for _dummy in generator:
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 714, in construct_yaml_map
value = self.construct_mapping(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 435, in construct_mapping
return BaseConstructor.construct_mapping(self, node, deep=deep)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 253, in construct_mapping
if self.check_mapping_key(node, key_node, mapping, key, value):
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 284, in check_mapping_key
raise DuplicateKeyError(*args)
ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping
in "<unicode string>", line 19, column 3
found duplicate key "^cisco,.*" with value "{}" (original value: "{}")
in "<unicode string>", line 238, column 3
To suppress this check see:
http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become an error in future releases, and are errors by default when using the new API.
make[1]: *** Deleting file 'Documentation/devicetree/bindings/processed-schema-examples.json' Traceback (most recent call last):
File "/usr/local/bin/dt-mk-schema", line 38, in <module>
schemas = dtschema.process_schemas(args.schemas, core_schema=(not args.useronly))
File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 587, in process_schemas
sch = process_schema(os.path.abspath(filename))
File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 561, in process_schema
schema = load_schema(filename)
File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 126, in load_schema
return do_load(os.path.join(schema_basedir, schema))
File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 112, in do_load
return yaml.load(tmp)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 420, in load
return constructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 111, in get_single_data
return self.construct_document(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in construct_document
for _dummy in generator:
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 714, in construct_yaml_map
value = self.construct_mapping(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 435, in construct_mapping
return BaseConstructor.construct_mapping(self, node, deep=deep)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 253, in construct_mapping
if self.check_mapping_key(node, key_node, mapping, key, value):
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 284, in check_mapping_key
raise DuplicateKeyError(*args)
ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping
in "<unicode string>", line 19, column 3
found duplicate key "^cisco,.*" with value "{}" (original value: "{}")
in "<unicode string>", line 238, column 3
To suppress this check see:
http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys
Duplicate keys will become an error in future releases, and are errors by default when using the new API.
make[1]: *** [Documentation/devicetree/bindings/Makefile:62: Documentation/devicetree/bindings/processed-schema-examples.json] Error 1
make: *** [Makefile:1414: dt_binding_check] Error 2
See https://patchwork.ozlabs.org/patch/1460305
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Quoted 5 lines · Daniel Walker
From: Ofer Licht <[email protected]>
Define craw64 config, dts and
Makefilefor Cisco
SoCs known as Craw.
Build the dtb with 'make W=1 dtbs_check' and fix warnings.
Quoted 64 lines
Signed-off-by Ofer Licht <[email protected]>Signed-off-by Daniel Walker <[email protected]>--- .../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.dtsiDocumentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -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,.*":arch/arm64/Kconfig.platforms +5
-0@@ -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_SAMSUNGarch/arm64/boot/dts/Makefile +1
-0@@ -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 += hisiliconarch/arm64/boot/dts/cisco/Makefile new file +0
-0
arch/arm64/boot/dts/cisco/Makefile line 5
Quoted 6 lines
arch/arm64/boot/dts/cisco/Makefile new file +5
-0@@ -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.
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts
Quoted 6 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +0
-0@@ -0,0 +1,239 @@
Needs an SPDX license tag.
Quoted 22 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +22
-0+/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@23f80000 { + clock-frequency = <250000000>; + status = "ok"; + }; + + uart1: serial@23fc0000 { + clock-frequency = <250000000>; + status = "ok";
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 32
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+ }; + + spiclk: spiclk { + clock-frequency = <250000000>; + }; + + spi: spi@24000000 { + status="ok"; + flash: flash@0 { + compatible = "micron,n25q128a13", "jedec,spi-nor";
"micron,n25q128a13" is not documented.
Quoted 50 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +50
-0+ #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <8000000>; + reg = <0>; + partition@0 { + label = "unused0"; + reg = <0x0 0x10000>; + read-only; + }; + partition@1 { + label = "brom"; + reg = <0x10000 0x10000>; + }; + partition@2 { + label = "bromg"; + reg = <0x20000 0x10000>; + read-only; + }; + partition@3 { + label = "vb"; + reg = <0x30000 0x10000>; + }; + partition@4 { + label = "vbg"; + reg = <0x40000 0x10000>; + }; + partition@5 { + label = "rsvd"; + reg = <0x50000 0x10000>; + }; + partition@6 { + label = "keys"; + reg = <0x60000 0x10000>; + }; + partition@7 { + label = "ddrinit"; + reg = <0x70000 0x20000>; + }; + partition@8 { + label = "bs"; + reg = <0x90000 0x1E0000>; + }; + partition@9 { + label = "ddrinitg"; + reg = <0x270000 0x20000>; + read-only; + }; + partition@10 { + label = "bsg"; + reg = <0x290000 0x1E0000>;
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 92
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+ read-only; + }; + partition@11 { + label = "rsvd1"; + reg = <0x470000 0xB90000>; + }; + }; + }; + + sdmmc: sdmmc@28100000 {
mmc@
Quoted 13 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +13
-0+ clock-frequency = <50000000>; + max-frequency = <25000000>; + status = "ok"; + cap-mmc-highspeed; + non-removable; + no-sdio; + no-sd; + }; + + ciu: ciu { + clock-frequency = <50000000>; + }; +
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 115
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+ biu: biu { + clock-frequency = <5000000>; + }; + + i2c@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?
Quoted 99 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +99
-0+ status = "ok"; + + rtc: ds1339@68 { + compatible = "dallas,ds1339"; + reg = <0x68>; + interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + + i2c@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@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@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@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@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@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@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@282c0000 { + status = "ok"; + mdio-channel = <0>; + }; + + wd@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>,
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts line 224
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +10
-0+ <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.
Quoted 35 lines
arch/arm64/boot/dts/cisco/craw64-dopplerg2.dts new file +15
-0+ 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>; + }; + }; +};arch/arm64/boot/dts/cisco/craw64.dtsi new file +14
-0@@ -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
arch/arm64/boot/dts/cisco/craw64.dtsi line 24
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ so that we get device spi0 instead of spiN where N is some arbitrary large integer. */ + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8";
Doesn't match the schema.
arch/arm64/boot/dts/cisco/craw64.dtsi line 29
Quoted 5 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +5
-0+ 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.
Quoted 169 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +169
-0+ }; + cpu@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@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@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@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@1000 { /* Nmp */ + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace-lite"; + reg = <0x1000 0x1000>; + }; + + cci_control1: slave-if@2000 { /* Nap */ + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace-lite"; + reg = <0x2000 0x1000>; + }; + + cci_control2: slave-if@3000 { /* Nap */ + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace-lite"; + reg = <0x3000 0x1000>; + }; + + cci_control3: slave-if@4000 { /* Lil1 */ + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x4000 0x1000>; + }; + + cci_control4: slave-if@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@20001004 { + compatible = "syscon"; + reg = <0x20001004 0x4>; + }; + + reboot: reboot@20001004 { + compatible = "syscon-reboot"; + regmap = <&reset>; + offset = <0x0>; + mask = <0xE0002001>; + }; + + gic: interrupt-controller@28381000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x28381000 0x1000>, + <0x28382000 0x1000>, + <0x28384000 0x2000>, + <0x28386000 0x2000>; + }; + + uart0: serial@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@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@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@23f70400 {
arch/arm64/boot/dts/cisco/craw64.dtsi line 208
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ #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.
Quoted 102 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +102
-0+ }; + + i2c@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@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@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@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@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@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@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@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>;
arch/arm64/boot/dts/cisco/craw64.dtsi line 320
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ status = "disabled"; + }; + + stmmaceth: stmmaceth { + compatible = "fixed-clock"; + #clock-cells = <1>; + clock-output-names = "stmmaceth"; + }; + + eth0: dwmac@282c0000 {
ethernet@...
arch/arm64/boot/dts/cisco/craw64.dtsi line 331
Quoted 11 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +11
-0+ 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@281c0000 {
usb@...
arch/arm64/boot/dts/cisco/craw64.dtsi line 339
Quoted 8 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +8
-0+ 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@0x28200000 {
usb@28200000
Quoted 7 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +7
-0+ compatible = "generic-ohci"; + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x28200000 0x90>; + clocks = <&biu 0 &ciu 0>; + clock-names = "biu", "ciu"; + }; +
arch/arm64/boot/dts/cisco/craw64.dtsi line 356
Quoted 10 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +10
-0+ mc: memory-controller@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@0 {
pcie@28370004
Though 0x28370004 doesn't seem like the 'main' registers being all of 8 bytes.
arch/arm64/boot/dts/cisco/craw64.dtsi line 362
Quoted 6 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +6
-0+ 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.
Quoted 45 lines
arch/arm64/boot/dts/cisco/craw64.dtsi new file +30
-0+ #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@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; + }; +};arch/arm64/configs/defconfig +1
-1@@ -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