pinctrl: pinctrl-microchip-sgpio: Fixes for irqs
Subsystems (5)
cover pinctrl: pinctrl-microchip-sgpio: Fixes for irqs
The following patch series contains two fixes to the pinctrol-microchiop-sgpio, one in the documentation and the oter in the DT. They were introduced when the irq support was added to the driver.
Horatiu Vultur (2):
dt-bindings: pinctrl: pinctrl-microchip-sgpio: Fix example
arm64: dts: sparx5: Fix for sgpio nodes
.../devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml | 2 +- arch/arm64/boot/dts/microchip/sparx5.dtsi | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.33.0
PATCH 1/2 dt-bindings: pinctrl: pinctrl-microchip-sgpio: Fix example
The blamed commit adds support for irq, but the reqisters for irq are outside of the memory size. They are at address 0x108. Therefore update the memory size to cover all the registers used by the device.
--- .../devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml +1 -1
@@ -145,7 +145,7 @@ examples: clocks = <&sys_clk>; pinctrl-0 = <&sgpio2_pins>; pinctrl-names = "default"; - reg = <0x1101059c 0x100>; + reg = <0x1101059c 0x118>; microchip,sgpio-port-ranges = <0 0>, <16 18>, <28 31>; bus-frequency = <25000000>; sgpio_in2: gpio@0 {
Signature · 1 line
2.33.0
Re: [PATCH 1/2] dt-bindings: pinctrl: pinctrl-microchip-sgpio: Fix example
Quoted 6 lines · Horatiu Vultur
The blamed commit adds support for irq, but the reqisters for irq are outside of the memory size. They are at address
0x108. Therefore update the memory size to cover all the registers used by the device.Fixes 01a9350bdd49fb ("dt-bindings: pinctrl: pinctrl-microchip-sgpio: Add irq support")Signed-off-by Horatiu Vultur <[email protected]>
This patch (1) applied to the pinctrl tree.
Yours,
Linus Walleij
PATCH 2/2 arm64: dts: sparx5: Fix for sgpio nodes
In reply to Horatiu VulturWhen the support for irqs was added for sgpio driver the memory size was not updated. Because the irq registers are found at address 0x108.
--- arch/arm64/boot/dts/microchip/sparx5.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/microchip/sparx5.dtsi +3 -3
@@ -305,7 +305,7 @@ sgpio0: gpio@61101036c { pinctrl-names = "default"; resets = <&reset 0>; reset-names = "switch"; - reg = <0x6 0x1101036c 0x100>; + reg = <0x6 0x1101036c 0x118>; sgpio_in0: gpio@0 { compatible = "microchip,sparx5-sgpio-bank"; reg = <0>;
@@ -335,7 +335,7 @@ sgpio1: gpio@611010484 { pinctrl-names = "default"; resets = <&reset 0>; reset-names = "switch"; - reg = <0x6 0x11010484 0x100>; + reg = <0x6 0x11010484 0x118>; sgpio_in1: gpio@0 { compatible = "microchip,sparx5-sgpio-bank"; reg = <0>;
@@ -365,7 +365,7 @@ sgpio2: gpio@61101059c { pinctrl-names = "default"; resets = <&reset 0>; reset-names = "switch"; - reg = <0x6 0x1101059c 0x100>; + reg = <0x6 0x1101059c 0x118>; sgpio_in2: gpio@0 { reg = <0>; compatible = "microchip,sparx5-sgpio-bank";
Signature · 1 line
2.33.0