From patchwork Wed Jul 3 10:28:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13721762 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 A6D53C30653 for ; Wed, 3 Jul 2024 10:30:08 +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-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+1G2LFhysBB3QgaVhd2lmbv1R0/hDZyyXDs3bHcwQC4=; b=AIfn5xc0P798rut1kLSWaDbE// N/pJokaW4DmBWK5PJl1YGXVZ3BGW0oJMDE8rBVQBW1z7URazzVnYrzJEh+Vo2mR2Ztbw7wAx3hdPJ vUJyBcKhUrfuNLzliz7U3wXiRAvZdfI6V0dacFfrWTD/E/anO1ILJX7AFSaAklJqv2EL5ip7Hl5iv KmeZ6R9uB6SPwEHD1dpd6H5fxF/gzXUQwLHknnv1BLAMZa6bQ5tjdkksqYgjS4+JeEyXVjK573w8h jN4t1GqZHtJFAQmUD+oi31iSaFXFNgyEXCuW658UTp8EnSg25946+htLrhEClrS9C074sPLHgxKRO EFlWLvTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOxFN-00000009m3o-2MVq; Wed, 03 Jul 2024 10:29:57 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOxEE-00000009lSn-1BmL for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 10:28:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1720002527; x=1751538527; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YbocINexu7W/LW3dxzi0XE7KHqeUdFUgZnMRwDmW0kE=; b=GMuuaTYQ/a0IaK4HgSl+QfxtPWJlKLnDZmQjIRcTruPG5kK2OoRCJ4In fjWWPBuA2gioGxgeMBNWbH3I82xHg0iYPiuOQn8eUiniVyj8mCD10N87w 05yLJNkii7Qtmek4qXMWasuUC75SXw/IldHvpBjNapL8CH2KWMdC2RARD 14+pF8ZgfHiuilLGPBB/Ty9Cyl0hrdQQ/Bf2jo33Ji/oDiUo7zJWEzCVe EZvN8/tJBqGPpZGitXDWwWh4rmcyztLElXDqoImpDscHWCL0RXMjvk8A4 yYfXY/B/T4S9T/5tqv9I9gmXvpN1/yWQ+4F/+EEeNNCjY1ZhjjMeaB4S+ w==; X-CSE-ConnectionGUID: ywlN1IFORca1IOesWlMguw== X-CSE-MsgGUID: V6OkUdLkTRSruK8jHMM+cw== X-IronPort-AV: E=Sophos;i="6.09,181,1716274800"; d="scan'208";a="28804766" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 03 Jul 2024 03:28:45 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 3 Jul 2024 03:28:21 -0700 Received: from che-lt-i67070.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 3 Jul 2024 03:28:17 -0700 From: Varshini Rajendran To: , , , , , , , , , , CC: Subject: [PATCH v5 15/27] dt-bindings: interrupt-controller: Document the property microchip,nr-irqs Date: Wed, 3 Jul 2024 15:58:14 +0530 Message-ID: <20240703102814.196063-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240703102011.193343-1-varshini.rajendran@microchip.com> References: <20240703102011.193343-1-varshini.rajendran@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_032846_420209_FFA39E6B X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. 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 Add the description and conditions to the device tree documentation for the property microchip,nr-irqs. Signed-off-by: Varshini Rajendran --- .../bindings/interrupt-controller/atmel,aic.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml index 9c5af9dbcb6e..06e5f92e7d53 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/atmel,aic.yaml @@ -54,6 +54,10 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32-array description: u32 array of external irqs. + microchip,nr-irqs: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: u32 array of nr_irqs. + allOf: - $ref: /schemas/interrupt-controller.yaml# - if: @@ -71,6 +75,14 @@ allOf: atmel,external-irqs: minItems: 1 maxItems: 1 + - if: + properties: + compatible: + contains: + const: microchip,sam9x7-aic + then: + required: + - microchip,nr-irqs required: - compatible