uboot Device tree error at node ‘__symbols__‘

宏定义相关

是设备树有问题,比如没包含宏定义所在的头文件:

&i2c2 {
	status = "okay";
	pinctrl-0 = <&i2c2_pb0_pins>;
	pinctrl-names = "default";

	touchscreen@48 {
		reg = <0x48>;
		compatible = "ti,tsc2007";
		interrupt-parent = <&pio>;
		interrupts = <6 14 IRQ_TYPE_EDGE_FALLING>;
		gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */
		ti,x-plate-ohms = <660>;
		wakeup-source;
	};
};

这里用到了IRQ_TYPE_EDGE_FALLINGGPIO_ACTIVE_LOW这两个宏定义,但是没有引用宏定义所在的头文件,加上就行:

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

port 相关

/ {
	soc {
		hdmi: hdmi@5500000 {
			compatible = "allwinner,sun20i-d1-dw-hdmi";
			reg = <0x5500000 0x10000>;
			reg-io-width = <1>;
			interrupts = <109 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&ccu CLK_BUS_HDMI>,
				 <&ccu CLK_HDMI_24M>,
				 <&ccu CLK_HDMI_CEC>;
			clock-names = "iahb", "isfr", "cec";
			resets = <&ccu RST_BUS_HDMI_SUB>;
			reset-names = "ctrl";
			phys = <&hdmi_phy>;
			phy-names = "phy";
			status = "disabled";

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

				port@0 {
					reg = <0>;

					hdmi_in_tcon_top: endpoint {
						remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
					};
				};

				hdmi_out: port@1 {
					reg = <1>;
				};
			};
		};
	};
};
/ {
	hdmi_connector: connector {
		compatible = "hdmi-connector";
		type = "a";

		port {
			hdmi_connector_in: endpoint { // A
				remote-endpoint = <&hdmi_out_connector>;
			};
		};
	};
};

&hdmi_out {
	hdmi_out_connector: endpoint { // B
		remote-endpoint = <&hdmi_connector_in>;
	};
};

A 和 B 是成对出现的,两者要互相指向对方,单独出现就会有问题,编译不会报错但是uboot解析会出这个问题,而出现一个 C 也指向 A 会在编译时报错。要么都注释掉

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值