Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6816767rdb; Fri, 15 Dec 2023 09:03:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IExgn2xmOy5S+ZSI6q3smfUpG7qz1UVZg9k8Oia7R4kqY5TgA30YHDWtqA4LTa3XcKyY3dG X-Received: by 2002:ad4:5c6d:0:b0:67f:1757:fbec with SMTP id i13-20020ad45c6d000000b0067f1757fbecmr2364863qvh.103.1702659810979; Fri, 15 Dec 2023 09:03:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702659810; cv=none; d=google.com; s=arc-20160816; b=j9DHP9K38fhwKNVlB7VcKdULXi08KMKScM05aN9e9aLA3eT4eBeUP4vbwaYcYaL9aa Y+HTRadP0GawjnNfGT5FS8QzeDVNJUmmaVXzOpu35JFi8Gke+pgUSg0B5WW+UN+uSVj7 wvHZTp03O0FF/HTQ/87zja5/ouknCP02wPL+pGGYKmAfBkRt5xmD2iASYcELxvIXUWR5 Y8I6owj7JFIheaiecF6Dus0aYBKIGUhTMI0iSdUe4Q5SsWJ33tTzCQnUOmSrMRD4jQz2 n211FsXkhqZ7fBS2qexJScuaERkaJqvceEFVOhNyROElS6D8KUa86biimTfdrcEWgcK8 FUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=vD6h9pHzJnmCBjscGPQb18sMsLi5KfISG29RwhbGxYI=; fh=7H+u7I0bdEALWzYaVOAO2NvJkKF7hcf2wW1/JO41DU8=; b=ZSnLOpvdNvcJqAC6+BhsAI1LOwAak4FunV6kDpnp4H2CX3vKolfoY2DWzgNyhdorU6 V24N2xpflnlIluKFcEOAz4SOTqdam9AZkxv80XhQ8ydHrN/WIf6eobIUuMUGpc9IZ8Ww v0dWU5/7ve3wpD2jOc441Str2r4vHeedKOpaJ9l0NtDnYC3qFDojFk5HvjEN1h+1W+Dk Lh7nC0WwcYwpj0A8MGyyUQTfvq5trc2mOyMVDphzH7aRt5LlQfJtNQn6VnKznGvxbMst xzzvo9jVrIOuwHIKliySMn9OXT5dRCmGpL4hmcQcsT7HIAsbRKjbxhk+8ZcNf7GK5ylJ rQJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=QbLIf5Bm; spf=pass (google.com: domain of linux-kernel+bounces-1349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e21-20020a0caa55000000b0067f062100f0si884532qvb.465.2023.12.15.09.03.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 09:03:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=QbLIf5Bm; spf=pass (google.com: domain of linux-kernel+bounces-1349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B98821C23DEE for ; Fri, 15 Dec 2023 17:03:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA3F93FB36; Fri, 15 Dec 2023 17:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="QbLIf5Bm" X-Original-To: linux-kernel@vger.kernel.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0CB03EA78; Fri, 15 Dec 2023 17:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com 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 3BFDLSlT017503; Fri, 15 Dec 2023 18:02:48 +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=QbLIf5BmFBOSkCIpMkerL7K 93jFOZqTkajmC9EvJt+jWRyOqE+oj6zCuny5JcWWdvIviwGMcfh0f1ziVqck8DVk OuuoujyjkcyA0I5zNJV32aCKMjsy6afNBIjV2bVnqDBa3g23KEu6LBbft6tACNRV xiUEQQqGJg+gU+kpJE4npqDlJlyQBKVpui92RsAipq3P+a8WRS3XE1qjPYFE9uqE 3nHZP3QCxrjHqti6o53BojNaMP+T6nyNI6MjqVwLqLuXpsO3Dm4PsAvZgWUHPo9E +IRlLR0YERGrr3PuVduuKROcboPQYK+XRIL2hPbRK/CK1FcCvcyyo0lYfbEmgsw= = 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 3v0cbtuhhn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 18:02:47 +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 64E4C100052; Fri, 15 Dec 2023 18:02:46 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 585F4237D9B; Fri, 15 Dec 2023 18:02:46 +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:02:46 +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/7] i2c: stm32f7: enhancements and support for stm32mp25 Date: Fri, 15 Dec 2023 18:02:10 +0100 Message-ID: <20231215170223.95549-1-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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(-) -- 2.25.1