From patchwork Mon Jul 1 19:57:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13718611 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2050.outbound.protection.outlook.com [40.107.21.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1492716DEAD for ; Mon, 1 Jul 2024 19:57:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719863858; cv=fail; b=nwsEMLzCUYG0/5aS7tts/sSw5cH1o2Ocv9zD5JpOWFA8K0akmj2G1O/NAfRLHSo96NuDuVJYKMR4UivsJFn1n78SB8Pb/pb9AJF/DfxuGLexGJ5B4cS79uzwTzr1VC9pzChgdvEQSmtBzhMre4qjtKesjMfWJT6o2qDcUp9DZWc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719863858; c=relaxed/simple; bh=BkY3v8Mjqk0xAq4kX8yHzOxXCNRKHLN1VGKPdDDKWbo=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=kKij+9R9MuJiaQ5M/cpwEQR0TQo7U37SY1ylPLIYXIUfscfkAMmIEUAPsCl6K0oOwruk8ehzEYKWOnq66RO4gW+2BrOTsayrWJOKxg00r154gLQTRhybyy3QzNimKad+34kd4GKppZ/NPNf68sSQVoIY6TUp47LMgwqTxMIuDW0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=BaJV/ehs; arc=fail smtp.client-ip=40.107.21.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="BaJV/ehs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l2k7juwPEkdorlBIJ24kCekwS1jJW3hIqwONLMFgFhJhcYi3r2HMJ7LuicRbGYTgCQ5Tw+1hWRzWZu57X8tTFcuajyzRiTbIadH5bBhZV430YjujrbCYo/9shsjK3dvkzHVEYzSsNEaEhyJdlqnQaG6OrrEGwPth1gNPkyZTr9vnKYRzpncJF2xL0KX0cM5tTX2HoZOPrbY9+7lZUuzAe3PUg9LuUyJQVgmAg9kyZSLkZA6C9dRPq88CNGCVduKdt9TPdVIjLwXuZr8393tPRdgJ9r5VBiQYjMKPktTrIR16tzyE78JS+HV+7RHFHWcU/P2jwGOdY86KT5NOIorWjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HmU2p1BJYQXbep9eLAXy/pkLHbg3WzQEoEMDJamsuLA=; b=ZdxyTe9J5PGuLRL1WBi7yM5NcZ8BuPB7xxstoIr2tv8fHy1dJcG7wV2DqIMAxQCW2PpMkEcXJqRYpo3fG9P4DQk0bVTzi8CzzrhXbhaOpUEighR0tU1+u8iXF1qYuzQSkbF3pR3ss7Hb9QzAHyryf9O8Y4r0kL+m7VH0/AVrz7GH3bE7QnIxC7ULVKVz7G4hfVrqsyKnirLLeZZ8Xde5uY1SC8V4pylNq5IHrUJKfz9p9HDGurakxgsC3bRLIQLhfUTkex0MrLQi2bnUzrCGGNMFSZXwuLi7n5eK+BqpncyD+fV00TiLSvb9FrTjFDmjaAjec/KXXJcpAhrN5VEv3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HmU2p1BJYQXbep9eLAXy/pkLHbg3WzQEoEMDJamsuLA=; b=BaJV/ehsVoApmy+Wol4Ne0SDCfSQ2EZtEPoSyKl4AFvlojG0xgnaIu3tfBshbqIjSDe1bCv/tEb7bfg9m2UUoz2J7dHnxxnWz/7GQxdhdaZ+7kPdPX5Kx/S3aSrvtd6zbuMv+cYkptUQ1gyUOrvIV1e6pdfNw3g0Qw8tGWvVNL8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB9PR04MB9939.eurprd04.prod.outlook.com (2603:10a6:10:4c4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 19:57:34 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7719.029; Mon, 1 Jul 2024 19:57:34 +0000 From: Frank Li To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , dmaengine@vger.kernel.org (open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 1/1] dt-bindings: fsl-qdma: fix interrupts 'if' check logic Date: Mon, 1 Jul 2024 15:57:16 -0400 Message-Id: <20240701195717.1843041-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BY3PR05CA0040.namprd05.prod.outlook.com (2603:10b6:a03:39b::15) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9939:EE_ X-MS-Office365-Filtering-Correlation-Id: 9718d037-80af-4cea-e58b-08dc9a080c8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: kh9Yd4HSbjHAwnhmeBomeLExxwRJP7U7c3WHiIiOOfxzpCtPqcx9bFnOzj9rWDAakj40VpoLxfCOQlG83aSFxsuVL/QCYl0FeZrK3mnYCzDp4ILzR6bGrlIvFu6cQYk63XhNRgfEy/CwyCx5QJF9IT+Or9KtBGVvZ/Qeb08oRoERnXfBnKFzXzBE9vKVOOIbXIGykgR3aEYGLO6Bv8dS21ZnhacV9r56/XabR8Pj4w3CMmrjhCptRKKMsqIc2pk+RTeivNMzhZeHewc5tN7HZ9sNQ7NQM/uKvM1c5OtCRlpIAjVTOT2assa3vM4AE7++3kKPbctKS9G4R/iwHDMCMh/NNayYVCwjOqiPflR7cAs//0gqjf5hFOms0+ru0jVEdGY5q51kJStnX/3YRJ3PCx036Q5aahGsmm88UKswuUT+n6dUdC9IuYJh1tTzhjhZGoaQcOww8Bdu1/BwlLmFKSizwdOBsIHmNlol+VNAgApiWf64JXIOGzMIINVSQXZF/hMignl66wI7OGMZ5gpxHRsq0udM4AR3U2AqgupvPhp8RsXVLr0IqzWWKGjxV33sw3XpgULbBVBcqjGW/EejpgXW7thQ9qjx6LDGt2Wou1kmZA7uGcbWr9Q8fxgQQTIDqgd3INXwm16XbJ42btcGuXWKBAQWtoNtkqDbgVOBDE9nSUPPR09wT3ryYkQMWkA4fvSPkjykGQWhir2YWLaxldcZpdEDG034ch1SJQtGBJyXENZenROdbO5mPmmLW6ngvmgCTB7CvClTqoKILm2MOCgxkUco0+IZ02d+RrUhnK9onNxGzhO1Nrybt/v47fDtgFyjSY4KvQaaUX/T5IgsNdKNru5i5zWQeUQ1mnS6OdlDXyZYZ+ABtNWfUetLw96sS7hmACt90lo213572Y2XEdDfZ115Tg8+WbC/agag2hsjFPUby5ys9jv9OQgp4RRP6SfjauyO4QZNj/ndsc2NZjmugeMASVquAbgm+ao7+Tk7aJUXAfD5bbSp2VQsj4XgCergdYYLBxV/ikyB8QyYCiYVnRuE14gDiubQAaTxK9BfUbCgQ3v8gYyu/rHmhUnEhR0F5wiMoW9wVLyKnsLfUW129PUma78Rjl64k/4qFQYu9gBXIkjA7lffs+U0Cz/a5kF4mNhn5rM5YMRg61iiKTF/+4n6rIssMfHFrBJBjiiS+w4YNw2vFdqhTwqqErLoxuB/yeLOsXhJdqOuWZ/0TBUeVsfgA9gsmPcHrWh+/2yrBJqVrvClGoTi8L9mg40liKEH4BM1rp+rb0j7dcTok58jiNwIDle8vFkCDerLjA+UMj8Gle49S0yjnUAbsRtxUA2FGQYNuOggnEiJxDGA53JbOl7fxAqQe+QyNMSuoez9nu3/UogBsW19aM0qjH3C0QREqb1x3Ez3/RxmGwTjMQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GSKQTRGsNuupKnFimOqUDCEyQ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VAtpJhmZ5PfGNBzfJqrCDv9K+7l4n/DgKx/tHmPyW52rGo7i4ZxlmLfBANyfAG6ETd0g+kffMnJ6XGV3Ykk+U+aD/ed+MoGAU4qTUTvhQvpvYbC9bvR+r9LyBmy81nnze+GFIGIgLybQf+SiExMFLA3V3PdN/1dVV2PS9Az6p8isM8YNElC88iyopB2S4Yi+BPIemz+9mlmWKnql//sMmAitAGTs4dvt7a9LMwWVaQ/T1mPLo3aP1x+Ep9W/3wU53eNu1q6FBgxoeO3Rw6/MB8PiqKRSSGYQbDlH12kv7TDQxHsoWY+QiNf1SG6ODE55k+ZuaN2V8l1hEHUyl5GqnDZObkMAhUuRqrcEonQlyBPExT069cXFT/wZj8pUbflK1PKU9YT8qzr4Ss/vwzJ2K43SFuLEoQk/1IwyJ8Z1tnPCqrCqpRrP0/lzIl81SFvcUhYcnHVc7HDl/p0umDikyWAXdDkFS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9718d037-80af-4cea-e58b-08dc9a080c8d X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 19:57:34.2289 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CnWEAJsMtNni7CgGWrhTnlAFcO3tn4Ig4Dgs53n69jJ3UzwxceiiHAfSuyshqA8wG23UrdoOw4cQb5m4juH0Ng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9939 All compatible string include 'fsl,ls1021a-qdma'. Previous if check are always true. if: properties: compatible: contains: enum: - fsl,ls1021a-qdma Change to check other compatible strings to get correct logic and fix below CHECK_DTB warnings. arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dtb: dma-controller@8380000: interrupts: [[0, 43, 4], [0, 251, 4], [0, 252, 4], [0, 253, 4], [0, 254, 4]] is too long Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- Change from v1 to v2 - Change maxItems: 5 to minItems: 5. because maxItems: 5 already restrict at top interrupts: minItems: 2 maxItems: 5 --- Documentation/devicetree/bindings/dma/fsl-qdma.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/fsl-qdma.yaml b/Documentation/devicetree/bindings/dma/fsl-qdma.yaml index 25e410a149fce..9401b1f6300d4 100644 --- a/Documentation/devicetree/bindings/dma/fsl-qdma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl-qdma.yaml @@ -92,8 +92,16 @@ allOf: compatible: contains: enum: - - fsl,ls1021a-qdma + - fsl,ls1028a-qdma + - fsl,ls1043a-qdma + - fsl,ls1046a-qdma then: + properties: + interrupts: + minItems: 5 + interrupt-names: + minItems: 5 + else: properties: interrupts: maxItems: 3