AnsweredAssumed Answered

how to add new device in dts for uart

Question asked by srinivasaporam on Nov 24, 2015
Latest reply on Nov 26, 2015 by igorpadykov

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???

Outcomes