Navigation Menu

Skip to content

Commit

Permalink
enable spidev
Browse files Browse the repository at this point in the history
  • Loading branch information
yatli committed Jun 27, 2022
1 parent 5bff4e5 commit f2c02ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions linux-clockworkpi-a06/0033-rockchip-spidev.patch
@@ -0,0 +1,10 @@
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -696,6 +696,7 @@ static const struct of_device_id spidev_
{ .compatible = "menlo,m53cpld" },
{ .compatible = "cisco,spi-petra" },
{ .compatible = "micron,spi-authenta" },
+ { .compatible = "rockchip,spidev" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
5 changes: 5 additions & 0 deletions linux-clockworkpi-a06/PKGBUILD
Expand Up @@ -30,6 +30,8 @@ source=("http://www.kernel.org/pub/linux/kernel/v5.x/${_srcname}.tar.xz"
'0031-gpio-pwm.patch' # https://lwn.net/Articles/830406/ slightly adapted
'0031-gpio-pwm-dt.patch'
'0031-gpio-pwm-devterm.patch' # dt for devterm
'0032-a06-usbphy-fix.patch'
'0033-rockchip-spidev.patch' # adds rockchip,spidev to spidev driver OF list
'config'
'linux.preset'
'60-linux.hook'
Expand All @@ -50,6 +52,8 @@ md5sums=('e6680ce7c989a3efe58b51e3f3f0bf93'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'86d4a35722b5410e3b29fc92dae15d4b'
'ce6c81ad1ad1f8b333fd6077d47abdaf'
'3dc88030a8f2f5a5f97266d99b149f77')
Expand Down Expand Up @@ -81,6 +85,7 @@ prepare() {
patch -Np1 -i "${srcdir}/0031-gpio-pwm.patch"
patch -Np1 -i "${srcdir}/0031-gpio-pwm-devterm.patch"
patch -Np1 -i "${srcdir}/0032-a06-usbphy-fix.patch"
patch -Np1 -i "${srcdir}/0033-rockchip-spidev.patch"

cat "${srcdir}/config" > ./.config

Expand Down

0 comments on commit f2c02ce

Please sign in to comment.