From patchwork Tue Apr 6 11:32:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clark Wang X-Patchwork-Id: 12184955 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 B0859C433B4 for ; Tue, 6 Apr 2021 11:36:16 +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 0695B6128B for ; Tue, 6 Apr 2021 11:36:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0695B6128B 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: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:In-Reply-To:References:List-Owner; bh=B8YTtcxg06H7SLK9YJk7xApVdMww+wwvxmK4qd1hZ+0=; b=Jtqhr0FKA4TX1sPL9G7zGGdy2S qKvgXn9wTf2m1RxOS3VBmidvYeXLsPHxdBZtP3sxl+ncFYixWIgSuXJYSCaRFnYsbEexI2+YPBBRD QwJtRq8+wu5n/qmiDh4exx3N0Muv/BHOhHiNhkQW3Oyx1LTobFnaWhUZDbA1/DuLnWHFTDktFO5Si cTG3pgj5GVWqgOtIXQXt1uEWK+9QJo7jDZ8JyahPxY0w1lKhTGzVERjv9nW7Hgt1+yMx3UcuqTfvD Hf9eDAbSg46FFg3eTRNWWvbndAxXMlLKdHEmbmVMgEGL6g7u8CTQoXqSyawMdLIioMpSWyC5HT1AD +dMdbmyQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTjxT-002KpU-Ev; Tue, 06 Apr 2021 11:33:23 +0000 Received: from mail-db8eur05on2050.outbound.protection.outlook.com ([40.107.20.50] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTjx5-002Kh3-OC for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 11:33:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kVAIlSMDec7iN7X9iZJjValjJDAwAfc9X4bgBW/3k14TSjfniAhhTGkoxvU1NahoFmnOqjYLOTm0E8REtYaD5fi/KvFLxl4R2ETElAptPL8kwi/NPzwvTAj615zeKASd9Jqqg2syCAfWwjrtXjCg0HZMwhkI7DTlfL+I5PVWArSaKbKKIuvjLWJYRHtcUM1oIzPXAsBZfuBmi2WFjrV3eKjkR49ZDAgtC8/W3UQQFsi4BCJpl2yPdoAxf6ICWxmYx68SwRcKqYNK2tF9M5PN1zUjpPhF7WboXuPMR86lGS+orCHsEo7CLCFE42FyA/25mHC1BHwM8b2y5FqtnP6y1w== 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=PovCox4VRTR3F3FtfKR9ij8pYnKK+WN4Cf7yUO4KuHQ=; b=NkY4bLSxbRZSDUGBhcVP4AK8t5ww9r20JQcgjpnekM2ZiMIfGduJNcm3IK6ItOG4gXZ+D4yHayJiQKn31xIoG2/cFu1QNt5RCab/XotrbigElEvzJgfp/MxS+OnOYYkFaSocc1J/HB6Zqi3iNSK0pNeQfO643DMgpNQElLduUpiky9eW79Nj5sixSRDz15v6jKGSzNA0mevKO+eQIOn+k0UB7hSsmh10XREh6JIvZcbM3gKARqimxXo2FWoMY2Q2+9FoD5QgWKAcFe9d+gJdGEit0HcUv4FqaUSt8jGodTX8wy9nTia0zG0PzmaOFNq/p9SFepo3qsoSX0pm46d13Q== 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=PovCox4VRTR3F3FtfKR9ij8pYnKK+WN4Cf7yUO4KuHQ=; b=UnN+zCj9G+2ERVLOExrcZBvJZse1rfQNdJMB9ieckg3SGh/3mw6Qa31E5u5UV8zvXB1Ifnv4z3JVGKgG4FG3VbMHmleKaj6Vett5b2Xkamh05SSMn4/Xl2sPbIDnmlA7vLSwkEuW11iz7UFQlSNuQLKAAJoUuoephJOOL57zSzM= 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 AM6PR0402MB3765.eurprd04.prod.outlook.com (2603:10a6:209:19::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32; Tue, 6 Apr 2021 11:32:56 +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:32:56 +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 00/18] i2c: imx-lpi2c: New features and bug fixes Date: Tue, 6 Apr 2021 19:32:48 +0800 Message-Id: <20210406113306.2633595-1-xiaoning.wang@nxp.com> X-Mailer: git-send-email 2.25.1 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:32:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94d0c02c-f144-4d78-0144-08d8f8efb937 X-MS-TrafficTypeDiagnostic: AM6PR0402MB3765: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Id2JxaS6O1WmhV++2BhXUXJLlb6QqLuo5E2MdSOykxJFMtLRZSVcUJ3hhvFnRX0hQa0X8Cg94q2gbWSNnC9QfkoKm7shPhDpZjjZKr+qrM4JzYE59ou9J30jw/VZGAnzgMWqbJDFrs/ZA3Zz4cr0BSo2HnC1DpuoZZ2T3B9StJM312Vr2HsGbHvrqsyBoGSar0KgLmwIbt1aNYq/AaJ28gp0ocgTuYURMUBd7Mnthki2rRnCirgbfnrDkLdbAcMucESlZBRRu+0xq7taH0OphcdOCl6RO5hy5LUpPcUaR25devbnr87zox/BIhe1BusHmFIkDirFE7Yt6RLYk0j3dDI8ZRqyU/4L2c4KSeRpFHoXulGRdgjgl2/a/1J0A4LziuglAs/CQ98iB+eGD8Bws+BZpy6ZzzR9Ezw5JJLY4DyMN7v9HSDkKjTa6bA2WXMnM/03026hQ2TH49yHr9q4HoguEWj2S/kwFwkRRYZVyv3z8eU0MvKLdifYKURrEfgsXGgRo8esXOWPTZ/2U979haDmpqvbKW92tEW/oTcBuouUWtwT/C02zHu4tYGsaQQVKUE2A41VHwWSA+TvGhFdsedzoTBm8R6uXxvSh0gxPL7ItCPswVsgNLYfHsrA9yp6PL7EOuPwNJoFrUXXvDv3sY4u3fXX09Zm5ohIJ3J54l38KtLnmKu2FHNEfJxDN7c+rzkGAzk3hWbwIS34FJk9t4LIFNbseMjx1yI0yQ9oLXU= 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)(69590400012)(66946007)(36756003)(6666004)(38350700001)(66476007)(66556008)(498600001)(83380400001)(52116002)(1076003)(26005)(38100700001)(4326008)(956004)(16526019)(2616005)(186003)(86362001)(6506007)(6512007)(2906002)(6486002)(8936002)(5660300002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: NVd/QgJGddxKDc7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G4JmZCPIoxmBvR9GDVuQUHgdGSVMualubO/AZWIRZvQ4Lwts4idJ/jAeKyDxic3vGonlqlQzvazxuIVJ7z/5wLfQGamOXjwgyxldhSf0jYu8w1Z5oD6Sw9zWZIKJNiy5qY78bL5CrvVMPIv5Ty7TT9U1lH/EIuen8cPFTBzY9E27oVx4I1I77dZFKLEUSRS6yEJAespZm2SUZOYl/AlV1UXPqFiVrhy20BJk9g3sxOHY1K6vz X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94d0c02c-f144-4d78-0144-08d8f8efb937 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:32:56.4125 (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: D68wnrySHLxow23DJC3V6TfL7cbXdCPmGOkl9O7VRovyU/yxNsym/VYdQyZy5jIC54eaLZblr87Nhrk8G9IkqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3765 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_123259_888949_D5C0088B X-CRM114-Status: GOOD ( 12.03 ) 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 Hi, According to V1's feedback, V2 has been modified. For summary of the changes, please refer to the header of each patch file. Added some dt-bindings and dts patches. At the same time, a patch has been added to fix the problem that data larger than 256 bytes cannot be sent in one frame in PIO mode. Clark Wang (14): i2c: imx-lpi2c: add ipg clk for lpi2c driver ARM: dts: imx7ulp: add the missing lpi2c ipg clock ARM: dts: imx7ulp: add the missing lpi2c nodes ARM64: dts: imx8: add the missing lpi2c ipg clock ARM64: dts: imx8: change i2c irq number to non-combined i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently i2c: imx-lpi2c: add bus recovery feature dt-bindings: i2c: imx-lpi2c: Add bus recovery example i2c: imx-lpi2c: fix i2c timing issue i2c: imx-lpi2c: fix type char overflow issue when calculating the clock cycle i2c: imx-lpi2c: add edma mode support dt-bindings: i2c: imx-lpi2c: Add dma configuration example ARM: dts: imx7ulp: add dma configurations for lpi2c ARM: dts: imx7ulp: add the missing status property of lpi2c5 i2c: imx-lpi2c: fix pio mode cannot send 256+ bytes in one frame Fugang Duan (1): i2c: imx-lpi2c: manage irq resource request/release in runtime pm Gao Pan (2): i2c: imx-lpi2c: directly retrun ISR when detect a NACK i2c: imx-lpi2c: add debug message when i2c peripheral clk doesn't work .../bindings/i2c/i2c-imx-lpi2c.yaml | 26 + arch/arm/boot/dts/imx7ulp.dtsi | 50 +- .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 32 +- drivers/i2c/busses/i2c-imx-lpi2c.c | 506 ++++++++++++++++-- 4 files changed, 548 insertions(+), 66 deletions(-)