From patchwork Sat Jun 11 18:07:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 12878614 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 5D4F2C43334 for ; Sat, 11 Jun 2022 18:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jeX/sqzEFRh2wiWluLoRPbna36fAMS4hdnU7vn56tqk=; b=mTVAFBVRMuPVmw 3krPLedKPUny57s2pgmueqZdHu6RDHZDJrp3n6YXPMkpa248pK/C1krenXEInZvwzb4320O3ucWJU NqS1X/DNol+qwUIZCwanIma+wPBXN70biZeSdVVWVkRVc7tNtnHgO1GGYA/h1YzCmixeoOrPx2Lik oHc/4GoFKb8kH5moKYGGfXIQtBN20kdLXidYZn9FI0GFbmgcvb5UEqHm1au86uA7XUMGv+2Q0J1gR xGzUwUTlLGWCrV8Jx4zlpxqJ5u5/eCKDBF1qZo6l4cIxxZ5YCJIACYwEC9vV6lqPlbwv+UR9Onptt 87zrV1hhzReaAkoVUXww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o05Vx-00E68E-CJ; Sat, 11 Jun 2022 18:07:13 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o05Vu-00E674-8T; Sat, 11 Jun 2022 18:07:11 +0000 Received: by mail-ed1-x536.google.com with SMTP id v19so2565916edd.4; Sat, 11 Jun 2022 11:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=TUqRlKRoE9aIbbU4h+MYAoDxFTivbQhtgPpMRCTQ/50=; b=Sv4NMZPVTsRK4kn4MOK4Odc/SDaRiJcfpZPetRiKBHM9aTlUzS37ZBW7z4/jAYXH3d ca3ISCGO+ipIbvfoNFiT3vZWE0tF8W7+cc/hS7JldJ1t8TIOzHVgxih+sOs7fKbfeL2r 9KPYtHcZ29eHbqi2qj6XlP7NiA1V0JSPsDiCX5bNBr+loG3fW0Jqtou0Kw/HUwV1qyri Xoo6AgJZNxJmHHJe13QHkNhayoMIrfmDbw928I0OUC19XEfok3djwsI1Qbx2jo/vIPLF VbPxrBURuoCTtTZCFD+NoBzovzXcEQ95gGfSDTJMSKxk7hRQf9ruRDY4qvpU7DQEzVVc omUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=TUqRlKRoE9aIbbU4h+MYAoDxFTivbQhtgPpMRCTQ/50=; b=1q9WglZoSuhbExrArfsFe8AQsni6AXt4w69SOK28gHwHcqRnAvUtlRJm2BVr/60zcR Y6Qqom567Zf84vigKXqPOZom0cZmB4QxqnjVOaU+Mi17jimPBNofajphLCGCli6FUszw yghmsRvcQy4cc1Yjmzxi49HoGLu5fLRPsIccPg+E1LQSjsFQfMy/KHN8O7GzK+C7tSCR yL8F8kOeKlTmQA7IAw5IDsatpI+YbmjX5u3f8DwCWdW+MtB7QO2dI0baZMWI00xQ12Hy iH1N7sFCja6BuuCcy0WCIQGv99xYy+EcyINRI+2UVm5EHZcoNHEZ+QH5jOEop6uDpAhU U4Kw== X-Gm-Message-State: AOAM530SkoeCLEhJtUu19UURtC6unG5wziUpQbV5zYM+rbszMMJ/q7kw IV2moinZqUTINf7TE+xzdHQ= X-Google-Smtp-Source: ABdhPJwO73AXLA4uNmIh/O9IIqTIq37jMZLUGyJkTeTp7kruz9HoFN6jJPoCdEBgkThPEo6HAJkcKQ== X-Received: by 2002:a05:6402:34cc:b0:431:67ed:96a0 with SMTP id w12-20020a05640234cc00b0043167ed96a0mr34329668edc.372.1654970825959; Sat, 11 Jun 2022 11:07:05 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id d13-20020a170906640d00b006fee28d459csm1308455ejm.224.2022.06.11.11.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 11:07:05 -0700 (PDT) Date: Sat, 11 Jun 2022 20:07:03 +0200 From: Stanislav Jakubek To: Manivannan Sadhasivam , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: interrupt-controller: Convert rda,8810pl-intc to YAML Message-ID: <20220611180703.GA24988@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220611_110710_358918_DF493CC1 X-CRM114-Status: GOOD ( 17.70 ) 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 RDA Micro interrupt controller bindings to DT schema format. Signed-off-by: Stanislav Jakubek Reviewed-by: Manivannan Sadhasivam --- Changes in v2: - drop the interrupt sources header file .../interrupt-controller/rda,8810pl-intc.txt | 61 ------------------- .../interrupt-controller/rda,8810pl-intc.yaml | 43 +++++++++++++ MAINTAINERS | 2 +- 3 files changed, 44 insertions(+), 62 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt deleted file mode 100644 index e0062aebf025..000000000000 --- a/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt +++ /dev/null @@ -1,61 +0,0 @@ -RDA Micro RDA8810PL Interrupt Controller - -The interrupt controller in RDA8810PL SoC is a custom interrupt controller -which supports up to 32 interrupts. - -Required properties: - -- compatible: Should be "rda,8810pl-intc". -- reg: Specifies base physical address of the registers set. -- 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. - -The interrupt sources are as follows: - -ID Name ------------- -0: PULSE_DUMMY -1: I2C -2: NAND_NFSC -3: SDMMC1 -4: SDMMC2 -5: SDMMC3 -6: SPI1 -7: SPI2 -8: SPI3 -9: UART1 -10: UART2 -11: UART3 -12: GPIO1 -13: GPIO2 -14: GPIO3 -15: KEYPAD -16: TIMER -17: TIMEROS -18: COMREG0 -19: COMREG1 -20: USB -21: DMC -22: DMA -23: CAMERA -24: GOUDA -25: GPU -26: VPU_JPG -27: VPU_HOST -28: VOC -29: AUIFC0 -30: AUIFC1 -31: L2CC - -Example: - apb@20800000 { - compatible = "simple-bus"; - ... - intc: interrupt-controller@0 { - compatible = "rda,8810pl-intc"; - reg = <0x0 0x1000>; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; diff --git a/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml new file mode 100644 index 000000000000..96d6285d0087 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/rda,8810pl-intc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RDA Micro RDA8810PL interrupt controller + +maintainers: + - Manivannan Sadhasivam + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + const: rda,8810pl-intc + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + +additionalProperties: false + +examples: + - | + intc: interrupt-controller@0 { + compatible = "rda,8810pl-intc"; + reg = <0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <2>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index f0a90b256b26..58a35519b7c4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2590,7 +2590,7 @@ L: linux-unisoc@lists.infradead.org (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/arm/rda.yaml F: Documentation/devicetree/bindings/gpio/gpio-rda.yaml -F: Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.txt +F: Documentation/devicetree/bindings/interrupt-controller/rda,8810pl-intc.yaml F: Documentation/devicetree/bindings/serial/rda,8810pl-uart.yaml F: Documentation/devicetree/bindings/timer/rda,8810pl-timer.yaml F: arch/arm/boot/dts/rda8810pl-*