From patchwork Tue Nov 14 15:48:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 165006 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp2014674rwb; Tue, 14 Nov 2023 07:49:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFL+hVdYG0Q8NOwJcA8496MJlsYX22HMhFQwJcPezOn3d6+gjmnKluiH0X6pP5q1mJo3l+x X-Received: by 2002:a05:6a21:a59a:b0:16a:4f24:d30 with SMTP id gd26-20020a056a21a59a00b0016a4f240d30mr13635192pzc.53.1699976972653; Tue, 14 Nov 2023 07:49:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699976972; cv=pass; d=google.com; s=arc-20160816; b=hORVgVOWcMP9ZjaG/gEwg3LtQUZErs671rdJPF+QOnFP1emeb9hlh2GIY3KHi4NCWR GAsynvam7n6lMWj8Q6UqyIgUsFcUCbfXxOB/G9GDDymDn7p+JIHlbYXDGPubGvvyU3Gp w8lm3mDasAwM0YR0WiFoKXDBzw0tGghKF4plzwGt9ppuHIM0QgZV/PuuXOfsAZiEJT7P M39h/6Q8k5k8rXHPSBqSU8uxnGS8crBGQZcGR/4tlejPs/1QHUqXCcP4wFo0uOatNoVS PaIno5M49YsbtnGBrqT7v6kqjxZgxCc+I/ZDDBw5g7khnRHNHvt1d3cV167ZI2b5Q/1O hJ0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=95cUwS0vKJDzzxXLzF7IYWyGJ9mITiC5TUqKbauSppY=; fh=CYuI5pm0UTsAUDOsRXlVHmjVosgw8JGhuswNHlX3ytw=; b=wmKsyvKbW6Gqo/xpAaHGKiUgPr9/XfODTVMK40n9xK5PF0mAWhaZ98GKt3pdVKBHqj nH/nNFMjC+ZDB9w+NQFh/rFqmWOkt/FPWSfOS0YmidX2Hz1i6e+6IXroS1Z9mnKR7qcc LQkAkWVAMnLHKSePVg4gpMZHT0pUnvX3fj5RLtsLRyGalmxSm2OptobF7I1xqHKtPSBN PjAlRY05eFm3oAc924jMxccBP242DLolSvK0FtosuFnFOPFroq3jNQoYe3KyTnC/T2Pf 0ubYCy8nbXCRGUUQIRanP6+ZSRjRUAgfqW8HkIJBuKo0nyUefm5n6w2PZUdJ7H5P2Nop njkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="C/42wZXr"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j71-20020a63804a000000b005bd2b2ffcefsi7839158pgd.523.2023.11.14.07.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 07:49:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="C/42wZXr"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B47CD80245A8; Tue, 14 Nov 2023 07:49:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233708AbjKNPtD (ORCPT + 29 others); Tue, 14 Nov 2023 10:49:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233604AbjKNPs4 (ORCPT ); Tue, 14 Nov 2023 10:48:56 -0500 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2075.outbound.protection.outlook.com [40.107.105.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F6C12F; Tue, 14 Nov 2023 07:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PVv53oJCfnOq0FLbMyCyBETDBjPmf2onPdaRQMmOFzc1bEghnC3t9OVauNrd+uINCUmpyfleQGmHLY+/daGIIFRZAClqq5HhQMkfAVf0k4rzSaPBp+AFTW9bxP4EfwrDegTpUfOLXT8FGPiUOyS9ALYf3fH1vpJQ1+CQ9sJ6LyqrFM6ZAKya0Ibggs/RvA6uWUPf+pGMD1/wxkC3RiMvsAT8JGqEzVHFz3rbyxKH8QjgO7rMLAjaaPr5dBZ6PkVnzclz93usoK54EIQAxnLpnY/TE2UdwRsJVPpnZSMDz5laXEASBF03Xld2tysq+VoFSK7j54pw6x+Neu9Bp1KOIw== 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=95cUwS0vKJDzzxXLzF7IYWyGJ9mITiC5TUqKbauSppY=; b=ghYmkenX76WwbawPKmScMIx4SbIXY8KOYyvfNfoqG/t6OYUdSqzY61Okb4liX8tzR5sRXedlfHsvOkQ0j0pacT1os15go0JA6fPQNMYhb/GUVQ6OS+UXDLwOzu/pcLMf1JnI4CnD54lZSnNc/Qi+Aj8Jn3tcUxCEqlJW/jWdt8o1ZpQ4f46pTtiv2P9w3htQt+FfTGpKPOdsvehWFbg7yWAit39Izq41q2SzaDRpY3njSCFL+1uI7E2fO2CZDGKRZPlxh57xiAvKg9XzAwM+mqaf5VA5mdTMx/GL9Wk4C39qffTLKJzTtk2Ou9Hy8A6WqzoeO3E4Fxwxb8EFA4qLjg== 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=95cUwS0vKJDzzxXLzF7IYWyGJ9mITiC5TUqKbauSppY=; b=C/42wZXrUTQx8E7TtHxELZS3btv0Ca6NEGwo3GwxJmU/t2wIJ3fgOrwlSe6m6X5KC+Bj0rSVau6fNt2qbzJAJJqfG9FBDGanApjxYk+1TrsEnYr6t10NPCNVQ3k3gvR6ulyJVs9YMZDpSP3D0n1/i+Rm744/KK4uJjdTk7JasSg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AM9PR04MB8113.eurprd04.prod.outlook.com (2603:10a6:20b:3b5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.17; Tue, 14 Nov 2023 15:48:51 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bc7:1dcd:684d:4494]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bc7:1dcd:684d:4494%4]) with mapi id 15.20.7002.015; Tue, 14 Nov 2023 15:48:51 +0000 From: Frank Li To: krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, festevam@denx.de Cc: Frank.li@nxp.com, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, joy.zou@nxp.com, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, peng.fan@nxp.com, robh+dt@kernel.org, shenwei.wang@nxp.com, vkoul@kernel.org Subject: [PATCH 2/4] dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in dts Date: Tue, 14 Nov 2023 10:48:22 -0500 Message-Id: <20231114154824.3617255-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231114154824.3617255-1-Frank.Li@nxp.com> References: <20231114154824.3617255-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY5PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:180::23) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM9PR04MB8113:EE_ X-MS-Office365-Filtering-Correlation-Id: 1db399ea-7ed0-49f7-fc5f-08dbe52932e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7+ahv/otMtGYlufskv/n/Ucthoa2INYeXtPnB/1NCa4aL7Gnfcy7oxX+o+n6Fu2F2INk9gUz/gtW+I1m26hkwICaqFqjjM06JJ61Pi93vn7o6e1EoHR+vQ1QHGIz8yRNwS1gmoit1181p8+5Ulu3UK8yJgdbTXD4YEQKCi93SuKEWwBrU39jsLuSjL2D+F/3yzMtLRgI/luIumH9Eo9QBzPj8d93wqc/IDE1DhybcAPth9D3wDBNeg9c3caHmxiAmg8gjDzFHtvRX3agzE6xvQS9R+QKRzYRFQp8U1rbKsZHxp6JQoHCd/Gpq9QYUcGUQac6er2+Dcg2UfsCBwjyvI1rdZqMcYeoihGq/QjPMYi4tajDj/m6HKOprfUwW/hro3pJBKlrgF+TomUdzlU/LI7we5x5Qhyj3YfhP+q4vRcRj/zhH+zUcflG8L1zUqfAkY2g0sC9dr3as1aFq4LyTquZ0cgUSYFD7KBylbGdssc0s2eGTvsxqb7sAWE1QHVHgw1x41T10kRWlyDD3WBnoIsK/HfXUZ7Lb4w8KuDBgHP4kHO9HYgKwcub6aWaaTuPDGnVIbDrxI4ns635gmyVBtXblRjjSCHoxaPluM2e/MxDeBD9mKziLW3PY2netGjy X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(346002)(396003)(39860400002)(376002)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(1076003)(2616005)(38350700005)(26005)(478600001)(52116002)(6666004)(6506007)(6512007)(6486002)(2906002)(38100700002)(8676002)(8936002)(4326008)(36756003)(41300700001)(5660300002)(86362001)(7416002)(316002)(66556008)(66946007)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SYwWSY3ZlPktqJQP5LeavmTqsMvMjmk1p01wOE4+63+7gsgieyYsf90JBALCek+LCkXJhMjOlc8HiLVhRZ5dEfninRsOqfY12VAVue26rf+Tgj4Am5WMu9ezGO0OUZcn0kHJRWElJarbj5pO3Bg7usPiC5BWZ7NKFGXmuvpkkpUf2EmBjfz4PnLoS7+Wqy3UFnveKFub8Fo6Ig5NvFqFXbYVynjejuhoBmkL4ybyxzLSPchqS3fYD3IW9e6Lc81iOCy/fnCkFw0YSsXlYy3voLxBwYaZT5dOHDj8Xd5rf0dpriww4/8N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51X37Xf4MKqr8HBD0cBHC+kpzp6EO/hoMXKVpdBFOIw/umTXZX0+E/xSbqpa7/ztOHOc+jDjJH2xqgWcfFSPdoDm5+th+0JOB70Aa+dc5TA1WgBNgvmVDgvXzK2sarL9SMNxZC0UJ7EheutVl3G7OgH3pBl7j+4MynfjM7AxCG+u4+yD89qaNQr79/Nw= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1db399ea-7ed0-49f7-fc5f-08dbe52932e1 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2023 15:48:51.5068 (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: qhB7SxxKHEn6S0GlKy57R6g7RfFiVcuky92//OST5yYd0wgCNHG93eg6QXz9VuCZ+c+ANdZskFwzX9MjVBloSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8113 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 14 Nov 2023 07:49:28 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782555054077098838 X-GMAIL-MSGID: 1782555054077098838 Introduce a common dt-bindings header file, fsl-edma.h, shared between the driver and dts files. This addition aims to eliminate hardcoded values in dts files, promoting maintainability and consistency. DTS header file not support BIT() macro yet. Directly use 2^n number. Signed-off-by: Frank Li Reviewed-by: Rob Herring --- include/dt-bindings/dma/fsl-edma.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/dma/fsl-edma.h diff --git a/include/dt-bindings/dma/fsl-edma.h b/include/dt-bindings/dma/fsl-edma.h new file mode 100644 index 0000000000000..fd11478cfe9cc --- /dev/null +++ b/include/dt-bindings/dma/fsl-edma.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ + +#ifndef _FSL_EDMA_DT_BINDING_H_ +#define _FSL_EDMA_DT_BINDING_H_ + +/* Receive Channel */ +#define FSL_EDMA_RX 0x1 + +/* iMX8 audio remote DMA */ +#define FSL_EDMA_REMOTE 0x2 + +/* FIFO is continue memory region */ +#define FSL_EDMA_MULTI_FIFO 0x4 + +/* Channel need stick to even channel */ +#define FSL_EDMA_EVEN_CH 0x8 + +/* Channel need stick to odd channel */ +#define FSL_EDMA_ODD_CH 0x10 + +#endif