From: Conor Dooley <conor@kernel.org>
To: Stefan Wahren <wahrenst@gmx.net>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Ray Jui <rjui@broadcom.com>,
Scott Branden <sbranden@broadcom.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Andrea della Porta <andrea.porta@suse.com>,
bcm-kernel-feedback-list@broadcom.com,
linux-arm-kernel@lists.infradead.org,
kernel-list@raspberrypi.com, devicetree@vger.kernel.org
Subject: Re: [PATCH V3 RESEND 2/4] dt-bindings: interrupt-controller: convert bcm2836-l1-intc to yaml
Date: Tue, 13 Aug 2024 17:05:25 +0100 [thread overview]
Message-ID: <20240813-defective-angled-8a429e78e8e5@spud> (raw)
In-Reply-To: <20240812200358.4061-3-wahrenst@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 4054 bytes --]
On Mon, Aug 12, 2024 at 10:03:56PM +0200, Stefan Wahren wrote:
> Convert the DT binding document for BCM2836 per-CPU interrupt
> controller from .txt to YAML.
>
> Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
> ---
> .../brcm,bcm2836-l1-intc.txt | 37 --------------
> .../brcm,bcm2836-l1-intc.yaml | 51 +++++++++++++++++++
> 2 files changed, 51 insertions(+), 37 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.txt
> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.txt
> deleted file mode 100644
> index 8ced1696c325..000000000000
> --- a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.txt
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -BCM2836 per-CPU interrupt controller
> -
> -The BCM2836 has a per-cpu interrupt controller for the timer, PMU
> -events, and SMP IPIs. One of the CPUs may receive interrupts for the
> -peripheral (GPU) events, which chain to the BCM2835-style interrupt
> -controller.
> -
> -Required properties:
> -
> -- compatible: Should be "brcm,bcm2836-l1-intc"
> -- reg: Specifies base physical address and size of the
> - registers
> -- interrupt-controller: Identifies the node as an interrupt controller
> -- #interrupt-cells: Specifies the number of cells needed to encode an
> - interrupt source. The value shall be 2
> -
> -Please refer to interrupts.txt in this directory for details of the common
> -Interrupt Controllers bindings used by client devices.
> -
> -The interrupt sources are as follows:
> -
> -0: CNTPSIRQ
> -1: CNTPNSIRQ
> -2: CNTHPIRQ
> -3: CNTVIRQ
> -8: GPU_FAST
> -9: PMU_FAST
> -
> -Example:
> -
> -local_intc: local_intc {
> - compatible = "brcm,bcm2836-l1-intc";
> - reg = <0x40000000 0x100>;
> - interrupt-controller;
> - #interrupt-cells = <2>;
> - interrupt-parent = <&local_intc>;
> -};
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml
> new file mode 100644
> index 000000000000..5fda626c80ce
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2836-l1-intc.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm2836-l1-intc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: BCM2836 per-CPU interrupt controller
> +
> +maintainers:
> + - Stefan Wahren <wahrenst@gmx.net>
> + - Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
> +
> +description:
> + The BCM2836 has a per-cpu interrupt controller for the timer, PMU
> + events, and SMP IPIs. One of the CPUs may receive interrupts for the
> + peripheral (GPU) events, which chain to the BCM2835-style interrupt
> + controller.
> +
> +allOf:
> + - $ref: /schemas/interrupt-controller.yaml#
> +
> +properties:
> + compatible:
> + const: brcm,bcm2836-l1-intc
> +
> + reg:
> + maxItems: 1
> +
> + interrupt-controller: true
> +
> + '#interrupt-cells':
> + const: 2
> +
> +required:
> + - compatible
> + - reg
> + - interrupt-controller
> + - '#interrupt-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + local_intc: interrupt-controller@40000000 {
If, for some reason, there's a respin - drop the label.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
> + compatible = "brcm,bcm2836-l1-intc";
> + reg = <0x40000000 0x100>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + interrupt-parent = <&local_intc>;
> + };
> +...
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-08-13 16:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 20:03 [PATCH V3 RESEND 0/4] ARM: dts: bcm283x: Improve device-trees and bindings Stefan Wahren
2024-08-12 20:03 ` [PATCH V3 RESEND 1/4] dt-bindings: timer: convert bcm2835-system-timer bindings to YAML Stefan Wahren
2024-08-13 16:06 ` Conor Dooley
2024-08-13 20:24 ` Florian Fainelli
2024-08-12 20:03 ` [PATCH V3 RESEND 2/4] dt-bindings: interrupt-controller: convert bcm2836-l1-intc to yaml Stefan Wahren
2024-08-13 16:05 ` Conor Dooley [this message]
2024-08-13 20:24 ` Florian Fainelli
2024-08-12 20:03 ` [PATCH V3 RESEND 3/4] ARM: dts: bcm2837/bcm2712: adjust local intc node names Stefan Wahren
2024-08-13 20:25 ` Florian Fainelli
2024-08-12 20:03 ` [PATCH V3 RESEND 4/4] ARM: dts: bcm271x: add missing properties to local_intc Stefan Wahren
2024-08-13 20:25 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240813-defective-angled-8a429e78e8e5@spud \
--to=conor@kernel.org \
--cc=andrea.porta@suse.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=kernel-list@raspberrypi.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=rjui@broadcom.com \
--cc=robh@kernel.org \
--cc=sbranden@broadcom.com \
--cc=tglx@linutronix.de \
--cc=wahrenst@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox