From mboxrd@z Thu Jan 1 00:00:00 1970 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 670DA1FECAF; Mon, 23 Jun 2025 07:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750663977; cv=none; b=O6kE5yUp04mFppyq2JR00A29KQ+t3sNOpu+OtIqHfRBa+BQGGcISun8S6F8lyKbMNo5JdX2V1wmekEmYxMox0uswY++LvKWk7Ubg3sTfG2AZkhe50w9fqhqcqHf1uAvLAPFZZavsVX+WyCjW93O3Lg9ltqINrV/dBoHpQbGfLS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750663977; c=relaxed/simple; bh=lZAmebscBQ8MX02hjVnAxNLQv0xvYWt7K93oblYTI5Q=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=A4BX/288+ekBH2x/WleIUVMxhgESW9zufpeKk0ydIIyhjCLbXXm+Mtl+ZhbUFMw+7AqIVNO+qi+qf7xipgoKi8Mxl14d+w/zAXC8xP5yyw2AYZIORe/xC+kiokoqfcV76YRm/JltcXoovPYEeJWJKLGGhWZE2r68Fqdt7bo240c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=sNHI+Joc; arc=none smtp.client-ip=185.132.182.106 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="sNHI+Joc" Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55N5XHLY031861; Mon, 23 Jun 2025 09:32:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=9H1lc3RXGVHF2geyU88kye jPbwZf42Tzp+LcwADoOnQ=; b=sNHI+JocG7GuQFGF/zcLKISfCOzxtPok4o7Ltc 931IDUk1ilDObUqR5IbtIR0/tXDMW8AF0HdXqOquq4jeOS09roGhFhW+eA2v7cy1 Hm/1cE2hBKmJxFzPVXjPviZyiiuGXhxV7vMhHPhzs4xBz5JyAfQ9Nq1wRIwy13Yb ARom9b1U0SCHNmr3hST3a3uwNH5Ta/Jrtz/vDDD1AC9loxQ/3fZD0L9AfH82RoOB 9L4yZ9LGDSNvK866fPlXqQ5Gkdu268tc5nCBUX0fhgsD3/StyoCw08eNVJxvVTbm dd55uHekR1zlZCSCVLGACVv+UObZS8EO3QTPOExW+vTFG2vQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 47dj5ner7y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Jun 2025 09:32:41 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 08BD340050; Mon, 23 Jun 2025 09:31:36 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EF75EB52731; Mon, 23 Jun 2025 09:29:40 +0200 (CEST) Received: from localhost (10.252.18.29) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 23 Jun 2025 09:29:40 +0200 From: =?utf-8?q?Cl=C3=A9ment_Le_Goffic?= Subject: [PATCH v6 0/8] Introduce HDP support for STM32MP platforms Date: Mon, 23 Jun 2025 09:29:10 +0200 Message-ID: <20250623-hdp-upstream-v6-0-387536f08398@foss.st.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAEYCWWgC/23NQW7DIBCF4atErEsEAzMxXfUeVReYgZpFYgtcq 1Xku5dEqpI4Xb6Rvn/OosaSYxWvu7Mocck1j6c26GUnwuBPn1FmbluAAlQAVg48ya+pziX6oyS AiOy19S6JRqYSU/6+5t4/2h5yncfyc60v+nL9C+FjaNFSScfKukBojPJvaax1X+d9GI/iklrgx hHUhkPjaBL1XY8phe6Zm3tuNtw03jMFr52zRP98t/e823Db+CG63ngGZYifOd446e13bJwSU1I cEA7hka/r+gvxdvc0pgEAAA== X-Change-ID: 20250224-hdp-upstream-622e5da14a9f To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Bartosz Golaszewski , Antonio Borneo CC: , , , , , =?utf-8?q?Cl=C3=A9ment_Le_Goffic?= , Krzysztof Kozlowski X-Mailer: b4 0.15-dev-c25d1 X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-23_02,2025-06-20_01,2025-03-28_01 This patch series introduces the Hardware Debug Port (HDP) support for STM32MP platforms. It includes updates to the mmio gpio driver, the addition of device tree bindings, the HDP driver, and updates to the device tree files for STM32MP13, STM32MP15, and STM32MP25 SoCs. The series also updates the MAINTAINERS file to include myself as the maintainer for the STM32 HDP driver and adds the necessary pinmux configurations for HDP pins on STM32MP157C-DK2 as example. Signed-off-by: Clément Le Goffic --- Changes in v6: - Add Krzysztof Kozlowski's 'Reviewd-by' trailer on bindings. - Remove gpio mmio patch as taken by Bartosz Golaszewski: https://lore.kernel.org/all/175031700235.8154.11042956002137082224.b4-ty@linaro.org/ - Link to v5: https://lore.kernel.org/r/20250613-hdp-upstream-v5-0-6fd6f0dc527c@foss.st.com Changes in v5: - (Better) Change the bindings file name: 's/st,stm32-pinctrl-hdp.yaml/st,stm32-hdp.yaml/g' - Remove Krzysztof Kozlowski's 'Reviewed-by' trailer on bindings. - Add Linus Walleij's 'Reviewed-by' trailers. - Refine SoC dtsi patch's commit message to explain the need of keeping the HDP node disabled. - Link to v4: https://lore.kernel.org/r/20250528-hdp-upstream-v4-0-7e9b3ad2036d@foss.st.com Changes in v4: - 's/Add/add/g' in MAINTAINERS commit message. - Fix the (wrong) status update for the thermal node in stm32mp131.dtsi file. - Do not enable HDP by default during compile testing. - Change the bindings file name: 's/st,stm32-pinctrl-hdp.yaml/st,stm32-hdp.yaml/g' - Add Krzysztof Kozlowski's 'Reviewd-by' trailer on bindings. - Link to v3: https://lore.kernel.org/r/20250523-hdp-upstream-v3-0-bd6ca199466a@foss.st.com Changes in v3: - Use `bgpio_init()` function: - Add add patch to create the `BGPIOF_NO_INPUT` flag needed for the `bgpio_setup_direction()` used in `bgpio_init()` - Remove `stm32_hdp_gpio_get` and `stm32_hdp_gpio_set` - Use `static` pm ops - Update bindings: - add pattern instruction for pin values - remove function's maxItems to use `function: true` - fix the compatible in the exemples - Link to v2: https://lore.kernel.org/r/20250520-hdp-upstream-v2-0-53f6b8b5ffc8@foss.st.com Changes in v2: - Remove bindings header files with function name as #define - Add match_data with function name for three compatible: "st,stm32mp131-hdp", "st,stm32mp151-hdp" and "st,stm32mp251-hdp". - Rework a bit the driver to use match_data. - Remove the use of `dev_err_probe(` in the resume ops. - Remove `MODULE_ALIAS(`. - Remove the vertical bar in bindings description paragraph. - Fix an error in the `pinctrl-0` parameter of the binding example, it was refering a node that wasn't existing. - Use uppercase pin names. - Link to v1: https://lore.kernel.org/r/20250225-hdp-upstream-v1-0-9d049c65330a@foss.st.com --- Clément Le Goffic (8): dt-bindings: pinctrl: stm32: Introduce HDP pinctrl: stm32: Introduce HDP driver MAINTAINERS: add Clément Le Goffic as STM32 HDP maintainer ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp13 ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp15 ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp25 ARM: dts: stm32: add alternate pinmux for HDP pin and add HDP pinctrl node ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp157c-dk2 board .../devicetree/bindings/pinctrl/st,stm32-hdp.yaml | 187 ++++++ MAINTAINERS | 6 + arch/arm/boot/dts/st/stm32mp131.dtsi | 7 + arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi | 25 + arch/arm/boot/dts/st/stm32mp151.dtsi | 7 + arch/arm/boot/dts/st/stm32mp157c-dk2.dts | 6 + arch/arm64/boot/dts/st/stm32mp251.dtsi | 7 + drivers/pinctrl/stm32/Kconfig | 14 + drivers/pinctrl/stm32/Makefile | 1 + drivers/pinctrl/stm32/pinctrl-stm32-hdp.c | 720 +++++++++++++++++++++ 10 files changed, 980 insertions(+) --- base-commit: cc42860b8789f3aac4e42cc223f8e8325a3cfa33 change-id: 20250224-hdp-upstream-622e5da14a9f Best regards, -- Clément Le Goffic