From patchwork Fri May 27 12:56:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 12863331 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 537A0C433F5 for ; Fri, 27 May 2022 12:58:05 +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=WO2Ky/SLRPlcxEYjeHSUD866jEIk7B3NOA9687avdN0=; b=DxUWD7+qa1vV1q 7lvnKPFickg0weEzWe4VjYTBT/qRKAY0NBPRSmQH73xW1KKEQ8ZNxKxAo5PDMQivtuyFTgAz4UpKJ avZDcu9nBrVk+vZRatWisvR1dyEE3qtVFQUW8VHAq3LcbfyDuipe6GmmLVYy3xvtaxuWfcNJx68wD JvkHxZGHHUt3qJKZbgbayI1/FXOIK0MF/hWNU+uN609qASR9gryUNUBqKy6FvV48vSIvYlQZLhUX0 Lg1Mdb7MWmDCz2rgCVOimebz6fQKYN8FX2iFecPcRHuGEqSabh+UQ9E5l2pkPn6xE45YEY06tv+39 +xMd1txD9VKazdu/7/TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuZWP-0004m0-B1; Fri, 27 May 2022 12:56:53 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuZWL-0004kK-1g; Fri, 27 May 2022 12:56:51 +0000 Received: by mail-lj1-x22d.google.com with SMTP id q1so4866767ljb.5; Fri, 27 May 2022 05:56:48 -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=dcyH7m92bzxTwEdfuRH/fSh8OmK+syZivJMBcZzMrm4=; b=DbhHorpb3yDC8h72hqhppfJ3D7ZnHk9hQTkXFAPYlUaFhVLyfz6rB3JLvHclScG9/L Hu5nkEhDf+IAj6XAjFevwW5KNL7vtqzCBKrG5/aechqulieMUDc3ZIjr4FyoQBLDQV4U SipVVdKcO0NOdGCaT5fNhM2D2F51mL1ld4NFB38uV++xWz0zw0dLgv0oLdaWXw3K8+X1 j1av3Quli49X9W/iA2xJm0NdeeCEApyAm57wJeDacWvaETQhHtHRyFrdRNLkOn5By+s0 Vqzmf85NNAzKS9dkjxS7VdwQbAIS7zZO6aobMtZp6vmxhetbNEwQJ1dMyK/YzWXo7Bzz gC6w== 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=dcyH7m92bzxTwEdfuRH/fSh8OmK+syZivJMBcZzMrm4=; b=u+Btu7s607cnQNUeARJOoIVXjgVd2sNXMoOD/G9pu5Nx+Cy0r42um8okAcc//fkAGO 9gb4Cey3mOHoHg22/2zGZ+vtfIww3C0JAEGhNIoUxgT++alQES1BEOFUhbJy0cB8GJk9 6VMy5kF+dFVBG322htgj9uu4iBfaA4jx3Mec/YavyBR1ZGTIhbjfFQVvIMr3DDmWWvKO d3aNRXGxP1Vm60zZk+zq+cTMWgZ1EF47SwauZM8J4FGtEmdlAb+6QcWLcGqQ9F+93CGL ATaGZF8HTG3gYOKpMID1L39xsciihE8odAkbEST4zFfFy6ZcZ/1rZzb+C94II0j7f5x2 2Hyw== X-Gm-Message-State: AOAM531kLWhrtH37H3MHRytOJ+zpVFtS+mqva1hnglIr8mIjQgAn3AzW RiQUUhotsPqACQT1mREUOW7Vnx4uXAg= X-Google-Smtp-Source: ABdhPJx8y3ash2TOIvgO8oHxvDtZ9AiZR6hm11R/Q+fSW8bGOVT9tSZx3bBFN3o7c7WqgA81sdIvQg== X-Received: by 2002:a17:907:381:b0:6fe:9ca8:c4b4 with SMTP id ss1-20020a170907038100b006fe9ca8c4b4mr35975155ejb.147.1653656195811; Fri, 27 May 2022 05:56:35 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id q9-20020a50cc89000000b0042ac2705444sm2077314edi.58.2022.05.27.05.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 05:56:35 -0700 (PDT) Date: Fri, 27 May 2022 14:56:33 +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] dt-bindings: interrupt-controller: Convert rda,8810pl-intc to YAML Message-ID: <20220527125633.GA5145@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-20220527_055649_131568_0D30F986 X-CRM114-Status: GOOD ( 18.02 ) 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 --- Didn't know what to do about the interrupt sources listed in the original txt file, so I've split them off into a separate file. Hope that's okay. .../interrupt-controller/rda,8810pl-intc.txt | 61 ------------------- .../interrupt-controller/rda,8810pl-intc.yaml | 43 +++++++++++++ MAINTAINERS | 2 +- .../dt-bindings/interrupt-controller/rda-ic.h | 40 ++++++++++++ 4 files changed, 84 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 create mode 100644 include/dt-bindings/interrupt-controller/rda-ic.h 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-* diff --git a/include/dt-bindings/interrupt-controller/rda-ic.h b/include/dt-bindings/interrupt-controller/rda-ic.h new file mode 100644 index 000000000000..8d257cce4f9e --- /dev/null +++ b/include/dt-bindings/interrupt-controller/rda-ic.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_RDA_IC_H +#define _DT_BINDINGS_INTERRUPT_CONTROLLER_RDA_IC_H + +#include + +#define RDA_IC_PULSE_DUMMY 0 +#define RDA_IC_I2C 1 +#define RDA_IC_NAND_NFSC 2 +#define RDA_IC_SDMMC1 3 +#define RDA_IC_SDMMC2 4 +#define RDA_IC_SDMMC3 5 +#define RDA_IC_SPI1 6 +#define RDA_IC_SPI2 7 +#define RDA_IC_SPI3 8 +#define RDA_IC_UART1 9 +#define RDA_IC_UART2 10 +#define RDA_IC_UART3 11 +#define RDA_IC_GPIO1 12 +#define RDA_IC_GPIO2 13 +#define RDA_IC_GPIO3 14 +#define RDA_IC_KEYPAD 15 +#define RDA_IC_TIMER 16 +#define RDA_IC_TIMEROS 17 +#define RDA_IC_COMREG0 18 +#define RDA_IC_COMREG1 19 +#define RDA_IC_USB 20 +#define RDA_IC_DMC 21 +#define RDA_IC_DMA 22 +#define RDA_IC_CAMERA 23 +#define RDA_IC_GOUDA 24 +#define RDA_IC_GPU 25 +#define RDA_IC_VPU_JPG 26 +#define RDA_IC_VPU_HOST 27 +#define RDA_IC_VOC 28 +#define RDA_IC_AUIFC0 29 +#define RDA_IC_AUIFC1 30 +#define RDA_IC_L2CC 31 + +#endif