-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from lumag/linux-yocto
Technology preview of the linux-yocto support
- Loading branch information
Showing
27 changed files
with
575 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...-kernel/linux/linux-yocto/0001-arm64-dts-qcom-qcm2290-temporarily-disable-cluster-i.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
From bf26272a429b9e33ba5e8bc9ada9ec794b5e8610 Mon Sep 17 00:00:00 2001 | ||
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
Date: Wed, 19 Jul 2023 21:04:47 +0300 | ||
Subject: [PATCH] arm64: dts: qcom: qcm2290: temporarily disable cluster idle | ||
state | ||
|
||
For some reason cluster idle state causes the board to hang after boot. | ||
Disable it to make it work properly. | ||
|
||
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
Upstream-Status: Inappropriate [need to find the issue first] | ||
--- | ||
arch/arm64/boot/dts/qcom/qcm2290.dtsi | 10 ++++++---- | ||
1 file changed, 6 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi | ||
index 1d1de156f8f0..d1f0aa828234 100644 | ||
--- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi | ||
+++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi | ||
@@ -170,32 +170,34 @@ psci { | ||
|
||
CPU_PD0: power-domain-cpu0 { | ||
#power-domain-cells = <0>; | ||
- power-domains = <&CLUSTER_PD>; | ||
+ //power-domains = <&CLUSTER_PD>; | ||
domain-idle-states = <&CPU_SLEEP>; | ||
}; | ||
|
||
CPU_PD1: power-domain-cpu1 { | ||
#power-domain-cells = <0>; | ||
- power-domains = <&CLUSTER_PD>; | ||
+ //power-domains = <&CLUSTER_PD>; | ||
domain-idle-states = <&CPU_SLEEP>; | ||
}; | ||
|
||
CPU_PD2: power-domain-cpu2 { | ||
#power-domain-cells = <0>; | ||
- power-domains = <&CLUSTER_PD>; | ||
+ //power-domains = <&CLUSTER_PD>; | ||
domain-idle-states = <&CPU_SLEEP>; | ||
}; | ||
|
||
CPU_PD3: power-domain-cpu3 { | ||
#power-domain-cells = <0>; | ||
- power-domains = <&CLUSTER_PD>; | ||
+ //power-domains = <&CLUSTER_PD>; | ||
domain-idle-states = <&CPU_SLEEP>; | ||
}; | ||
|
||
+#if 0 | ||
CLUSTER_PD: power-domain-cpu-cluster { | ||
#power-domain-cells = <0>; | ||
domain-idle-states = <&CLUSTER_SLEEP>; | ||
}; | ||
+#endif | ||
}; | ||
|
||
reserved_memory: reserved-memory { | ||
-- | ||
2.42.0 | ||
|
47 changes: 47 additions & 0 deletions
47
recipes-kernel/linux/linux-yocto/0001-arm64-dts-qcom-qrb2210-rb1-Swap-UART-index.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
From 973c015facabcbd320063648010942c51992c1a1 Mon Sep 17 00:00:00 2001 | ||
From: Konrad Dybcio <konrad.dybcio@linaro.org> | ||
Date: Wed, 6 Sep 2023 11:24:55 +0200 | ||
Subject: [PATCH] arm64: dts: qcom: qrb2210-rb1: Swap UART index | ||
|
||
Newer RB1 board revisions have a debug UART on QUP0. Sadly, it looks | ||
like even when ordering one in retail, customers receive prototype | ||
boards with "Enginering Sample" written on them. | ||
|
||
Use QUP4 for UART to make all known RB1 boards boot. | ||
|
||
Fixes: e18771961336 ("arm64: dts: qcom: Add initial QTI RB1 device tree") | ||
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> | ||
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
Reported-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
Link: https://lore.kernel.org/r/20230906-topic-rb1_features_sans_icc-v1-1-e92ce6fbde16@linaro.org | ||
Signed-off-by: Bjorn Andersson <andersson@kernel.org> | ||
Upstream-Status: Backport 6.7-rc1 | ||
--- | ||
arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | ||
index eadba066972e..5cda5b761455 100644 | ||
--- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | ||
+++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | ||
@@ -13,7 +13,7 @@ / { | ||
compatible = "qcom,qrb2210-rb1", "qcom,qrb2210", "qcom,qcm2290"; | ||
|
||
aliases { | ||
- serial0 = &uart0; | ||
+ serial0 = &uart4; | ||
sdhc1 = &sdhc_1; | ||
sdhc2 = &sdhc_2; | ||
}; | ||
@@ -357,7 +357,7 @@ key_volp_n: key-volp-n-state { | ||
}; | ||
|
||
/* UART connected to the Micro-USB port via a FTDI chip */ | ||
-&uart0 { | ||
+&uart4 { | ||
compatible = "qcom,geni-debug-uart"; | ||
status = "okay"; | ||
}; | ||
-- | ||
2.42.0 | ||
|
28 changes: 28 additions & 0 deletions
28
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-armv8a-standard.scc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
define KMACHINE qcom-armv8a | ||
define KTYPE standard | ||
define KARCH arm64 | ||
|
||
include ktypes/standard/standard.scc nocfg | ||
branch qcom-armv8a | ||
|
||
include qcom-armv8a.scc | ||
|
||
#include features/bluetooth/bluetooth.scc | ||
include features/cgroups/cgroups.scc | ||
include features/transparent-hugepage/transparent-hugepage.cfg | ||
include features/usb-net/usb-net.scc | ||
|
||
include cfg/fs/devtmpfs.scc | ||
include cfg/fs/debugfs.scc | ||
include cfg/fs/ext2.scc | ||
include cfg/fs/ext4.scc | ||
include cfg/fs/vfat.scc | ||
|
||
include cfg/timer/no_hz.scc | ||
|
||
# enable the ability to run 32 bit apps | ||
include arch/arm/32bit-compat.scc | ||
|
||
kconf hardware qcom-extra.cfg |
23 changes: 23 additions & 0 deletions
23
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-armv8a.scc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
kconf hardware qcom.cfg | ||
|
||
include qcom-msm8916.scc | ||
include qcom-msm8996.scc | ||
include qcom-qcm2290.scc | ||
include qcom-sdm845.scc | ||
include qcom-sm6115.scc | ||
include qcom-sm8250.scc | ||
|
||
include features/i2c/i2c.scc | ||
include features/hrt/hrt.scc | ||
include features/net/net.scc | ||
include features/pci/pci.scc | ||
include features/power/arm.scc | ||
include features/spi/spi.scc | ||
include features/usb/usb-base.scc | ||
include features/leds/leds.scc | ||
include features/pwm/pwm.scc | ||
|
||
include cfg/timer/rtc.scc | ||
include cfg/dmaengine.scc |
20 changes: 20 additions & 0 deletions
20
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-extra.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_BPF_SYSCALL=y | ||
CONFIG_CGROUP_BPF=y | ||
|
||
CONFIG_AUTOFS_FS=y | ||
|
||
CONFIG_TYPEC_MUX_NB7VPQ904M=y | ||
CONFIG_TYPEC_MUX_FSA4480=y | ||
CONFIG_TYPEC_DP_ALTMODE=y | ||
|
||
CONFIG_DRM_LONTIUM_LT9611=y | ||
CONFIG_DRM_LONTIUM_LT9611UXC=y | ||
CONFIG_DRM_I2C_ADV7511=y | ||
CONFIG_DRM_I2C_ADV7511_AUDIO=y | ||
CONFIG_DRM_I2C_ADV7511_CEC=y | ||
|
||
CONFIG_USB_XHCI_PCI_RENESAS=y | ||
|
||
CONFIG_USB_HSIC_USB3503=y |
34 changes: 34 additions & 0 deletions
34
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-msm8916.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_PINCTRL_MSM8916=y | ||
|
||
CONFIG_QCOM_A53PLL=y | ||
CONFIG_QCOM_CLK_APCS_MSM8916=y | ||
CONFIG_MSM_GCC_8916=y | ||
|
||
CONFIG_INTERCONNECT_QCOM_MSM8916=y | ||
|
||
CONFIG_QCOM_IOMMU=y | ||
|
||
CONFIG_PM8916_WATCHDOG=y | ||
|
||
CONFIG_SND_SOC_APQ8016_SBC=m | ||
CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m | ||
CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m | ||
|
||
CONFIG_EXTCON=y | ||
CONFIG_EXTCON_USB_GPIO=y | ||
|
||
CONFIG_USB_ULPI_BUS=y | ||
CONFIG_PHY_QCOM_USB_HS=y | ||
|
||
CONFIG_QCOM_SPMI_TEMP_ALARM=y | ||
CONFIG_QCOM_SPMI_VADC=y | ||
|
||
CONFIG_QCOM_SMSM=y | ||
|
||
CONFIG_USB_EHCI_HCD=y | ||
CONFIG_USB_CHIPIDEA=y | ||
CONFIG_USB_CHIPIDEA_MSM=y | ||
CONFIG_USB_CHIPIDEA_UDC=y | ||
CONFIG_USB_CHIPIDEA_HOST=y |
4 changes: 4 additions & 0 deletions
4
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-msm8916.scc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
kconf hardware qcom-rpm.cfg | ||
kconf hardware qcom-msm8916.cfg |
22 changes: 22 additions & 0 deletions
22
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-msm8996.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_PINCTRL_MSM8996=y | ||
|
||
CONFIG_QCOM_CLK_APCC_MSM8996=y | ||
CONFIG_MSM_GCC_8996=y | ||
CONFIG_MSM_MMCC_8996=y | ||
CONFIG_INTERCONNECT_QCOM_MSM8996=y | ||
|
||
CONFIG_PHY_QCOM_QMP_PCIE_8996=y | ||
|
||
CONFIG_SND_SOC_MSM8996=m | ||
|
||
CONFIG_SND_SOC_WCD9335=m | ||
|
||
CONFIG_PHY_QCOM_QUSB2=y | ||
|
||
CONFIG_EXTCON=y | ||
CONFIG_EXTCON_USB_GPIO=y | ||
|
||
CONFIG_QCOM_SPMI_TEMP_ALARM=y | ||
CONFIG_QCOM_SPMI_VADC=y |
4 changes: 4 additions & 0 deletions
4
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-msm8996.scc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
kconf hardware qcom-rpm.cfg | ||
kconf hardware qcom-msm8996.cfg |
8 changes: 8 additions & 0 deletions
8
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-qcm2290.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_PINCTRL_QCM2290=y | ||
CONFIG_QCM_GCC_2290=y | ||
CONFIG_QCM_DISPCC_2290=y | ||
CONFIG_INTERCONNECT_QCOM_QCM2290=y | ||
|
||
CONFIG_PHY_QCOM_QUSB2=y |
4 changes: 4 additions & 0 deletions
4
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-qcm2290.scc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
kconf hardware qcom-rpm.cfg | ||
kconf hardware qcom-qcm2290.cfg |
11 changes: 11 additions & 0 deletions
11
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-rpm.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_RPMSG_QCOM_GLINK_RPM=y | ||
CONFIG_REGULATOR_QCOM_SMD_RPM=y | ||
CONFIG_QCOM_MPM=y | ||
CONFIG_QCOM_SMD_RPM=y | ||
CONFIG_QCOM_RPMPD=y | ||
CONFIG_QCOM_CLK_SMD_RPM=y | ||
|
||
# legacy boards | ||
CONFIG_RPMSG_QCOM_SMD=y |
9 changes: 9 additions & 0 deletions
9
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-rpmh.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_QCOM_RPMH=y | ||
CONFIG_QCOM_RPMHPD=y | ||
CONFIG_QCOM_COMMAND_DB=y | ||
CONFIG_RPMSG_QCOM_GLINK_SMEM=m | ||
CONFIG_QCOM_AOSS_QMP=y | ||
CONFIG_REGULATOR_QCOM_RPMH=y | ||
CONFIG_QCOM_CLK_RPMH=y |
14 changes: 14 additions & 0 deletions
14
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-sdm845.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_PINCTRL_SDM845=y | ||
CONFIG_SDM_CAMCC_845=m | ||
CONFIG_SDM_GCC_845=y | ||
CONFIG_SDM_GPUCC_845=y | ||
CONFIG_SDM_VIDEOCC_845=m | ||
CONFIG_SDM_DISPCC_845=y | ||
CONFIG_INTERCONNECT_QCOM_SDM845=y | ||
|
||
CONFIG_MFD_WCD934X=m | ||
CONFIG_GPIO_WCD934X=m | ||
CONFIG_SND_SOC_WCD934X=m | ||
CONFIG_SND_SOC_SDM845=m |
4 changes: 4 additions & 0 deletions
4
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-sdm845.scc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
kconf hardware qcom-rpmh.cfg | ||
kconf hardware qcom-sdm845.cfg |
11 changes: 11 additions & 0 deletions
11
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-sm6115.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
CONFIG_PINCTRL_SM6115=y | ||
CONFIG_SM_DISPCC_6115=y | ||
CONFIG_SM_GCC_6115=y | ||
CONFIG_SM_GPUCC_6115=y | ||
|
||
CONFIG_PHY_QCOM_QUSB2=y | ||
|
||
CONFIG_QCOM_SPMI_TEMP_ALARM=y | ||
CONFIG_QCOM_SPMI_ADC5=y |
Oops, something went wrong.