# How to add variable to dtsi file

**URL:** <https://forum.sierrawireless.com/t/how-to-add-variable-to-dtsi-file/26332>\
**Category:** Uncategorized\
**Created:** [February 22, 2022, 7:08am UTC](https://forum.sierrawireless.com/t/how-to-add-variable-to-dtsi-file/26332 "2022-02-22T07:08:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dream.ene22](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dream.ene22](https://forum.sierrawireless.com/u/dream.ene22)\
**Post date:** [February 22, 2022, 7:08am UTC](https://forum.sierrawireless.com/t/how-to-add-variable-to-dtsi-file/26332/1 "2022-02-22T07:08:46Z")

</div>

I want to write the new variable to mdm9607.dtsi file for my device.  
but I have got the error

 ![Screenshot from 2022-02-22 15-50-17](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/1/19886c23a74d25714885d65eb6a743487326d8cf.png)

how can I add the vairable to dtsi file and how to create the new dtsi file?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 1:11am UTC](https://forum.sierrawireless.com/t/how-to-add-variable-to-dtsi-file/26332/2 "2022-02-23T01:11:57Z")

</div>

is it same topic?

> [@How can to use Device tree complie inWp7605](https://forum.sierrawireless.com/t/how-can-to-use-device-tree-complie-inwp7605/26299/4):
>
> no idea, you can add just one line by one line to figure out which line makes the error BTW, you can have a look on ./kernel/arch/arm/boot/dts/qcom/mdm9607-swi.dtsi on how to set the SPI:
