Browse Source

update: linux-aarch64-raspberrypi to 4.19.76.r791998.gf1da5f42022d-2, fix 0002-bcm2837-spidev.patch

master
Archlinux-Jerry Build Bot 3 years ago
parent
commit
a35df51c26
  1. 72
      linux-aarch64-raspberrypi/0002-bcm2837-spidev.patch
  2. 4
      linux-aarch64-raspberrypi/PKGBUILD

72
linux-aarch64-raspberrypi/0002-bcm2837-spidev.patch

@ -1,13 +1,29 @@
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
index 67c01b62b588..36a58e866b2f 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
@@ -104,3 +104,21 @@
status = "okay";
bus-width = <4>;
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
index 3d5f4ada9a2f..fec39e42fd3e 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
@@ -108,3 +108,37 @@
pinctrl-0 = <&uart1_gpio14>;
status = "okay";
};
+
+&gpio {
+ spi0_pins: spi0_pins {
+ brcm,pins = <9 10 11>;
+ brcm,function = <4>; /* alt0 */
+ };
+
+ spi0_cs_pins: spi0_cs_pins {
+ brcm,pins = <8 7>;
+ brcm,function = <1>; /* output */
+ };
+};
+
+&spi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
+ cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
+
+ spidev0: [email protected]{
+ compatible = "spidev";
+ reg = <0>; /* CE0 */
@ -24,3 +40,45 @@ index 67c01b62b588..36a58e866b2f 100644
+ spi-max-frequency = <125000000>;
+ };
+};
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
index 67c01b62b588..6c2e7ec3b6b4 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
@@ -104,3 +104,37 @@
status = "okay";
bus-width = <4>;
};
+
+&gpio {
+ spi0_pins: spi0_pins {
+ brcm,pins = <9 10 11>;
+ brcm,function = <4>; /* alt0 */
+ };
+
+ spi0_cs_pins: spi0_cs_pins {
+ brcm,pins = <8 7>;
+ brcm,function = <1>; /* output */
+ };
+};
+
+&spi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
+ cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
+
+ spidev0: [email protected]{
+ compatible = "spidev";
+ reg = <0>; /* CE0 */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ spi-max-frequency = <125000000>;
+ };
+
+ spidev1: [email protected]{
+ compatible = "spidev";
+ reg = <1>; /* CE1 */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ spi-max-frequency = <125000000>;
+ };
+};

4
linux-aarch64-raspberrypi/PKGBUILD

@ -7,7 +7,7 @@ pkgbase=linux-aarch64-raspberrypi
_srcname=linux-4.19
_kernelname=${pkgbase#linux}
_desc="AArch64 kernel for RaspberryPi 3"
pkgver=4.19.76.r791997.g7a54e45c03bc
pkgver=4.19.76.r791998.gf1da5f42022d
pkgrel=2
arch=('aarch64')
url="https://github.com/raspberrypi/linux"
@ -24,7 +24,7 @@ source=("${_srcname}::git+https://github.com/raspberrypi/linux.git#branch=rpi-4.
md5sums=('SKIP'
'e2a36c16f036506f55cd2a211d5808a8'
'b8a3b7cc32a8786114e29c41636979fc'
'e99e54e43761358cab79364a3206994e'
'b6364a9a82d48aae40e32417ab322aa5'
'41cb5fef62715ead2dd109dbea8413d6'
'ce6c81ad1ad1f8b333fd6077d47abdaf'
'3dc88030a8f2f5a5f97266d99b149f77')

Loading…
Cancel
Save