linksys-jamaica: add mainline support (MR 5649)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
b9be5c36b3
commit
ddcd0aedfd
13 changed files with 3602 additions and 3467 deletions
|
|
@ -1,8 +1,9 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: exkc <exkc@exkc.moe>
|
||||
pkgname=device-linksys-jamaica
|
||||
pkgdesc="Linksys EA9350 V3"
|
||||
pkgver=1
|
||||
pkgrel=1
|
||||
pkgver=2
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
|
|
@ -39,7 +40,7 @@ nonfree_firmware() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
c5c0f00a3da2e75b3670444e47ff6893597e7afb3ebc24abf90debc608e72d6cd1071c9435ffc7d64e44ec574c35862286662d882150ddaa33c6ea65181385ad boot-image.its
|
||||
a172a3d613fd55b95f54b891f58a3f4f6289873a861f3c21186bcc5d85166a124960e578f475f419188c5ae7b084a16a7b8a1176e1f150c5ba65f1f554d29227 deviceinfo
|
||||
401f734389592e11fc9e6bb215f8fd708d27028a68bb770ddd5697a65df38552dd57c94a1edd95e0954e5458a80291895f1aa47dd21fe3e558dfb16aa49d21f8 initfs-hook.sh
|
||||
114f469383b811ff68504262f7ddc2c7554d93dcc7aeb3bdb0be503effc3acf18aebac0fa92df73a6b01f2f7e42dcb3a15b26b39cf2a1e0af16cf39edee65f9f boot-image.its
|
||||
565f1fa487083671cd643047054296c7d419d0d466013401141b0f991e65513e066c52c55b0cc9296f58f1623ce3df7e567bf05d1fd2e98ecfeb9177be6f4c3b initfs-hook.sh
|
||||
ad030f57607f6b9d866039f223eaf97275ea418f0751b051630940149d3aaa08129f24f3e7fae966cb91bcf0f6276164669367b7c603e5e253e85f0ad84d3dd0 deviceinfo
|
||||
"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
};
|
||||
fdt {
|
||||
description = "DTB";
|
||||
data = /incbin/("/boot/dtbs/ipq5018-linksys-jamaica.dtb");
|
||||
data = /incbin/("/boot/dtbs/qcom-ipq5018-linksys-jamaica.dtb");
|
||||
type = "flat_dt";
|
||||
arch = "arm";
|
||||
compression = "none";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ deviceinfo_manufacturer="Linksys"
|
|||
deviceinfo_codename="linksys-jamaica"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_dtb="ipq5018-linksys-jamaica"
|
||||
deviceinfo_dtb="qcom-ipq5018-linksys-jamaica"
|
||||
deviceinfo_uboot_boardname="jamaica"
|
||||
|
||||
# Device related
|
||||
|
|
@ -15,8 +15,8 @@ deviceinfo_chassis="embedded"
|
|||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_gpu_accelerated="false"
|
||||
deviceinfo_getty="ttyMSM0;115200"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,32N2"
|
||||
deviceinfo_generate_uboot_fit_images="true"
|
||||
deviceinfo_boot_filesystem="fat32"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Enable USB Power
|
||||
echo 482 > /sys/class/gpio/export
|
||||
echo "out" >/sys/class/gpio/gpio482/direction
|
||||
echo 0 > /sys/class/gpio/gpio482/value
|
||||
echo 529 > /sys/class/gpio/export
|
||||
echo "out" >/sys/class/gpio/gpio529/direction
|
||||
echo 0 > /sys/class/gpio/gpio529/value
|
||||
# Wait 5 seconds to let the kernel detect the usb stick
|
||||
sleep 5
|
||||
|
|
|
|||
|
|
@ -1,73 +0,0 @@
|
|||
Fix build
|
||||
|
||||
---
|
||||
arch/arm/kernel/vmlinux.lds.S | 2 +-
|
||||
drivers/soc/qcom/ctx-save.c | 4 ++--
|
||||
net/ipv6/ip6mr.c | 2 +-
|
||||
init/do_mounts.c | 2 ++
|
||||
4 files changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
|
||||
index 406f2f1ed..5198ce351 100644
|
||||
--- a/arch/arm/kernel/vmlinux.lds.S
|
||||
+++ b/arch/arm/kernel/vmlinux.lds.S
|
||||
@@ -73,7 +73,7 @@ SECTIONS
|
||||
. = ALIGN(4);
|
||||
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
|
||||
__start___ex_table = .;
|
||||
- ARM_MMU_KEEP(*(__ex_table))
|
||||
+ KEEP(*(__ex_table))
|
||||
__stop___ex_table = .;
|
||||
}
|
||||
|
||||
diff --git a/drivers/soc/qcom/ctx-save.c b/drivers/soc/qcom/ctx-save.c
|
||||
index 3c1248297..e1fa9a0b6 100644
|
||||
--- a/drivers/soc/qcom/ctx-save.c
|
||||
+++ b/drivers/soc/qcom/ctx-save.c
|
||||
@@ -1508,8 +1508,8 @@ static int ctx_save_probe(struct platform_device *pdev)
|
||||
|
||||
#ifdef CONFIG_QCA_MINIDUMP
|
||||
ret = register_module_notifier(&wlan_module_exit_nb);
|
||||
- if (ret)
|
||||
- dev_err(&pdev->dev, "Failed to register WLAN module exit notifier\n");
|
||||
+ if (ret)
|
||||
+ dev_err(&pdev->dev, "Failed to register WLAN module exit notifier\n");
|
||||
|
||||
ret = atomic_notifier_chain_register(&panic_notifier_list,
|
||||
&wlan_panic_nb);
|
||||
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
|
||||
index 45dcd1fd7..8d9328190 100644
|
||||
--- a/net/ipv6/ip6mr.c
|
||||
+++ b/net/ipv6/ip6mr.c
|
||||
@@ -105,7 +105,7 @@ static ip6mr_mfc_event_offload_callback_t __rcu
|
||||
|
||||
#ifdef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
|
||||
#define ip6mr_for_each_table(mrt, net) \
|
||||
- list_for_each_entry_rcu(mrt, &net->ipv6.mr_tables, list)
|
||||
+ list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list)
|
||||
|
||||
static struct mr_table *ip6mr_mr_table_iter(struct net *net,
|
||||
struct mr_table *mrt)
|
||||
diff --git a/init/do_mounts.c b/init/do_mounts.c
|
||||
index 1cb0a9571..1de990b03 100644
|
||||
--- a/init/do_mounts.c
|
||||
+++ b/init/do_mounts.c
|
||||
@@ -461,6 +461,7 @@ void __init mount_block_root(char *name, int flags)
|
||||
put_page(page);
|
||||
}
|
||||
|
||||
+#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
|
||||
static int __init mount_ubi_rootfs(void)
|
||||
{
|
||||
int flags = MS_SILENT;
|
||||
@@ -481,6 +482,7 @@ static int __init mount_ubi_rootfs(void)
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
+#endif
|
||||
|
||||
#ifdef CONFIG_ROOT_NFS
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
#it is a patch from linksys.It is needed for the light up the led.This patch was made for qsdk kernel (Qualcomm's downsteam kernel) 4.4.60 but it has been ported to 5.4(expect for the hackly code that for controling the color of led).
|
||||
Index: linux-4.4/drivers/pinctrl/qcom/pinctrl-ipq5018.c
|
||||
===================================================================
|
||||
--- linux-4.4-old/drivers/pinctrl/qcom/pinctrl-ipq5018.c 2020-12-25 11:09:09.328382586 +0800
|
||||
+++ linux-4.4/drivers/pinctrl/qcom/pinctrl-ipq5018.c 2020-12-25 11:09:56.097125434 +0800
|
||||
@@ -613,7 +613,7 @@ static const char * const qdss_tracectl_
|
||||
"gpio40",
|
||||
};
|
||||
static const char * const pwm0_groups[] = {
|
||||
- "gpio42",
|
||||
+ "gpio42", "gpio46",
|
||||
};
|
||||
static const char * const qdss_cti_trig_out_b0_groups[] = {
|
||||
"gpio42",
|
||||
@@ -625,7 +625,7 @@ static const char * const xfem4_groups[]
|
||||
"gpio42",
|
||||
};
|
||||
static const char * const pwm1_groups[] = {
|
||||
- "gpio43",
|
||||
+ "gpio43", "gpio1",
|
||||
};
|
||||
static const char * const qdss_cti_trig_in_b0_groups[] = {
|
||||
"gpio43",
|
||||
@@ -649,7 +649,7 @@ static const char * const xfem6_groups[]
|
||||
"gpio44",
|
||||
};
|
||||
static const char * const pwm3_groups[] = {
|
||||
- "gpio45",
|
||||
+ "gpio45", "gpio30",
|
||||
};
|
||||
static const char * const qdss_cti_trig_in_b1_groups[] = {
|
||||
"gpio45",
|
||||
@@ -804,7 +804,7 @@ static const struct msm_function ipq5018
|
||||
static const struct msm_pingroup ipq5018_groups[] = {
|
||||
PINGROUP(0, atest_char, _, qdss_cti_trig_out_a0, wci_txd, wci_rxd, xfem, _, _, _),
|
||||
- PINGROUP(1, atest_char, _, qdss_cti_trig_in_a0, wci_txd, wci_rxd, xfem, _, _, _),
|
||||
+ PINGROUP(1, atest_char, pwm1, qdss_cti_trig_in_a0, wci_txd, wci_rxd, xfem, _, _, _),
|
||||
PINGROUP(2, atest_char, _, qdss_cti_trig_out_a1, wci_txd, wci_rxd, xfem, _, _, _),
|
||||
PINGROUP(3, atest_char, _, qdss_cti_trig_in_a1, wci_txd, wci_rxd, xfem, _, _, _),
|
||||
PINGROUP(4, sdc1_data, qspi_data, blsp1_spi1, btss, dbg_out, qdss_traceclk_a, _, bu rn0, _),
|
||||
PINGROUP(5, sdc1_data, qspi_data, cxc_clk, blsp1_spi1, blsp1_i2c1, btss, _, qdss_tr acectl_a, _),
|
||||
@@ -860,7 +860,7 @@ static const struct msm_pingroup ipq5018
|
||||
PINGROUP(27, audio_txmclk, wsa_swrm, audio_txmclk, blsp2_spi, btss, _, qdss_traceda ta_b, _, _),
|
||||
PINGROUP(28, audio_txbclk, wsa_swrm, blsp0_uart1, btss, qdss_tracedata_b, _, _, _, _),
|
||||
PINGROUP(29, audio_txfsync, _, blsp0_uart1, _, qdss_tracedata_b, _, _, _, _),
|
||||
- PINGROUP(30, audio_txd, led2, led0, _, _, _, _, _, _),
|
||||
+ PINGROUP(30, audio_txd, led2, led0, pwm3, _, _, _, _, _),
|
||||
PINGROUP(31, blsp2_spi0, blsp1_uart1, _, qdss_tracedata_b, eud_gpio, _, _, _, _),
|
||||
PINGROUP(32, blsp2_spi0, blsp1_uart1, _, qdss_tracedata_b, eud_gpio, _, _, _, _),
|
||||
PINGROUP(33, blsp2_i2c0, blsp2_spi0, blsp1_uart1, _, qdss_tracedata_b, eud_gpio, _, _, _),
|
||||
@@ -886,7 +886,7 @@ static const struct msm_pingroup ipq5018
|
||||
PINGROUP(43, pwm1, qdss_cti_trig_in_b0, wci_txd, wci_rxd, xfem, _, _, _, _),
|
||||
PINGROUP(44, pwm2, qdss_cti_trig_out_b1, wci_txd, wci_rxd, xfem, _, _, _, _),
|
||||
PINGROUP(45, pwm3, qdss_cti_trig_in_b1, wci_txd, wci_rxd, xfem, _, _, _, _),
|
||||
- PINGROUP(46, led0, _, _, _, _, _, _, _, _),
|
||||
+ PINGROUP(46, led0, pwm0, _, _, _, _, _, _, _),
|
||||
};
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
From 8e93b67188de59d2b87f9f8dfa576d36de85fe2c Mon Sep 17 00:00:00 2001
|
||||
From: hzy <hzyitc@outlook.com>
|
||||
Date: Tue, 23 May 2023 21:24:04 +0000
|
||||
Subject: [PATCH] netfilter: br_netfilter: Don't invoke iptables by default
|
||||
|
||||
---
|
||||
net/bridge/br_netfilter_hooks.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/net/bridge/br_netfilter_hooks.c b/net/bridge/br_netfilter_hooks.c
|
||||
index fb360da..1286c96 100644
|
||||
--- a/net/bridge/br_netfilter_hooks.c
|
||||
+++ b/net/bridge/br_netfilter_hooks.c
|
||||
@@ -1105,9 +1105,9 @@ static struct ctl_table brnf_table[] = {
|
||||
|
||||
static inline void br_netfilter_sysctl_default(struct brnf_net *brnf)
|
||||
{
|
||||
- brnf->call_iptables = 1;
|
||||
- brnf->call_ip6tables = 1;
|
||||
- brnf->call_arptables = 1;
|
||||
+ brnf->call_iptables = 0;
|
||||
+ brnf->call_ip6tables = 0;
|
||||
+ brnf->call_arptables = 0;
|
||||
brnf->call_ebtables = 0;
|
||||
brnf->call_custom = 0;
|
||||
brnf->filter_vlan_tagged = 0;
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
|
@ -1,81 +1,74 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
pkgname=linux-linksys-jamaica
|
||||
pkgver=5.4.164
|
||||
pkgrel=1
|
||||
pkgdesc="Linksys EA9350 V3 kernel fork"
|
||||
# Maintainer: exkc <exkc@exkc.moe>
|
||||
# Kernel config based on : device/community/linux-postmarketos-qcom-msm8916/config-postmarketos-qcom-msm8916.armv7
|
||||
|
||||
_flavor="linksys-jamaica"
|
||||
_config="config-$_flavor.armv7"
|
||||
pkgname=linux-$_flavor
|
||||
pkgver=6.11
|
||||
pkgrel=0
|
||||
pkgdesc="Mainline kernel for Linksys EA9350 V3"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="linksys-jamaica"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
options="!strip !check !tracedeps
|
||||
pmb:cross-native
|
||||
pmb:kconfigcheck-waydroid
|
||||
pmb:kconfigcheck-containers
|
||||
pmb:kconfigcheck-zram
|
||||
pmb:kconfigcheck-nftables
|
||||
"
|
||||
makedepends="
|
||||
bash
|
||||
bc
|
||||
bison
|
||||
devicepkg-dev
|
||||
dtbtool-exynos
|
||||
findutils
|
||||
gmp-dev
|
||||
flex
|
||||
mpc1-dev
|
||||
mpfr-dev
|
||||
openssl-dev
|
||||
perl
|
||||
linux-headers
|
||||
xz
|
||||
gcc6
|
||||
postmarketos-installkernel
|
||||
"
|
||||
|
||||
# Compiler: GCC 6 (cant be compiled with newer versions)
|
||||
if [ "${CC:0:5}" != "gcc6-" ]; then
|
||||
CC="gcc6-$CC"
|
||||
HOSTCC="gcc6-gcc"
|
||||
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
||||
fi
|
||||
|
||||
# Source
|
||||
_commit="d5fcb18e5420670c8734c6a659873e73adab6dac"
|
||||
_config="config-$_flavor.$arch"
|
||||
case $pkgver in
|
||||
*.*.*) _kernver=${pkgver%.0};;
|
||||
*.*) _kernver=$pkgver;;
|
||||
esac
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/archive/$_commit/linux-$_commit.tar.gz
|
||||
$_config
|
||||
linux5.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
||||
001-fix-build.patch
|
||||
601-netfilter-br_netfilter-Don-t-invoke-iptables-by-defa.patch
|
||||
412_ipq5018-pwm-leds.patch
|
||||
add-linksys-jamaica-support.patch
|
||||
"
|
||||
builddir="$srcdir/linux-ipq-5.4-$_commit"
|
||||
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
||||
config-$_flavor.armv7
|
||||
armv7.patch
|
||||
jamaica.patch
|
||||
"
|
||||
builddir="$srcdir/linux-${_kernver//_/-}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$arch" .config
|
||||
cp "$srcdir/config-$_flavor.$CARCH" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
# V=1: workaround for pma#1990
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" V=1
|
||||
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 "$builddir/arch/$_carch/boot/zImage" \
|
||||
"$pkgdir/boot/vmlinuz"
|
||||
make modules_install dtbs_install \
|
||||
mkdir -p "$pkgdir"/boot
|
||||
make zinstall modules_install dtbs_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_PATH="$pkgdir"/boot/ \
|
||||
INSTALL_PATH="$pkgdir"/boot \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a3040cd9c89fe1704957acf1da7d986810b60d2a337baaa4307fc434c9dfd8821a714c4b6aa0ba1c5f7ed10374806418558323532d65df3e1c403592c9813511 linux-linksys-jamaica-d5fcb18e5420670c8734c6a659873e73adab6dac.tar.gz
|
||||
f850193f3d5020da0c29e88671bbf52c48da514cdf4a21a5171fed88f3a8003afbd3ca2bd31bb89e9a219362aaa76dc0f1d0be160941786bd2eb23bdc97e8614 config-linksys-jamaica.armv7
|
||||
ee80928d83189a6b71f853c97551326e3ac74167dee3bda0ae85a034278ca69403bbfbbd9dfaf9f77426e46d7260e4fda8e8900649f1b6355bac62a8cda83776 linux5.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
||||
f4fcc19216ac758ba0ba10f3c003d0d06270501d7294f1cf8bf2d7dea1341de9d7b5b7151660399049cbce9648d0ae4c14ece624866f9dd4c2b42cff4227fe14 001-fix-build.patch
|
||||
0343e7791d9b58d96d40314f73adce0e47ce15439ed383e757a7e3d565a04dd75785ccdb49621584a21f23f94edf96b725ec9814a37763b45c533e08a2226ebf 601-netfilter-br_netfilter-Don-t-invoke-iptables-by-defa.patch
|
||||
7083d8573872ce2c0111b7ebddedb27890a0e98d4565c64c036fd3756aaf8a832315c626b793d7f9f94ac93384f52526a2dc3e2fac713557136e873fdbff9dcc 412_ipq5018-pwm-leds.patch
|
||||
3c3cf15abcb135aa2faceaf813c1a2e6dd5f836ae52cfd54a6ac99dc5c745ac91138a8e08234c91e6a4f5362c9d2e3301b0e997848c8a6f8f4c757c897133d86 add-linksys-jamaica-support.patch
|
||||
329c1f94008742e3f0c2ce7e591a16316d1b2cb9ea4596d4f45604097e07b7aa2f64afa40630a07f321a858455c77aa32ba57b271932ddcf4dc27863f9081cea linux-6.11.tar.xz
|
||||
9ab5c4b1ba450a69865a6e2a40d2be69070125d816c2721c73451b322153ea3bee04a53978a0d248b868f75d15b1445f34c7727180c8a944aef047e125de0031 config-linksys-jamaica.armv7
|
||||
3ce2bf0aec8ec910481d9ca7e9d1d0f9e5409ca3118b401e9e386d14245f938392a3999348e9d34133663516a8eaf080952ec9dc5c4912c2d67e59b6e9d6f36e armv7.patch
|
||||
38d93e83a7452c977b783161975ef6cf3c0329a524f224c0b954806f137d410100fc50e265d79a14f86bea347543d3a891e313f2aacfa805aebf59eb0bf1ea51 jamaica.patch
|
||||
"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
37
device/testing/linux-linksys-jamaica/armv7.patch
Normal file
37
device/testing/linux-linksys-jamaica/armv7.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
From 491964e09df428b98ffe5cf617c8a50aaa694152 Mon Sep 17 00:00:00 2001
|
||||
From: Karl Chan <exkcmailist@inbox.lv>
|
||||
Date: Sun, 26 Nov 2023 11:46:30 +0800
|
||||
Subject: [PATCH] add 32bit supoort
|
||||
|
||||
---
|
||||
drivers/clk/qcom/Kconfig | 1 -
|
||||
drivers/pinctrl/qcom/Kconfig.msm | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
|
||||
index ad1acd9b7..cfc6444de 100644
|
||||
--- a/drivers/clk/qcom/Kconfig
|
||||
+++ b/drivers/clk/qcom/Kconfig
|
||||
@@ -148,7 +148,6 @@ config IPQ_GCC_4019
|
||||
|
||||
config IPQ_GCC_5018
|
||||
tristate "IPQ5018 Global Clock Controller"
|
||||
- depends on ARM64 || COMPILE_TEST
|
||||
help
|
||||
Support for global clock controller on ipq5018 devices.
|
||||
Say Y if you want to use peripheral devices such as UART, SPI,
|
||||
diff --git a/drivers/pinctrl/qcom/Kconfig.msm b/drivers/pinctrl/qcom/Kconfig.msm
|
||||
index 01dd7b134..b2c5904fb 100644
|
||||
--- a/drivers/pinctrl/qcom/Kconfig.msm
|
||||
+++ b/drivers/pinctrl/qcom/Kconfig.msm
|
||||
@@ -24,7 +24,6 @@ config PINCTRL_IPQ4019
|
||||
|
||||
config PINCTRL_IPQ5018
|
||||
tristate "Qualcomm Technologies, Inc. IPQ5018 pin controller driver"
|
||||
- depends on ARM64 || COMPILE_TEST
|
||||
help
|
||||
This is the pinctrl, pinmux, pinconf and gpiolib driver for
|
||||
the Qualcomm Technologies Inc. TLMM block found on the
|
||||
--
|
||||
GitLab
|
||||
|
||||
File diff suppressed because it is too large
Load diff
167
device/testing/linux-linksys-jamaica/jamaica.patch
Normal file
167
device/testing/linux-linksys-jamaica/jamaica.patch
Normal file
|
|
@ -0,0 +1,167 @@
|
|||
From 7efb515c91773def452ab34d394593b2ab2990c9 Mon Sep 17 00:00:00 2001
|
||||
From: exkc <exkc@exkc.moe>
|
||||
Date: Sat, 28 Sep 2024 15:27:22 +0800
|
||||
Subject: [PATCH] add linksys ea9560
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/qcom/Makefile | 1 +
|
||||
.../dts/qcom/qcom-ipq5018-linksys-jamaica.dts | 1 +
|
||||
.../boot/dts/qcom/ipq5018-linksys-jamaica.dts | 126 ++++++++++++++++++
|
||||
4 files changed, 128 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts
|
||||
create mode 100644 arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts
|
||||
|
||||
diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile
|
||||
index 3dfb1c8ce..c9ee98e38 100644
|
||||
--- a/arch/arm/boot/dts/qcom/Makefile
|
||||
+++ b/arch/arm/boot/dts/qcom/Makefile
|
||||
@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
|
||||
qcom-ipq4019-ap.dk04.1-c3.dtb \
|
||||
qcom-ipq4019-ap.dk07.1-c1.dtb \
|
||||
qcom-ipq4019-ap.dk07.1-c2.dtb \
|
||||
+ qcom-ipq5018-linksys-jamaica.dtb \
|
||||
qcom-ipq8064-ap148.dtb \
|
||||
qcom-ipq8064-rb3011.dtb \
|
||||
qcom-msm8226-samsung-s3ve3g.dtb \
|
||||
diff --git a/arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts b/arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts
|
||||
new file mode 100644
|
||||
index 000000000..8d69e73cc
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/qcom/qcom-ipq5018-linksys-jamaica.dts
|
||||
@@ -0,0 +1 @@
|
||||
+#include <arm64/qcom/ipq5018-linksys-jamaica.dts>
|
||||
diff --git a/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts b/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts
|
||||
new file mode 100644
|
||||
index 000000000..ca05c8945
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/qcom/ipq5018-linksys-jamaica.dts
|
||||
@@ -0,0 +1,126 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
||||
+
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "ipq5018.dtsi"
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+#include <dt-bindings/leds/common.h>
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+
|
||||
+
|
||||
+/ {
|
||||
+ model = "Linksys EA9350 V3";
|
||||
+ compatible = "linksys,jamaica", "qcom,ipq5018";
|
||||
+
|
||||
+ aliases {
|
||||
+ serial0 = &blsp1_uart1;
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+ pinctrl-0 = <&led_pins &pwm_led_pins_hack>;
|
||||
+ pinctrl-names = "default";
|
||||
+
|
||||
+ led-0 {
|
||||
+ color = <LED_COLOR_ID_WHITE>;
|
||||
+ function = LED_FUNCTION_USB;
|
||||
+ gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+
|
||||
+ //Use gpio led driver to control the pwm power led as of now
|
||||
+ pwm-hack-0 {
|
||||
+ label = "blue:power";
|
||||
+ gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+
|
||||
+ pwm-hack-1 {
|
||||
+ label = "green:power";
|
||||
+ gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "on";
|
||||
+ };
|
||||
+
|
||||
+ pwm-hack-2 {
|
||||
+ label = "red:power";
|
||||
+ gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ gpio-keys {
|
||||
+ compatible = "gpio-keys";
|
||||
+ pinctrl-0 = <&button_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+
|
||||
+ button-0 {
|
||||
+ label = "reset";
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ gpios = <&tlmm 28 GPIO_ACTIVE_LOW>;
|
||||
+ debounce-interval = <60>;
|
||||
+ };
|
||||
+
|
||||
+ button-1 {
|
||||
+ label = "wps";
|
||||
+ linux,code = <KEY_WPS_BUTTON>;
|
||||
+ gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
|
||||
+ debounce-interval = <60>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+};
|
||||
+
|
||||
+&blsp1_uart1 {
|
||||
+ pinctrl-0 = <&uart1_pins>;
|
||||
+ pinctrl-names = "default";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&sleep_clk {
|
||||
+ clock-frequency = <32000>;
|
||||
+};
|
||||
+
|
||||
+&usbphy0 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&usb {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&usb_dwc {
|
||||
+ dr_mode = "host";
|
||||
+};
|
||||
+
|
||||
+&tlmm {
|
||||
+ button_pins: button-pins-state {
|
||||
+ pins = "gpio27", "gpio28";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <8>;
|
||||
+ bias-pull-up;
|
||||
+ };
|
||||
+
|
||||
+ led_pins: led-pins-state {
|
||||
+ pins = "gpio19";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <2>;
|
||||
+ bias-disable;
|
||||
+ };
|
||||
+
|
||||
+ //Use gpio led driver to control the pwd power led as of now
|
||||
+ pwm_led_pins_hack: led-pins-state {
|
||||
+ pins = "gpio1","gpio46","gpio30";
|
||||
+ function = "gpio";
|
||||
+ drive-strength = <2>;
|
||||
+ bias-disable;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&sleep_clk {
|
||||
+ clock-frequency = <32000>;
|
||||
+};
|
||||
+
|
||||
+&xo_board_clk {
|
||||
+ clock-frequency = <24000000>;
|
||||
+};
|
||||
--
|
||||
GitLab
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
../../.shared-patches/linux/linux5.4-ARM-8933-1-replace-Sun-Solaris-style-flag-on-section.patch
|
||||
Loading…
Add table
Add a link
Reference in a new issue