From patchwork Fri Apr 12 15:42:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13628015 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2079.outbound.protection.outlook.com [40.107.22.79]) (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 1796185278; Fri, 12 Apr 2024 15:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.79 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712936547; cv=fail; b=acoBavTPksEn415rX4JjdmKUPXrqxc1T9/DlMv3/rQOUUMIs+ZPIPzRf0/VrKGoRA0h4/LWrpUqQz9jzhJ2dKt4Rki3oE1ZF/UxjWpQObh3ulstMWkZMNVG3pjT+PGw6YqsZFdoYcmIQJ4HzK5WfeZbTZvVgSw+ZOADsOuMaNY0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712936547; c=relaxed/simple; bh=yyf7E23kyl4Pej0xMuMGYELVU6tH14PmlIKdxstwdtA=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=fTble1FfTG0Ph19XAYu23c+WQiHY5+/RSR2rSwNJaXJ1M0v2xF1D1DIOj7Uj/33IX5ZWa09hD4pK8VLTcmJwMubyV/U/dXUyD2vhu27sx/nnWqnJ9FtBmQpe5rvqad3iua92uh7YAc+pK3Hx2y3QoCjirKLlSc50zC2I29/y+Rw= 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=OwLGrGHl; arc=fail smtp.client-ip=40.107.22.79 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="OwLGrGHl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=idbMd4lbxDlcyeS1Ze8oFproo08o+uQNBq4yPbn9bFUVik4z67BpDImi6xPnABLX2wmiAi7BkcnwE6iOAqvL3Zv/ozQfBDEYNAJ6T7+vio+wO6Z9QU/vU0B9Mn/j8dr++vS+DfrujR3z4njzoKQAi1LZj6i4NkgmGeSRW0ZA8Q5dwsBfgyp+836qhfLTB1gnXVfS/OtTpFSkh5yHc7fA2q1XJZQ7vfe3Rol2Rk7oOg+9rWjmPRRoCxENmanb4H3rzKmb3X0AXp/5mTfstG28nf4CGfgsZ5MLFKNk5voNnAPOJFhu79rhLPePXosLAYl9vv2TeHbfgOYiUjnPAWYVGQ== 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=O8fg33KXaUIdHAFL3YvObLB+raTXbBVJgCMWg7y4Ws4=; b=Gj93oDzbV7xXEIf284zCkIR9geEr3/fqY3afvgjHIy5ObF/3d9Yvau7nBfC8OEbl+17r6HOw+3GHeF1Rew2uuvUuHNbMTVsz2pJxUl4JzK4Ht3uX0tT5Qm8d7pTZKIml/D5978fphTWmomCy8AgiUw0ti+oiXuZFivxzGgBjIGssOOXy0ZgyDU4IQKowv65V2QDkLfUfoTjBPBCvPmFsogbrrM+ggoKhZJn0CHHSrwB6M7g3VhwPhW9ULYlur4kCdBQogRFI+TFdyNN2a+mzDQYpg0auxbu7RPcY1flEpu/tqielLJSFj979PqvdKPx4i8N+std8xHRRoIrZ7GivNA== 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=O8fg33KXaUIdHAFL3YvObLB+raTXbBVJgCMWg7y4Ws4=; b=OwLGrGHl0Q7L6lHkBpXuKvaIdAZIZRoW3ncnLb9CDdThCCOuZVpOaISbR+N5oEhBYzhPV1dIMv9AR+MunZKArknbAeNxc7dyL3eSwMzXT560tZ2BcRevTr66QrB/3e5Vkm6FZKbwBJMNvgrbdP9xdBZy/OKsBGeEwbzOu1ckIFg= 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 PAWPR04MB9934.eurprd04.prod.outlook.com (2603:10a6:102:380::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 12 Apr 2024 15:42:23 +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.7409.055; Fri, 12 Apr 2024 15:42:23 +0000 From: Frank Li To: krzk@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, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, pankaj.gupta@nxp.com, peng.fan@nxp.com, robh@kernel.org, shengjiu.wang@nxp.com, shenwei.wang@nxp.com, vkoul@kernel.org, xu.yang_2@nxp.com Subject: [PATCH v4 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Date: Fri, 12 Apr 2024 11:42:07 -0400 Message-Id: <20240412154208.881836-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SN6PR04CA0087.namprd04.prod.outlook.com (2603:10b6:805:f2::28) 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_|PAWPR04MB9934:EE_ X-MS-Office365-Filtering-Correlation-Id: 2502bddb-0b05-4460-71f4-08dc5b072569 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /lQCwQatTqETreen7C2DQ0bm9TIgQB6OeaOi5mrTRFWeoEyXUUWMxLNNV4oAQHt411bY9ak1z3TDIEVgVFi3aC/eLdE15SiMcofYmMFaEgIaCnJ3TyPUzGtRo56UPbFPuf9W2dU1Eyg3gORmOPw7tlhjJblpxSlzmuWLoFiFSpeOy2nKIL3Sx1FKkNnB/eWtaL3ksP1/t1SY4BXlQClepgie3VVtTUyDnBUkhN3zpAAsNJocDXIuEpXUOSdVL7AWbuAS9tp/SqCao/L5TxV4FfiZ1Cac7IiwRDiaD3GMK96y+teWonN+txLE6pQ56pu3OqUDno2BJtFLl6lfnMo1MvnJRV9zt3gcaWvpbLD7a3oxFSOEDeGBWqEJRlsVVZS2l8qlWf36KQTFJlEuRy/zklCQsF1f8h9yPT4l9++fZj9mca41+a7UkTzjRHpMgwm8k1wW6NNUJBMfVixToIw+l84Khs0G09fCai7ab8vk/MkdNxfaUQhQxRaNFKe7iX7ZNiVhO6Kw8lY8UgheIHda7HUDPyWbWQJ39DArKZX407AGX2pUMDK3Q0ZpOBsl5EOpI/Uju1pD8oLynUCxf5IlCbJqrauhZuffQqfg4BfBU4fQqFKhGUOzH/NEyWXYmhJnvKejtkhR6c1mkVd8XWr6DQSDrAwEGanYmQ+3aVXB5tqd7vpQwUycC1HV+HqUL1xn4ByjoD/Fh6ziVWkqHU0ucA== 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)(376005)(1800799015)(52116005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d1zsFMrDBaXInRaldeAd85OMvTvBngIk9ySoGvFuqYVN7DeEKSdQ9GR5uS9g6X+swpFqzH1fTID2NXN7kJuV9XN54AwvdkgqMqQzbtKrwkaAGEuPU7dHpf7g3NFwCCfq//uawOUQF2wMaGvoCr8SJcirXXlyLrOk13MzRe2p0TTNKwu+YH5rH8PCkuO+9sawD7jsOUsBBBog3fokQbpJZYJmLUIxG/mi1FULCXDSTrb8P+AHXRc5EbXY5AGorbYI2nsswOTYBKC+fcMMmVx0pgmtMwI311NcRnYZBvgM71A/m1b5ZjkTIayOJIR/X1+3X3TnKOoc9i7cJk+Uf7J0jNIVKS7cnPHPHnTVcoIkRZ3LWgLY6kRe3nvJkruPFIMoRQ49bHXzvFYePYlWMJcJS03riL4iH0o6QDOLxe0qpCYSjo5unMyCthU8tHKNRabzh1qdLxeraaOUKBABEN1Ot0yB343V1bu+dxONx0pye3pkqigGDouF1u3O2tbQK388iOg5RBUTzPuuLOJ1pdL1EaUr8nckB1YlvTIoB14lx6kJnGEVT8tUlXfbNfNxzfV1tDEd5uKb4NWirUQn3uMnRyv7YYNwBwLqgD4M9wPenYe5wjkraK0gkoQLOqdOoGXZPSexKxhQf5E+THgKUwYomMLudLYMpssQjeUsRecsuBNjh2TvTulkDtZ1efAo1/yQuL12jAzxfWyaXRP5pZNrn3YVDzN7wZkEXBV3Gcn6ZpETOSYvOdwlLxWZyaVjGXAdOewARh162xPJVSzD0ofAYmrAk9R6wvTBjptis6jx7VD2AySSibvOpaJC3Rz8oHyOxVgmDGz9VFjo8DkXtoEeA2UNMw4bild3EPm8J3+uEqldGgQBXlJMac3H0qtdfqmriDuXBJpTwQXxEZOjYRH0lEMozf9iqLulwctIP/brP3tocBfR0EtZZZ4dGuhRly58X9UtjuBqeJRxI2CvSiJr1EZ4HrnptzP+vIaUbrbLuLbxxl4/LizqAckfi8E2ZNQLNcVBSOnzdAbIhChuTEI7mujDrsqyiUQGFIOHFXzg4HYbabHbkW0pgvOdKVL5S0XXRsdg/aojs4OoT7oGaJmg830Oy2dv4hWFjY8pe56XdRr2SBeELlv2vUThNYmcmkvz8AC22rA885HlsGtB1Y519ouJ4IfgeBnWXBcBNLVRJkiMtedPkXY4Jf50az/AhS3rP6zou+mb7oqoACHU0GKcUWrR80L2NF7NnHv6qCyIEZuFRfUCuxAlGP/UclJZHJbfosTje0I6wG3Azh5741J7oahqYuOj3kyXvQ0EO0Kzyygfd2MAYT+lx87+tFFM6ycilcHtNuJZwoE93am7CCu0SlbCCOBXxXycMj2USLbRzw5OiVAw17iP4tNYKfGucHhLfqyicIpdMgiDaZkR+oJdZfWdHZVNoYNXTGU9H2tAUujq6Y50VX7hsgMMRSgFl17CUnHo79PHEBSPW2E6meU4uKNGPemIC21n9tWOS20tM7V/46bxCXB4J9NOXL/FzVQsGc/5ylkuML7NJ5VwVVIAyQBv9neWBh8mKq+SjoDl+BAo7edszsz+RjNbz2Yxmf4Q X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2502bddb-0b05-4460-71f4-08dc5b072569 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 15:42:23.1890 (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: XAPozN74e7yxq8cf20wOEF3hII6m5Y4pvmgz6wxltb9PihGb3l+CdO+XQ0F1MsCw5TPIFT89H6dYgeTtlvFwgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9934 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 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 Fri Apr 12 15:42:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13628016 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2079.outbound.protection.outlook.com [40.107.22.79]) (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 2B0461487F6; Fri, 12 Apr 2024 15:42:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.79 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712936550; cv=fail; b=BKDrTDb06Oxvf98Ed14i8z9B1EdLXU+j4Ll3Vv8t3sjvty8NjoSriU/sM/STgvHU7TWEGrUlZ2K9W4yS+HFSnqjZrHZRxfAdcnaTdYei0OlnNr1aPh4vpIcg1QDVLqkhZnKXvVjCd/xb+7lp+i0cjvISpRntAFosYI6PpHnq82Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712936550; c=relaxed/simple; bh=hZ3FB2YoAEaQW3Ylnt/Gg7JZTQVv/tL4UPaG2eVnpcc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Y7CQvol+L2P+baaufluOGLZ3tyq29w9ZDIt1pg1t54s0ljpwh2YUiTBQyeFEN63T70nDOh2tmC7pkDLpBMNWP5TxSicuiRjqfaXfxfm7HIhZDpIVE1WfhnzcwcP+f8dcLG9G7mV+Hqz5gFyrOFTzyeb52IboN0RdRzwCImuBwuY= 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=SmSvxa6e; arc=fail smtp.client-ip=40.107.22.79 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="SmSvxa6e" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SqyxzOmHkN2Y6pV4qQ+FQrE9TAgYjbYheKux+w1vTV5GoTXBaDhoy7XHzEccvNSBHvPkLHz87PiXl+I07/S5kG8o3RYmn30k/dNC+cqxY/Sc2bS0ZnpfvKcS4d8/iix0kWHVO5ACcVArOWPJKXIfhcnkhxGRgnIle9gO2AxeFhCccTU276C+DyCVML4v2AhH4B28uQTZmdBhMO/Oh3tRkCsdAezxseWy3KgrWuSkyJazZPE+S83EFO+ilsimJVY/mJ+43Ja1T3/dzhqg0RAPhQSOA3LEpc5GZQ89mnt3JL2jxAPXJrC1LxsLCKTzPyAdlmo4ZGOKOz6OdOWS/PLQew== 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=zN7nKRHIak8A+YwDg+BzJQphoPyV1EGHTxG87g0wUC8=; b=DBxHmHVfAsFdIVWXYAwKR5FC7MvcUvZLahsYu5znIgOQsqCeMLpOgnCYsQRV91ZuTUlPO/E1/NVPQv2far1PWbRrFr+SxDoEJUxrEhwccoqqecOWUyRQ50YdAX2SZONMFFY7HcC3pp6Jyu0+zjFcPB/2ceJeAUiOrW7qnCMUXXYzPmoY1x+qPHJX+SuwFWBBPUavo+VKTWFS2YjrUEqepDmR0FczUUDq3C6q/R0cnWVPkX9UuZftNk3y97I1bbo1cIjVWD+k+Aam7c/Iw7ib1AxYQwevtI9ZJGfiVZI5NmkzbQx3AIu65B/ulCli6id1mDVhdEalQIhCiP8DdQCcPg== 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=zN7nKRHIak8A+YwDg+BzJQphoPyV1EGHTxG87g0wUC8=; b=SmSvxa6eNvoRLloZYvLBPcyjk3EWH0tfXNmn29xncr9BCaBfH3ar8xenHCm7mzdu25exG+mPTBQ+eC1r8Ug0TRHetjVkcDndaAJ40Z//TiHfAQ4DoBgu/nd4OEkQKBHH9YmrKB50IB8fUR6I4yJQmGvxMEpU7v4EQYZV+IjwuqY= 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 PAWPR04MB9934.eurprd04.prod.outlook.com (2603:10a6:102:380::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 12 Apr 2024 15:42:25 +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.7409.055; Fri, 12 Apr 2024 15:42:25 +0000 From: Frank Li To: krzk@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, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, pankaj.gupta@nxp.com, peng.fan@nxp.com, robh@kernel.org, shengjiu.wang@nxp.com, shenwei.wang@nxp.com, vkoul@kernel.org, xu.yang_2@nxp.com Subject: [PATCH v4 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Date: Fri, 12 Apr 2024 11:42:08 -0400 Message-Id: <20240412154208.881836-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240412154208.881836-1-Frank.Li@nxp.com> References: <20240412154208.881836-1-Frank.Li@nxp.com> X-ClientProxiedBy: SN6PR04CA0087.namprd04.prod.outlook.com (2603:10b6:805:f2::28) 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_|PAWPR04MB9934:EE_ X-MS-Office365-Filtering-Correlation-Id: 58a3c29c-849c-4f24-1ad1-08dc5b072704 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lfJPteXYBd6kohK7RiGuUput4ffNYgYj8J5Tjd+D80qO5edEqa7ZsdOtmf91AuNlWZjwtx9Zvlt+gYTdOiQGjIaXFOs67evS2YvHObDEzoSpKSvxNNbXRtxcsHec/3FpFE3OQVe/Dian5xwfoJMLtUGnXW3RJ+juApz92pcM1E0nou2WhUxbQDjJkVitTNH1awiLW2aajBgh24XLyMw3ZoVqRNArgd/5gqrYGti1dV+10K07on+GE4FqldOt8aJAQJ0nUAuGjZ2YlFQQJKpvHOMLfXFlDhjWf54GDGFMVu6L1KhthbKPFjvbGb40Dr1OTQ9CosYC7XBXYAzuMh3EVjOB51f94Mnw53nvf6GERnmqSvlUaIWu+RCDvssCSy/ygI91ZB3BuKNjTzZKhuQNaqltzBDSrXSpByuGFpVNHIa0ndYYG4HpIRa27D6Dmd9CMC8QOMfpp6sKxtPc5aUDwhD60T+wGgvZ6CZFYjLQaSnyeYdUtE8FnXUtaRptcC+OePtqmXRmlL4b8DKm+7Uk8y5/b3uV7x9DC58P9/Pj6e1MTxb7A/JkKt76EvcNS3WBWmemC0cG4nPdyO7BvXyw0LQobxBpPt0k+k9LJ3Z0OxT+Pje2ZHOfRZj4bcZPDsnVkHkr/h+R2k8wTws8R93TO15o/qkfhVMMKA+HUJexNATV4g9wgVvHm5SnfydtCdnSbG2GaFD9BMEX0kFok0p/8OHLp4ELSloojgVUdPIWzlw= 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)(376005)(1800799015)(52116005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YXC1DJkdj7yJq+1U+yLSDohT5kbc/cKAQKONaJGREhUnCDP1taYppzNDesXrn6DmsQjTtKOOttluNfOeHMjY8yzTcvNKMd46PNGrHRdAvxQYxYgcDT9YQRRr8gGaVVO9oKO4ASxI7aJGxh0PNQteGRcq2xO4sdUdMyo+FjCbgW/9wSC+TAuIvt7DQFOiR42OD1U9wfDPdXvS4EijdU/VQ1HpjJFFKZ1uS/kf0IK/hBec0XYdQNQ+2DUhAisgXHvI0BqW0ugNUD5hrLwHEVdiEF9jx2uwJfb1hmxC2h8uEyprykusTVmxh6csWjNf2WZ3jUlMx0Yo3r7BGDzE1fqeQz31qrM9RrlpV4pj0JiNjnZpiwpb3hVDmTfcksAu7tVWIuIVIepr9E4WA7Ut54BSsgT7iwnFY+BBPosJWOAE9Umn8OtpsGA0TtW1gtlLWJrt6wEXAzl9f1J/z/ltYx4rXlxKyPLsjT6GAIeP4mS3v3xB4GgEr4u0THML3rCHbIOhHQl7yHYJo8Gg0X+tjFIb63fNW5+hQ5dYcqohJorEwnzFnE8NbMwJ0JW9NI1gOYtNerLgIZSgc22zFF9nYxVAAJwN18Ui5hKpc8axQDbAYEPITKbGk7bpxZEULlqldYVDkTygMv/S5+YlInbuxU6Tw+1nXYmO8lzKD1XZsutUqujMmUrn1QD0jOoqAu2m0YqxXrwT95hZ0JjBNAhNbbgqGbTwspWDfkNR1Qf27Kwte9876SWNmfNn7T64SpsLt8YxqmpGd3vjEaohENpDXEP7xxc/gFIs15WV87A6qc42lbHOCbg8CIiPwsL5AYqdKbkSB6c5rBkdiNx+VZCfIstW5q+m2RXdOO+dTlqXDImFs+ViEUE2yGb19rsLqoyczKbRJqr5uE5LppGFwQPhXMQvoROIQqBHJfHf6WyC3Pzg6DgkDmNo0srj3h0rOilgZU1pbrfZ//CB34cNpt4bqEHBSsx3rhN2hYWaCKfSkvR7jYc/PBU0oPHBb9n2RHjNH/j/YbwZ50ZwhasJAS7dP7+EPjpo6eAfuEjZMFxEXaXMPDpYMjZJ+eVpyXhmjlHEV27MgsM42phx+CS7vtJZvaPo1ue2Ag4+/ZKQ6tvpyfPknO088Z6rIuCEVvy8mtZ4dIN/JaE3VuAFBLbP7T4dxFCdYOhidNBLKVG1J8RiDOdR3lMA+j2vv9E1fTCNlcfC+dJ1dC/2E7BIKTUJbvHARV0n6GFxZ/HlVh2+212k0Ydj0MxIjsFvLPf+/BTgi1ah6jlFGN2+tqVh3CoRmXxqyfojYLd+6CaYrIGpqsynwufvZkATLXoHqMtmynqP30RHnMK4EuCcFp6jduTFTVD/+0P4goa8VBgwe0PC7I8hOVOUkCqkkpXDOi2/c6fzh9Wz8GDWYD8vpCkdWvJUIcWVBTmHAtxAp4Pe0WOTWRhBcLMMpvluzJpgtzhw2krFIyJYL/OJ8Bs3sOwgtpH9BjOpz9HKGasjIhbxlj7Z4BP6dgOcMQy0wj1KUPv6e/nNhfC19PhXoMrs1N/DpD+hdn0/xVZ5hB0kReBKdOkhEOkd/8LM805N28kZPpZ3ziLlNH97banu X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58a3c29c-849c-4f24-1ad1-08dc5b072704 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 15:42:25.8352 (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: pOVFrn8StR/g01u+2dzZc9O1JmcNscrsOaWd/EI4v+45DVgEL+m8P42wPEZ6d2CjxGdSvm/+D+xxM09y7EmJHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9934 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 --- Notes: 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 | 77 ++++++++++--------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml index fb5fbe4b9f9d4..012522612dc96 100644 --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml @@ -71,6 +71,10 @@ properties: minItems: 1 maxItems: 33 + power-domains: + minItems: 1 + maxItems: 64 + big-endian: description: | If present registers and hardware scatter/gather descriptors of the @@ -202,6 +206,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 +275,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>; };