0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-22 04:56:15 +00:00
openwrt/target/linux/bcm27xx/patches-6.6/950-1312-Reapply-dtoverlays-Convert-SenseHAT-overlays-to-use-.patch
Álvaro Fernández Rojas 538a1d740c bcm27xx: update to latest RPi patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.58..rpi-6.6.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-10-31 13:44:23 +01:00

101 lines
2.3 KiB
Diff

From 9a86952570b925e68dfd30a12642000353242745 Mon Sep 17 00:00:00 2001
From: Dom Cobley <popcornmix@gmail.com>
Date: Thu, 10 Oct 2024 17:16:08 +0100
Subject: [PATCH 1312/1350] Reapply "dtoverlays: Convert SenseHAT overlays to
use MFD and upstream drivers"
This reverts commit 82a50e430ef1d6eb37d78e25aa572c1f6ea56160.
---
.../boot/dts/overlays/rpi-sense-overlay.dts | 28 +++++++++++++++++--
.../dts/overlays/rpi-sense-v2-overlay.dts | 28 +++++++++++++++++--
2 files changed, 50 insertions(+), 6 deletions(-)
--- a/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
+++ b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
@@ -12,11 +12,23 @@
#size-cells = <0>;
status = "okay";
- rpi-sense@46 {
- compatible = "rpi,rpi-sense";
+ sensehat@46 {
+ compatible = "raspberrypi,sensehat";
reg = <0x46>;
- keys-int-gpios = <&gpio 23 1>;
+ interrupt-parent = <&gpio>;
status = "okay";
+
+ display {
+ compatible = "raspberrypi,rpi-sense-fb";
+ status = "okay";
+ };
+ joystick {
+ compatible = "raspberrypi,sensehat-joystick";
+ interrupts = <23 1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&sensehat_pins>;
+ status = "okay";
+ };
};
lsm9ds1-magn@1c {
@@ -44,4 +56,14 @@
};
};
};
+
+ fragment@1 {
+ target = <&gpio>;
+ __overlay__ {
+ sensehat_pins: sensehat_pins {
+ brcm,pins = <23>;
+ brcm,function = <0>;
+ };
+ };
+ };
};
--- a/arch/arm/boot/dts/overlays/rpi-sense-v2-overlay.dts
+++ b/arch/arm/boot/dts/overlays/rpi-sense-v2-overlay.dts
@@ -12,11 +12,23 @@
#size-cells = <0>;
status = "okay";
- rpi-sense@46 {
- compatible = "rpi,rpi-sense";
+ sensehat@46 {
+ compatible = "raspberrypi,sensehat";
reg = <0x46>;
- keys-int-gpios = <&gpio 23 1>;
+ interrupt-parent = <&gpio>;
status = "okay";
+
+ display {
+ compatible = "raspberrypi,rpi-sense-fb";
+ status = "okay";
+ };
+ joystick {
+ compatible = "raspberrypi,sensehat-joystick";
+ interrupts = <23 1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&sensehat_pins>;
+ status = "okay";
+ };
};
lsm9ds1-magn@1c {
@@ -44,4 +56,14 @@
};
};
};
+
+ fragment@1 {
+ target = <&gpio>;
+ __overlay__ {
+ sensehat_pins: sensehat_pins {
+ brcm,pins = <23>;
+ brcm,function = <0>;
+ };
+ };
+ };
};