How to revise the device tree for lt8912b

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to revise the device tree for lt8912b

901 次查看
Blake001
Contributor III

Hi,

I'm using the lt8912b drvier for my imx8mm custom board. Right now I can flash the .wic to the board and the backlight is on.

I would like to follow the format of this exmple: 

examples:
- |
#include <dt-bindings/gpio/gpio.h>

i2c {
#address-cells = <1>;
#size-cells = <0>;

hdmi-bridge@48 {
compatible = "lontium,lt8912b";
reg = <0x48>;
reset-gpios = <&max7323 0 GPIO_ACTIVE_LOW>;

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;

hdmi_out_in: endpoint {
data-lanes = <0 1 2 3>;
remote-endpoint = <&mipi_dsi_out>;
};
};

port@1 {
reg = <1>;

endpoint {
remote-endpoint = <&hdmi_in>;
};
};
};
};
};

Question:

1. How can I revise my device tree to be compatible with the lt8912b driver, the imx8mm-evk.dts in the yocto source code has a different structure of this example, there is no hdmi_in, and if I change the dtsi, it will affect other dts.

2. I found another imx8mm-evk.dtsi example in ~/imx-yocto-bsp/build-imxlpddr/tmp/work/armv8a-poky-linux/linux-libc-headers/6.6/linux-6.6/arch/arm64/boot/dts/freescale, what is that one used for? Can I use this one since there is an adv7535 dts which has the same structure of the example, can I just revise the compatible to it?

0 项奖励
回复
1 回复

868 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

1. You should refer to the driver documentation, which should be maintained by the vendor if the documentation is not found, it's a good idea to check what DTS properties are used.

I found a document that can get you started, please read this.

2. 8MM and 8MN have the board description in a DTSI, then finishes it in a DTS. You should analyze both DTS to get the full picture.

Regards

0 项奖励
回复