From patchwork Wed Jul 10 14:54:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13729438 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2050.outbound.protection.outlook.com [40.107.241.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 8C8DC19309E; Wed, 10 Jul 2024 14:54:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720623263; cv=fail; b=YT/UMQq/5hUpam2OmpzY8+9i14umHywyZH4gHo4P926xQX4NTqUt/PgbnXUcKLsRnXWnes72imbaXspfRhIMkIk5AYmdT4yenKI0bPpjaQVgMI4qsPNd4jm9mcYB3ywVluUELIO30HeKxBBsr2DmA02mWgvbmbd6pc3/Lqvda4k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720623263; c=relaxed/simple; bh=C3PzfaOQJGUFOBldgQemdmIO0c0/lTsPAt/D6aNCY6Q=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=BUsK7J9YOAvVdR3pU/Zqwv5g+mrOnhSTT9ur3cf4GbymUJ0JLHC8OOE2PoOtv/VPRnS3XODWsItJ8B4l520kGRxRxPeopYcMlwD8TePd0HoESirDd8VwXtRPOK8zf9JdbcoOf6GJR87dvbnxu+0HPkBVQ4Css+3/x2PNnWQSc38= 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=VQAcGjTz; arc=fail smtp.client-ip=40.107.241.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="VQAcGjTz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PSSeIk9e6x2k7a9AnFs9xV4Us/ktlieqzPD0DqXF2NqlYB3TgxieE356Eqd/ok8tmTYjSJvJZFOb4BEdr1Zrwx8EDKhTcYqy63Xys+g19qy1hfBb0Z5K38K3PuSlCVWAiy/v66OeAFuzVeI8hAnGaT2UHqHVzEe5Tkuh1aBc3PpeOrrJP2nTWXD6PBlOwF0Euqr5XGU6AboI4+MCZgx0n4TTRuST69dJd58xKWLy6Ycn9Ibj+XVUiWDhGd63Blr9yp+ipTEKKJBnlis9AE0pGoGBbfQCA6i3tGeId7YOOEw5ROZ6hwT/uCPmZzEo5FooHMV3loQJhganUp8/+gUm/w== 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=9XvLBkVMDyO8svN4ixXHHWA4op53EpgWq9OYyDb8YG8=; b=A8h5klK4vbLXqaZpiFz3Ujua4EGqYgVbzNpBGubXa3650zbZzzDC5kdpCNYM87ykCohUoGkxVzdNxvlizbZSIIIwmk41vo5z2XEsaCDFOsVDWSvRRaTZrXuJD/8nD/sb69yv67T/HDHQES1eu7f2Xb3BRWLPgMQWrOvGBRw5uJkg18AJoxbk9yAv/N3VbkgwhEQf9SqlhiW5HZy35baQjYMwXdGbSBuDORjZoK1NQSZeWr414+8E6hEqA7Rxmipj4Z36ZrUsB2AJHI7rz7Yuo7O3sIRDQU4dtECaMV6cT58jskTZK5xDhghRNUod4ImCdEJ2Z+xFfmDIfkRT/dQ61A== 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=9XvLBkVMDyO8svN4ixXHHWA4op53EpgWq9OYyDb8YG8=; b=VQAcGjTzjqaxAnTtsM+fAXtTfJHt19D9TZZmtR281drRZKaY26HH/jDpFwza0ocCUS+51J+WDlGGqUO0dnSHzC/EhcgX8FHg9xhkgkUSrNBgIVrqyMN5FdvB03LtGoZklYxzO8w6NSMLvpemAbSbS5reFLUONra7o8u5b219btk= 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 DB9PR04MB9329.eurprd04.prod.outlook.com (2603:10a6:10:36f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.36; Wed, 10 Jul 2024 14:54:17 +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.7741.033; Wed, 10 Jul 2024 14:54:16 +0000 From: Frank Li To: vkoul@kernel.org Cc: Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org Subject: [PATCH v4 1/1] dt-bindings: fsl-qdma: allow compatible string fallback to fsl,ls1021a-qdma Date: Wed, 10 Jul 2024 10:54:00 -0400 Message-Id: <20240710145400.2257718-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR21CA0001.namprd21.prod.outlook.com (2603:10b6:a03:114::11) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9329:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f2ec9cd-64b8-45f6-4971-08dca0f02bce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 9Gty5nSoq9z2gc3CG2CjTbt5zp+jFBGnozExw+L4TAnBbyCuoib+USodqMVcX+E9qn/U+0GfLSY6mCphdv/7X6WYFalKWlIp0LvrjRzUnnF1TKabW8scR1AuvlE7C5uHROqFmCIyOGwc+NKORNwmYHoAYTZJaJ1h9OwKs9gDEAN36V4QFAOTgqLt23hUA89zCxxE85/lFLRTvjbE5UsAexxLd+jxmN+rq8aH5vxh7DsEyxunQTMWf6i++xZAcDADD7N1aQqltqVg8NY9SREFMTyjgM8Fdl1wGba68rLGrZLvs0UMHODmRGiYAWcXXfirVi2fwLpjTsrCpezo/zc0xeUx2Pq86BG7umAhELKMAGeBaCoJ/emfvXHf+px3ZyLhUxnsC0oxIl0k1h9fZ+sZcVKmT9kCs+4iEvihNhDCrpFiU6L9V9GOTwACOWIMF/2BKsQSyEOSY9mGhBkKdN2pU7l6Y6V8aXKTMelyOH/gIYhYxlaefbbL/kyKUHgqda0oyrvj2+5iMfF52x5QvqZf6md8tSRYPj4l2KjyPxvZ70lk/GSbSzoaemyqbUlB8FALRwu2EsCXeMmbhpqqvS4ggmxwrfwCb5dcMmlInCu/gpxmYBYVPo0yDV3Qmh7zRp7jTpn5Y7XVQtLMXtVpfbjGVB28px3ami4vt8VVfIdY90kHN7Utbt7TRVzVw7b/0TTOwUNWtHSA5lgVdcMj3sSVj6nKFQKou7kCCus3sdVPZZXXnnRM9YPM6U3KFLEcyrCR9llUiSABL294QKCedQ7oyVvbQHar4e8zYNzcrTkYfjAVGmV33P4sxr/UUk5qSJ84UWxAhDilLfnBWmlFRze4i8ID1PwlGDezKSds5awIKjCKRqVIxMiKSyZPkge7bNCopojPA2YolDOp/0HB1NpYzwga0flNNyZRYQM0Q+DRWSRDsrLpeXB5TBhmrODeqzAs83+VBb+O9Ru+hIbfoVKx74TBvMWtZeghg9vgKCsdCRRNVVIp/jmdAQLQ65Syss0qwVX01+INqWhqElsqZC71AKw5UoADr3Gi4ena2iuis6IYTDBZZcMxCNfxEuqqwBdLO48RU8qaCLkH+fdF/LkcN+EgQx8cCXVVatauRARN5qvmACA+/3Yl0dEYUWIwn4AkmhTIrjdz8+gkHe8sZKnuGzsy4DnFg/PeK7c99Bj1uJxFTznHR/SSrRAgsHRw6rbuttt+Ed5HOxLbQb/EzFIe2ZMkbhPW4nwreZQSO4n7aaxb4QkLsKSQUQKEc6bcEgM9NvY7nI0V10EBqFY9jcSjzLl6TXNztR+Ka4iBrw4ljeT31htln44Tg2W6YuGvab+RBVBTHunm1bWfBH7uOexR1PyZgXCCjnO6hBv1oMsguVc= 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)(366016)(1800799024)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Iws4WUZiGMM9Rxzy/bwKn8nLYnrscGzy8ZTDjrqwZcGZDebpTrznx8V/zuym7JY+OwUue1iqBvQq0DMqfrQ5oNst7/F76YBv3uhyDr1e7vhnNqHSRiNjbVaVSfli1n29Kclgmwg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MfEanXUqgU6Zgopp0anNGAULeMMfl/yRjp3mNXSFFcdzxBSChYITJQsi7Sz0dhuKV0HixH3tkgUD4KUjFmxld/X6IRFLBxhJaayoILjsP0M/nEdMyA5curs9mO89wU88jKCiuIzjU1eZKVVRMCY7ydiXVRHPT12ALgvIlfNVI9PU54n/NONXaPhkYRucrtY8NPxLuHKyZEgz3u8O6n2aNx+GPu/53rhUruUDJSfG/aXDPG5IXnId8dzWchJK324cFwIDGutOJE/2usI+xnNW2EfjsfKDUloq0DtFbmiUoHbmtbRUCpeRdSj+Mx+Q3/uUvBoGeXApPSGMsNPx9GP1hyv8hV8CFjLzsTTgRIScaaZmV/xFn3QCPYn0irfq0ken98HC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f2ec9cd-64b8-45f6-4971-08dca0f02bce X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 14:54:16.8916 (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: LeeSWWTHxkedUOJGSOdtHMCx1iEhVN/QlopZ8JUy57a8cUxFRc9fihL+SJpcS24uVQnUmNMdfFm7tsePioxq6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9329 The IP of QDMA ls1028/ls1043/ls1046/ is same as ls1021. So allow compatible string fallback to fsl,ls1021a-qdma. The difference is that ls1021a-qdma have 3 irqs, and other have 5 irqs. Fix below CHECK_DTB warning. arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dtb: dma-controller@8380000: compatible: ['fsl,ls1046a-qdma', 'fsl,ls1021a-qdma'] is too long Reviewed-by: Krzysztof Kozlowski Signed-off-by: Frank Li --- Change from v3 to v4 - rebase to dmaengine/next - Add Kryzy's review tag Change from v2 to v3 - previous patch missed a dependent change. https://lore.kernel.org/imx/20240701195717.1843041-1-Frank.Li@nxp.com/T/#u - Combine depedent change to one patch. 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 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/fsl-qdma.yaml b/Documentation/devicetree/bindings/dma/fsl-qdma.yaml index 1b9ebdbe528a1..9401b1f6300d4 100644 --- a/Documentation/devicetree/bindings/dma/fsl-qdma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl-qdma.yaml @@ -11,11 +11,14 @@ maintainers: properties: compatible: - enum: - - fsl,ls1021a-qdma - - fsl,ls1028a-qdma - - fsl,ls1043a-qdma - - fsl,ls1046a-qdma + oneOf: + - const: fsl,ls1021a-qdma + - items: + - enum: + - fsl,ls1028a-qdma + - fsl,ls1043a-qdma + - fsl,ls1046a-qdma + - const: fsl,ls1021a-qdma reg: items: