From patchwork Mon Aug 12 10:36:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13760424 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7662C3DA7F for ; Mon, 12 Aug 2024 10:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1oRfQu9T2MITEuhucVL1NP6tSY/GRs7k2gT6QM5aKA4=; b=HTuMkzw9HQXc8WXv4ikl2YU0Vy 5tu7qEfJ+Q1gCGqxH/n2PzDUxgOWosfFbxWQkbTHBn5Ek1E/ZjqJQxdVbO1gSEMY8N5bvEmKFjpw4 VjNyIOinHbrp9T9vKw8Asl7vf/YLmHXeQJjmRMQ7w7kmSRS6WRYqkqPRMkOS5nFAYszravDowvael x4F3TPxmh6RZ66ncIjJoCLoZ34Tvd6s1AoHbbWkN6XvEm5bLaZSCHLmriznyeWUg2RHX6pnO/AC3L WnLWN21EfZ8lFHeaKY/TGQ/NqAWdukdvbDIaE9XwFmmZo5ISAT6agOy9/C2IKytHNt2Lbvd+Laeah XXd8Rqtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdSQt-00000000374-26DO; Mon, 12 Aug 2024 10:37:47 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdSQH-0000000031v-3pd0 for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 10:37:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1723459016; x=1724063816; i=wahrenst@gmx.net; bh=1oRfQu9T2MITEuhucVL1NP6tSY/GRs7k2gT6QM5aKA4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-Id:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=swc5ueX22hfkk/lunXVngc2Zxq6Z0rRXuqKXYu10HZsh2x7K0P1erKZVqugROezN yFNpCoWCKjWovjBY9YW9sCwcK0ld9aBVMzo4Ebd027prcrQUV0L0JtTCjBdBM3Vzs /yT7u1Jl8c57j8dsmTgRmZFKM5eQJxDICn29Af+TfLWieNGuQPPRRsV2kQ2yy94JR fe+VCuUIZZYv1BQv0EkQwdismz1+c1ufj76vXpWh39/LxoDOzcBxnCZy5iN/2qCsz HhMyAcwBUzvxfoBIfmCgE8GdH5XitOeEL7DON1oHjP4URDU4CQ2tt3za2X50oqYgj Gyu5Wu5MT5xHQDyoVg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M4s51-1sepSx25rj-003ObD; Mon, 12 Aug 2024 12:36:56 +0200 From: Stefan Wahren To: Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Daniel Lezcano Cc: bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, kernel-list@raspberrypi.com, Stefan Wahren Subject: [PATCH V3 2/4] dt-bindings: interrupt-controller: convert bcm2836-l1-intc to yaml Date: Mon, 12 Aug 2024 12:36:50 +0200 Message-Id: <20240812103652.29221-3-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240812103652.29221-1-wahrenst@gmx.net> References: <20240812103652.29221-1-wahrenst@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:PyPn8fR+0pQaMa/CL7hPoq1dejZL/Ve0nMPq1mUB4/e2BK3qK4x B1Qzb1FuZMYE7F+C4BRaJbP1B3HbLKvSheq0wi7v8tfN2qBmJ0bn/MUiM7Gw5mrr3twV7gr 99H1TqKQLqR/CYQyYTgjvAk8zrHJJ37ILNZqiiPHXT5HkkH8PdXNeuzRW/SvVLTmTSma8Zw EiCklK8oVd2vrUrecraJg== UI-OutboundReport: notjunk:1;M01:P0:IRXSDsxbz7M=;jun0z3Ra2rl+PxcRhoxrh8q3tPd 7qui7WozJPxDr0XxuxCqnD0I27ysE2rLRTVNKMNdd/S5YiPtLKG0Uhqx7dFI+gigm1WLDgjEY r1G/+kuCin+oJ7b4IIqPawhiUyV9IF7L6qcq0Gn9Diso6X9VMdh5g2uGQ1WugDgtFuA4De+4g SuRRctSJlydzeyBU9KZbOOyedwZgrmQn3k92+RFWZAoukilqI4HIuZfF68tghBgIWT7vl6pys +TQtkkpQC+x3cDM/mvHoLQi2Tx8v8Ytno27y4xOGrd9DRwzuDtRvcAHYc/DJtToc2rLKG7jRH ELeD4m0PbMGvdlaunhECjtmxDIm34MAsLJ+8xh7YO8bD7zekCnpHtosKqQZntFXaeBcTpGRnt aD/TufL942SdegbhaD++0KfJ6fHRoYvOIKS7+zd3Nx+e+W0fZpcguh2JrXl8C4/uE4O72lJHM EOo204XBsGOLf9PsrhHl+T2V4CxD+y+b79sx5eOZePRUy0gegzAgdJMES8fJVpmAdDCtgkump hpW0Dt14UTFLMY4iCOUg93YFjY2ZgGGVA+9q+eY11SwyGaK4w7yJIXWPZNKwoF7UzMSvTdnQp mk0tI9eC99NAkkWBME57UUZ5mvEupKX/lB6urFcsWR4uzUx4L80uuLW+VQcmiYsLRJpPh+65K FPH91MtTuymjFnodha0IQXE57IGTlNPOXyUqaNtMFXGUhKvX7CNO6BDlSD5F5C5LjAnv5BiNB /0PzCi4L5Cm2G1tAxygopxYY2Ra4T6GDDfqs1EyKRDk4XbhLpbsHCelN6v2nFOv4GuQ9q54fF k68YJKuNry7AmjrNxOp/q2Cw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_033710_372596_90ADB89A X-CRM114-Status: GOOD ( 12.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the DT binding document for BCM2836 per-CPU interrupt controller from .txt to YAML. Signed-off-by: Stefan Wahren --- .../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 -- 2.34.1 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 + - Raspberry Pi Kernel Maintenance + +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 { + compatible = "brcm,bcm2836-l1-intc"; + reg = <0x40000000 0x100>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&local_intc>; + }; +...