Skip to content

Commit

Permalink
dtoverlays: Add pinctrl details to Sense HAT interrupt line.
Browse files Browse the repository at this point in the history
  • Loading branch information
6by9 committed Sep 23, 2024
1 parent a364cec commit 429c1df
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
joystick {
compatible = "raspberrypi,sensehat-joystick";
interrupts = <23 1>;
pinctrl-name = "default";
pinctrl-0 = <&sensehat_pins>;
status = "okay";
};
};
Expand Down Expand Up @@ -54,4 +56,14 @@
};
};
};

fragment@1 {
target = <&gpio>;
__overlay__ {
sensehat_pins: sensehat_pins {
brcm,pins = <23>;
brcm,function = <0>;
};
};
};
};
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-sense-v2-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
joystick {
compatible = "raspberrypi,sensehat-joystick";
interrupts = <23 1>;
pinctrl-name = "default";
pinctrl-0 = <&sensehat_pins>;
status = "okay";
};
};
Expand Down Expand Up @@ -54,4 +56,14 @@
};
};
};

fragment@1 {
target = <&gpio>;
__overlay__ {
sensehat_pins: sensehat_pins {
brcm,pins = <23>;
brcm,function = <0>;
};
};
};
};

0 comments on commit 429c1df

Please sign in to comment.