how to add new device in dts for uart

Discussion of your EDM baseboard, your add-on boards or other peripherals for your wandboard.

how to add new device in dts for uart

Postby srinivasporam » Thu Nov 26, 2015 8:55 am

Hi,

We have IMX6 board, for which we are connecting some sensor at UART. If we are connecting to i2c /SPI. then we are are defining them in device tree like this:



i2c3: i2c@021a8000 {

#address-cells = <1>;

#size-cells = <0>;

compatible = "fsl,imx6q-i2c", "fsl,imx21-i2c";

reg = <0x021a8000 0x4000>;

interrupts = <0 38 IRQ_TYPE_LEVEL_HIGH>;

clocks = <&clks IMX6QDL_CLK_I2C3>;

status = "okay";



devicename@0xab {

compatible = "meas-spec,ms5803";

reg = <0xab>;



};



};



for SPI:



ecspi1: ecspi@02008000 {

#address-cells = <1>;

#size-cells = <0>;

compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";

reg = <0x02008000 0x4000>;

interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;

clocks = <&clks IMX6QDL_CLK_ECSPI1>,

<&clks IMX6QDL_CLK_ECSPI1>;

clock-names = "ipg", "per";

dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;

dma-names = "rx", "tx";

cs-gpios = <&gpio2 30 0>;

fsl,spi-num-chipselects = <1>;

status = "okay";



devicename@x {

compatible = "spidev";

reg = <x>;



spi-max-frequency = <20000000>;

};



like wise how to define for UART. is it necessary???
srinivasporam
 
Posts: 53
Joined: Mon Jun 22, 2015 5:56 am

Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 15 guests