From patchwork Fri Dec 15 17:06:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13494663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F81CC4332F for ; Fri, 15 Dec 2023 17:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=SfgP49HbqRQvIgE39EXEw9jL3jzQIatDSMa9vmbVXgc=; b=YJ+oxmrDwAmMKR /ghM6WP5JFaaS4ydyXHcODY2s+j4rFdtMEINMK2MckEwhoFU2kbuF0w2qjLHq6KaWvql1JIbmE3YG Ro9mpcqftfoPx+g0Vuld8KP+YBmvievpg72tIUnowZMGaRSypprkLDwlS854B65Hk7EapS1dTpe93 2C+Jl57HKRCJDmol+osWdx4imz0yvBB89bzIrdP+Fxo2Irvnt6ZzUwyCKEZkapHxqxLj/kAfRcy7T G8e7OD2VL/sYpX04Vs2cKwoObyMrWJtLRcXyPkjKJOIafjyoQhpkiyRKX294KK3XYMCNYq5PCF+6V EHv0jSyPC04v8chkiWfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rEBem-003yYB-29; Fri, 15 Dec 2023 17:07:24 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rEBej-003yX6-1g for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2023 17:07:23 +0000 Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3BFFFMoE028235; Fri, 15 Dec 2023 18:07:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=vD6h9pH zJnmCBjscGPQb18sMsLi5KfISG29RwhbGxYI=; b=RNjYxL+zgUPbyDGVqy9+8xv lsJ45Y2kh/qTkqgPJ6pKFJP0SyWaiNMoV3G/79KsHGkQvz6JRDcWDo+r4na1Mjr8 s37klIpeuKuMQiYNl0QTFio4ZPWncv0hSTlJAjq6HJqy9yuvmguC9Tsu1863nfKH I2orpSfjc830urYNjoWkQfHHGyvIPnHO/m0ZOue80q8v6Z2URm00EIjoFaWnQg8M dJqepGKhGGj+gcq8q60UpnbBM8saNc6s6uc1AL+ghPng0STLz/yv/L8asalnSHEf BhiHRvWwUTMHx/IuaZSFUOCLnfGcn1AAEsgGRcn8h6AGn4L7665t+Dy4oggDJtQ= = Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3v0s9f0bgn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 18:07:13 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4D025100052; Fri, 15 Dec 2023 18:07:12 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4163023BE01; Fri, 15 Dec 2023 18:07:12 +0100 (CET) Received: from localhost (10.129.178.213) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 15 Dec 2023 18:07:12 +0100 From: Alain Volmat To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Pierre-Yves MORDRET , Alain Volmat CC: Conor Dooley , , , , , Subject: [PATCH v3 0/9] i2c: stm32f7: enhancements and support for stm32mp25 Date: Fri, 15 Dec 2023 18:06:04 +0100 Message-ID: <20231215170617.95868-1-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-15_10,2023-12-14_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231215_090721_835690_6A25EEF2 X-CRM114-Status: GOOD ( 11.52 ) 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 This series first perform enhancements in the way interrupt are handled and cleanup in messages. Then it adds support for the stm32mp25 which differs in that it only has a single irq line for both event/error and has a different handling of the FastModePlus. Support is then enabled within the stm32mp25 related device-trees. Changelog: v3: - addition of 2 commits dealing with readl_relaxed(I2C_ISR) in isr handler and a second one to use dev_err_probe during probe - correction of SOB in commit v2: - correct st,stm32-i2c.yaml. Use if then else scheme to indicate number of interrupts / interrupt-names depending on the compatible while keeping the description within the common part - correct 2 maybe-uninitialized warnings * ret in stm32f7_i2c_write_fm_plus_bits * irq_error in stm32f7_i2c_probe, move the platform_get_irq within the same if block as devm_request_threaded_irq Alain Volmat (9): i2c: stm32f7: use dev_err_probe upon calls of devm_request_irq i2c: stm32f7: perform most of irq job in threaded handler i2c: stm32f7: simplify status messages in case of errors dt-bindings: i2c: document st,stm32mp25-i2c compatible i2c: stm32f7: perform I2C_ISR read once at beginning of event isr i2c: stm32f7: add support for stm32mp25 soc arm64: dts: st: add all 8 i2c nodes on stm32mp251 arm64: dts: st: add i2c2/i2c8 pins for stm32mp25 arm64: dts: st: add i2c2 / i2c8 properties on stm32mp257f-ev1 .../devicetree/bindings/i2c/st,stm32-i2c.yaml | 28 ++ arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 36 ++ arch/arm64/boot/dts/st/stm32mp251.dtsi | 96 +++++ arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 20 + drivers/i2c/busses/i2c-stm32f7.c | 342 +++++++++--------- 5 files changed, 358 insertions(+), 164 deletions(-)