You can copy references to a node or property from a devicetree file and paste them into your C code directly using the Copy C Identifier of Node option, which is available in the More actions... menu for the entries in the Overview. See How to copy C identifiers for more information.