Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| proper_device_tree_design [2018/11/18 10:31] – [Proper use of .dtsi files] rpjday | proper_device_tree_design [2018/11/18 10:46] (current) – [imx6ul-tx6ul-mainboard.dts] rpjday | ||
|---|---|---|---|
| Line 100: | Line 100: | ||
| </ | </ | ||
| + | ===== Examples of / | ||
| + | ==== imx6qp.dtsi ==== | ||
| + | |||
| + | < | ||
| + | #include " | ||
| + | |||
| + | / { | ||
| + | soc { | ||
| + | | ||
| + | ... | ||
| + | | ||
| + | }; | ||
| + | |||
| + | &fec { | ||
| + | / | ||
| + | interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>, | ||
| + | <0 119 IRQ_TYPE_LEVEL_HIGH>; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | ==== imx6ul-tx6ul-mainboard.dts ==== | ||
| + | |||
| + | < | ||
| + | #include " | ||
| + | #include " | ||
| + | |||
| + | / { | ||
| + | model = "Ka-Ro electronics TXUL-0010 Module on TXUL Mainboard"; | ||
| + | compatible = " | ||
| + | |||
| + | aliases { | ||
| + | lcdif_24bit_pins_a = & | ||
| + | mmc0 = & | ||
| + | / | ||
| + | serial2 = &uart3; | ||
| + | serial4 = &uart5; | ||
| + | }; | ||
| + | / | ||
| + | }; | ||
| + | |||
| + | ... | ||
| + | |||
| + | &usdhc1 { | ||
| + | pinctrl-0 = <& | ||
| + | non-removable; | ||
| + | / | ||
| + | cap-sdio-irq; | ||
| + | }; | ||
| + | |||
| + | &uart1 { | ||
| + | pinctrl-0 = <& | ||
| + | / | ||
| + | }; | ||
| + | |||
| + | &uart2 { | ||
| + | pinctrl-0 = <& | ||
| + | / | ||
| + | status = " | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | ==== imx6ulz.dtsi ==== | ||
| + | |||
| + | < | ||
| + | #include " | ||
| + | |||
| + | / { | ||
| + | aliases { | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||