Closed blmaier closed 7 months ago
Thanks for this! Could you add a (or modify an existing) unit test that includes these characters? See https://github.com/joelspadin/tree-sitter-devicetree/blob/main/test/corpus/nodes.txt#L40
Thanks for this! Could you add a (or modify an existing) unit test that includes these characters? See https://github.com/joelspadin/tree-sitter-devicetree/blob/main/test/corpus/nodes.txt#L40
Extended that unit test with the new characters
Thanks!
The Devicetree Specification v0.4, section 2.2.1 "Node Names", says
Table 2.1 allows for all a-z characters, ',', '.', '_', '+', and '-'.
In normal use the unit-address is just a hex number and the devicetree spec technically requires this by saying
However the devicetree compiler supports the full ASCII table, and there are a significant number of devicetrees in the Linux kernel that use the unit-address as a "name" field. For example see https://elixir.bootlin.com/linux/v6.7.4/source/arch/arm/boot/dts/marvell/armada-xp-crs328-4c-20s-4s.dtsi#L91