mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 22:10:40 +08:00
update: linux-aarch64-raspberrypi to 4.19.76.r791998.gf1da5f42022d-2, fix 0002-bcm2837-spidev.patch
This commit is contained in:
parent
634ca57a1b
commit
a35df51c26
2 changed files with 67 additions and 9 deletions
|
@ -1,13 +1,71 @@
|
||||||
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
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 67c01b62b588..36a58e866b2f 100644
|
index 3d5f4ada9a2f..fec39e42fd3e 100644
|
||||||
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
|
||||||
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
|
||||||
@@ -104,3 +104,21 @@
|
@@ -108,3 +108,37 @@
|
||||||
|
pinctrl-0 = <&uart1_gpio14>;
|
||||||
status = "okay";
|
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 {
|
+&spi {
|
||||||
|
+ pinctrl-names = "default";
|
||||||
|
+ pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
|
||||||
|
+ cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
|
||||||
|
+
|
||||||
|
+ spidev0: spidev@0{
|
||||||
|
+ compatible = "spidev";
|
||||||
|
+ reg = <0>; /* CE0 */
|
||||||
|
+ #address-cells = <1>;
|
||||||
|
+ #size-cells = <0>;
|
||||||
|
+ spi-max-frequency = <125000000>;
|
||||||
|
+ };
|
||||||
|
+
|
||||||
|
+ spidev1: spidev@1{
|
||||||
|
+ compatible = "spidev";
|
||||||
|
+ reg = <1>; /* CE1 */
|
||||||
|
+ #address-cells = <1>;
|
||||||
|
+ #size-cells = <0>;
|
||||||
|
+ 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: spidev@0{
|
+ spidev0: spidev@0{
|
||||||
+ compatible = "spidev";
|
+ compatible = "spidev";
|
||||||
+ reg = <0>; /* CE0 */
|
+ reg = <0>; /* CE0 */
|
||||||
|
|
|
@ -7,7 +7,7 @@ pkgbase=linux-aarch64-raspberrypi
|
||||||
_srcname=linux-4.19
|
_srcname=linux-4.19
|
||||||
_kernelname=${pkgbase#linux}
|
_kernelname=${pkgbase#linux}
|
||||||
_desc="AArch64 kernel for RaspberryPi 3"
|
_desc="AArch64 kernel for RaspberryPi 3"
|
||||||
pkgver=4.19.76.r791997.g7a54e45c03bc
|
pkgver=4.19.76.r791998.gf1da5f42022d
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
arch=('aarch64')
|
arch=('aarch64')
|
||||||
url="https://github.com/raspberrypi/linux"
|
url="https://github.com/raspberrypi/linux"
|
||||||
|
@ -24,7 +24,7 @@ source=("${_srcname}::git+https://github.com/raspberrypi/linux.git#branch=rpi-4.
|
||||||
md5sums=('SKIP'
|
md5sums=('SKIP'
|
||||||
'e2a36c16f036506f55cd2a211d5808a8'
|
'e2a36c16f036506f55cd2a211d5808a8'
|
||||||
'b8a3b7cc32a8786114e29c41636979fc'
|
'b8a3b7cc32a8786114e29c41636979fc'
|
||||||
'e99e54e43761358cab79364a3206994e'
|
'b6364a9a82d48aae40e32417ab322aa5'
|
||||||
'41cb5fef62715ead2dd109dbea8413d6'
|
'41cb5fef62715ead2dd109dbea8413d6'
|
||||||
'ce6c81ad1ad1f8b333fd6077d47abdaf'
|
'ce6c81ad1ad1f8b333fd6077d47abdaf'
|
||||||
'3dc88030a8f2f5a5f97266d99b149f77')
|
'3dc88030a8f2f5a5f97266d99b149f77')
|
||||||
|
|
Loading…
Reference in a new issue