Skip to content

Commit

Permalink
Linux: Update kernel 6.1.13 for Raspberry Pi systems (#2373)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored Feb 27, 2023
1 parent 6f44dcf commit fd6bae5
Show file tree
Hide file tree
Showing 20 changed files with 168 additions and 179 deletions.
12 changes: 6 additions & 6 deletions Documentation/kernel.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Default Kernel tree: 5.15
| Board | Version |
|-------|---------|
| Open Virtual Appliance | 6.1.14 |
| Raspberry Pi | 5.15.84 |
| Raspberry Pi 0-W | 5.15.84 |
| Raspberry Pi 2 | 5.15.84 |
| Raspberry Pi 3 | 5.15.84 |
| Raspberry Pi 4 | 5.15.84 |
| Home Assistant Yellow | 5.15.84 |
| Raspberry Pi | 6.1.13 |
| Raspberry Pi 0-W | 6.1.13 |
| Raspberry Pi 2 | 6.1.13 |
| Raspberry Pi 3 | 6.1.13 |
| Raspberry Pi 4 | 6.1.13 |
| Home Assistant Yellow | 6.1.13 |
| Tinker Board | 6.1.14 |
| Odroid-C2 | 6.1.14 |
| Odroid-C4 | 6.1.14 |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
From 2230740c7f74678ca80da55f74ccc24f5aa6bd35 Mon Sep 17 00:00:00 2001
Message-Id: <2230740c7f74678ca80da55f74ccc24f5aa6bd35.1614676528.git.stefan@agner.ch>
From 57188c09ac02bfa61cce55932ccba43ec7210e54 Mon Sep 17 00:00:00 2001
Message-Id: <57188c09ac02bfa61cce55932ccba43ec7210e54.1677499675.git.stefan@agner.ch>
From: Pascal Vizeli <pvizeli@syshack.ch>
Date: Tue, 2 Jun 2020 21:20:08 +0000
Subject: [PATCH] ARM: dts: bcm283x: add compatible picked up by U-Boot
Expand All @@ -17,10 +17,10 @@ Signed-off-by: Stefan Agner <stefan@agner.ch>
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi
index b4bca5af95e1..c31b87b5bb3a 100644
index 941c4d16791b..3cd49fa4bafd 100644
--- a/arch/arm/boot/dts/bcm2711.dtsi
+++ b/arch/arm/boot/dts/bcm2711.dtsi
@@ -127,7 +127,7 @@ rng@7e104000 {
@@ -128,7 +128,7 @@ rng@7e104000 {
};

uart2: serial@7e201400 {
Expand All @@ -29,7 +29,7 @@ index b4bca5af95e1..c31b87b5bb3a 100644
reg = <0x7e201400 0x200>;
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clocks BCM2835_CLOCK_UART>,
@@ -138,7 +138,7 @@ uart2: serial@7e201400 {
@@ -139,7 +139,7 @@ uart2: serial@7e201400 {
};

uart3: serial@7e201600 {
Expand All @@ -38,7 +38,7 @@ index b4bca5af95e1..c31b87b5bb3a 100644
reg = <0x7e201600 0x200>;
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clocks BCM2835_CLOCK_UART>,
@@ -149,7 +149,7 @@ uart3: serial@7e201600 {
@@ -150,7 +150,7 @@ uart3: serial@7e201600 {
};

uart4: serial@7e201800 {
Expand All @@ -47,7 +47,7 @@ index b4bca5af95e1..c31b87b5bb3a 100644
reg = <0x7e201800 0x200>;
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clocks BCM2835_CLOCK_UART>,
@@ -160,7 +160,7 @@ uart4: serial@7e201800 {
@@ -161,7 +161,7 @@ uart4: serial@7e201800 {
};

uart5: serial@7e201a00 {
Expand All @@ -57,10 +57,10 @@ index b4bca5af95e1..c31b87b5bb3a 100644
interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clocks BCM2835_CLOCK_UART>,
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index 346838ee9d21..7f289fbca28c 100644
index d2d9c6e67f39..7b9a2e8cf529 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -300,7 +300,7 @@ uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
@@ -302,7 +302,7 @@ uart1_ctsrts_gpio42: uart1_ctsrts_gpio42 {
};

uart0: serial@7e201000 {
Expand All @@ -70,5 +70,5 @@ index 346838ee9d21..7f289fbca28c 100644
interrupts = <2 25>;
clocks = <&clocks BCM2835_CLOCK_UART>,
--
2.30.1
2.39.1

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
From b28a8f5b591841f88f19cbf9850d713a602d912e Mon Sep 17 00:00:00 2001
Message-Id: <b28a8f5b591841f88f19cbf9850d713a602d912e.1662565903.git.stefan@agner.ch>
From f0292972b38d512fce48384ebbb72b2da46f03bd Mon Sep 17 00:00:00 2001
Message-Id: <f0292972b38d512fce48384ebbb72b2da46f03bd.1677499716.git.stefan@agner.ch>
From: Stefan Agner <stefan@agner.ch>
Date: Mon, 11 Apr 2022 14:47:59 +0200
Subject: [PATCH] ARM: dts: bcm2711: Add device tree for Home Assistant Yellow
Expand All @@ -10,15 +10,15 @@ board.
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
arch/arm/boot/dts/Makefile | 3 +-
.../boot/dts/bcm2711-rpi-cm4-ha-yellow.dts | 598 ++++++++++++++++++
.../boot/dts/bcm2711-rpi-cm4-ha-yellow.dts | 587 ++++++++++++++++++
arch/arm64/boot/dts/broadcom/Makefile | 1 +
.../broadcom/bcm2711-rpi-cm4-ha-yellow.dts | 1 +
4 files changed, 602 insertions(+), 1 deletion(-)
4 files changed, 591 insertions(+), 1 deletion(-)
create mode 100644 arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
create mode 100644 arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4-ha-yellow.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 3dfe451bcb16..d147c3400732 100644
index f7d8d09c0a16..3a7d6595aded 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -18,7 +18,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
Expand All @@ -33,14 +33,21 @@ index 3dfe451bcb16..d147c3400732 100644
alpine-db.dtb
diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
new file mode 100644
index 000000000000..61d8c81d3de4
index 000000000000..f92936d7cf16
--- /dev/null
+++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
@@ -0,0 +1,598 @@
@@ -0,0 +1,587 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+#define BCM2711
+#define i2c0 i2c0if
+#include "bcm2711.dtsi"
+#include "bcm283x-rpi-wifi-bt.dtsi"
+#undef i2c0
+#include "bcm270x.dtsi"
+#define i2c0 i2c0mux
+#include "bcm2711-rpi.dtsi"
+#undef i2c0
+//#include "bcm283x-rpi-usb-peripheral.dtsi"
+
+/ {
Expand All @@ -65,11 +72,6 @@ index 000000000000..61d8c81d3de4
+ };
+ };
+
+ wifi_pwrseq: wifi-pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
+ };
+
+ sd_io_1v8_reg: sd_io_1v8_reg {
+ compatible = "regulator-gpio";
+ regulator-name = "vdd-sd-io";
Expand All @@ -95,6 +97,10 @@ index 000000000000..61d8c81d3de4
+ };
+};
+
+&bt {
+ shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
+};
+
+&ddc0 {
+ status = "okay";
+};
Expand Down Expand Up @@ -229,23 +235,6 @@ index 000000000000..61d8c81d3de4
+ status = "okay";
+};
+
+/* SDHCI is used to control the SDIO for wireless */
+&sdhci {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&emmc_gpio34>;
+ bus-width = <4>;
+ non-removable;
+ mmc-pwrseq = <&wifi_pwrseq>;
+ status = "okay";
+
+ brcmf: wifi@1 {
+ reg = <1>;
+ compatible = "brcm,bcm4329-fmac";
+ };
+};
+
+/* EMMC2 is used to drive the EMMC card */
+&emmc2 {
+ bus-width = <8>;
Expand All @@ -270,7 +259,7 @@ index 000000000000..61d8c81d3de4
+
+&pcie0 {
+ pci@0,0 {
+ device-type = "pci";
+ device_type = "pci";
+ #address-cells = <3>;
+ #size-cells = <2>;
+ ranges;
Expand All @@ -284,13 +273,6 @@ index 000000000000..61d8c81d3de4
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
+ uart-has-rtscts;
+ status = "okay";
+
+ bluetooth {
+ compatible = "brcm,bcm43438-bt";
+ max-speed = <2000000>;
+ shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
+ };
+};
+
+/* uart1 is mapped to the pin header */
Expand All @@ -300,10 +282,6 @@ index 000000000000..61d8c81d3de4
+ status = "okay";
+};
+
+&vchiq {
+ interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+};
+
+&vc4 {
+ status = "okay";
+};
Expand All @@ -312,12 +290,13 @@ index 000000000000..61d8c81d3de4
+ status = "disabled";
+};
+
+&wifi_pwrseq {
+ reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
+};
+
+// =============================================
+// Downstream rpi- changes
+
+#define BCM2711
+
+#include "bcm270x.dtsi"
+#include "bcm271x-rpi-bt.dtsi"
+
+/ {
Expand All @@ -334,7 +313,7 @@ index 000000000000..61d8c81d3de4
+
+/ {
+ chosen {
+ bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
+ bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0";
+ };
+
+ aliases {
Expand Down Expand Up @@ -579,12 +558,14 @@ index 000000000000..61d8c81d3de4
+&leds {
+ act_led: led-act {
+ label = "led0";
+ default-state = "off";
+ linux,default-trigger = "mmc0";
+ gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
+ };
+
+ pwr_led: led-pwr {
+ label = "led1";
+ default-state = "off";
+ linux,default-trigger = "default-on";
+ gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
+ };
Expand All @@ -594,10 +575,9 @@ index 000000000000..61d8c81d3de4
+ status = "disabled";
+};
+
+&audio {
+&vchiq {
+ pinctrl-names = "default";
+ pinctrl-0 = <&audio_pins>;
+ brcm,disable-headphones = <1>;
+};
+
+cam0_reg: &cam1_reg {
Expand All @@ -606,6 +586,8 @@ index 000000000000..61d8c81d3de4
+
+/ {
+ __overrides__ {
+ audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_hdmi=0'}";
+
+ act_led_gpio = <&act_led>,"gpios:4";
+ act_led_activelow = <&act_led>,"gpios:8";
+ act_led_trigger = <&act_led>,"linux,default-trigger";
Expand Down Expand Up @@ -633,19 +615,26 @@ index 000000000000..61d8c81d3de4
+ sd_poll_once = <&emmc2>, "non-removable?";
+ spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
+ <&spi0>, "dmas:8=", <&dma40>;
+
+ cam0_reg = <&cam0_reg>,"status";
+ cam0_reg_gpio = <&cam0_reg>,"gpio:4",
+ <&cam0_reg>,"gpio:0=", <&gpio>;
+ cam1_reg = <&cam1_reg>,"status";
+ cam1_reg_gpio = <&cam1_reg>,"gpio:4",
+ <&cam1_reg>,"gpio:0=", <&gpio>;
+ };
+};
diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile
index 9873335d0ed2..8c19b62e189e 100644
index 9b678d144085..7c1a67f7c028 100644
--- a/arch/arm64/boot/dts/broadcom/Makefile
+++ b/arch/arm64/boot/dts/broadcom/Makefile
@@ -15,6 +15,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb
@@ -16,6 +16,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-3-b-plus.dtb
dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-cm3.dtb
dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-cm4.dtb
dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-cm4s.dtb
+dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-cm4-ha-yellow.dtb

subdir-y += bcm4908
subdir-y += bcmbca
subdir-y += northstar2
diff --git a/arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4-ha-yellow.dts
new file mode 100644
Expand All @@ -655,5 +644,5 @@ index 000000000000..fdc5ec5bc956
@@ -0,0 +1 @@
+#include "../../../../arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts"
--
2.37.3
2.39.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7eb647452bb1a3294fae8edc5a323070adff922b Mon Sep 17 00:00:00 2001
Message-Id: <7eb647452bb1a3294fae8edc5a323070adff922b.1662565903.git.stefan@agner.ch>
In-Reply-To: <b28a8f5b591841f88f19cbf9850d713a602d912e.1662565903.git.stefan@agner.ch>
References: <b28a8f5b591841f88f19cbf9850d713a602d912e.1662565903.git.stefan@agner.ch>
From c07db9fb0a6a9779aadc7c8cc4c83c87c83b2ad4 Mon Sep 17 00:00:00 2001
Message-Id: <c07db9fb0a6a9779aadc7c8cc4c83c87c83b2ad4.1677499716.git.stefan@agner.ch>
In-Reply-To: <f0292972b38d512fce48384ebbb72b2da46f03bd.1677499716.git.stefan@agner.ch>
References: <f0292972b38d512fce48384ebbb72b2da46f03bd.1677499716.git.stefan@agner.ch>
From: Stefan Agner <stefan@agner.ch>
Date: Thu, 4 Mar 2021 14:33:09 +0100
Subject: [PATCH] ARM: dts: bcm2711: yellow: Mux UART4 for SiLabs radio module
Expand All @@ -14,10 +14,10 @@ Signed-off-by: Stefan Agner <stefan@agner.ch>
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
index 61d8c81d3de4..8db71876a78c 100644
index f92936d7cf16..fa93ab5ca639 100644
--- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
+++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
@@ -8,6 +8,10 @@ / {
@@ -15,6 +15,10 @@ / {
compatible = "raspberrypi,4-compute-module-ha-yellow", "raspberrypi,4-compute-module", "brcm,bcm2711";
model = "Raspberry Pi Compute Module 4 on Home Assistant Yellow";

Expand All @@ -28,7 +28,7 @@ index 61d8c81d3de4..8db71876a78c 100644
chosen {
/* 8250 auxiliary UART instead of pl011 */
stdout-path = "serial1:115200n8";
@@ -261,6 +265,14 @@ &uart1 {
@@ -243,6 +247,14 @@ &uart1 {
status = "okay";
};

Expand All @@ -40,10 +40,10 @@ index 61d8c81d3de4..8db71876a78c 100644
+ status = "okay";
+};
+
&vchiq {
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
&vc4 {
status = "okay";
};
@@ -488,9 +500,9 @@ uart3_pins: uart3_pins {
@@ -467,9 +479,9 @@ uart3_pins: uart3_pins {
};

uart4_pins: uart4_pins {
Expand All @@ -56,5 +56,5 @@ index 61d8c81d3de4..8db71876a78c 100644

uart5_pins: uart5_pins {
--
2.37.3
2.39.1

Loading

0 comments on commit fd6bae5

Please sign in to comment.