mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
linux-fslc-qoriq: apply SolidRun patches for LSDK-20.12
Applying patches from SolidRun for LSDK-20.12 for lx2160a-cex7 based boards. Signed-off-by: Jens Rehsack <sno@netbsd.org>
This commit is contained in:
parent
1c84ff5409
commit
21b6997831
|
@ -1,27 +1,25 @@
|
|||
From 0038ae610ef69f00adf358d915ae618a83ac63cb Mon Sep 17 00:00:00 2001
|
||||
From 9adba7be66753c3d8edce52c2d0afb0d6328ec03 Mon Sep 17 00:00:00 2001
|
||||
From: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
Date: Mon, 4 May 2020 17:33:28 +0300
|
||||
Date: Thu, 7 Jan 2021 17:03:59 +0200
|
||||
Subject: [PATCH] arm64: dts: lx2160a: add lx2160acex7 device tree build
|
||||
|
||||
Upstream-Status: Inappropriate [Solid-Run BSP]
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/Makefile | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
|
||||
index 5e05e0be3aeb..7d342cffb87e 100644
|
||||
index c3880d663..4aed43ff4 100644
|
||||
--- a/arch/arm64/boot/dts/freescale/Makefile
|
||||
+++ b/arch/arm64/boot/dts/freescale/Makefile
|
||||
@@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-qds.dtb
|
||||
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb
|
||||
@@ -49,6 +49,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb
|
||||
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb
|
||||
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb
|
||||
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2162a-qds.dtb
|
||||
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-cex7.dtb
|
||||
|
||||
dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb imx8mm-evk-rpmsg.dtb imx8mm-evk-rm67191.dtb \
|
||||
imx8mm-ddr4-evk.dtb imx8mm-evk-root.dtb imx8mm-evk-inmate.dtb \
|
||||
--
|
||||
2.17.1
|
||||
2.25.1
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@ The module supports AMC6821 and EMC2301 PWM controllers where either can
|
|||
be assembled, but not both together since the PWM and TACH signals are
|
||||
shared between them.
|
||||
|
||||
Upstream-Status: Inappropriate [Solid-Run BSP]
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
.../boot/dts/freescale/fsl-lx2160a-cex7.dts | 190 ++++++++++++++++++
|
||||
|
|
|
@ -7,8 +7,6 @@ ltc3882 is lx2 cortex-a72 core voltage.
|
|||
this patch adds it to the device tree support; the driver is in
|
||||
drivers/hwmon/pmbus/ltc2978.c
|
||||
|
||||
Upstream-Status: Inappropriate [Solid-Run BSP]
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts | 9 +++++++++
|
||||
|
|
|
@ -9,8 +9,6 @@ This patch adds 4 eeprom support on i2c mux channel #0 -
|
|||
3. 2Kb eeprom at 0x57 will be used by SolidRun to hold manufacturing
|
||||
data.
|
||||
|
||||
Upstream-Status: Inappropriate [Solid-Run BSP]
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
.../boot/dts/freescale/fsl-lx2160a-cex7.dts | 22 ++++++++++++++++++-
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
From 927a01dffed9eb439bc9bf6df0b6548380bc84a7 Mon Sep 17 00:00:00 2001
|
||||
From: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
Date: Mon, 10 Feb 2020 10:47:45 +0200
|
||||
Subject: [PATCH] pci: hotplug: declare IDT bridge as hotpluggabl bridge
|
||||
|
||||
Upstream-Status: Inappropriate [Solid-Run BSP]
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
drivers/pci/quirks.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
|
||||
index 55870dd42b4d..bfac025931e0 100644
|
||||
--- a/drivers/pci/quirks.c
|
||||
+++ b/drivers/pci/quirks.c
|
||||
@@ -2915,6 +2915,7 @@ static void quirk_hotplug_bridge(struct pci_dev *dev)
|
||||
dev->is_hotplug_bridge = 1;
|
||||
}
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HINT, 0x0020, quirk_hotplug_bridge);
|
||||
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_IDT, 0x808c, quirk_hotplug_bridge);
|
||||
|
||||
/*
|
||||
* This is a quirk for the Ricoh MMC controller found as a part of some
|
||||
--
|
||||
2.17.1
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
From bba6ebb2daac17bd2268c97b7255e477c2b15b52 Mon Sep 17 00:00:00 2001
|
||||
From: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
Date: Wed, 26 Feb 2020 17:57:54 +0200
|
||||
Subject: [PATCH] pci: spr2803: quirk to fix class ID
|
||||
|
||||
spr2803 class is 0x0, this quirk modifies that to multimedia class in
|
||||
order to allocate memory to it's bars.
|
||||
|
||||
Upstream-Status: Inappropriate [Solid-Run BSP]
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
drivers/pci/quirks.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
|
||||
index 28c64f84bfe7..4ddf7e43d531 100644
|
||||
--- a/drivers/pci/quirks.c
|
||||
+++ b/drivers/pci/quirks.c
|
||||
@@ -3068,6 +3068,18 @@ static void fixup_ti816x_class(struct pci_dev *dev)
|
||||
DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_TI, 0xb800,
|
||||
PCI_CLASS_NOT_DEFINED, 8, fixup_ti816x_class);
|
||||
|
||||
+static void fixup_spr2803_class(struct pci_dev *dev)
|
||||
+{
|
||||
+ u32 class = dev->class;
|
||||
+
|
||||
+ /* spr2803 does not have class code */
|
||||
+ dev->class = PCI_CLASS_MULTIMEDIA_VIDEO << 8;
|
||||
+ pci_info(dev, "PCI class overridden (%#08x -> %#08x)\n",
|
||||
+ class, dev->class);
|
||||
+}
|
||||
+DECLARE_PCI_FIXUP_CLASS_EARLY(0x1e00, 0x2803,
|
||||
+ PCI_CLASS_NOT_DEFINED, 8, fixup_spr2803_class);
|
||||
+
|
||||
/*
|
||||
* Some PCIe devices do not work reliably with the claimed maximum
|
||||
* payload size supported.
|
||||
--
|
||||
2.17.1
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
From 704c3a0a194839782f5faad9a0b9151503b602fd Mon Sep 17 00:00:00 2001
|
||||
From: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
Date: Mon, 18 Jan 2021 09:32:57 +0200
|
||||
Subject: [PATCH] lx2160a: dwc3: dts: disable usb3 parkmode
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
|
||||
index 2fe86aca3..709a1a95a 100644
|
||||
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
|
||||
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
|
||||
@@ -994,6 +994,7 @@
|
||||
snps,dis_rxdet_inp3_quirk;
|
||||
snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
|
||||
snps,host-vbus-glitches;
|
||||
+ snps,parkmode-disable-ss-quirk;
|
||||
dma-coherent;
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -1009,6 +1010,7 @@
|
||||
snps,dis_rxdet_inp3_quirk;
|
||||
snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
|
||||
snps,host-vbus-glitches;
|
||||
+ snps,parkmode-disable-ss-quirk;
|
||||
dma-coherent;
|
||||
status = "disabled";
|
||||
};
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
From b640a74851bf1fdc3abe49860e9efc498e4483a8 Mon Sep 17 00:00:00 2001
|
||||
From: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
Date: Tue, 8 Dec 2020 13:21:03 +0200
|
||||
Subject: [PATCH] arm64: dts: lx2160a-cex7: add power button support
|
||||
|
||||
COM express PWRBTN# signal is connected as a GPIO to the LX2 SoC.
|
||||
Translate that power button click as KEY_POWER event.
|
||||
|
||||
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
|
||||
index 2b8f1118b..e2dfe4f67 100644
|
||||
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
|
||||
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
|
||||
@@ -7,6 +7,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "fsl-lx2160a.dtsi"
|
||||
+#include <dt-bindings/input/linux-event-codes.h>
|
||||
|
||||
/ {
|
||||
model = "SolidRun LX2160A COM express type 7 module";
|
||||
@@ -30,6 +31,17 @@
|
||||
regulator-boot-on;
|
||||
regulator-always-on;
|
||||
};
|
||||
+
|
||||
+ gpio-keys {
|
||||
+ compatible = "gpio-keys";
|
||||
+
|
||||
+ key {
|
||||
+ label = "power";
|
||||
+ linux,can-disable;
|
||||
+ linux,code = <KEY_POWER>;
|
||||
+ gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
&crypto {
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
From 08ff0cc811d9e4616aad53b39e528544b0979fd7 Mon Sep 17 00:00:00 2001
|
||||
From: yazan shhady <yazan.shhady@solid-run.com>
|
||||
Date: Sun, 22 Nov 2020 14:44:32 +0200
|
||||
Subject: [PATCH] aarm64: dts: lx2160a-cex7: add secondary spi flash support
|
||||
|
||||
---
|
||||
arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
|
||||
index 2b8f1118b37a..6f031412400a 100644
|
||||
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
|
||||
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
|
||||
@@ -165,6 +165,16 @@ I2C switch -
|
||||
spi-rx-bus-width = <8>;
|
||||
spi-tx-bus-width = <1>;
|
||||
};
|
||||
+ flash1: w25q32@1 {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ compatible = "st,w25q32";
|
||||
+ spi-max-frequency = <10000000>;
|
||||
+ reg = <1>;
|
||||
+ spi-rx-bus-width = <1>;
|
||||
+ spi-tx-bus-width = <1>;
|
||||
+ };
|
||||
+
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
--
|
||||
2.25.1
|
||||
|
|
@ -5,6 +5,7 @@ SRC_URI_append_lx2160acex7 = "\
|
|||
file://0002-arm64-dts-lx2160a-add-lx2160acex7-device-tree.patch \
|
||||
file://0005-arm64-dts-lx2160a-cex7-add-ltc3882-support.patch \
|
||||
file://0006-arm64-dts-lx2160a-cex7-add-on-module-eeproms.patch \
|
||||
file://0007-pci-hotplug-declare-IDT-bridge-as-hotpluggabl-bridge.patch \
|
||||
file://0008-pci-spr2803-quirk-to-fix-class-ID.patch \
|
||||
file://0009-lx2160a-dwc3-dts-disable-usb3-parkmode.patch \
|
||||
file://0010-arm64-dts-lx2160a-cex7-add-power-button-support.patch \
|
||||
file://0011-aarm64-dts-lx2160a-cex7-add-secondary-spi-flash-supp.patch \
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue
Block a user