-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux-yocto: add support for QCM6490 RB3 board #541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I performed both -yocto and patch review.
The largest issue is the split. You have submitted a lot of changes in a single chunk. Instead split them into single atomic commits doing just a single item: patch linux-yocto, change machine config, etc.
Second. Please split your 26-patch series into smaller chunks too. You have a mixture of boards support, generic changes, temporary changes, debugging changes, etc.
For example, if you take away the patch 10 (definitely a temporary BSP item), it should not cause any changes to e.g. dma-heap patches.
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-qcm6490.cfg
Outdated
Show resolved
Hide resolved
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-qcm6490.cfg
Outdated
Show resolved
Hide resolved
recipes-kernel/linux/linux-yocto/bsp/qcom-armv8a/qcom-qcm6490.cfg
Outdated
Show resolved
Hide resolved
bootloader for QC6490 RB3 Platform. | ||
|
||
This commit will be reverted once voltage voting support is added | ||
in USB driver. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. I think I now understand your issue. Please change the min and max values to the values that are able to sustain the USB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we'll update min and max values.
...pes-kernel/linux/linux-yocto/0021-PENDING-clk-qcom-gcc-Enable-the-force-mem-core-for-U.patch
Outdated
Show resolved
Hide resolved
+ <GCC_MSS_OFFLINE_AXI_CLK>, <GCC_MSS_SNOC_AXI_CLK>, | ||
+ <GCC_MSS_Q6_MEMNOC_AXI_CLK>, <GCC_MSS_Q6SS_BOOT_CLK_SRC>, | ||
+ <GCC_SEC_CTRL_CLK_SRC>, <GCC_WPSS_AHB_CLK>, | ||
+ <GCC_WPSS_AHB_BDG_MST_CLK>, <GCC_WPSS_RSCP_CLK>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh. The qcm6490-fairphone-fp5
lists less clocks here. Is there any reason for that?
recipes-kernel/linux/linux-yocto/0004-FROMLIST-arm64-dts-qcom-Add-qcm6490-dts-file.patch
Outdated
Show resolved
Hide resolved
...pes-kernel/linux/linux-yocto/0012-FROMLIST-dma-heap-Add-proper-kref-handling-on-dma-bu.patch
Outdated
Show resolved
Hide resolved
For the patch-related comments. You don't have to fix issues that I pointed out for the patch contents. Please pass them to your kernel team. However please fix the patch formatting issues (tags, etc). |
recipes-kernel/linux/linux-yocto/0006-PENDING-dt-bindings-arm-qcom-Add-QCM6490-RB3-board.patch
Outdated
Show resolved
Hide resolved
|
0ee55cb
to
795dd0e
Compare
Sorry, this seems getting dirty. Can we close this request and create new one? Thanks |
795dd0e
to
41e37ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move series to subdirs to ease maintenance.
Other than that, few minor comments left.
From: Luca Weiss <luca.weiss@fairphone.com> | ||
Date: Thu, 5 Oct 2023 16:47:31 +0530 | ||
Subject: [PATCH 01/26] FROMLIST: arm64: dts: qcom: Use QCOM_SCM_VMID defines | ||
for qcom,vmid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still /26. So the series looks incomplete now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah! sorry, will correct and re-post.
By subdirs, do you mean something like devicetree, bindings, drivers etc.? or something like - boards support, generic changes, temporary changes, debugging changes, etc. you mentioned earlier? |
Yes. So that each group of patches is visually distinct. |
I've created these four subdirs - if this looks okay, I can push the patches. |
Well,
|
...pes-kernel/linux/linux-yocto/0001-FROMLIST-dma-heap-Add-proper-kref-handling-on-dma-bu.patch
Outdated
Show resolved
Hide resolved
d3026e6
to
287c394
Compare
cadaa77
to
49bb21c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the series are sorted out, coud you pelase reorder into the sensible order:
- generic-drivers
- qcm6490-drivers
- qcm6490-dtsi
- qcm6490-board-dts
- hacks
Add proper kref handling on dma-buf heaps. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Add SC7280 specific register layout and table configs. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Enable the force mem core for UFS ICE clock. Update the gdsc transition delays to the recommended values for functional correctness. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
On certain targets the PLL configuration should be skipped, thus add a device property to support the same. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Add qcm6490 devicetree file for QCM6490 SoC and QCM6490 IDP platform. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Add UFS support for sc7280 boards. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
QCOM UFS host controller requires interconnect path configuration for proper working. So add them for SC7280 SoC. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Certain clocks are not accessible on QCM6490 board and thus require them to be marked protected. Also disable the LPASS nodes which are not to be used. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Document the qcom,qcm6490-idp board based off qcm6490 SoC. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Add device tree file for Robotics RB3 Gen2 board for qcm6490 SoC. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Can we have an alternate name for hacks which I guess would raise questions. How about workarounds (or any other name) ? |
Sure, why not. |
Add board-id and msm-id for QCM6490 IDP and RB3 platform as a workaround for picking correct DTB. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Disable sdhc1 for QCM6490 for ufs boot target to avoid probe for sdhc1 as vreg_l7b_2p9 is shared regulator for both ufs vcc and emmc vcc. Currently this is causing probe failure for ufs. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
UFS rails have different voltage requirement for UFS2.x v/s UFS3.x. Bootloader sets the proper voltage based on UFS type. There can be case where the voltage set by bootloader is overridden by HLOS client. To prevent above issue, Add change to remove voltage voting support for UFS rails. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
USB driver does not vote for voltage on hsphy and ssphy rails. Due to which the initial voltage set by bootloader is overridden by regulator framework with min voltage specified on regulator registration. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Add QCM6940 specific kernel configs to support QCM6940 IDP and RB3 Gen2 boards on linux-yocto. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
Add configuration to support Qualcomm QCM6490 IDP and Robotics RB3 Gen2 boards for yocto-linux. QCM6490 IDP is an internal platform, similar to RB3 board, used by most of the internal developers. Signed-off-by: Atul Dhudase <quic_adhudase@quicinc.com>
49bb21c
to
9af775e
Compare
Add necessary configuration and kernel changes to the linux-yocto recipe to enable support for Qualcomm QCM6490 RB3 board.
This enables boot to shell on QCM6490 RB3 board with initramfs.