当前位置:网站首页>Fast development board pinctrl and GPIO subsystem experiment for itop-imx6ull - modify the device tree file

Fast development board pinctrl and GPIO subsystem experiment for itop-imx6ull - modify the device tree file

2022-07-07 13:24:00 mucheni

We modify the device tree file imx6ull-14x14-evk.dts, The path is in the source directory arch/arm/boot/dts/ Under the table of contents , modify test node

As shown in the figure below :

test1:test{

#adress-cells = <1>;

#size-cells = <1>;

compatible = "test";

reg = <0x20ac000 0x0000004>; // The address of the register

pinctrl-0 = <&pinctrl_beep>; //

beep-gpio = <&gpio5 1 GPIO_ACTIVE_LOW>

};

};

&test1{

compatible = "test1234";

status = "okay";

};

stay &iomuxc_snvs Add pinctrl_beep Content , As shown in the figure below :

And search for it “pinctrl_beep” node , Found to have pinctrl_beep If it is used, it should be commented out , As shown in the figure below :

Save the file after modification , Reference resources 53.3 Compile device tree file chapter compile device tree .

More content can be paid to official account. : Beijing Xunwei

原网站

版权声明
本文为[mucheni]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071109336941.html