openwrt/target/linux/bcm27xx/patches-6.1/950-0707-ARM-dts-bcm2711-rpi-ds-Set-default-I-O-pins.patch
Álvaro Fernández Rojas 793f8ab62c bcm27xx: 6.1: add kernel patches
Add kernel patches for version 6.1.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-06-09 19:12:30 +02:00

85 lines
1.6 KiB
Diff

From 4dda6d4ab43c8628066b0c0f72107249cfb86d39 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 9 May 2023 14:20:58 +0100
Subject: [PATCH] ARM: dts: bcm2711-rpi-ds: Set default I/O pins
Give all the extended I/O interfaces - I2C3-6, SPI3-6 and UART2-5 -
sensible default pinctrl references.
See: https://github.com/raspberrypi/linux/pull/5443
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/bcm2711-rpi-ds.dtsi | 60 +++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
--- a/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
+++ b/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
@@ -418,6 +418,66 @@
i2c_arm: &i2c1 {};
i2c_vc: &i2c0 {};
+&i2c3 {
+ pinctrl-0 = <&i2c3_pins>;
+ pinctrl-names = "default";
+};
+
+&i2c4 {
+ pinctrl-0 = <&i2c4_pins>;
+ pinctrl-names = "default";
+};
+
+&i2c5 {
+ pinctrl-0 = <&i2c5_pins>;
+ pinctrl-names = "default";
+};
+
+&i2c6 {
+ pinctrl-0 = <&i2c6_pins>;
+ pinctrl-names = "default";
+};
+
+&spi3 {
+ pinctrl-0 = <&spi3_pins &spi3_cs_pins>;
+ pinctrl-names = "default";
+};
+
+&spi4 {
+ pinctrl-0 = <&spi4_pins &spi4_cs_pins>;
+ pinctrl-names = "default";
+};
+
+&spi5 {
+ pinctrl-0 = <&spi5_pins &spi5_cs_pins>;
+ pinctrl-names = "default";
+};
+
+&spi6 {
+ pinctrl-0 = <&spi6_pins &spi6_cs_pins>;
+ pinctrl-names = "default";
+};
+
+&uart2 {
+ pinctrl-0 = <&uart2_pins>;
+ pinctrl-names = "default";
+};
+
+&uart3 {
+ pinctrl-0 = <&uart3_pins>;
+ pinctrl-names = "default";
+};
+
+&uart4 {
+ pinctrl-0 = <&uart4_pins>;
+ pinctrl-names = "default";
+};
+
+&uart5 {
+ pinctrl-0 = <&uart5_pins>;
+ pinctrl-names = "default";
+};
+
/delete-node/ &v3d;
/ {