Skip to contentSkip to conversation

pinctrl: pinctrl-microchip-sgpio: Fixes for irqs

PATCH In review Horatiu Vultur 2 participants 4 messages Feb 4, 2022 – Feb 11, 2022

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

Fixes 01a9350bdd49fb ("dt-bindings: pinctrl: pinctrl-microchip-sgpio: Add irq support")
---
 .../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
index cb554084bdf1..0df4e114fdd6 100644
@@ -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
#2 lore raw

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")

This patch (1) applied to the pinctrl tree.

Yours,
Linus Walleij

#3 lore raw

PATCH 2/2 arm64: dts: sparx5: Fix for sgpio nodes

In reply to Horatiu Vultur

When the support for irqs was added for sgpio driver the memory size was not updated. Because the irq registers are found at address 0x108.

Fixes d0f482bb06f944 ("arm64: dts: sparx5: Add the Sparx5 switch node")
---
 arch/arm64/boot/dts/microchip/sparx5.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/microchip/sparx5.dtsi +3 -3
index 787ebcec121d..b9f2e2fa3d43 100644
@@ -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