From patchwork Wed Apr 17 15:24:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13633520 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2051.outbound.protection.outlook.com [40.107.14.51]) (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 BA04B13A265; Wed, 17 Apr 2024 15:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713367520; cv=fail; b=j4nIljReLt87gNDgGetqvZuO2Mi/YeiLcj6INkXDROokjoJVPqXOMVQEuvL7fJLBPy/uedv+3TjnFeUu8LrVkZJOOhNEjb1kzAK6ZXef6Qf44NkMQ8w3zMDmmxTVdOarFZW878Up8PK8QFXQo2YtzMQvRp73bGqZRbf8za9gUnc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713367520; c=relaxed/simple; bh=p0tuB29l43UnDFrU7x82XJkVCW1guFDbJyCfkc+L5jc=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=BYA4Vldx0yT0VHVkTYBoUy2aNBXhUuKv2yVekLyAMADh64nYHunNmTHLtuTdkb6E/xBBqiyLVrJMbug4UpIHZGp1l5tJpT243mlaWBMWtSwbxkhNlwoJjrc1JZ6s4TLy14vjfSuMBvcNnJi1gg6GiBR4wW3o9HuIzUZUL4COzrU= 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=D0oT0b38; arc=fail smtp.client-ip=40.107.14.51 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="D0oT0b38" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GJOOB2T7qSUG22aHJVQ/G4vYrnoijIdqBL1AP/zj34efBlfcapbR6ZKHqRLofxadcYhKcN7thhNxxg0Qv5Y+beQYA1UVevLlVCKQKCY149RaDW/IPQWkb3XamomiMvfO+KL7JBHMRt5JQyT+/qDnxFAuUdkqWb9MWBJLYjW4b8mGhQBsE9iquoIzNhyBe2x5Tkvjb5hJnPG0RSOjK3QjMTYOAzQIP1yT8gCdpJ71NcDcojsEli0fzGiaow8dzun2yfPInBTQ3cCZemHsAByHa4YsrekScoAOvXEgZ8fvGHN0L4zJQ+dzyP1jrs0a7U/kVX6V58ED3wHlNXQEd503Iw== 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=mmManNmiFHxoJNh3InF3oqp5UBNN4qoYJhc8FHHjGNc=; b=hGbVHKR9PSjFL1RKQE9i5RmmpyfQAqfrsKdM8HHudIKOVrSFHJcMFSCATEkRLXHkw4bNehMiX4N6M1kLCGO0qJKGw9cueIN59BwqE/orfOVajReMs8urIpWfxAnyMNCiCzjVEGt1FJOxvAyHtg5BvfZLCwmK8kXoqHhAephk71n3BxkFhAt62v1NdqjeuEonsgmzf3mdegxGGDeMx6Eu6nwnYW9nYgFgnm+pDddiW2haRMB6KX+5I1wfsfjlAEELXlmDDrhfTTSnvOP/6nqHfyejxR8GGMIUDAn3XJd+feBd2ZmNy7UXzbvEuNOLwGP4ms3IIeULBbUXyLGg7WhhDQ== 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=mmManNmiFHxoJNh3InF3oqp5UBNN4qoYJhc8FHHjGNc=; b=D0oT0b38kHGOIraaiwPz8x1Nu3PDQq6ECRO4ALo5plqZ9ulF/VxnEF4mFPZCHHbdjdC19p4FhwWWjWZa8Ht1Z06oA8lfts+VcDaULAVV7SY1goVZeHoCjFet01ZqXLQ1bBHHihp4Vyr2RCztQwezx2mkNbSSnGQE8kNWg/9+JnE= 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 GV1PR04MB10108.eurprd04.prod.outlook.com (2603:10a6:150:1a2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Wed, 17 Apr 2024 15:25:15 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7452.049; Wed, 17 Apr 2024 15:25:15 +0000 From: Frank Li To: robh@kernel.org Cc: 20240409185416.2224609-1-Frank.Li@nxp.com, Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, krzk@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, pankaj.gupta@nxp.com, peng.fan@nxp.com, shengjiu.wang@nxp.com, shenwei.wang@nxp.com, vkoul@kernel.org, xu.yang_2@nxp.com Subject: [PATCH v5 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Date: Wed, 17 Apr 2024 11:24:56 -0400 Message-Id: <20240417152457.361340-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR03CA0287.namprd03.prod.outlook.com (2603:10b6:a03:39e::22) 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_|GV1PR04MB10108:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ede08e8-0818-464f-5d2d-08dc5ef294b6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IWLtOg22N0cdUR7apiujaVdIKJYWaOKCsH0kzpSHPmPnVsOuMdd4P4urM7/MoLe2M+cUws+oGgSEBZpqxEJvbyNm4U1MSyGr4jIjTxstn2d8pRXgojAIzqN97E2maT8YdyYHzzjxjzl2tlX6q5WHjINc+fqrdcaOGkZ2uKlob3Jh63XJ/r76M4bLoxcw0glwQ3dMHn5YhaMaQ2Nik1byKf9ycnOUphu0dBMc2yCf3kpGbMXfeyA0H79kQS7b3z90oZo5/POMcmRG53rxWuYlZoZ5E5qgmNhWb61DBC5+8EpndibncW+Eu4SNOD9ee7eLcP6mP6tjGfYOZ3rciKRvwWxPj7gQQ06tHDlKOTelopwkQ4pTbF206mAqf1TxNMcD9ACRhpjwzMW8+mUbJYJbBsrL/MoZbgHvpS5nMfMEsGHERu8AiDmlIVc570eZsDKwH4yzoVvXOHeksc7mGBstGjH5+Ts2s+iyPFDMoULTVND0CEIy+GiRar6F4SD184blTRS0DNX7oyRKG5lAJPJtViv/XxVpnaBj7hjAJupUWKQoeD43K4qAPzoJbF2GZjFcK+nrBLQaOqeDhWpVbbdMo19AQt1k+RLsQ/I+UzheOJSKmZRaWxIZl4TPzxwhCn621XWGpoU0tD3bKLnYn0+lFc00q++3znl2d+GNKHqQ4mWts58SK7HQJQ2WaVE0tUTDvc5PgXSWnLrbxFlctg7f+w== 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:(13230031)(1800799015)(366007)(376005)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 74o28CTUD9063mzuXKnhGzex63X6f60UeDoySJ+Wo/6BZ+QvCNT9qa12NWh/SNQThSJYPWtAkHSte1xy5gVXHk9PW7pLw6R0ZD4jFX82xrrcP9XyiNqm+QnezAxWM30vcZUzo0nlEiBJ0e+uuOq3UibaP8Btz5W9L9FZMnzk+QGd6NpUEq90S3cdjFhl0a5FpAmM20btyDMJ3grjSS2sBzm4RUqOK6aFY+K6+XYuwnU5/nyj5YRV21LfrIKD9kjnKv15uQJuZZhJNGcT6Kv7HYvkZk1R1dk+ueW7+KuhsAAubEIAem1n3QvTjSzl/E/2rTpbllr1LO67CEYgqb/B7hLFhOWo3DO1jGCIrcxJEM6JPkh44/wBdXidTVDErfv/btm7p9mGuFx8YGPF3ZG7UQ+XTnPpL9jVZ3tyde1fhDq1H/vS3dFH64vNCAufFLrcMJCZ5/ySJK+K4/FiQsE/39yTtpiEV5iuvco+9PWaq0NiQHjXWLAFffRE7Vurp1Q0mkSea5FrWk9aDxxrYGX7ZFZB5848w06uJ/JIc0+dq4n9GQ9h9bjANs8uqcOdp3UB0ehdfM570RW3kSoRistZiQ3uvSFZmozx4PuztfYFrIhK/fTsBmZSdlal4C+8QhSGaI1ICRhpFWwCmPeJWW5zurS9pc5UQtEYuSsdtrdk1HPRpref3ariUIuSJjBYgwidZES/nqlsBFdSKskaE5vzpdGnfFAoN4l1u0mzQ6RmFKQ3sR4mIP9Z8WQVRij3HPgWpxvk1g8anLLIHCLBZDa2H4UDUT0KV3AyDNJIIZLg2h8UfIS7E8oKkFQK7i16kSi8SsHFpA76Ej6wx2Ws5vzJO4L7hdgIuYK8MElGaMsTdBVrwgehK/ZQD/NFccsr9HB8soZGgihwkSypj8QrRxnvTw3ABfEv3u7pK+ICCUefSQYM7taa9Tzt+mQhIXgl/iV31NaDw6Gad7kLFtP5367PvGAPRFSHoLIVLLTrMe2/NwS89Tld3xed2cqODk7cd+3ostV2pq7cEjtPccRQ9oOQdPxdUAyKFuCE6IXwZUCs2m7vhqoTv3f7OW8wFkV/eEPjmMTMmF3YtdOrdF+j57em6sLdlkSY2KdFfYVSzq9dvOvdyDcyPnQKFb9yGe1LiLPTNqMiVXRThJVHqB7PZA4aGLM18ccK7MgKKBKYriF2eUnIkS89uKpMgc8RFUKVR6DKpwFpDxaw5F5LGE91fYkOm9HaGlMj58tsCX3BMabioEWpHUK/sVTjhVnJb9/EUVxYJ1v3UnyZ2Q6c0Ze/ZUBy+agFRt/O8olnMU2+fG0aDT15Fvh/GiQt/rx+I0ZXkoK3Lb64V7JgPy7TxaCJ+v9fhyfsY49+8FDn/4sABFSpd+iFQGRgtb3sl6S2DxWcqsTArTQolFz6FQzLA/6fF3K58BXnZDkoGHCCt/Z16ceCsXJjj/GQYEihYK5YAqB8+11q+OKlv8hmWNpAKC0OMBF+vi8ALnSNrzRRVD/5R8CGelywEDPmb+WjUmTzHKhac2e04r59i1hncGB6BsPw7iNyR54atBb0JGdnvaAWTXkXt8zGpG+nw8MKdTK+GJXS6cXR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ede08e8-0818-464f-5d2d-08dc5ef294b6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2024 15:25:15.1586 (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: 8KLiN4raznWejnHc5hq20qIEM6ZK6qG5Bhl5iK5sqB4aolHw7wqj/cdZp3ZmKrt7o4Wyg3hUNkWLMJklglhDhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10108 fsl,imx8qm-adma and fsl,imx8qm-edma don't require 'clocks'. Remove it from required and add 'if' block for other compatible string to keep the same restrictions. Acked-by: Krzysztof Kozlowski Signed-off-by: Frank Li --- Notes: Change from v4 to v5 - none Change from v3 to v4 - fixed '\t' during fix conflicts. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,edma.yaml LINT Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/dma/fsl,edma.example.dts CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTC_CHK Documentation/devicetree/bindings/dma/fsl,edma.example.dtb Change from v2 to v3 - rebase to dmaengine/next, fixed conflicts Change from v1 to v2 - add Krzysztof's ACK. .../devicetree/bindings/dma/fsl,edma.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml index 825f4715499e5..fb5fbe4b9f9d4 100644 --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml @@ -82,7 +82,6 @@ required: - compatible - reg - interrupts - - clocks - dma-channels allOf: @@ -187,6 +186,22 @@ allOf: "#dma-cells": const: 3 + - if: + properties: + compatible: + contains: + enum: + - fsl,vf610-edma + - fsl,imx7ulp-edma + - fsl,imx93-edma3 + - fsl,imx93-edma4 + - fsl,imx95-edma5 + - fsl,imx8ulp-edma + - fsl,ls1028a-edma + then: + required: + - clocks + unevaluatedProperties: false examples: From patchwork Wed Apr 17 15:24:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13633521 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2051.outbound.protection.outlook.com [40.107.14.51]) (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 2168B142625; Wed, 17 Apr 2024 15:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713367523; cv=fail; b=ROR/CymCsKWYOwFoXed983POa2Sot3j8U33DUA5XBSLyTGSQGB4Ph8KX2joPyTrCB2ULQKRwK/BGbwn5bvf2bgWm/uc4kBAYuPkGBCqm653XaZmSisuYQjHHGFSRSLwcBxnNA5JDy2ltL7jEIIIlSSSNfXc+gwEQmlZ0rBd4DIw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713367523; c=relaxed/simple; bh=HD/uCKzsPdfbWXoe66+ZGhbku3BLDHjLkysWMnnwSIE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=n/G22h9z/xqfLUAq9a+fH2+bTGMg/U31GbyxfrYzhm0UKX1dxw80Lp/EJwfdf5Vna47mOxEdqMxpKQeh6uYpW4c8/8NHBuVvnsa18RlB/BZKKrwyEhbNlMnZDjGUD5TzB7cKw91xi3Q/rQ+/lx0i2oVZLUEiHDxRae/EGbne26I= 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=MKOb8FDs; arc=fail smtp.client-ip=40.107.14.51 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="MKOb8FDs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=maQpYScl/IqrBH4HKlnZmWNXKeDAOIx9h63Cuvcrkg/DqXCDCXf91j5bPJpLV+yFpXRyqNgCwvqSyZVmXNp4F7GJxgtPh971hp5GGU4VdaLgDAScOycHvZ1Hx2XjYcvdWCSEyjYAsz6HPThAifPbFwMTFq96Gk4heoDdmHCVldF8x2/kRN3tvKS8gf+/tKIR6LPQl8uSnMFu69GGhzx5s4+A066GQkxEH4gZ4iBldrmUD2AXCzonnNrC4GF49HC4nWFDpdtQh3A72MRERoO2kS/Tmr9papBm/7IDBJA6Z50TI3h959BL/YLkIm4a4rwLH8mUMHPGS3dpFmkmuPza2Q== 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=H8IheWQqeAIo9+kMhBnoow3/Mg2wyj1iReYyOccRic0=; b=S5gSvWFncZcHQwvHTFj0H1KxbClDx9duQvjHurSFltUFogDrydLj8KJURPb+zSiGRDuQEZOzUeoeTP81Rqlk486A4KHPFMERs9I0CiRpA5WI3R3hHnSLpp5vs+bBZqKnwRvxs7t7o+flKSfKpC3GaBSvSipSjaILVVOiqiwuSAQGWhXuhLmYo05eQAm19Iyby9zuYgxD02K+vhzYCffQjxzIpSN/a09zqgd8wnva44XfiPknMUjs01ukUHtJaTQvG2fV8ykFzI+RJAFgDiDZoQhunlDH0/Bsxnxzelq5hn9VoQBk8HDlpU7dR2VNQ1b7NxOxfetdJ/IPZNo5H8c3hQ== 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=H8IheWQqeAIo9+kMhBnoow3/Mg2wyj1iReYyOccRic0=; b=MKOb8FDsNjn81sBcDLXb09gaUDD5cytyd21lJAb5SUCWMw0u2CFCdHG6+IkXdPBdNUAs8vDp4spp5ee4Gt8ad7Ruv8FqOwq+QVM5vRdWtmJKAgg2Mq/RouTvTdvgHwrz6d7h+4oz2x4qd1hLKyUm0AuCN3fu46Bu1RutM/hUtKQ= 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 GV1PR04MB10108.eurprd04.prod.outlook.com (2603:10a6:150:1a2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Wed, 17 Apr 2024 15:25:19 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7452.049; Wed, 17 Apr 2024 15:25:19 +0000 From: Frank Li To: robh@kernel.org Cc: 20240409185416.2224609-1-Frank.Li@nxp.com, Frank.Li@nxp.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, krzk@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, pankaj.gupta@nxp.com, peng.fan@nxp.com, shengjiu.wang@nxp.com, shenwei.wang@nxp.com, vkoul@kernel.org, xu.yang_2@nxp.com Subject: [PATCH v5 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Date: Wed, 17 Apr 2024 11:24:57 -0400 Message-Id: <20240417152457.361340-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417152457.361340-1-Frank.Li@nxp.com> References: <20240417152457.361340-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0287.namprd03.prod.outlook.com (2603:10b6:a03:39e::22) 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_|GV1PR04MB10108:EE_ X-MS-Office365-Filtering-Correlation-Id: ed4c7168-010b-487b-062f-08dc5ef2972e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ShuNpM8RKbV3r0/vain0VwMfVhEPVv5VXH8oQkSdTJksg78WRD7QkP/0vYZ1RVeMNozrkfLZFLUTaTz8dlYSTUOIGqDoByvJXwNeCWC+WIL2d8fKM2rju+Tbt1zB1MsjBZRvFuNHHxTU03j+MVWhHE5eoa/nOUIcCXOHnw+nnKoSlqEcYwSp8PUHV217CU0sl8rOPXIMOIg6ljno7A1yfFumLb+JKBfIUE/FlIoG3LgJzyPYehBgsnsBi88OXjlHccE/mMn7hT/vTk7UK8wy2R/UQ8ZUriUJFlv3X41T1Lnzu8wfnOwsEWv5xwbpc1FKsBZUkMbA2wKup/6I/F/Vtn4Q2Z/VAJTqSsDPS59fQrVMcSqtws2F13CNQq7cY7m22d5I0WBlM+FvNzgjC5VXATTkFBD8OpUw9mrw67shIf4T8XWQ1BLnfVWBp39B/vFnKi970oiYKG1GKNJtSJdb6jFLcohUPWYDIIbsZsS6jcABXTO5f0mh+owi0Vja/YBdIesPAdYS66xZt5SMlAYNlnJkFKCxpi2shTBS80baA816OG7aRZ8LxlVwXHRwqc3NwSPcOCEt54W1+xUaO37Zr3GYc9dAO1ELjDZlfjELvJK7737H1YbetncfHnG3vVFVwJEQzHdDTxIjXJgThk04gbto9CNbytiNBS5IFxsvCgQRVtvfn+cnqqNu003lzZdtf7yzZ2Rtl8r+399aX/Vtw== 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:(13230031)(1800799015)(366007)(376005)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5DQMLrZwdGns5zf3qImBVKGg23ZKg3aRbxwCiKDeIU/UWaB3wyviYV112AQSefh/GGQutnvXsL/Ej1T5IISjljnER85XaLHsb/Dv9kgwWGXdG4yDhRNVJiK9r0IXuxI7swIa6P9J/A0PiFWHnZxMvD4z0QzHXe66KQVMwqqdUo2ZX4e/DDGG+gGORrfNXFW5/jQokmxr656WWpUAYm1NZUeGAscFFs1xL7vjKObz3FEVF1uM+c5MCM+NgiabAEjUZ9ZG0ZBkvGQYrQMdZU9jcJkcAhiqqMj5NPpmdR+dElmSKe41lC6yDLJfGLb4Q4Hwefoty5WDqYdhkC0NLW2UHZXVY2Sc8ru9GEGtyEM2q7O5YQywl4tL7QwT71YEyWKOi8Qc1kQ1J0e+NJaWY7JTtiE1iK2K4XNZfQvZdtKxE726ipEPveb6JQ0aEaGmUbmXTA+hulqNLcpk5/W3GSebjZD68cSsD4lkfBdbn4g2Bfpyd9usv2xj5Eqjeuo8fLpjrox3vvHAfVfEBgL7KpL9EnX+1GLZIU0IzhRjpCaPvIyuFRdY81xurxPL4hs8wd3PtNcPO2Xt2gDOOs8NY9UBNo5amI8ciJBNllSlQic8RBvCraXjaUMSlvQt+RYzH2lFHHPG7yFAd5cPxvoIgpuKB+jsd3V4bvUvk33GGRaPUNnBjiCLYR5tIT8J+OFUO76f8XqlfaqwS2yODuwRTf8TexuKF4ZcxqJqq36cYbZZZH8Hsa0ncxSRcO12BIYObxe97yIHCFtdT5Tsx7f/9ep/eAaKBwP6d1z4bpVAuSNy4AGirDYE0sCTPJTcJhYftYQiLkogtNVe9W1Q/CpF7VTD5djO2nwEgvII0c6YFKcNStxh+nlKEPFfE674uTOVJaNSIh3V0N1rjxVlIokaBf6aBFLD/fWp5EvsRkO4RDyIx0YIp0p1tKfzNgelp6X31+KZXsz6MJB4DhrYXYxu/8uDibrKEPKWIpJd8N4yBwSB1A8doxKsQkE21cOr32kGNmm62nHf/GHYLZiWQNUZg7cWqouk7yoHbVdEsCF+vecz2FRR6ab85iHqaU4gmBEgxrXvOFqATkdZejTTHUpXU8GJwow+zxSPlx2D8TEED4val9U+/8BMQDk3Lbs8/biS4+jGcVLOzgBKAe4UEwLTABGVaV2plzzUzXWKyI+81Tcgq9krwM4ixnkhdmVEVCHz9AA7gRGDCMKv9j+8MOAaS0Y+/Uh51aC8InHC8FTRcXkEQNt6N7pCbok7pWQuELB9Hi1UUDUB/QFdX9ZgyuVn0hJ0prX3H/1VnFag832sqwRx7bpElU+JgvP1K5BhD/XcD+HYbtunTnKJAtg7hEhOXVXqddTBd1795rji4tvoVBAGpY/ezBpjAjNSUvDzEvWx0WyyX+VqGrcGa6TfRAv32u1v1bi8EFvHU+RrRR7C1vhEjVgGiXIZeXro7Em8V2Gu2LTOqP0L8FSL50d4MZDZ9BbWrGa7oUdnBufRa4HojkfLuNjrW+Bg7RBlISd1ranPzKGJEaJ4Og70IJeztcpYnQoJ+fCLk2wJnuB5OcJIe9W0xVscq92Xavk6wdt/RaEBNfn2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed4c7168-010b-487b-062f-08dc5ef2972e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2024 15:25:19.3012 (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: WKN9Zl5Xyb8yRNqHMhqZJ9Zl0Gs2Ie+fx4n6qt66Bm6AVk892RtZhGJhSaaxhUqEEbeFYu2Q6yT1H3dqLKxEYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10108 Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need it. EDMA supports each power-domain for each dma channel. So minItems and maxItems align 'dma-channels'. Change fsl,imx93-edma3 example to fsl,imx8qm-edma to reflect this variants. Fixed below DTB_CHECK warning: dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected) Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- Notes: Change from v4 to v5 - Add description according to rob's suggest. "The number of power domains matches the number of channels, arranged in ascending order according to their associated DMA channels." Change from v3 to v4 - Remove 'contains' change should be belong to first patch when rebase. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,edma.yaml LINT Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/dma/fsl,edma.example.dts CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTC_CHK Documentation/devicetree/bindings/dma/fsl,edma.example.dtb After this patch no warning for imx8dxl-evk.dtb. touch arch/arm64/boot/dts/freescale/imx8dxl.dtsi make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 CHECK_DTBS=y freescale/imx8dxl-evk.dtb DTC_CHK arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb Change from v2 to v3 - set 'power-domains' false for other compatitble string - change imx93 example to 8qm example to affect this change according to Krzysztof Kozlowski's suggestion, choose least channel number edma instance to reduce code copy. max channel number is 64. - Rebase to latest dmaengine/next, fixes conflicts. Change from v1 to v2 - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel. - add power-domains to 'required' when compatible string is fsl,imx8qm-adma or fsl,imx8qm-edma .../devicetree/bindings/dma/fsl,edma.yaml | 80 ++++++++++--------- 1 file changed, 42 insertions(+), 38 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml index fb5fbe4b9f9d4..f624961223f34 100644 --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml @@ -71,6 +71,13 @@ properties: minItems: 1 maxItems: 33 + power-domains: + description: + The number of power domains matches the number of channels, arranged + in ascending order according to their associated DMA channels. + minItems: 1 + maxItems: 64 + big-endian: description: | If present registers and hardware scatter/gather descriptors of the @@ -202,6 +209,20 @@ allOf: required: - clocks + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qm-adma + - fsl,imx8qm-edma + then: + required: + - power-domains + else: + properties: + power-domains: false + unevaluatedProperties: false examples: @@ -257,44 +278,27 @@ examples: - | #include - #include + #include - dma-controller@44000000 { - compatible = "fsl,imx93-edma3"; - reg = <0x44000000 0x200000>; + dma-controller@5a9f0000 { + compatible = "fsl,imx8qm-edma"; + reg = <0x5a9f0000 0x90000>; #dma-cells = <3>; - dma-channels = <31>; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - clocks = <&clk IMX93_CLK_EDMA1_GATE>; - clock-names = "dma"; + dma-channels = <8>; + interrupts = , + , + , + , + , + , + , + ; + power-domains = <&pd IMX_SC_R_DMA_3_CH0>, + <&pd IMX_SC_R_DMA_3_CH1>, + <&pd IMX_SC_R_DMA_3_CH2>, + <&pd IMX_SC_R_DMA_3_CH3>, + <&pd IMX_SC_R_DMA_3_CH4>, + <&pd IMX_SC_R_DMA_3_CH5>, + <&pd IMX_SC_R_DMA_3_CH6>, + <&pd IMX_SC_R_DMA_3_CH7>; };