From patchwork Tue Apr 6 11:33:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 12184983 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A937AC433ED for ; Tue, 6 Apr 2021 11:43:25 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F00BA6136A for ; Tue, 6 Apr 2021 11:43:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F00BA6136A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=50vy3loqFMMgp5YaTgmxwNtTRK/qJAiyVivTI1z92Nk=; b=JwwlaudP/UCb6pLYSJDh2JL08 Ocuuzd8f8pt3jtQxDdD/gdcWK0cZ5srJhsNIkgkZY72bMF0J+eTe0hTJ7yXy+p6E59A2QFUSSMS24 5x1xacs0H7JGY1xEO8KZ01lihhCBGqSWTcz8rEPdWgFyC1kvymGmwVycJQzl315eu8fUWi6DUdV3e XVLjqZLgJBuniUvx5oJx5KSS1xYEBoFaOgn8GQZvPVQiQeqeo6rPZJNGbWj6I+N6k4agoxRkFJWvo kqIB/PUYpCmrL2sJCJB5ef0D2P3772Q4aML+SWu2GAtmS+NeTeFspM9KCOwTk5/N6ITatnBdJb1c7 XZTEuokUg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTk4S-002P03-4o; Tue, 06 Apr 2021 11:40:36 +0000 Received: from mail-vi1eur05on2079.outbound.protection.outlook.com ([40.107.21.79] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTjxx-002L3K-O6 for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 11:33:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n0KPj+GgJ+iPjdccgZ9h1WV8oMXpcY5gyNd8HE2m1+5YlghFDK8uBK0n/+zmhertv8hm5GnCWXxgl4eq31CBkOUGgMOCT3JuE+7biUAs+csycaF/zRlfq79KFKLWGRGLcSq1TgiskQerjSr40znGsk4GrSLgZRx1cayNS6/wAnTNqJZxihxfwS5it8oqUXcWR/ZuXCAjlex7OWOm+ON0JPWWikq1Woi8rf0EnyxDUt17jjBxRr1i1mvHfsJwrF5K9neLC1uR8USQ7wJ3Kr9QfmbZlc9N4mKaAj9LPfHgXttNmLk+c++XZB4pfd1srVSwRepLF3zWEs1Iu0d37WCl+A== 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-SenderADCheck; bh=RlsQNheMsLfUzZMBi494k56EUF3qzqHcstMOTN168/M=; b=DRherDCN6uiIec7+8jI7vD50CLkwx0OK7F2JQah/7DLTHTVjaV+HmmzD8QXJE4ByQgtIrOrcyWn9jJO6EfiY+v+0YbU4+o0j2/s3Gtelv/6UUanBbKea2ryGBQCAVfqTGsqVS9SEQsOygavvIFGnalFbpuzRLZ603LzFHv/rFF2EzbePW8SNeULQ0QsCG+0j73agKLR6GN30UCIXNA4C2ZjIYT53T/pXuYlvex79STNZ/RYMocMJe2RMv3x+ImJZecU9Ab9+7qR6VvIjhEfXVWFjC+1atMzRefdvE9OBF361eonBNGQKNxmHZoqj8P391/jj5GeXHXOVc4B/+jNjZQ== 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=RlsQNheMsLfUzZMBi494k56EUF3qzqHcstMOTN168/M=; b=BCQf44g7KmEYNq1SnPIKls2AT/gCkg8MjLsm5W2MQs/HYfTUhwRXepX2IaIb2Hw3qcxe2fF2mv+NVTZs0VyObMW1uuqcHFj4J9hQDilEdVR5SlzYKy6SOI/xlwO6ndaxsgXxsGa3VxwtciMAhewLPmXnJ7o4cMGfUN36lf0hRZs= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB5623.eurprd04.prod.outlook.com (2603:10a6:20b:a9::13) by AS8PR04MB8359.eurprd04.prod.outlook.com (2603:10a6:20b:3b3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Tue, 6 Apr 2021 11:33:51 +0000 Received: from AM6PR04MB5623.eurprd04.prod.outlook.com ([fe80::5cd9:3da7:144f:36f9]) by AM6PR04MB5623.eurprd04.prod.outlook.com ([fe80::5cd9:3da7:144f:36f9%3]) with mapi id 15.20.3999.032; Tue, 6 Apr 2021 11:33:51 +0000 From: Clark Wang To: aisheng.dong@nxp.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 15/18] dt-bindings: i2c: imx-lpi2c: Add dma configuration example Date: Tue, 6 Apr 2021 19:33:03 +0800 Message-Id: <20210406113306.2633595-16-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210406113306.2633595-1-xiaoning.wang@nxp.com> References: <20210406113306.2633595-1-xiaoning.wang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2PR0401CA0010.apcprd04.prod.outlook.com (2603:1096:202:2::20) To AM6PR04MB5623.eurprd04.prod.outlook.com (2603:10a6:20b:a9::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by HK2PR0401CA0010.apcprd04.prod.outlook.com (2603:1096:202:2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Tue, 6 Apr 2021 11:33:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bc5cca9f-2bb0-4535-8bd0-08d8f8efda01 X-MS-TrafficTypeDiagnostic: AS8PR04MB8359: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:854; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jbEUiQJ9Lk3eMw9IyVLpn/Kco4Q0Xi8VHGs+9MlXt+5DroQDQ/2kcQbxOrhP8FBih3OgK6nhf56WSaXJTb8HHblcvPUjZEjv/A8jwZTwq+iCTofZr70ijYnQ3bkBkqDxE7XTFJgRHUtWjrPlc6F0/9NneCAM/hAJqZ/ZQ2q6B8rn8UFWvkbSEZaDZ1UY+6Dc2NTH70XPkeXsX/FXlVb1UGTAMAcOdPWkbufoqN88Sm1wbV8I/MXzuSb2ezAlgtanqMMd4RNfvNUvvOLZNY0YtbCCP2IOvY3MrjOIE4IDMYfSb9BbH97kYlTS+sJPpxjIqZK/tKGMTX0mHqMEN0nCFszOV5uOU2400VDap8cGako1dNtskk0McCTC+OQPokVWIs5FTC69gpKUf30uh/4dFZKBLfsARwYEFx8Hj6LXeUf976PY9GUrV4pklJF6uB/oMIf9R5MHOzJPAanUOhkwOnL1q3XZFIWR4OelSI9OLgU973ft9Dv29SgN6a9zFlihxptny4uRPlLmp8F2SnOdyLoV4Pt+l6KLS+XIEO4Um4hxB9rgs6/uoeab+hXIFmLZLhizV99dTMLxxjU6ypcQXHxSXPtXSoQw1JjE32ysqeVk1ng1bnthzL/3T7RFHoEXYEIqafUpvD8PDrPRKcMaQfzGs43FN1Fbf3yMde6bqleJJEOlv9JJDgkjrWLSZD8gR+nLRJEp0lxUylJhziLtQA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB5623.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6486002)(5660300002)(8676002)(16526019)(86362001)(4326008)(8936002)(6506007)(52116002)(26005)(38350700001)(69590400012)(6666004)(186003)(4744005)(2906002)(38100700001)(956004)(2616005)(36756003)(66476007)(6512007)(66946007)(66556008)(1076003)(498600001);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7DbluZY/tFPWB+0HElXxv/azTkz2vcnCJT6ef8+9IHs/FzVP7beDwEdQDTALzH2gRTZ/CvMTs/0HbUl2jqKCXMACCrJCrfcE2oTLy4XD5SauD0nSA2GQj9GYRafDKnFzxo0hbNs0TnMHSo7Gu/CxI5CiWewQvwunWMi3rTkGrsFaTvWP61hJP0CfluVOrNdCdGE98Yfni3hZVNRqE6GQMjQN1liB5bGOXhgU6U6YOhqlKjYuqDtcS2INIP1FYx73WTwsxnepWVwMbnsOktDixWYdSivEGv0/OGAoJSX1gSc8Ve+eSbtkTH5VIj3m X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc5cca9f-2bb0-4535-8bd0-08d8f8efda01 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5623.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2021 11:33:51.4749 (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: KeKiLDBxMVQxMaHqGAy0MXxhQsBTORL44HYUxIUGT7SODPzul144n++3ox+es1gAJqcTwB1mh0uzpju3eEiCog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8359 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_123353_936738_9C2A4BBB X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add i2c bus dma mode configuration example. Signed-off-by: Clark Wang --- V2 changes: - New patch added in V2 --- .../devicetree/bindings/i2c/i2c-imx-lpi2c.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml index 0a4b28827dcc..3868fec0cf27 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.yaml @@ -51,6 +51,16 @@ properties: sda-gpios: maxItems: 1 + dmas: + minItems: 2 + maxItems: 2 + + dma-names: + minItems: 2 + maxItems: 2 + items: + enum: [ "tx", "rx" ] + required: - compatible - reg @@ -75,4 +85,6 @@ examples: pinctrl-1 = <&pinctrl_i2c_recovery>; scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + dmas = <&edma1 0 16>, <&edma1 0 15>; + dma-names = "tx","rx"; };