Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3482750ioo; Wed, 25 May 2022 01:23:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL4ocD90wSfnpYqm1QsmgggsoE+eB3N2DzJObvWqYfW6uPyJVuEfaVaFHaLGpYt4VDgcy4 X-Received: by 2002:a05:6402:1941:b0:413:2b5f:9074 with SMTP id f1-20020a056402194100b004132b5f9074mr33174524edz.414.1653466987708; Wed, 25 May 2022 01:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653466987; cv=none; d=google.com; s=arc-20160816; b=fPW2tA3KWLgXQ9z+IQ/qZAnXfpsH0v6ZqiPwthBZALjuqwWmu55weKyEj6CocXeXoc Dtpsj84pG2folQolgQf4/SqEaNN/AyOfaob2Z1emtzw/2tV9SMItdRwxGRTcV48asGQ2 aLD5l0lmQg6bsc61RhDPu09I9jhAyft4gKuEz5stjLTsA4FBTYZmUo0j/gqCR5/HdXI7 qFJ438Lpu6YtP5CxDV7W9aCQeW4PBbxF6MfD4JywHZFtZglMiol1oAW/F7YItbjH6yXB ZUeogVwV2nV0YPLZhlx+WNnU1B4IAk8BmmCFZ0xa17LhmoHEVaaqowvs/s6032WxcV3e z92Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=aVAMhGXsVwCmjpgIhPHxyZOA57F+jufBB7rBz2hXiIA=; b=V+mBRAjFE5/8TE0NVEpwfbl622ne3A0rPdM2pUTySvgXDOwAuf8R4fXNn1vri5G2Q6 l1cwEhhD0xJv3/MXsZndwc2x2HrB7DSjXYJJRgo2IRD3dTkZXoujFbGWc0n94CZ9+Rre DvUuYwrWN19t4RHKoa66V1zbbUhfBwJYPTUKKTXFXIARyZp/JffbXDN/ewPVJ1wk+2py c5O/CGkZcySUrsUeG1k3x+oMgWRj7Wz0gM8afgP6lu0jPWQFp9pBkgCviDbfZ1HUNsYS sjfAIYesbKytUr17M8Z7LBTq9jDaIz9k5Oufyn6SXScaWfSxobXXKsL8I/8FZPK6A4Fi rt1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a17090658cc00b006f3b94fb1e4si22077661ejs.817.2022.05.25.01.22.36; Wed, 25 May 2022 01:23:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239928AbiEXRWp (ORCPT + 99 others); Tue, 24 May 2022 13:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239933AbiEXRWo (ORCPT ); Tue, 24 May 2022 13:22:44 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C79517C17D; Tue, 24 May 2022 10:22:42 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.91,248,1647270000"; d="scan'208";a="120749712" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 25 May 2022 02:22:42 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 2D5E3400A8AA; Wed, 25 May 2022 02:22:36 +0900 (JST) From: Lad Prabhakar To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Sagar Kadam , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Phil Edworthy , Biju Das , Lad Prabhakar Subject: [PATCH RFC 1/2] dt-bindings: interrupt-controller: sifive,plic: Document Renesas RZ/Five SoC Date: Tue, 24 May 2022 18:22:13 +0100 Message-Id: <20220524172214.5104-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220524172214.5104-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20220524172214.5104-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Document Renesas RZ/Five (R9A07G043) SoC. Signed-off-by: Lad Prabhakar --- .../sifive,plic-1.0.0.yaml | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml index 27092c6a86c4..78ff31cb63e5 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml @@ -28,7 +28,10 @@ description: While the PLIC supports both edge-triggered and level-triggered interrupts, interrupt handlers are oblivious to this distinction and therefore it is not - specified in the PLIC device-tree binding. + specified in the PLIC device-tree binding for SiFive PLIC (and similar PLIC's), + but for the Renesas RZ/Five Soc (AX45MP AndesCore) which has NCEPLIC100 we need + to specify the interrupt type as the flow for EDGE interrupts is different + compared to LEVEL interrupts. While the RISC-V ISA doesn't specify a memory layout for the PLIC, the "sifive,plic-1.0.0" device is a concrete implementation of the PLIC that @@ -57,6 +60,7 @@ properties: - enum: - allwinner,sun20i-d1-plic - const: thead,c900-plic + - const: renesas-r9a07g043-plic reg: maxItems: 1 @@ -64,8 +68,7 @@ properties: '#address-cells': const: 0 - '#interrupt-cells': - const: 1 + '#interrupt-cells': true interrupt-controller: true @@ -91,6 +94,35 @@ required: - interrupts-extended - riscv,ndev +if: + properties: + compatible: + contains: + const: renesas-r9a07g043-plic +then: + properties: + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + + '#interrupt-cells': + const: 2 + + required: + - clocks + - resets + - power-domains + +else: + properties: + '#interrupt-cells': + const: 1 + additionalProperties: false examples: -- 2.25.1