devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Remove the pins-are-numbered DT property
@ 2022-11-22  1:07 Bernhard Rosenkränzer
  2022-11-22  1:07 ` [PATCH v2 1/7] pinctrl: mediatek: common: Remove check for pins-are-numbered Bernhard Rosenkränzer
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Bernhard Rosenkränzer @ 2022-11-22  1:07 UTC (permalink / raw)
  To: devicetree
  Cc: linux-mediatek, linux-arm-kernel, linux-kernel, linux-stm32,
	mcoquelin.stm32, alexandre.torgue, krzysztof.kozlowski,
	matthias.bgg, angelogioacchino.delregno, khilman

During the review of my MT8365 support patchset
(https://lore.kernel.org/linux-mediatek/20221117210356.3178578-1-bero@baylibre.com/),
the issue of the "pins-are-numbered" DeviceTree property has come up.

This property is unique to Mediatek MT65xx and STM32 pinctrls, and
doesn't seem to serve any purpose (both the Mediatek and STM32 drivers
simply refuse to deal with a device unless pins-are-numbered is set to
true).

There is no other use of this property in the kernel or in other projects
using DeviceTrees (checked u-boot and FreeBSD -- in both of those, the
flag is present in Mediatek and STM devicetrees, but not used anywhere).

There is also no known use in userspace (in fact, a userland application
relying on the property would be broken because it would get true on
any Mediatek or STM chipset and false on all others, even though other
chipsets use numbered pins).

This patchset removes all uses of pins-are-numbered and marks the
property as deprecated.

v2:
  - Deprecate the property instead of removing it completely from
    schemas
  - squash some related commits

 Documentation/devicetree/bindings/pinctrl/mediatek,mt65xx-pinctrl.yaml | 5 ++---
 Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml        | 7 +++----
 arch/arm/boot/dts/mt2701.dtsi                                          | 1 -
 arch/arm/boot/dts/mt7623.dtsi                                          | 1 -
 arch/arm/boot/dts/mt8135.dtsi                                          | 1 -
 arch/arm/boot/dts/stm32f4-pinctrl.dtsi                                 | 1 -
 arch/arm/boot/dts/stm32f7-pinctrl.dtsi                                 | 1 -
 arch/arm/boot/dts/stm32h743.dtsi                                       | 1 -
 arch/arm/boot/dts/stm32mp131.dtsi                                      | 1 -
 arch/arm/boot/dts/stm32mp151.dtsi                                      | 2 --
 arch/arm64/boot/dts/mediatek/mt2712e.dtsi                              | 1 -
 arch/arm64/boot/dts/mediatek/mt8167.dtsi                               | 1 -
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi                           | 1 -
 arch/arm64/boot/dts/mediatek/mt8173.dtsi                               | 1 -
 arch/arm64/boot/dts/mediatek/mt8516.dtsi                               | 1 -
 drivers/pinctrl/mediatek/pinctrl-mtk-common.c                          | 6 ------
 drivers/pinctrl/stm32/pinctrl-stm32.c                                  | 5 -----
 17 files changed, 5 insertions(+), 32 deletions(-)




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-11-23  8:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-22  1:07 [PATCH v2 0/7] Remove the pins-are-numbered DT property Bernhard Rosenkränzer
2022-11-22  1:07 ` [PATCH v2 1/7] pinctrl: mediatek: common: Remove check for pins-are-numbered Bernhard Rosenkränzer
2022-11-22  1:07 ` [PATCH v2 2/7] pinctrl: stm32: " Bernhard Rosenkränzer
2022-11-22  1:07 ` [PATCH v2 3/7] dt-bindings: pinctrl: mediatek,mt65xx: Deprecate pins-are-numbered Bernhard Rosenkränzer
2022-11-22 17:02   ` Matthias Brugger
2022-11-23  8:18   ` Krzysztof Kozlowski
2022-11-22  1:07 ` [PATCH v2 4/7] dt-bindings: pinctrl: st,stm32: " Bernhard Rosenkränzer
2022-11-22 17:03   ` Matthias Brugger
2022-11-23  8:18   ` Krzysztof Kozlowski
2022-11-22  1:07 ` [PATCH v2 5/7] arm64: dts: mediatek: Remove pins-are-numbered property Bernhard Rosenkränzer
2022-11-22  1:07 ` [PATCH v2 6/7] ARM: " Bernhard Rosenkränzer
2022-11-22  1:07 ` [PATCH v2 7/7] ARM: dts: stm32: Remove the " Bernhard Rosenkränzer
2022-11-22 17:03   ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).