Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2462510rdb; Fri, 8 Dec 2023 08:47:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhy/9iHrXC6oCw6EjUaUk7W9y7mpKyuEheirIlvtUGzV2OWVyWt6iA+iK7TlCTeu1RSUyn X-Received: by 2002:a05:6a00:1acb:b0:6ce:dbc1:4500 with SMTP id f11-20020a056a001acb00b006cedbc14500mr299648pfv.66.1702054077731; Fri, 08 Dec 2023 08:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702054077; cv=none; d=google.com; s=arc-20160816; b=z+oHNKjck9KAMRCDuYTdLeKqpxAi0wTvwqMjsqca1ROP0dGGGNuthd3CXkOPdyR3p3 PCYFs0T/NiEboS+yFgAMY0itIcQ5LDAV35Ah3UAZHpGEt1GWn8BNniCWdAjc7+NAMD5s vu4D5kt6qUsK8G5Y/Z4YeGhPq8+AFgjanVO6WzxB59MqTuvDh6kPiCTAGjJ+qYgB2zna +vspqcQJbxEn+W3hqsMh7E8Ux5K4RT2OkKaPmy0Spom8gllBlI/LYx8RnGKR5CYX/Z0e 5AdC2jGgTcga9NahibOTIqN1Z3hDz0/03NMNEeu/2olgFaczJyiIZfhHuDRCoAi0Cq3j IEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x2MSP5Qi75jzKXhvK1uOkEyWudp+uieZW3Apd56nqak=; fh=YfYU9X+v76cT4jgG+11baBs7gwlZmx0RvL1Jhbd06gw=; b=gg+sM/MyEoLQHDyd+55I70kT2hmLzhfvUTyl3iTDWEY5wInKxmBnxEPCDmwFlfLEkP sYjLP/5ZS4qutYil6o7zZdr4PL1vv6+HUDqZwFkw3IyhyXTHHVxjxjbua/LYZD07zYfR aBPj/WBF/GSO3PpITI/zew2pwI30rvPmHWa2yMYeSc+6mfpK29O+ztNLAZp7IFtrTgJl ysx2DwOa2oPPlkb6AeUB47s8eCwn8yaFLV1TPovEG15my0yHF9CdJ3L6o9brnoEuLkG8 cumG6PIQVyi5bMGFoojg2wmhgWzJgo5OlpKXeUd8gFyCs/q2LMo7KhSR8bHkcpDb6fVM O1VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=w429hnML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m12-20020a056a00080c00b006cea5b0c565si1815953pfk.282.2023.12.08.08.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 08:47:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=w429hnML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7F56180FC73E; Fri, 8 Dec 2023 08:47:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573992AbjLHQrp (ORCPT + 99 others); Fri, 8 Dec 2023 11:47:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233657AbjLHQrl (ORCPT ); Fri, 8 Dec 2023 11:47:41 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 439C9198D; Fri, 8 Dec 2023 08:47:47 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3B8GfGOd008039; Fri, 8 Dec 2023 17:47:31 +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=x2MSP5Q i75jzKXhvK1uOkEyWudp+uieZW3Apd56nqak=; b=w429hnML1chz9C80cpFndXU uK5kPvFd38w33BWt4lNUurLCwMnhhIiFXRYZEpmFixmVFGalkJzS8F3Y0W6B212+ WmIJPfp7vHd77rzfJSdZQz5tiI7wIkNcbZ7h3LJ7+lx1F4ABuq/FS3ddkDvZzjCy vp1GVoHrogxFZmtYE0CVUb6m5J0MrWebASRCq70c3Odr1y4bywBS92OOZX7kdv0A uZCYb8tj27yAI5f0Pkj9FfyVXCByeA+2uUwhr+ocfK7ANJkl7rYtSdxz8N8UIWi2 gc4aoWupDDwAhgWIinkHB5t0dSuMubWTyE8+P2Gj64E5pZWvLeTThSkukEQwMAA= = 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 3utd2pnf0c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Dec 2023 17:47:31 +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 5AC64100056; Fri, 8 Dec 2023 17:47:30 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 53A2623692D; Fri, 8 Dec 2023 17:47:30 +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, 8 Dec 2023 17:47:30 +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 , Rob Herring , , , , , Subject: [PATCH v2 0/7] i2c: stm32f7: enhancements and support for stm32mp25 Date: Fri, 8 Dec 2023 17:47:09 +0100 Message-ID: <20231208164719.3584028-1-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-08_11,2023-12-07_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 08 Dec 2023 08:47:56 -0800 (PST) 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: 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 (7): 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: 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 | 334 ++++++++++-------- 5 files changed, 357 insertions(+), 157 deletions(-) -- 2.25.1