Skip to content

How to make and apply device tree overlays for the kernel #1600

Answered by kunohel
kunohel asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out how to properly apply the property to the pcie node.
Solution:

.bbapend file:

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append = " \
    file://overlay.cfg \
    file://pcie-disable-power-down.dts;subdir=git/arch/${ARCH}/boot/dts/nvidia \
"

KERNEL_DEVICETREE_APPLY_OVERLAYS:append = " nvidia/pcie-disable-power-down.dtb"

.dts file:

/dts-v1/;
/plugin/;

/ {
    compatible = "nvidia,tegra234-pcie", "nvidia,p3768-0000+p3767-0003", "nvidia,p3768-0000+p3767-0005", "nvidia,p3767-0003", "nvidia,p3767-0005", "nvidia,tegra234", "nvidia,tegra23x";
    fragment@100 {
        target-path = "/";
        __overlay__ {
            pcie@141e0000 {
                nvidia,dis…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kunohel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant