From: "Clément Le Goffic" <clement.legoffic@foss.st.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Bartosz Golaszewski <brgl@bgdev.pl>
Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
"Clément Le Goffic" <clement.legoffic@foss.st.com>
Subject: [PATCH 2/9] dt-bindings: pinctrl: stm32: Introduce HDP
Date: Tue, 25 Feb 2025 09:48:01 +0100 [thread overview]
Message-ID: <20250225-hdp-upstream-v1-2-9d049c65330a@foss.st.com> (raw)
In-Reply-To: <20250225-hdp-upstream-v1-0-9d049c65330a@foss.st.com>
Introduce dt-bindings for HDP driver.
'HDP' stands for Hardware Debug Port, it is an hardware block in
STMicrolectronics' MPUs that let the user decide which internal SoC's
signal to observe.
It provides 8 ports and for each port there is up to 16 different
signals that can be output.
Signals are different for each MPU.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
---
.../bindings/pinctrl/st,stm32-pinctrl-hdp.yaml | 72 ++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl-hdp.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl-hdp.yaml
new file mode 100644
index 000000000000..b6787162faaa
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl-hdp.yaml
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (C) STMicroelectronics 2025.
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/st,stm32-pinctrl-hdp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STM32 Hardware Debug Port Mux/Config
+
+maintainers:
+ - Clément LE GOFFIC <clement.legoffic@foss.st.com>
+
+description: |
+ STMicroelectronics's STM32 MPUs integrate a Hardware Debug Port (HDP).
+ It allows to output internal signals on SoC's GPIO.
+
+properties:
+ compatible:
+ const: st,stm32mp-hdp
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+patternProperties:
+ '-pins$':
+ type: object
+ $ref: pinmux-node.yaml#
+
+ properties:
+ function:
+ enum: [ "0", "1", "2", "3", "4", "5", "6", "7",
+ "8", "9", "10", "11", "12", "13", "14",
+ "15" ]
+
+ pins:
+ enum: [ hdp0, hdp1, hdp2, hdp3, hdp4, hdp5, hdp6, hdp7 ]
+
+ required:
+ - function
+ - pins
+
+ additionalProperties: false
+
+allOf:
+ - $ref: pinctrl.yaml#
+
+required:
+ - compatible
+ - reg
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/stm32mp1-clks.h>
+ #include <dt-bindings/pinctrl/stm32mp15-hdp.h>
+ //Example 1
+ pinctrl@54090000 {
+ compatible = "st,stm32mp-hdp";
+ reg = <0x54090000 0x400>;
+ clocks = <&rcc HDP>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&hdp2>;
+ hdp2-pins {
+ function = HDP2_GPOVAL_2;
+ pins = "hdp2";
+ };
+ };
--
2.43.0
next prev parent reply other threads:[~2025-02-25 8:52 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 8:47 [PATCH 0/9] Introduce HDP support for STM32MP platforms Clément Le Goffic
2025-02-25 8:48 ` [PATCH 1/9] dt-bindings: pinctrl: stm32: Add HDP includes for stm32mp platforms Clément Le Goffic
2025-02-25 13:01 ` Krzysztof Kozlowski
2025-02-25 15:46 ` Clement LE GOFFIC
2025-02-26 7:19 ` Krzysztof Kozlowski
2025-02-25 8:48 ` Clément Le Goffic [this message]
2025-02-25 13:04 ` [PATCH 2/9] dt-bindings: pinctrl: stm32: Introduce HDP Krzysztof Kozlowski
2025-02-25 15:51 ` Clement LE GOFFIC
2025-02-26 7:21 ` Krzysztof Kozlowski
2025-02-26 10:52 ` Clement LE GOFFIC
2025-02-26 15:05 ` Krzysztof Kozlowski
2025-02-27 11:05 ` Clement LE GOFFIC
2025-02-25 8:48 ` [PATCH 3/9] pinctrl: stm32: Introduce HDP driver Clément Le Goffic
2025-02-25 12:59 ` Krzysztof Kozlowski
2025-02-25 16:05 ` Clement LE GOFFIC
2025-02-25 8:48 ` [PATCH 4/9] MAINTAINERS: Add Clément Le Goffic as STM32 HDP maintainer Clément Le Goffic
2025-02-25 8:48 ` [PATCH 5/9] ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp13 Clément Le Goffic
2025-02-25 8:48 ` [PATCH 6/9] ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp15 Clément Le Goffic
2025-02-25 8:48 ` [PATCH 7/9] ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp25 Clément Le Goffic
2025-02-25 13:05 ` Krzysztof Kozlowski
2025-02-25 16:09 ` Clement LE GOFFIC
2025-02-26 7:23 ` Krzysztof Kozlowski
2025-02-26 9:33 ` Alexandre TORGUE
2025-02-26 15:08 ` Krzysztof Kozlowski
2025-02-26 15:30 ` Alexandre TORGUE
2025-02-26 16:54 ` Alexandre TORGUE
2025-02-26 21:27 ` Krzysztof Kozlowski
2025-02-26 21:26 ` Krzysztof Kozlowski
2025-02-26 21:31 ` Krzysztof Kozlowski
2025-02-27 12:16 ` Alexandre TORGUE
2025-02-25 8:48 ` [PATCH 8/9] ARM: dts: stm32: add alternate pinmux for HDP pin and add HDP pinctrl node Clément Le Goffic
2025-02-25 8:48 ` [PATCH 9/9] ARM: dts: stm32: add Hardware debug port (HDP) on stm32mp157c-dk2 board Clément Le Goffic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250225-hdp-upstream-v1-2-9d049c65330a@foss.st.com \
--to=clement.legoffic@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox