Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2438648ioo; Sat, 28 May 2022 13:43:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt/7Vpf9WwHdNVO/8/Mcsh/2uZR8+X3P1vMMc3Zyo2xYA9jaXrdGLUcvMjqZMC59FIN83d X-Received: by 2002:a05:6a00:21c8:b0:4c4:4bd:dc17 with SMTP id t8-20020a056a0021c800b004c404bddc17mr49612988pfj.57.1653770602793; Sat, 28 May 2022 13:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770602; cv=none; d=google.com; s=arc-20160816; b=nM6ANlIO75GTwWQ7F4RpzJ0Q88VETQ38HCCdIeUm5CdqzrKGOQYkR9tPnH1KMzrp59 Ks88samI3fQY7hBGtA28etfz0EysfAvaspsPMglr77cG4TzQuPDh+pfKaEvcPYu5JR0U 9W2M1a5fdZaWOgEjlAk7D094mEYmij83Ghs3+hK4DB57NZHewT1xFCpVk3HgmG5/3QPg yEs9QFVbMTpnR5CtUU0ORNEytKpaeydlTAp7qD+OlHaYIBCKl8p30p+uc7AHrhhN0JKE MlX9JT/Y3oqzXF5C6ElfwbTiYTrlGF8iI+cuiYrUw17naa1dn7X7VQfqoqb/JqiUL7RL vyog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=dcyH7m92bzxTwEdfuRH/fSh8OmK+syZivJMBcZzMrm4=; b=Sav18/rTZDizj9ZcJcEcyP6i0M571BL3HiKpCmbMxcMDakqszteRQViSEhuboCzNzS ciqdIKllyoE0OfPQc1PXzF5aZY2r9XFpBCBM5UFmM934LKNXrgS539PvSvvNXtCmn+K4 mNtw5r7ibC2zhpzz4OS9w1xxUHaPF1MmoCKpLCZUwTswAWQSxVprOcCpSrHGsyRu82Yb EVlHNAPWujv/1vfi4FJzuI5FnB5DRX4CuKgJniY0BcIys5mj4DQ7ISRwAUVSNiQbT1uW UkdUUHy0P2JDHyMrrxbhaLoxjEeydKN0nRGFmhWealkM8eeEL0kELlx8UzeGw+y2iVLZ 3EOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DbhHorpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o3-20020a170902d4c300b00163852a9881si10265363plg.343.2022.05.28.13.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DbhHorpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 08F841973F0; Sat, 28 May 2022 12:43:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350397AbiE0M4u (ORCPT + 99 others); Fri, 27 May 2022 08:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242653AbiE0M4t (ORCPT ); Fri, 27 May 2022 08:56:49 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D905C29CB1; Fri, 27 May 2022 05:56:47 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id br17so6802390lfb.2; Fri, 27 May 2022 05:56:47 -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=Q8TofiSz1TXgRfbojCKKYzklo0NxbWvtWfdwvzQrts2VTZzdDn0SWT4V5zq5JUjgDT /+947+Y1iK9tNzaqp2DLQRamOo5GsQk2tZ24wRX2Ms7AeXwfBxPRDuW7F39K0nCZIx5R D9mN4FnzOxYEBVhRrrne/TL1xJ5uVZ/a0axl0I2LXLJVPPRpgQjl14ZuIMIQGYI0sAx2 l1C7B5mSlFo/fRCYs5YlpeiKCY+WppneJM4ce37P2xenK92RZMFooI4RHqILA/w0O5uw Hu1wuHIwFDvKGksKurjrlxx0DK/mPuB2kXZXl1NK/0NnyGqznI0VjoL6g8pfS4EkJtxo 8+Bg== X-Gm-Message-State: AOAM532knzBA8qI9l9ytRBPc6cC7sZchCDS30B4LVrCopIifEbAwsSw3 KOxkaPUHaZezf/U6Rt36uiLZVRfyl4g= 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-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.25.1