Update the Icicle Kit device tree
Subsystems (13)
[email protected]
maintainerv2 cover Update the Icicle Kit device tree
From: Conor Dooley <[email protected]>
This series updates the Microchip Icicle Kit device tree by adding a host of peripherals, and some updates to the memory map. In addition, the device tree has been split into a third part, which contains "soft" peripherals that are in the fpga fabric.
Several of the entries are for peripherals that have not get had their drivers upstreamed, so in those cases the dt bindings are included where appropriate in order to avoid as many "DT compatible string <x> appears un-documented" errors as possible.
Depends on mpfs clock driver series [1] to provide:dt-bindings/clock/microchip,mpfs-clock.h
and on the other changes to the icicle/mpfs device tree (mmc) that are already in linux/riscv/for-next.
Also depends on Geert's format changes to interrupt grouping etc [2].
Additionally, the interrupt-extended warnings on the plic/clint are cleared by [3] & [4], which lore appears to have been very confused about.
[1] https://lore.kernel.org/linux-clk/[email protected]/T/
[2] https://lore.kernel.org/linux-riscv/[email protected]/T/
[3] https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/
[4] https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/
Conor Dooley (16):
dt-bindings: soc/microchip: update syscontroller compatibles
dt-bindings: soc/microchip: make systemcontroller a mfd
mailbox: change mailbox-mpfs compatible string
dt-bindings: i2c: add bindings for microchip mpfs i2c
dt-bindings: rng: add bindings for microchip mpfs rng
dt-bindings: rtc: add bindings for microchip mpfs rtc
dt-bindings: soc/microchip: add bindings for mpfs system services
dt-bindings: gpio: add bindings for microchip mpfs gpio
dt-bindings: spi: add bindings for microchip mpfs spi
dt-bindings: usb: add bindings for microchip mpfs musb
dt-bindings: pwm: add microchip corePWM binding
riscv: dts: microchip: use hart and clk defines for icicle kit
riscv: dts: microchip: add fpga fabric section to icicle kit
riscv: dts: microchip: refactor icicle kit device tree
riscv: dts: microchip: update peripherals in icicle kit device tree
MAINTAINERS: update riscv/microchip entry
Ivan Griffin (1):
dt-bindings: interrupt-controller: create a header for RISC-V
interrupts
.../bindings/gpio/microchip,mpfs-gpio.yaml | 80 +++++
.../bindings/i2c/microchip,mpfs-i2c.yaml | 54 ++++
...ilbox.yaml => microchip,mpfs-mailbox.yaml} | 6 +-
.../bindings/pwm/microchip,corepwm.yaml | 61 ++++
.../bindings/rng/microchip,mpfs-rng.yaml | 29 ++
.../bindings/rtc/microchip,mfps-rtc.yaml | 63 ++++
.../microchip,mpfs-generic-service.yaml | 33 ++
.../microchip,mpfs-sys-controller.yaml | 62 ++++
...icrochip,polarfire-soc-sys-controller.yaml | 35 ---
.../bindings/spi/microchip,mpfs-spi.yaml | 61 ++++
.../bindings/usb/microchip,mpfs-musb.yaml | 61 ++++
MAINTAINERS | 2 +
.../dts/microchip/microchip-mpfs-fabric.dtsi | 13 +
.../microchip/microchip-mpfs-icicle-kit.dts | 111 +++++--
.../boot/dts/microchip/microchip-mpfs.dtsi | 295 ++++++++++++++----
drivers/mailbox/mailbox-mpfs.c | 2 +-
.../interrupt-controller/riscv-hart.h | 19 ++
17 files changed, 872 insertions(+), 115 deletions(-)
create mode 100644 Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml
create mode 100644 Documentation/devicetree/bindings/i2c/microchip,mpfs-i2c.yaml
rename Documentation/devicetree/bindings/mailbox/{microchip,polarfire-soc-mailbox.yaml => microchip,mpfs-mailbox.yaml} (82%)
create mode 100644 Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml
create mode 100644 Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml
create mode 100644 Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml
create mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-generic-service.yaml
create mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml
delete mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml
create mode 100644 Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
create mode 100644 Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml
create mode 100644 arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi
create mode 100644 include/dt-bindings/interrupt-controller/riscv-hart.hSignature · 1 line
2.33.1
[email protected]
maintainerPATCH v2 1/17 dt-bindings: interrupt-controller: create a header for RISC-V interrupts
From: Ivan Griffin <[email protected]>
Provide named identifiers for device tree for RISC-V interrupts.
Licensed under GPL and MIT, as this file may be useful to any OS that uses device tree.
--- .../interrupt-controller/riscv-hart.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/riscv-hart.h
include/dt-bindings/interrupt-controller/riscv-hart.h new file +19 -0
@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/* +* Copyright (C) 2021 Microchip Technology Inc. All rights reserved. +*/ + +#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_RISCV_HART_H +#define _DT_BINDINGS_INTERRUPT_CONTROLLER_RISCV_HART_H + +#define HART_INT_U_SOFT 0 +#define HART_INT_S_SOFT 1 +#define HART_INT_M_SOFT 3 +#define HART_INT_U_TIMER 4 +#define HART_INT_S_TIMER 5 +#define HART_INT_M_TIMER 7 +#define HART_INT_U_EXT 8 +#define HART_INT_S_EXT 9 +#define HART_INT_M_EXT 11 + +#endif /* _DT_BINDINGS_INTERRUPT_CONTROLLER_RISCV_HART_H */
Signature · 1 line
2.33.1
Re: [PATCH v2 01/17] dt-bindings: interrupt-controller: create a header for RISC-V interrupts
Quoted 7 lines · On Fri, 17 Dec 2021 09:33:09 +0000, [email protected] wrote:
From: Ivan Griffin <[email protected]>
Provide named identifiers for device tree for RISC-V interrupts.
Licensed under GPL and MIT, as this file may be useful to any OS that uses device tree.
Quoted 7 lines
Signed-off-by Ivan Griffin <[email protected]>Signed-off-by Conor Dooley <[email protected]>--- .../interrupt-controller/riscv-hart.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/interrupt-controller/riscv-hart.h
[email protected]
maintainerPATCH v2 2/17 dt-bindings: soc/microchip: update syscontroller compatibles
In reply to [email protected]From: Conor Dooley <[email protected]>
The Polarfire SoC is currently using two different compatible string prefixes. Fix this by changing "polarfire-soc-*" strings to "mpfs-*" in its system controller in order to match the compatible string used in the soc binding and device tree.
---
...larfire-soc-mailbox.yaml => microchip,mpfs-mailbox.yaml} | 6 +++---
...s-controller.yaml => microchip,mpfs-sys-controller.yaml} | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
rename Documentation/devicetree/bindings/mailbox/{microchip,polarfire-soc-mailbox.yaml => microchip,mpfs-mailbox.yaml} (82%)
rename Documentation/devicetree/bindings/soc/microchip/{microchip,polarfire-soc-sys-controller.yaml => microchip,mpfs-sys-controller.yaml} (75%)Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.yaml renamed from Documentation/devicetree/bindings/mailbox/microchip,polarfire-soc-mailbox.yaml +3 -3
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: "http://devicetree.org/schemas/mailbox/microchip,polarfire-soc-mailbox.yaml#" +$id: "http://devicetree.org/schemas/mailbox/microchip,mpfs-mailbox.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#" title: Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) mailbox controller
@@ -11,7 +11,7 @@ maintainers: properties: compatible: - const: microchip,polarfire-soc-mailbox + const: microchip,mpfs-mailbox reg: items:
@@ -38,7 +38,7 @@ examples: #address-cells = <2>; #size-cells = <2>; mbox: mailbox@37020000 { - compatible = "microchip,polarfire-soc-mailbox"; + compatible = "mpfs-mailbox"; reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318c 0x0 0x40>; interrupt-parent = <&L1>; interrupts = <96>;
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml renamed from Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml +3 -3
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: "http://devicetree.org/schemas/soc/microchip/microchip,polarfire-soc-sys-controller.yaml#" +$id: "http://devicetree.org/schemas/soc/microchip/microchip,mpfs-sys-controller.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#" title: Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) system controller
@@ -19,7 +19,7 @@ properties: maxItems: 1 compatible: - const: microchip,polarfire-soc-sys-controller + const: microchip,mpfs-sys-controller required: - compatible
@@ -30,6 +30,6 @@ additionalProperties: false examples: - | syscontroller: syscontroller { - compatible = "microchip,polarfire-soc-sys-controller"; + compatible = "microchip,mpfs-sys-controller"; mboxes = <&mbox 0>; };
Signature · 1 line
2.33.1
Re: [PATCH v2 02/17] dt-bindings: soc/microchip: update syscontroller compatibles
Quoted 8 lines · On Fri, Dec 17, 2021 at 10:32 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
The Polarfire SoC is currently using two different compatible string prefixes. Fix this by changing "polarfire-soc-*" strings to "mpfs-*" in its system controller in order to match the compatible string used in the soc binding and device tree.
Signed-off-by Conor Dooley <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Rob Herring
maintainerRe: [PATCH v2 02/17] dt-bindings: soc/microchip: update syscontroller compatibles
In reply to [email protected]Quoted 7 lines · On Fri, 17 Dec 2021 09:33:10 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
The Polarfire SoC is currently using two different compatible string prefixes. Fix this by changing "polarfire-soc-*" strings to "mpfs-*" in its system controller in order to match the compatible string used in the soc binding and device tree.
Quoted 8 lines
Signed-off-by Conor Dooley <[email protected]>--- ...larfire-soc-mailbox.yaml => microchip,mpfs-mailbox.yaml} | 6 +++--- ...s-controller.yaml => microchip,mpfs-sys-controller.yaml} | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename Documentation/devicetree/bindings/mailbox/{microchip,polarfire-soc-mailbox.yaml => microchip,mpfs-mailbox.yaml} (82%) rename Documentation/devicetree/bindings/soc/microchip/{microchip,polarfire-soc-sys-controller.yaml => microchip,mpfs-sys-controller.yaml} (75%)
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/mailbox/microchip,mpfs-mailbox.example.dt.yaml:0:0: /example-0/soc/mailbox@37020000: failed to match any schema with compatible: ['mpfs-mailbox']
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569804
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.
[email protected]
maintainerPATCH v2 3/17 dt-bindings: soc/microchip: make systemcontroller a mfd
In reply to [email protected]From: Conor Dooley <[email protected]>
Make the system controller on the Polarfire SoC
a "simple,mfd" so that the services can be child
nodes of the system controller node.
--- .../microchip,mpfs-sys-controller.yaml | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +30 -3
@@ -13,13 +13,34 @@ description: | The PolarFire SoC system controller is communicated with via a mailbox. This document describes the bindings for the client portion of that mailbox. - properties: mboxes: maxItems: 1 compatible: - const: microchip,mpfs-sys-controller + items: + - const: microchip,mpfs-sys-controller + - const: simple-mfd + + hwrandom: + type: object + + properties: + compatible: + const: microchip,mpfs-rng + + required: + - compatible + + sysserv: + type: object + + properties: + compatible: + const: microchip,mpfs-generic-service + + required: + - compatible required: - compatible
@@ -30,6 +51,12 @@ additionalProperties: false examples: - | syscontroller: syscontroller { - compatible = "microchip,mpfs-sys-controller"; + compatible = "microchip,mpfs-sys-controller", "simple-mfd"; mboxes = <&mbox 0>; + hwrandom: hwrandom { + compatible = "microchip,mpfs-rng"; + }; + sysserv: sysserv { + compatible = "microchip,mpfs-generic-service"; + }; };
Signature · 1 line
2.33.1
Rob Herring
maintainerRe: [PATCH v2 03/17] dt-bindings: soc/microchip: make systemcontroller a mfd
Quoted 19 lines · On Fri, Dec 17, 2021 at 09:33:11AM +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Make the system controller on the Polarfire SoC
a "simple,mfd" so that the services can be child
nodes of the system controller node.Signed-off-by Conor Dooley <[email protected]>--- .../microchip,mpfs-sys-controller.yaml | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +0
-0@@ -13,13 +13,34 @@ description: | The PolarFire SoC system controller is communicated with via a mailbox. This document describes the bindings for the client portion of that mailbox.
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml description: | · line 23
Quoted 10 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +3
-2- properties: mboxes: maxItems: 1 compatible: - const: microchip,mpfs-sys-controller + items: + - const: microchip,mpfs-sys-controller + - const: simple-mfd
'simple-mfd' means there is zero dependency on the parent for the child nodes. Isn't 'mboxes' a dependency?
Quoted 10 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +10
-0+ + hwrandom: + type: object + + properties: + compatible: + const: microchip,mpfs-rng + + required: + - compatible
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml description: | · line 43
Quoted 10 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +10
-0+ + sysserv: + type: object + + properties: + compatible: + const: microchip,mpfs-generic-service + + required: + - compatible
There's not really any need to have child nodes which have no resources. The driver for microchip,mpfs-sys-controller can create child devices.
Rob
Re: [PATCH v2 03/17] dt-bindings: soc/microchip: make systemcontroller a mfd
Quoted 25 lines · Rob Herring
Quoted 24 lines · On Fri, Dec 17, 2021 at 09:33:11AM +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Make the system controller on the Polarfire SoC
a "simple,mfd" so that the services can be child
nodes of the system controller node.Signed-off-by Conor Dooley <[email protected]>--- .../microchip,mpfs-sys-controller.yaml | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +0
-1@@ -13,13 +13,34 @@ description: | The PolarFire SoC system controller is communicated with via a mailbox. This document describes the bindings for the client portion of that mailbox. - properties: mboxes: maxItems: 1
Quoted 8 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml description: | · line 23
Quoted 5 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +3
-1compatible: - const: microchip,mpfs-sys-controller + items: + - const: microchip,mpfs-sys-controller + - const: simple-mfd'simple-mfd' means there is zero dependency on the parent for the child nodes. Isn't 'mboxes' a dependency?
I suppose it is. I was going off what had been done for the bcm2835 firmware for the rpi its also a mailbox providing "services". (arm/bcm/raspberrypi,bcm2835-firmware.yaml)
Quoted 16 lines
Quoted 16 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +15
-0+ + hwrandom: + type: object + + properties: + compatible: + const: microchip,mpfs-rng + + required: + - compatible + + sysserv: + type: object + + properties:
Quoted 8 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml description: | · line 43
Quoted 5 lines
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml +5
-0+ compatible: + const: microchip,mpfs-generic-service + + required: + - compatibleThere's not really any need to have child nodes which have no resources. The driver for microchip,mpfs-sys-controller can create child devices.
I am assuming by this you mean say, take a list of boolean properties and convert those into child devices? There's a fairly decent number of services provided by the system controller and these children just represent the subset that we've implemented so far.
Conor
Quoted 2 lines
Rob
[email protected]
maintainerPATCH v2 4/17 mailbox: change mailbox-mpfs compatible string
In reply to [email protected]From: Conor Dooley <[email protected]>
The Polarfire SoC is currently using two different compatible string prefixes. Fix this by changing "polarfire-soc-*" strings to "mpfs-*" in its system controller in order to match the compatible string used in the soc binding and device tree.
--- drivers/mailbox/mailbox-mpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/mailbox-mpfs.c +1 -1
@@ -232,7 +232,7 @@ static int mpfs_mbox_probe(struct platform_device *pdev) }static const struct of_device_id mpfs_mbox_of_match[] = { - {.compatible ="microchip,polarfire-soc-mailbox" , }, + {.compatible ="microchip,mpfs-mailbox" , }, {}, };MODULE_DEVICE_TABLE (of, mpfs_mbox_of_match);
Signature · 1 line
2.33.1
Re: [PATCH v2 04/17] mailbox: change mailbox-mpfs compatible string
Quoted 8 lines · On Fri, Dec 17, 2021 at 10:32 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
The Polarfire SoC is currently using two different compatible string prefixes. Fix this by changing "polarfire-soc-*" strings to "mpfs-*" in its system controller in order to match the compatible string used in the soc binding and device tree.
Signed-off-by Conor Dooley <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
[email protected]
maintainerPATCH v2 5/17 dt-bindings: i2c: add bindings for microchip mpfs i2c
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the i2c controller on the Microchip PolarFire SoC.
--- .../bindings/i2c/microchip,mpfs-i2c.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/microchip,mpfs-i2c.yaml
Documentation/devicetree/bindings/i2c/microchip,mpfs-i2c.yaml new file +54 -0
@@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/microchip,mpfs-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MPFS I2C Controller Device Tree Bindings + +maintainers: + - Daire McNamara <[email protected]> + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + enum: + - microchip,mpfs-i2c # Microchip PolarFire SoC compatible SoCs + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-frequency: + description: | + Desired I2C bus clock frequency in Hz. As only Standard and Fast + modes are supported, possible values are 100000 and 400000. + enum: [100000, 400000] + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/clock/microchip,mpfs-clock.h> + i2c0: i2c@2010a000 { + compatible = "microchip,mpfs-i2c"; + reg = <0x2010a000 0x1000>; + clocks = <&clkcfg CLK_I2C0>; + interrupt-parent = <&plic>; + interrupts = <58>; + clock-frequency = <100000>; + }; +...
Signature · 1 line
2.33.1
Rob Herring
maintainerRe: [PATCH v2 05/17] dt-bindings: i2c: add bindings for microchip mpfs i2c
Quoted 5 lines · On Fri, 17 Dec 2021 09:33:13 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the i2c controller on the Microchip PolarFire SoC.
Quoted 7 lines
Signed-off-by Conor Dooley <[email protected]>Signed-off-by Daire McNamara <[email protected]>--- .../bindings/i2c/microchip,mpfs-i2c.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/microchip,mpfs-i2c.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/i2c/microchip,mpfs-i2c.example.dts:19:18: fatal error: dt-bindings/clock/microchip,mpfs-clock.h: No such file or directory
19 | #include <dt-bindings/clock/microchip,mpfs-clock.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:373: Documentation/devicetree/bindings/i2c/microchip,mpfs-i2c.example.dt.yaml] Error 1 make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1413: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569825
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.
[email protected]
maintainerPATCH v2 6/17 dt-bindings: rng: add bindings for microchip mpfs rng
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the hardware rng device accessed via the system services on the Microchip PolarFire SoC.
--- .../bindings/rng/microchip,mpfs-rng.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +29 -0
@@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/rng/microchip,mpfs-rng.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip MPFS random number generator + +maintainers: + - Conor Dooley <[email protected]> + +description: | + The hardware random number generator on the Polarfire SoC is + accessed via the mailbox interface provided by the system controller + +properties: + compatible: + const: microchip,mpfs-rng + +required: + - compatible + +additionalProperties: false + +examples: + - | + hwrandom: hwrandom { + compatible = "microchip,mpfs-rng"; + };
Signature · 1 line
2.33.1
Re: [PATCH v2 06/17] dt-bindings: rng: add bindings for microchip mpfs rng
Quoted 34 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the hardware rng device accessed via the system services on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/rng/microchip,mpfs-rng.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yamlDocumentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +17
-0@@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/rng/microchip,mpfs-rng.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip MPFS random number generator + +maintainers: + - Conor Dooley <[email protected]> + +description: | + The hardware random number generator on the Polarfire SoC is + accessed via the mailbox interface provided by the system controller + +properties: + compatible:
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +10
-0+ const: microchip,mpfs-rng + +required: + - compatible + +additionalProperties: false + +examples: + - | + hwrandom: hwrandom {
Three topics:
1. Node name (as most of others are using): rng
2. skip the label, not helping in example.
3. This looks very simple, so I wonder if the bindings are complete. No IO space/address... How is it going to be instantiated?
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml line 29
Quoted 3 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +2
-0+ compatible = "microchip,mpfs-rng"; + };
Best regards,
Krzysztof
Re: [PATCH v2 06/17] dt-bindings: rng: add bindings for microchip mpfs rng
Quoted 43 lines · Krzysztof Kozlowski
Quoted 42 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the hardware rng device accessed via the system services on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/rng/microchip,mpfs-rng.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yamlDocumentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +25
-0@@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/rng/microchip,mpfs-rng.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip MPFS random number generator + +maintainers: + - Conor Dooley <[email protected]> + +description: | + The hardware random number generator on the Polarfire SoC is + accessed via the mailbox interface provided by the system controller + +properties: + compatible: + const: microchip,mpfs-rng + +required: + - compatible + +additionalProperties: false + +examples:
Quoted 9 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml line 27
Quoted 2 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +2
-0+ - | + hwrandom: hwrandom {Three topics:
1. Node name (as most of others are using): rng
2. skip the label, not helping in example.
3. This looks very simple, so I wonder if the bindings are complete. No IO space/address... How is it going to be instantiated?
OK, now I saw the usage in DTS. I have doubts this makes sense as separate bindings. It looks like integrated part of syscontroller, so maybe make it part of that binding? Or at least add ref to syscontroller bindings that such child is expected.
Best regards,
Krzysztof
[email protected]
maintainerRe: [PATCH v2 06/17] dt-bindings: rng: add bindings for microchip mpfs rng
Quoted 56 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 43 lines · Krzysztof Kozlowski
Quoted 42 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the hardware rng device accessed via the system services on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/rng/microchip,mpfs-rng.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+)create mode 100644
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yamlDocumentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +25
-0@@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/rng/microchip,mpfs-rng.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip MPFS random number generator + +maintainers: + - Conor Dooley <[email protected]> + +description: | + The hardware random number generator on the Polarfire SoC is + accessed via the mailbox interface provided by the system controller + +properties: + compatible: + const: microchip,mpfs-rng + +required: + - compatible + +additionalProperties: false + +examples:Quoted 9 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml line 27
Quoted 2 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +2
-0+ - | + hwrandom: hwrandom {Three topics:
1. Node name (as most of others are using): rng
2. skip the label, not helping in example.
3. This looks very simple, so I wonder if the bindings are complete. No IO space/address... How is it going to be instantiated?
Quoted 4 lines
OK, now I saw the usage in DTS. I have doubts this makes sense as separate bindings. It looks like integrated part of syscontroller, so maybe make it part of that binding? Or at least add ref to syscontroller bindings that such child is expected.
Acking the rest of this, re: adding the ref: is what is being done in patch 03/17 insufficient?
Quoted 5 lines
Best regards,
Krzysztof
Re: [PATCH v2 06/17] dt-bindings: rng: add bindings for microchip mpfs rng
Quoted 57 lines · On 17/12/2021 16:22, [email protected] wrote:
Quoted 56 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 52 lines · Krzysztof Kozlowski
Quoted 34 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the hardware rng device accessed via the system services on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/rng/microchip,mpfs-rng.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+)create mode 100644
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yamlDocumentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +17
-0@@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/rng/microchip,mpfs-rng.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip MPFS random number generator + +maintainers: + - Conor Dooley <[email protected]> + +description: | + The hardware random number generator on the Polarfire SoC is + accessed via the mailbox interface provided by the system controller + +properties: + compatible:Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml new file +10
-0+ const: microchip,mpfs-rng + +required: + - compatible + +additionalProperties: false + +examples: + - | + hwrandom: hwrandom {Three topics:
1. Node name (as most of others are using): rng
2. skip the label, not helping in example.
3. This looks very simple, so I wonder if the bindings are complete. No IO space/address... How is it going to be instantiated?
Quoted 6 lines
Quoted 4 lines
OK, now I saw the usage in DTS. I have doubts this makes sense as separate bindings. It looks like integrated part of syscontroller, so maybe make it part of that binding? Or at least add ref to syscontroller bindings that such child is expected.
Acking the rest of this, re: adding the ref: is what is being done in patch 03/17 insufficient?
Ops, I missed the 03/17. Yeah, it looks it is sufficient and in such case I think you do not need this patch. The compatible is documented in 03/17. The same for sysserv.
Best regards,
Krzysztof
Re: [PATCH v2 06/17] dt-bindings: rng: add bindings for microchip mpfs rng
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Quoted 30 lines · Krzysztof Kozlowski
Quoted 28 lines · On 17/12/2021 16:22, [email protected] wrote:
Quoted 26 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 11 lines · Krzysztof Kozlowski
Quoted 8 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley [email protected]
Add device tree bindings for the hardware rng device accessed via
the system services on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley [email protected]------------------------------------------------------
Quoted 7 lines
Three topics:
1. Node name (as most of others are using): rng 2. skip the label, not helping in example. 3. This looks very simple, so I wonder if the bindings are complete. NoIO space/address... How is it going to be instantiated?
OK, now I saw the usage in DTS. I have doubts this makes sense as separate bindings. It looks like integrated part of syscontroller, so maybe make it part of that binding? Or at least add ref to syscontroller bindings that such child is expected.
Quoted 5 lines
Quoted 2 lines
Acking the rest of this, re: adding the ref: is what is being done in patch 03/17 insufficient?
Ops, I missed the 03/17. Yeah, it looks it is sufficient and in such case I think you do not need this patch. The compatible is documented in 03/17. The same for sysserv.
Grand, that makes things easier.
Conor.
Quoted 10 lines
Best regards,
Krzysztof
linux-riscv mailing list
[email protected]
maintainerPATCH v2 7/17 dt-bindings: rtc: add bindings for microchip mpfs rtc
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the real time clock on the Microchip PolarFire SoC.
--- .../bindings/rtc/microchip,mfps-rtc.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml
Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml new file +63 -0
@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/microchip,mfps-rtc.yaml# + +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip PolarFire Soc (MPFS) RTC Device Tree Bindings + +allOf: + - $ref: rtc.yaml# + +maintainers: + - Daire McNamara <[email protected]> + - Lewis Hanly <[email protected]> + +properties: + compatible: + enum: + - microchip,mpfs-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 2 + + microchip,prescaler: + description: | + The prescaler divides the input frequency to create a time-based strobe (typically 1 Hz) for + the calendar counter. The Alarm and Compare Registers, in conjunction with the calendar + counter, facilitate time-matched events. To properly operate in Calendar or Binary mode, + the 26-bit prescaler must be programmed to generate a strobe to the RTC. + maxItems: 1 + $ref: /schemas/types.yaml#/definitions/uint32 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: rtc + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/microchip,mpfs-clock.h> + rtc@20124000 { + compatible = "microchip,mpfs-rtc"; + reg = <0x20124000 0x1000>; + clocks = <&clkcfg CLK_RTC>; + clock-names = "rtc"; + interrupts = <80>, <81>; + }; +...
Signature · 1 line
2.33.1
Rob Herring
maintainerRe: [PATCH v2 07/17] dt-bindings: rtc: add bindings for microchip mpfs rtc
Quoted 5 lines · On Fri, 17 Dec 2021 09:33:15 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the real time clock on the Microchip PolarFire SoC.
Quoted 7 lines
Signed-off-by Conor Dooley <[email protected]>Signed-off-by Daire McNamara <[email protected]>--- .../bindings/rtc/microchip,mfps-rtc.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.example.dts:19:18: fatal error: dt-bindings/clock/microchip,mpfs-clock.h: No such file or directory
19 | #include <dt-bindings/clock/microchip,mpfs-clock.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:373: Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.example.dt.yaml] Error 1 make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1413: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569828
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.
Rob Herring
maintainerRe: [PATCH v2 07/17] dt-bindings: rtc: add bindings for microchip mpfs rtc
In reply to [email protected]Quoted 34 lines · On Fri, Dec 17, 2021 at 09:33:15AM +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the real time clock on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>Signed-off-by Daire McNamara <[email protected]>--- .../bindings/rtc/microchip,mfps-rtc.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yamlDocumentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml new file +16
-0@@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/microchip,mfps-rtc.yaml# + +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip PolarFire Soc (MPFS) RTC Device Tree Bindings + +allOf: + - $ref: rtc.yaml# + +maintainers: + - Daire McNamara <[email protected]> + - Lewis Hanly <[email protected]> +
Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml line 26
Quoted 10 lines
Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml new file +10
-0+properties: + compatible: + enum: + - microchip,mpfs-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 2
Need to define what each one is.
Quoted 41 lines
Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml new file +37
-0+ + microchip,prescaler: + description: | + The prescaler divides the input frequency to create a time-based strobe (typically 1 Hz) for + the calendar counter. The Alarm and Compare Registers, in conjunction with the calendar + counter, facilitate time-matched events. To properly operate in Calendar or Binary mode, + the 26-bit prescaler must be programmed to generate a strobe to the RTC. + maxItems: 1 + $ref: /schemas/types.yaml#/definitions/uint32 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: rtc + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/microchip,mpfs-clock.h> + rtc@20124000 { + compatible = "microchip,mpfs-rtc"; + reg = <0x20124000 0x1000>; + clocks = <&clkcfg CLK_RTC>; + clock-names = "rtc"; + interrupts = <80>, <81>; + }; +...Signature · 1 line
2.33.1
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
[email protected]
maintainerPATCH v2 8/17 dt-bindings: soc/microchip: add bindings for mpfs system services
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the services provided by the system controller directly on the Microchip PolarFire SoC.
--- .../microchip,mpfs-generic-service.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-generic-service.yaml
Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-generic-service.yaml new file +33 -0
@@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/microchip/microchip,mpfs-generic-service.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip MPFS system services + +maintainers: + - Conor Dooley <[email protected]> + +description: | + The PolarFire SoC system controller is communicated with via a mailbox. + This binding represents several of the functions provided by the system + controller which do not belong in a specific subsystem, such as reading + the fpga device certificate, all of which follow the same format: + - a command + optional payload sent to the sys controller + - a status + a payload returned to Linux. + +properties: + compatible: + const: microchip,mpfs-generic-service + +required: + - compatible + +additionalProperties: false + +examples: + - | + sysserv: sysserv { + compatible = "microchip,mpfs-generic-service"; + };
Signature · 1 line
2.33.1
[email protected]
maintainerPATCH v2 9/17 dt-bindings: gpio: add bindings for microchip mpfs gpio
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the gpio controller on the Microchip PolarFire SoC.
--- .../bindings/gpio/microchip,mpfs-gpio.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml
Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml new file +80 -0
@@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/microchip,mpfs-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MPFS GPIO Controller Device Tree Bindings + +maintainers: + - Conor Dooley <[email protected]> + +properties: + compatible: + items: + - enum: + - microchip,mpfs-gpio + + reg: + maxItems: 1 + + interrupts: + description: + Interrupt mapping, one per GPIO. Maximum 32 GPIOs. + minItems: 1 + maxItems: 32 + + interrupt-controller: true + + clocks: + maxItems: 1 + + "#gpio-cells": + const: 2 + + "#interrupt-cells": + const: 1 + + ngpios: + description: + The number of GPIOs available. + minimum: 1 + maximum: 32 + default: 32 + + gpio-controller: true + +required: + - compatible + - reg + - interrupts + - "#interrupt-cells" + - interrupt-controller + - "#gpio-cells" + - gpio-controller + - clocks + +additionalProperties: false + +examples: + - | + #include "dt-bindings/clock/microchip,mpfs-clock.h" + gpio2: gpio@20122000 { + compatible = "microchip,mpfs-gpio"; + reg = <0x20122000 0x1000>; + clocks = <&clkcfg CLK_GPIO2>; + interrupt-parent = <&plic>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <1>; + interrupts = <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>; + }; +...
Signature · 1 line
2.33.1
Rob Herring
maintainerRe: [PATCH v2 09/17] dt-bindings: gpio: add bindings for microchip mpfs gpio
Quoted 11 lines · On Fri, 17 Dec 2021 09:33:17 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the gpio controller on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/gpio/microchip,mpfs-gpio.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.example.dts:19:18: fatal error: dt-bindings/clock/microchip,mpfs-clock.h: No such file or directory
19 | #include "dt-bindings/clock/microchip,mpfs-clock.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:373: Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.example.dt.yaml] Error 1 make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1413: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569834
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.
[email protected]
maintainerPATCH v2 10/17 dt-bindings: spi: add bindings for microchip mpfs spi
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the {q,}spi controller on the Microchip PolarFire SoC.
--- .../bindings/spi/microchip,mpfs-spi.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/microchip,mpfs-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MPFS {Q,}SPI Controller Device Tree Bindings + +maintainers: + - Conor Dooley <[email protected]> + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + enum: + - microchip,mpfs-spi + - microchip,mpfs-qspi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-names: + maxItems: 1 + + clocks: + maxItems: 1 + + num-cs: + description: | + Number of chip selects used. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 8 + default: 8 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include "dt-bindings/clock/microchip,mpfs-clock.h" + spi0: spi@20108000 { + compatible = "microchip,mpfs-spi"; + reg = <0x20108000 0x1000>; + clocks = <&clkcfg CLK_SPI0>; + interrupt-parent = <&plic>; + interrupts = <54>; + spi-max-frequency = <25000000>; + num-cs = <8>; + }; +...
Signature · 1 line
2.33.1
Mark Brown
maintainerRe: [PATCH v2 10/17] dt-bindings: spi: add bindings for microchip mpfs spi
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml line 39
Quoted 7 lines · On Fri, Dec 17, 2021 at 09:33:18AM +0000, [email protected] wrote:
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml new file +7
-0+ num-cs: + description: | + Number of chip selects used. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 8 + default: 8
Why do you need this property in the DT - isn't the number of chip selects in the IP a fixes property?
[email protected]
maintainerRe: [PATCH v2 10/17] dt-bindings: spi: add bindings for microchip mpfs spi
Quoted 1 line · Mark Brown
EXTERNAL EMAIL: Do not click links or open attachments unless you
know the content is safe
Quoted 1 line
On Fri, Dec 17, 2021 at 09:33:18AM +0000, [email protected]
Quoted 10 lines · wrote:
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml line 39
Quoted 7 lines
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml new file +7
-0+ num-cs: + description: | + Number of chip selects used. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 8 + default: 8Why do you need this property in the DT - isn't the number of chip selects in the IP a fixes property?
Nope! It's an IP that's intended for use in FPGAs so the number of selects may (and does) vary based on implementation.
Mark Brown
maintainerRe: [PATCH v2 10/17] dt-bindings: spi: add bindings for microchip mpfs spi
Quoted 7 lines · On Fri, Dec 17, 2021 at 11:40:29AM +0000, [email protected] wrote:
Quoted 2 lines · Mark Brown
Why do you need this property in the DT - isn't the number of chip selects in the IP a fixes property?
Nope! It's an IP that's intended for use in FPGAs so the number of selects may (and does) vary based on implementation.
That doesn't explain why the number is needed in the binding - why do you need this property in the DT?
[email protected]
maintainerRe: [PATCH v2 10/17] dt-bindings: spi: add bindings for microchip mpfs spi
Quoted 1 line · Mark Brown
EXTERNAL EMAIL: Do not click links or open attachments unless you
know the content is safe
Quoted 2 lines
On Fri, Dec 17, 2021 at 11:40:29AM +0000, [email protected]
Quoted 9 lines · wrote:
Quoted 6 lines · Mark Brown
Quoted 2 lines
Why do you need this property in the DT - isn't the number of chip selects in the IP a fixes property?
Nope! It's an IP that's intended for use in FPGAs so the number of selects may (and does) vary based on implementation.
That doesn't explain why the number is needed in the binding - why do you need this property in the DT?
Took another look at the IP core configuration & I think you're right and that property can be dropped. The register responsible for CS control will not be optimised away even if the CS is not used & the worst outcome is that nothing will happen.
Rob Herring
maintainerRe: [PATCH v2 10/17] dt-bindings: spi: add bindings for microchip mpfs spi
In reply to [email protected]Quoted 11 lines · On Fri, 17 Dec 2021 09:33:18 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the {q,}spi controller on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/spi/microchip,mpfs-spi.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/spi/microchip,mpfs-spi.example.dts:19:18: fatal error: dt-bindings/clock/microchip,mpfs-clock.h: No such file or directory
19 | #include "dt-bindings/clock/microchip,mpfs-clock.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:373: Documentation/devicetree/bindings/spi/microchip,mpfs-spi.example.dt.yaml] Error 1 make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1413: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569843
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.
[email protected]
maintainerPATCH v2 11/17 dt-bindings: usb: add bindings for microchip mpfs musb
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the usb controller on the Microchip PolarFire SoC.
--- .../bindings/usb/microchip,mpfs-musb.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/microchip,mpfs-musb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MPFS USB Controller Device Tree Bindings + +maintainers: + - Conor Dooley <[email protected]> + +properties: + compatible: + enum: + - microchip,mpfs-musb + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: dma + - const: mc + + clocks: + maxItems: 1 + + dr_mode: + enum: + - host + - otg + - peripheral + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - dr_mode + +additionalProperties: false + +examples: + - | + #include "dt-bindings/clock/microchip,mpfs-clock.h" + usb: usb@20201000 { + compatible = "microchip,mpfs-musb"; + reg = <0x20201000 0x1000>; + clocks = <&clkcfg CLK_USB>; + interrupt-parent = <&plic>; + interrupts = <86>, <87>; + interrupt-names = "dma","mc"; + dr_mode = "host"; + }; + +...
Signature · 1 line
2.33.1
Rob Herring
maintainerRe: [PATCH v2 11/17] dt-bindings: usb: add bindings for microchip mpfs musb
Quoted 11 lines · On Fri, 17 Dec 2021 09:33:19 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the usb controller on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/usb/microchip,mpfs-musb.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/usb/microchip,mpfs-musb.example.dts:19:18: fatal error: dt-bindings/clock/microchip,mpfs-clock.h: No such file or directory
19 | #include "dt-bindings/clock/microchip,mpfs-clock.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:373: Documentation/devicetree/bindings/usb/microchip,mpfs-musb.example.dt.yaml] Error 1 make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1413: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569849
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.
Rob Herring
maintainerRe: [PATCH v2 11/17] dt-bindings: usb: add bindings for microchip mpfs musb
In reply to [email protected]Quoted 43 lines · On Fri, Dec 17, 2021 at 09:33:19AM +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the usb controller on the Microchip PolarFire SoC.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/usb/microchip,mpfs-musb.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yamlDocumentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +26
-0@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/microchip,mpfs-musb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MPFS USB Controller Device Tree Bindings + +maintainers: + - Conor Dooley <[email protected]> + +properties: + compatible: + enum: + - microchip,mpfs-musb + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: dma
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +10
-0+ - const: mc + + clocks: + maxItems: 1 + + dr_mode: + enum: + - host + - otg + - peripheral
Reference usb-drd.yaml and you can drop this.
Quoted 5 lines
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +5
-0+ +required: + - compatible + - reg + - interrupts
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml line 51
Quoted 10 lines
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +10
-0+ - interrupt-names + - clocks + - dr_mode + +additionalProperties: false + +examples: + - | + #include "dt-bindings/clock/microchip,mpfs-clock.h" + usb: usb@20201000 {
Drop unused labels.
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml line 57
Quoted 6 lines
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +6
-0+ compatible = "microchip,mpfs-musb"; + reg = <0x20201000 0x1000>; + clocks = <&clkcfg CLK_USB>; + interrupt-parent = <&plic>; + interrupts = <86>, <87>; + interrupt-names = "dma","mc";
space ^
Quoted 8 lines
Documentation/devicetree/bindings/usb/microchip,mpfs-musb.yaml new file +4
-0+ dr_mode = "host"; + }; + +...Signature · 1 line
2.33.1
[email protected]
maintainerPATCH v2 12/17 dt-bindings: pwm: add microchip corePWM binding
In reply to [email protected]From: Conor Dooley <[email protected]>
Add device tree bindings for the Microchip fpga fabric based "core" PWM controller.
--- .../bindings/pwm/microchip,corepwm.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml new file +61 -0
@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/microchip,corepwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip ip core PWM controller bindings + +maintainers: + - Conor Dooley <[email protected]> + +description: | + corePWM is an 16 channel pulse width modulator FPGA IP + + https://www.microsemi.com/existing-parts/parts/152118 + +properties: + compatible: + items: + - const: microchip,corepwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#pwm-cells": + const: 2 + + microchip,sync-update: + description: | + In synchronous mode, all channels are updated at the beginning of the PWM period. + Asynchronous mode is relevant to applications such as LED control, where + synchronous updates are not required. Asynchronous mode lowers the area size, + reducing shadow register requirements. This can be set at run time, provided + SHADOW_REG_EN is asserted. SHADOW_REG_EN is set by the FPGA bitstream programmed + to the device. + + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + +required: + - compatible + - reg + - clocks + - "#pwm-cells" + +additionalProperties: false + +examples: + - | + #include "dt-bindings/clock/microchip,mpfs-clock.h" + corePWN1: corePWM@41000000 { + compatible = "microchip,corepwm"; + microchip,sync-update = /bits/ 8 <1>; + clocks = <&clkcfg CLK_FIC3>; + reg = <0x41000000 0xF0>; + #pwm-cells = <2>; + };
Signature · 1 line
2.33.1
Rob Herring
maintainerRe: [PATCH v2 12/17] dt-bindings: pwm: add microchip corePWM binding
Quoted 10 lines · On Fri, 17 Dec 2021 09:33:20 +0000, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the Microchip fpga fabric based "core" PWM controller.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/pwm/microchip,corepwm.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/pwm/microchip,corepwm.example.dts:19:18: fatal error: dt-bindings/clock/microchip,mpfs-clock.h: No such file or directory
19 | #include "dt-bindings/clock/microchip,mpfs-clock.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.lib:373: Documentation/devicetree/bindings/pwm/microchip,corepwm.example.dt.yaml] Error 1 make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1413: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1569853
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.
Re: [PATCH v2 12/17] dt-bindings: pwm: add microchip corePWM binding
In reply to [email protected]Quoted 45 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Add device tree bindings for the Microchip fpga fabric based "core" PWM controller.
Signed-off-by Conor Dooley <[email protected]>--- .../bindings/pwm/microchip,corepwm.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/microchip,corepwm.yamlDocumentation/devicetree/bindings/pwm/microchip,corepwm.yaml new file +29
-0@@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/microchip,corepwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip ip core PWM controller bindings + +maintainers: + - Conor Dooley <[email protected]> + +description: | + corePWM is an 16 channel pulse width modulator FPGA IP + + https://www.microsemi.com/existing-parts/parts/152118 + +properties: + compatible: + items: + - const: microchip,corepwm + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#pwm-cells":
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml line 39
Quoted 10 lines
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml new file +10
-0+ const: 2 + + microchip,sync-update: + description: | + In synchronous mode, all channels are updated at the beginning of the PWM period. + Asynchronous mode is relevant to applications such as LED control, where + synchronous updates are not required. Asynchronous mode lowers the area size, + reducing shadow register requirements. This can be set at run time, provided + SHADOW_REG_EN is asserted. SHADOW_REG_EN is set by the FPGA bitstream programmed + to the device.
Please also describe what is the meaning of the values used here. What does a value "2" mean?
Quoted 6 lines
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml new file +6
-0+ + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0 + +required: + - compatible
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml line 55
Quoted 10 lines
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml new file +10
-0+ - reg + - clocks + - "#pwm-cells" + +additionalProperties: false + +examples: + - | + #include "dt-bindings/clock/microchip,mpfs-clock.h" + corePWN1: corePWM@41000000 {
Here and in all patches, please skip the label. It's not helping.
Node name: pwm
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml line 61
Quoted 7 lines
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml new file +6
-0+ compatible = "microchip,corepwm"; + microchip,sync-update = /bits/ 8 <1>; + clocks = <&clkcfg CLK_FIC3>; + reg = <0x41000000 0xF0>; + #pwm-cells = <2>; + };
Best regards,
Krzysztof
[email protected]
maintainerPATCH v2 13/17 riscv: dts: microchip: use hart and clk defines for icicle kit
In reply to [email protected]From: Conor Dooley <[email protected]>
Update the Microchip Icicle kit device tree by replacing interrupt and clock related magic numbers with their defined counterparts.
--- .../microchip/microchip-mpfs-icicle-kit.dts | 2 +- .../boot/dts/microchip/microchip-mpfs.dtsi | 55 +++++++++++-------- 2 files changed, 34 insertions(+), 23 deletions(-)
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +1 -1
@@ -31,7 +31,7 @@ cpus { memory@80000000 { device_type = "memory"; reg = <0x0 0x80000000 0x0 0x40000000>; - clocks = <&clkcfg 26>; + clocks = <&clkcfg CLK_DDRC>; }; };
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +33 -22
175 lines not on this page · raw message
Signature · 1 line
2.33.1
Re: [PATCH v2 13/17] riscv: dts: microchip: use hart and clk defines for icicle kit
Hi Conor,
Thanks for your patch!
Quoted 4 lines · On Fri, Dec 17, 2021 at 10:33 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
Update the Microchip Icicle kit device tree by replacing interrupt and clock related magic numbers with their defined counterparts.
Usually we make a distinction between (a) numbers that can be looked up easily in a datasheet, and (b) numbers that were made up because we needed some mapping. Of course both types of numbers are fixed, and cannot be changed.
For (a), we tend to use the hardcoded numbers in the DTS files, to avoid reviewers having to go through another layer of indirection (i.e. does the number for the define match the number in the datasheet?).
For (b), we use the defines, as there is no other official place to look up the numbers.
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi line 5
Quoted 7 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +1
-0@@ -2,6 +2,8 @@ /* Copyright (c) 2020 Microchip Technology Inc */ /dts-v1/; +#include "dt-bindings/clock/microchip,mpfs-clock.h"
The clock numbers we're made-up, so they fall under (b).
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi line 6
Quoted 1 line
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +1
-0+#include "dt-bindings/interrupt-controller/riscv-hart.h"
I believe these are just the official CLIC interrupt IDs, so they fall under (a)?
Quoted 9 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +0
-5@@ -165,11 +167,16 @@ cache-controller@2010000 { clint@2000000 { compatible = "sifive,fu540-c000-clint", "sifive,clint0"; reg = <0x0 0x2000000 0x0 0xC000>; - interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>, - <&cpu1_intc 3>, <&cpu1_intc 7>, - <&cpu2_intc 3>, <&cpu2_intc 7>, - <&cpu3_intc 3>, <&cpu3_intc 7>, - <&cpu4_intc 3>, <&cpu4_intc 7>;
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi cache-controller@2010000 { · line 179
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +10
-0+ interrupts-extended = <&cpu0_intc HART_INT_M_SOFT>, + <&cpu0_intc HART_INT_M_TIMER>, + <&cpu1_intc HART_INT_M_SOFT>, + <&cpu1_intc HART_INT_M_TIMER>, + <&cpu2_intc HART_INT_M_SOFT>, + <&cpu2_intc HART_INT_M_TIMER>, + <&cpu3_intc HART_INT_M_SOFT>, + <&cpu3_intc HART_INT_M_TIMER>, + <&cpu4_intc HART_INT_M_SOFT>, + <&cpu4_intc HART_INT_M_TIMER>;
Hence I'm not sure we want changes like this?
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi cache-controller@2010000 { · line 182
Quoted 3 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +0
-0}; plic: interrupt-controller@c000000 {
};
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi serial0: serial@20000000 { · line 224
Quoted 7 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +1
-1@@ -210,7 +221,7 @@ serial0: serial@20000000 { interrupt-parent = <&plic>; interrupts = <90>; current-speed = <115200>; - clocks = <&clkcfg 8>; + clocks = <&clkcfg CLK_MMUART0>;
But this change is fine.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
[email protected]
maintainerPATCH v2 14/17 riscv: dts: microchip: add fpga fabric section to icicle kit
In reply to [email protected]From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.
--- .../boot/dts/microchip/microchip-mpfs-fabric.dtsi | 13 +++++++++++++ .../dts/microchip/microchip-mpfs-icicle-kit.dts | 4 ++++ arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 1 + 3 files changed, 18 insertions(+) create mode 100644 arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +13 -0
@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */ + +/ { + corePWM0: pwm@41000000 { + compatible = "microchip,corepwm"; + reg = <0x0 0x41000000 0x0 0xF0>; + microchip,sync-update = /bits/ 8 <0>; + #pwm-cells = <2>; + clocks = <&clkcfg CLK_FIC3>; + status = "disabled"; + }; +};
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +4 -0
@@ -86,3 +86,7 @@ phy1: ethernet-phy@9 { ti,fifo-depth = <0x01>; }; }; + +&corePWM0 { + status = "okay"; +};
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +1 -0
@@ -4,6 +4,7 @@ /dts-v1/; #include "dt-bindings/clock/microchip,mpfs-clock.h" #include "dt-bindings/interrupt-controller/riscv-hart.h" +#include "microchip-mpfs-fabric.dtsi" / { #address-cells = <2>;
Signature · 1 line
2.33.1
Re: [PATCH v2 14/17] riscv: dts: microchip: add fpga fabric section to icicle kit
Hi Conor,
Quoted 7 lines · On Fri, Dec 17, 2021 at 10:33 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding
microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.Signed-off-by Conor Dooley <[email protected]>
Thanks for your patch!
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +2
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi line 12
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +10
-0+ +/ { + corePWM0: pwm@41000000 { + compatible = "microchip,corepwm"; + reg = <0x0 0x41000000 0x0 0xF0>; + microchip,sync-update = /bits/ 8 <0>; + #pwm-cells = <2>; + clocks = <&clkcfg CLK_FIC3>; + status = "disabled"; + };
I'm wondering if these should be grouped under a "fabric" subnode, like we have an "soc" subnode for on-SoC devices? Rob?
BTW, do you already have a naming plan for different revisions of FPGA fabric cores?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
[email protected]
maintainerRe: [PATCH v2 14/17] riscv: dts: microchip: add fpga fabric section to icicle kit
Quoted 34 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Conor,
Quoted 7 lines · On Fri, Dec 17, 2021 at 10:33 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding
microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.Signed-off-by Conor Dooley <[email protected]>Thanks for your patch!
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +2
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi line 12
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +10
-0+ +/ { + corePWM0: pwm@41000000 { + compatible = "microchip,corepwm"; + reg = <0x0 0x41000000 0x0 0xF0>; + microchip,sync-update = /bits/ 8 <0>; + #pwm-cells = <2>; + clocks = <&clkcfg CLK_FIC3>; + status = "disabled"; + };I'm wondering if these should be grouped under a "fabric" subnode, like we have an "soc" subnode for on-SoC devices? Rob?
Quoted 2 lines
BTW, do you already have a naming plan for different revisions of FPGA fabric cores?
Not yet (assuming you mean specifically how we will handle it in the device tree) - although i was talking to someone about it yesterday. It's possible that we might handle that via a register, but if you have a suggestion or some precedence that you're aware of that would be useful.
The actual naming convention of the IP cores themselves, yeah. I will dig it up for you on Monday.
Quoted 12 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH v2 14/17] riscv: dts: microchip: add fpga fabric section to icicle kit
Hi Conor,
Quoted 33 lines · On Fri, Dec 17, 2021 at 4:32 PM <[email protected]> wrote:
Quoted 30 lines · Geert Uytterhoeven
Quoted 7 lines · On Fri, Dec 17, 2021 at 10:33 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding
microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.Signed-off-by Conor Dooley <[email protected]>Thanks for your patch!
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +2
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi line 12
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +10
-0+ +/ { + corePWM0: pwm@41000000 { + compatible = "microchip,corepwm"; + reg = <0x0 0x41000000 0x0 0xF0>; + microchip,sync-update = /bits/ 8 <0>; + #pwm-cells = <2>; + clocks = <&clkcfg CLK_FIC3>; + status = "disabled"; + };I'm wondering if these should be grouped under a "fabric" subnode, like we have an "soc" subnode for on-SoC devices? Rob?
Quoted 2 lines
BTW, do you already have a naming plan for different revisions of FPGA fabric cores?
Quoted 7 lines
Not yet (assuming you mean specifically how we will handle it in the device tree) - although i was talking to someone about it yesterday. It's possible that we might handle that via a register, but if you have a suggestion or some precedence that you're aware of that would be useful.
The actual naming convention of the IP cores themselves, yeah. I will dig it up for you on Monday.
I meant what if corepwm is enhanced, and how to detect that?
SiFive uses an integer version number, even for hard cores[1]. OpenCores uses an "-rtlsvnN" suffix (isn't svn dead? ;-) No idea what e.g. LiteX and Microwatt are planning.
[1] Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txt
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
[email protected]
maintainerRe: [PATCH v2 14/17] riscv: dts: microchip: add fpga fabric section to icicle kit
Quoted 43 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Conor,
Quoted 38 lines · On Fri, Dec 17, 2021 at 4:32 PM <[email protected]> wrote:
Quoted 30 lines · Geert Uytterhoeven
Quoted 7 lines · On Fri, Dec 17, 2021 at 10:33 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding
microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.Signed-off-by Conor Dooley <[email protected]>Thanks for your patch!
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +2
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi line 12
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +10
-0+ +/ { + corePWM0: pwm@41000000 { + compatible = "microchip,corepwm"; + reg = <0x0 0x41000000 0x0 0xF0>; + microchip,sync-update = /bits/ 8 <0>; + #pwm-cells = <2>; + clocks = <&clkcfg CLK_FIC3>; + status = "disabled"; + };I'm wondering if these should be grouped under a "fabric" subnode, like we have an "soc" subnode for on-SoC devices? Rob?
Quoted 2 lines
BTW, do you already have a naming plan for different revisions of FPGA fabric cores?
Not yet (assuming you mean specifically how we will handle it in the device tree) - although i was talking to someone about it yesterday. It's possible that we might handle that via a register, but if you have a suggestion or some precedence that you're aware of that would be useful.
Quoted 5 lines
Quoted 2 lines
The actual naming convention of the IP cores themselves, yeah. I will dig it up for you on Monday.
I meant what if corepwm is enhanced, and how to detect that?
Looks like "microchip,core<name>-N" is the plan. More recent IP cores have a register from which the version number can be read but that isnt (and wont be) the case for all versions.
Where this register does exist, we will use it & if not fall back onto the compat. string.
Quoted 2 lines
SiFive uses an integer version number, even for hard cores[1]. OpenCores uses an "-rtlsvnN" suffix (isn't svn dead? ;-)
At least here, "hardware" people seem to be a fan of it still (sadly?)
Quoted 14 lines
No idea what e.g. LiteX and Microwatt are planning. >
[1]Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versioning.txtGr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
[email protected]
maintainerRe: [PATCH v2 14/17] riscv: dts: microchip: add fpga fabric section to icicle kit
In reply to Geert UytterhoevenQuoted 25 lines · Geert Uytterhoeven
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Hi Conor,
Quoted 7 lines · On Fri, Dec 17, 2021 at 10:33 AM <[email protected]> wrote:
From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding
microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.Signed-off-by Conor Dooley <[email protected]>Thanks for your patch!
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +7
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */ + +/ { + corePWM0: pwm@41000000 { + compatible = "microchip,corepwm"; + reg = <0x0 0x41000000 0x0 0xF0>;
Quoted 8 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi line 12
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +5
-0+ microchip,sync-update = /bits/ 8 <0>; + #pwm-cells = <2>; + clocks = <&clkcfg CLK_FIC3>; + status = "disabled"; + };I'm wondering if these should be grouped under a "fabric" subnode, like we have an "soc" subnode for on-SoC devices? Rob?
I was about to send v3 but I realised nothing happened with this. I will leave it as a dtsi and submit, but I'll be all ears if Rob wants something else.
Quoted 15 lines
BTW, do you already have a naming plan for different revisions of FPGA fabric cores?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH v2 14/17] riscv: dts: microchip: add fpga fabric section to icicle kit
In reply to [email protected]Quoted 20 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Split the device tree for the Microchip MPFS into two sections by adding
microchip-mpfs-fabric.dtsi, which contains peripherals contained in the FPGA fabric.Signed-off-by Conor Dooley <[email protected]>--- .../boot/dts/microchip/microchip-mpfs-fabric.dtsi | 13 +++++++++++++ .../dts/microchip/microchip-mpfs-icicle-kit.dts | 4 ++++ arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi | 1 + 3 files changed, 18 insertions(+) create mode 100644 arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsiarch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +0
-0
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi line 5
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi new file +5
-0@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2020-2021 Microchip Technology Inc */ + +/ { + corePWM0: pwm@41000000 {
Lowercase labels please, so could be "core_pwm0".
Best regards,
Krzysztof
[email protected]
maintainerPATCH v2 15/17 riscv: dts: microchip: refactor icicle kit device tree
In reply to [email protected]From: Conor Dooley <[email protected]>
Assorted minor changes to the MPFS/Icicle kit device tree:
- rename serial to mmuart to match microchip documentation
- enable mmuart4 instead of mmuart0
- move stdout path to serial1 to avoid collision with bootloader running on the e51
- split memory node to match updated fpga design
- move phy0 inside mac1 node to match phy configuration
- add labels where missing (cpus, cache controller)
- add missing address cells & interrupts to MACs
--- .../microchip/microchip-mpfs-icicle-kit.dts | 52 ++++++++------ .../boot/dts/microchip/microchip-mpfs.dtsi | 70 ++++++++++--------- 2 files changed, 68 insertions(+), 54 deletions(-)
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +32 -20
@@ -1,5 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* Copyright (c) 2020 Microchip Technology Inc */ +/* Copyright (c) 2020-2021 Microchip Technology Inc */ /dts-v1/;
@@ -13,25 +13,34 @@ / { compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs"; aliases { - ethernet0 = &emac1; - serial0 = &serial0; - serial1 = &serial1; - serial2 = &serial2; - serial3 = &serial3; + ethernet0 = &mac1; + serial0 = &mmuart0; + serial1 = &mmuart1; + serial2 = &mmuart2; + serial3 = &mmuart3; + serial4 = &mmuart4; }; chosen { - stdout-path = "serial0:115200n8"; + stdout-path = "serial1:115200n8"; }; cpus { timebase-frequency = <RTCCLK_FREQ>; }; - memory@80000000 { + ddrc_cache_lo: memory@80000000 { device_type = "memory"; - reg = <0x0 0x80000000 0x0 0x40000000>; + reg = <0x0 0x80000000 0x0 0x2e000000>; clocks = <&clkcfg CLK_DDRC>; + status = "okay"; + }; + + ddrc_cache_hi: memory@1000000000 { + device_type = "memory"; + reg = <0x10 0x0 0x0 0x40000000>; + clocks = <&clkcfg CLK_DDRC>; + status = "okay"; }; };
@@ -39,19 +48,19 @@ &refclk { clock-frequency = <600000000>; }; -&serial0 { +&mmuart1 { status = "okay"; }; -&serial1 { +&mmuart2 { status = "okay"; }; -&serial2 { +&mmuart3 { status = "okay"; }; -&serial3 { +&mmuart4 { status = "okay"; };
@@ -61,29 +70,32 @@ &mmc { bus-width = <4>; disable-wp; cap-sd-highspeed; + cap-mmc-highspeed; card-detect-delay = <200>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; sd-uhs-sdr104; }; -&emac0 { +&mac0 { phy-mode = "sgmii"; phy-handle = <&phy0>; - phy0: ethernet-phy@8 { - reg = <8>; - ti,fifo-depth = <0x01>; - }; }; -&emac1 { +&mac1 { status = "okay"; phy-mode = "sgmii"; phy-handle = <&phy1>; phy1: ethernet-phy@9 { reg = <9>; - ti,fifo-depth = <0x01>; + ti,fifo-depth = <0x1>; + }; + phy0: ethernet-phy@8 { + reg = <8>; + ti,fifo-depth = <0x1>; }; };
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +36 -34
182 lines not on this page · raw message
Signature · 1 line
2.33.1
Re: [PATCH v2 15/17] riscv: dts: microchip: refactor icicle kit device tree
Quoted 6 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Assorted minor changes to the MPFS/Icicle kit device tree:
- rename serial to mmuart to match microchip documentation
- enable mmuart4 instead of mmuart0
This is not refactoring. Refactoring could include renames, hierarchy/layout differences, naming, coding convention. You are changing features, e.g. using different UART. Please split the changes.
Quoted 50 lines
- move stdout path to serial1 to avoid collision with bootloader running on the e51
- split memory node to match updated fpga design
- move phy0 inside mac1 node to match phy configuration
- add labels where missing (cpus, cache controller)
- add missing address cells & interrupts to MACsSigned-off-by Conor Dooley <[email protected]>--- .../microchip/microchip-mpfs-icicle-kit.dts | 52 ++++++++------ .../boot/dts/microchip/microchip-mpfs.dtsi | 70 ++++++++++--------- 2 files changed, 68 insertions(+), 54 deletions(-)arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +8
-7@@ -1,5 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* Copyright (c) 2020 Microchip Technology Inc */ +/* Copyright (c) 2020-2021 Microchip Technology Inc */ /dts-v1/;@@ -13,25 +13,34 @@ / { compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs"; aliases { - ethernet0 = &emac1; - serial0 = &serial0; - serial1 = &serial1; - serial2 = &serial2; - serial3 = &serial3; + ethernet0 = &mac1; + serial0 = &mmuart0; + serial1 = &mmuart1; + serial2 = &mmuart2; + serial3 = &mmuart3; + serial4 = &mmuart4; }; chosen { - stdout-path = "serial0:115200n8"; + stdout-path = "serial1:115200n8"; }; cpus { timebase-frequency = <RTCCLK_FREQ>; };
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts / { · line 39
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +6
-2- memory@80000000 { + ddrc_cache_lo: memory@80000000 { device_type = "memory"; - reg = <0x0 0x80000000 0x0 0x40000000>; + reg = <0x0 0x80000000 0x0 0x2e000000>; clocks = <&clkcfg CLK_DDRC>; + status = "okay"; + }; + + ddrc_cache_hi: memory@1000000000 {
This looks unrelated to refactoring - split of memory - and needs separate change.
Quoted 32 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +8
-4+ device_type = "memory"; + reg = <0x10 0x0 0x0 0x40000000>; + clocks = <&clkcfg CLK_DDRC>; + status = "okay"; }; };@@ -39,19 +48,19 @@ &refclk { clock-frequency = <600000000>; }; -&serial0 { +&mmuart1 { status = "okay"; }; -&serial1 { +&mmuart2 { status = "okay"; }; -&serial2 { +&mmuart3 { status = "okay"; }; -&serial3 { +&mmuart4 { status = "okay"; };
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts &mmc { · line 76
Quoted 7 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +3
-0@@ -61,29 +70,32 @@ &mmc { bus-width = <4>; disable-wp; cap-sd-highspeed; + cap-mmc-highspeed; card-detect-delay = <200>; + mmc-ddr-1_8v; + mmc-hs200-1_8v;
This looks unrelated to refactoring - new modes for MMC - and needs separate change.
Quoted 112 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +7
-7sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; sd-uhs-sdr104; }; -&emac0 { +&mac0 { phy-mode = "sgmii"; phy-handle = <&phy0>; - phy0: ethernet-phy@8 { - reg = <8>; - ti,fifo-depth = <0x01>; - }; }; -&emac1 { +&mac1 { status = "okay"; phy-mode = "sgmii"; phy-handle = <&phy1>; phy1: ethernet-phy@9 { reg = <9>; - ti,fifo-depth = <0x01>; + ti,fifo-depth = <0x1>; + }; + phy0: ethernet-phy@8 { + reg = <8>; + ti,fifo-depth = <0x1>; }; };arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +9
-9@@ -1,5 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* Copyright (c) 2020 Microchip Technology Inc */ +/* Copyright (c) 2020-2021 Microchip Technology Inc */ /dts-v1/; #include "dt-bindings/clock/microchip,mpfs-clock.h"@@ -16,7 +16,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { compatible = "sifive,e51", "sifive,rocket0", "riscv"; device_type = "cpu"; i-cache-block-size = <64>;@@ -34,7 +34,7 @@ cpu0_intc: interrupt-controller { }; }; - cpu@1 { + cpu1: cpu@1 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -61,7 +61,7 @@ cpu1_intc: interrupt-controller { }; }; - cpu@2 { + cpu2: cpu@2 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -88,7 +88,7 @@ cpu2_intc: interrupt-controller { }; }; - cpu@3 { + cpu3: cpu@3 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -115,7 +115,7 @@ cpu3_intc: interrupt-controller { }; }; - cpu@4 { + cpu4: cpu@4 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -153,8 +153,9 @@ soc { compatible = "simple-bus"; ranges; - cache-controller@2010000 { + cctrllr: cache-controller@2010000 { compatible = "sifive,fu540-c000-ccache", "cache"; + reg = <0x0 0x2010000 0x0 0x1000>; cache-block-size = <64>; cache-level = <2>; cache-sets = <1024>;@@ -162,10 +163,9 @@ cache-controller@2010000 { cache-unified; interrupt-parent = <&plic>; interrupts = <1>, <2>, <3>; - reg = <0x0 0x2010000 0x0 0x1000>; }; - clint@2000000 { + clint: clint@2000000 { compatible = "sifive,fu540-c000-clint", "sifive,clint0"; reg = <0x0 0x2000000 0x0 0xC000>; interrupts-extended = <&cpu0_intc HART_INT_M_SOFT>,
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi plic: interrupt-controller@c000000 { · line 202
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +0
-2@@ -198,15 +198,6 @@ plic: interrupt-controller@c000000 { riscv,ndev = <186>; }; - dma@3000000 { - compatible = "sifive,fu540-c000-pdma";
Removal of nodes does not look like refactoring.
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi plic: interrupt-controller@c000000 { · line 209
Quoted 7 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +0
-7- reg = <0x0 0x3000000 0x0 0x8000>; - interrupt-parent = <&plic>; - interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, - <30>; - #dma-cells = <1>; - }; -
Best regards,
Krzysztof
[email protected]
maintainerRe: [PATCH v2 15/17] riscv: dts: microchip: refactor icicle kit device tree
Quoted 5 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 2 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Quoted 8 lines
Quoted 4 lines
Assorted minor changes to the MPFS/Icicle kit device tree:
- rename serial to mmuart to match microchip documentation
- enable mmuart4 instead of mmuart0This is not refactoring. Refactoring could include renames, hierarchy/layout differences, naming, coding convention. You are changing features, e.g. using different UART. Please split the changes.
will do :)
Quoted 240 lines
Quoted 51 lines
- move stdout path to serial1 to avoid collision with bootloader running on the e51
- split memory node to match updated fpga design
- move phy0 inside mac1 node to match phy configuration
- add labels where missing (cpus, cache controller)
- add missing address cells & interrupts to MACsSigned-off-by Conor Dooley <[email protected]>--- .../microchip/microchip-mpfs-icicle-kit.dts | 52 ++++++++------ .../boot/dts/microchip/microchip-mpfs.dtsi | 70 ++++++++++--------- 2 files changed, 68 insertions(+), 54 deletions(-)arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +8
-7@@ -1,5 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* Copyright (c) 2020 Microchip Technology Inc */ +/* Copyright (c) 2020-2021 Microchip Technology Inc */ /dts-v1/;@@ -13,25 +13,34 @@ / { compatible = "microchip,mpfs-icicle-kit", "microchip,mpfs"; aliases { - ethernet0 = &emac1; - serial0 = &serial0; - serial1 = &serial1; - serial2 = &serial2; - serial3 = &serial3; + ethernet0 = &mac1; + serial0 = &mmuart0; + serial1 = &mmuart1; + serial2 = &mmuart2; + serial3 = &mmuart3; + serial4 = &mmuart4; }; chosen { - stdout-path = "serial0:115200n8"; + stdout-path = "serial1:115200n8"; }; cpus { timebase-frequency = <RTCCLK_FREQ>; };arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts / { · line 39
Quoted 10 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +6
-2- memory@80000000 { + ddrc_cache_lo: memory@80000000 { device_type = "memory"; - reg = <0x0 0x80000000 0x0 0x40000000>; + reg = <0x0 0x80000000 0x0 0x2e000000>; clocks = <&clkcfg CLK_DDRC>; + status = "okay"; + }; + + ddrc_cache_hi: memory@1000000000 {This looks unrelated to refactoring - split of memory - and needs separate change.
Quoted 32 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +8
-4+ device_type = "memory"; + reg = <0x10 0x0 0x0 0x40000000>; + clocks = <&clkcfg CLK_DDRC>; + status = "okay"; }; };@@ -39,19 +48,19 @@ &refclk { clock-frequency = <600000000>; }; -&serial0 { +&mmuart1 { status = "okay"; }; -&serial1 { +&mmuart2 { status = "okay"; }; -&serial2 { +&mmuart3 { status = "okay"; }; -&serial3 { +&mmuart4 { status = "okay"; };arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts &mmc { · line 76
Quoted 7 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +3
-0@@ -61,29 +70,32 @@ &mmc { bus-width = <4>; disable-wp; cap-sd-highspeed; + cap-mmc-highspeed; card-detect-delay = <200>; + mmc-ddr-1_8v; + mmc-hs200-1_8v;This looks unrelated to refactoring - new modes for MMC - and needs separate change.
Quoted 112 lines
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +7
-7sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; sd-uhs-sdr104; }; -&emac0 { +&mac0 { phy-mode = "sgmii"; phy-handle = <&phy0>; - phy0: ethernet-phy@8 { - reg = <8>; - ti,fifo-depth = <0x01>; - }; }; -&emac1 { +&mac1 { status = "okay"; phy-mode = "sgmii"; phy-handle = <&phy1>; phy1: ethernet-phy@9 { reg = <9>; - ti,fifo-depth = <0x01>; + ti,fifo-depth = <0x1>; + }; + phy0: ethernet-phy@8 { + reg = <8>; + ti,fifo-depth = <0x1>; }; };arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +9
-9@@ -1,5 +1,5 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) -/* Copyright (c) 2020 Microchip Technology Inc */ +/* Copyright (c) 2020-2021 Microchip Technology Inc */ /dts-v1/; #include "dt-bindings/clock/microchip,mpfs-clock.h"@@ -16,7 +16,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { compatible = "sifive,e51", "sifive,rocket0", "riscv"; device_type = "cpu"; i-cache-block-size = <64>;@@ -34,7 +34,7 @@ cpu0_intc: interrupt-controller { }; }; - cpu@1 { + cpu1: cpu@1 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -61,7 +61,7 @@ cpu1_intc: interrupt-controller { }; }; - cpu@2 { + cpu2: cpu@2 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -88,7 +88,7 @@ cpu2_intc: interrupt-controller { }; }; - cpu@3 { + cpu3: cpu@3 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -115,7 +115,7 @@ cpu3_intc: interrupt-controller { }; }; - cpu@4 { + cpu4: cpu@4 { compatible = "sifive,u54-mc", "sifive,rocket0", "riscv"; d-cache-block-size = <64>; d-cache-sets = <64>;@@ -153,8 +153,9 @@ soc { compatible = "simple-bus"; ranges; - cache-controller@2010000 { + cctrllr: cache-controller@2010000 { compatible = "sifive,fu540-c000-ccache", "cache"; + reg = <0x0 0x2010000 0x0 0x1000>; cache-block-size = <64>; cache-level = <2>; cache-sets = <1024>;@@ -162,10 +163,9 @@ cache-controller@2010000 { cache-unified; interrupt-parent = <&plic>; interrupts = <1>, <2>, <3>; - reg = <0x0 0x2010000 0x0 0x1000>; }; - clint@2000000 { + clint: clint@2000000 { compatible = "sifive,fu540-c000-clint", "sifive,clint0"; reg = <0x0 0x2000000 0x0 0xC000>; interrupts-extended = <&cpu0_intc HART_INT_M_SOFT>,arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi plic: interrupt-controller@c000000 { · line 202
Quoted 5 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +0
-2@@ -198,15 +198,6 @@ plic: interrupt-controller@c000000 { riscv,ndev = <186>; }; - dma@3000000 { - compatible = "sifive,fu540-c000-pdma";Removal of nodes does not look like refactoring.
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi plic: interrupt-controller@c000000 { · line 209
Quoted 7 lines
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +0
-7- reg = <0x0 0x3000000 0x0 0x8000>; - interrupt-parent = <&plic>; - interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, - <30>; - #dma-cells = <1>; - }; -Best regards,
Krzysztof
[email protected]
maintainerPATCH v2 16/17 riscv: dts: microchip: update peripherals in icicle kit device tree
In reply to [email protected]From: Conor Dooley <[email protected]>
Add new peripherals to the MPFS, and enable them in the Icicle kit device tree:
2x SPI, QSPI, 3x GPIO, 2x I2C, Real Time Counter, PCIE controller, USB host & system controller.
--- .../microchip/microchip-mpfs-icicle-kit.dts | 53 ++++++ .../boot/dts/microchip/microchip-mpfs.dtsi | 171 ++++++++++++++++++ 2 files changed, 224 insertions(+)
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts +53 -0
@@ -80,6 +80,26 @@ &mmc { sd-uhs-sdr104; }; +&spi0 { + status = "okay"; +}; + +&spi1 { + status = "okay"; +}; + +&qspi { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + &mac0 { phy-mode = "sgmii"; phy-handle = <&phy0>;
@@ -99,6 +119,39 @@ phy0: ethernet-phy@8 { }; }; +&gpio2 { + interrupts = <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>, + <53>, <53>, <53>, <53>; + status = "okay"; +}; + +&rtc { + status = "okay"; +}; + +&usb { + status = "okay"; + dr_mode = "host"; +}; + +&mbox { + status = "okay"; +}; + +&syscontroller { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + &corePWM0 { status = "okay"; };
arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi +171 -0
182 lines not on this page · raw message
Signature · 1 line
2.33.1
[email protected]
maintainerPATCH v2 17/17 MAINTAINERS: update riscv/microchip entry
In reply to [email protected]From: Conor Dooley <[email protected]>
Update the RISC-V/Microchip entry by adding the microchip dts directory and myself as maintainer
--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
@@ -16348,8 +16348,10 @@ K: riscv RISC-V/MICROCHIP POLARFIRE SOC SUPPORT M: Lewis Hanly <[email protected]> +M: Conor Dooley <[email protected]> L: [email protected] S: Supported +F: arch/riscv/boot/dts/microchip/ F: drivers/mailbox/mailbox-mpfs.c F: drivers/soc/microchip/ F: include/soc/microchip/mpfs.h
Signature · 1 line
2.33.1
Re: [PATCH v2 17/17] MAINTAINERS: update riscv/microchip entry
Quoted 16 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Update the RISC-V/Microchip entry by adding the microchip dts directory and myself as maintainer
Signed-off-by Conor Dooley <[email protected]>--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)MAINTAINERS +0
-0
MAINTAINERS K: riscv · line 16357
Quoted 10 lines
MAINTAINERS +2
-0@@ -16348,8 +16348,10 @@ K: riscv RISC-V/MICROCHIP POLARFIRE SOC SUPPORT M: Lewis Hanly <[email protected]> +M: Conor Dooley <[email protected]> L: [email protected] S: Supported +F: arch/riscv/boot/dts/microchip/ F: drivers/mailbox/mailbox-mpfs.c F: drivers/soc/microchip/ F: include/soc/microchip/mpfs.h
Good to have the DTS covered, so FWIW:
You still should get Lewis' ack (unless he merges it)
Best regards,
Krzysztof
[email protected]
maintainerRe: [PATCH v2 17/17] MAINTAINERS: update riscv/microchip entry
Quoted 31 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 16 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Update the RISC-V/Microchip entry by adding the microchip dts directory and myself as maintainer
Signed-off-by Conor Dooley <[email protected]>--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)MAINTAINERS +0
-0MAINTAINERS K: riscv · line 16357
Quoted 10 lines
MAINTAINERS +2
-0@@ -16348,8 +16348,10 @@ K: riscv RISC-V/MICROCHIP POLARFIRE SOC SUPPORT M: Lewis Hanly <[email protected]> +M: Conor Dooley <[email protected]> L: [email protected] S: Supported +F: arch/riscv/boot/dts/microchip/ F: drivers/mailbox/mailbox-mpfs.c F: drivers/soc/microchip/ F: include/soc/microchip/mpfs.hGood to have the DTS covered, so FWIW:
Quoted 3 lines
You still should get Lewis' ack (unless he merges it)
Aye, it'll be an ack. We don't currently have a tree & would rather do this via risc-v than the at91/sam arm soc tree.
Quoted 4 lines
Best regards,
Krzysztof
Palmer Dabbelt
maintainerRe: [PATCH v2 17/17] MAINTAINERS: update riscv/microchip entry
Quoted 34 lines · On Thu, 23 Dec 2021 06:56:45 PST (-0800), [email protected] wrote:
Quoted 33 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 16 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Update the RISC-V/Microchip entry by adding the microchip dts directory and myself as maintainer
Signed-off-by Conor Dooley <[email protected]>--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)MAINTAINERS +0
-0MAINTAINERS K: riscv · line 16357
Quoted 10 lines
MAINTAINERS +2
-0@@ -16348,8 +16348,10 @@ K: riscv RISC-V/MICROCHIP POLARFIRE SOC SUPPORT M: Lewis Hanly <[email protected]> +M: Conor Dooley <[email protected]> L: [email protected] S: Supported +F: arch/riscv/boot/dts/microchip/ F: drivers/mailbox/mailbox-mpfs.c F: drivers/soc/microchip/ F: include/soc/microchip/mpfs.hGood to have the DTS covered, so FWIW:
Quoted 2 lines
Quoted 1 line
You still should get Lewis' ack (unless he merges it)
Aye, it'll be an ack. We don't currently have a tree & would rather do this via risc-v than the at91/sam arm soc tree.
WFM. I'll be awaiting the ack. I don't see any fundamental issues from my end, as long is it's got all the acks/reviews then I'm generally fine with this sort of stuff. I'll take a look before merging it, I'm kind of buried right now. Sorry!
Quoted 5 lines
Quoted 4 lines
Best regards,
Krzysztof
[email protected]
Reviewed-byRE: [PATCH v2 17/17] MAINTAINERS: update riscv/microchip entry
In reply to [email protected]Quoted 10 lines · Krzysztof Kozlowski
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 6 lines · On 17/12/2021 10:33, [email protected] wrote:
From: Conor Dooley <[email protected]>
Update the RISC-V/Microchip entry by adding the microchip dts directory and myself as maintainer
Signed-off-by Conor Dooley <[email protected]>
Quoted 22 lines
Quoted 10 lines
--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)MAINTAINERS index renamed from MAINTAINERS +0
-0
7a2345ce8521..3b1d6be7bd56100644MAINTAINERS K: riscv · line 16357
Quoted 10 lines
MAINTAINERS +2
-0@@ -16348,8 +16348,10 @@ K: riscv RISC-V/MICROCHIP POLARFIRE SOC SUPPORT M: Lewis Hanly <[email protected]> +M: Conor Dooley <[email protected]> L: [email protected] S: Supported +F: arch/riscv/boot/dts/microchip/ F: drivers/mailbox/mailbox-mpfs.c F: drivers/soc/microchip/ F: include/soc/microchip/mpfs.hGood to have the DTS covered, so FWIW:
Quoted 3 lines
You still should get Lewis' ack (unless he merges it)
Aye, it'll be an ack. We don't currently have a tree & would rather do this via risc-v than the at91/sam arm soc tree.
Quoted 4 lines
Best regards,
Krzysztof
Hi Conor,
Quoted 4 lines · On Fri, Dec 17, 2021 at 10:31 AM <[email protected]> wrote:
Also depends on Geert's format changes to interrupt grouping etc [2].
Additionally, the interrupt-extended warnings on the plic/clint are cleared by [3] & [4], which lore appears to have been very confused about.
Right, it ended up being even more messier than I thought, and confuses "b4 am" too.
I will resend these 3 series later today.
Quoted 4 lines
[1] https://lore.kernel.org/linux-clk/[email protected]/T/
[2] https://lore.kernel.org/linux-riscv/[email protected]/T/
[3] https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/
[4] https://patchwork.kernel.org/project/linux-riscv/cover/[email protected]/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds