User Tools

Site Tools


proper_device_tree_design

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proper_device_tree_design [2018/11/18 10:31]
rpjday [Proper use of .dtsi files]
proper_device_tree_design [2018/11/18 10:46]
rpjday [imx6ul-tx6ul-mainboard.dts]
Line 100: Line 100:
 </​file>​ </​file>​
  
 +===== Examples of /​delete-property/​ =====
  
 +==== imx6qp.dtsi ====
 +
 +<​file>​
 +#include "​imx6q.dtsi"​
 +
 +/ {
 +        soc {
 +        ​
 +        ...
 +        ​
 +};
 +
 +&fec {
 +        /​delete-property/​interrupts-extended;​
 +        interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>,​
 +                     <0 119 IRQ_TYPE_LEVEL_HIGH>;​
 +};
 +</​file>​
 +
 +==== imx6ul-tx6ul-mainboard.dts ====
 +
 +<​file>​
 +#include "​imx6ul.dtsi"​
 +#include "​imx6ul-tx6ul.dtsi"​
 +
 +/ {
 +        model = "Ka-Ro electronics TXUL-0010 Module on TXUL Mainboard";​
 +        compatible = "​karo,​imx6ul-tx6ul",​ "​fsl,​imx6ul";​
 +
 +        aliases {
 +                lcdif_24bit_pins_a = &​pinctrl_disp0_3;​
 +                mmc0 = &​usdhc1;​
 +                /​delete-property/​ mmc1;
 +                serial2 = &uart3;
 +                serial4 = &uart5;
 +        };
 +        /​delete-node/​ sound;
 +};
 +
 +...
 +
 +&usdhc1 {
 +        pinctrl-0 = <&​pinctrl_usdhc1>;​
 +        non-removable;​
 +        /​delete-property/​ cd-gpios;
 +        cap-sdio-irq;​
 +};
 +
 +&uart1 {
 +        pinctrl-0 = <&​pinctrl_uart1>;​
 +        /​delete-property/​ uart-has-rtscts;​
 +};
 +
 +&uart2 {
 +        pinctrl-0 = <&​pinctrl_uart2>;​
 +        /​delete-property/​ uart-has-rtscts;​
 +        status = "​okay";​
 +};
 +</​file>​
 +
 +==== imx6ulz.dtsi ====
 +
 +<​code>​
 +#include "​imx6ull.dtsi"​
 +
 +/ {
 +        aliases {
 +                /​delete-property/​ ethernet0;
 +                /​delete-property/​ ethernet1;
 +                /​delete-property/​ i2c2;
 +                /​delete-property/​ i2c3;
 +                /​delete-property/​ serial4;
 +                /​delete-property/​ serial5;
 +                /​delete-property/​ serial6;
 +                /​delete-property/​ serial7;
 +                /​delete-property/​ spi2;
 +                /​delete-property/​ spi3;
 +        };
 +};
 +
 +/​delete-node/​ &adc1;
 +/​delete-node/​ &can1;
 +/​delete-node/​ &can2;
 +/​delete-node/​ &​ecspi3;​
 +/​delete-node/​ &​ecspi4;​
 +/​delete-node/​ &epit2;
 +/​delete-node/​ &gpt2;
 +/​delete-node/​ &i2c3;
 +/​delete-node/​ &i2c4;
 +/​delete-node/​ &pwm5;
 +/​delete-node/​ &pwm6;
 +/​delete-node/​ &pwm7;
 +/​delete-node/​ &pwm8;
 +/​delete-node/​ &uart5;
 +/​delete-node/​ &uart6;
 +/​delete-node/​ &uart7;
 +/​delete-node/​ &uart8;
 +</​code>​
proper_device_tree_design.txt ยท Last modified: 2018/11/18 10:46 by rpjday