Skip to content

Commit

Permalink
doc: fix devicetree lexer warnings
Browse files Browse the repository at this point in the history
Some warnings for invalid DT syntax have been fixed.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
  • Loading branch information
gmarull authored and nashif committed May 5, 2021
1 parent 0918243 commit ebfe9be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions doc/guides/dts/bindings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ either an SPI or an I2C controller, like this:

.. code-block:: devicetree
spi-bus@... {
spi-bus@0 {
/* ... some compatible with 'bus: spi', etc. ... */
sensor@0 {
Expand All @@ -697,7 +697,7 @@ either an SPI or an I2C controller, like this:
};
};
i2c-bus@... {
i2c-bus@0 {
/* ... some compatible with 'bus: i2c', etc. ... */
sensor@79 {
Expand Down Expand Up @@ -751,12 +751,12 @@ looked up in each of the PWM controller nodes ``pwm0`` and ``pwm3``, like so:

.. code-block:: devicetree
pwm0: pwm@... {
pwm0: pwm@0 {
compatible = "foo,pwm";
#pwm-cells = <2>;
};
pwm3: pwm@... {
pwm3: pwm@3 {
compatible = "bar,pwm";
#pwm-cells = <1>;
};
Expand Down
6 changes: 3 additions & 3 deletions doc/guides/dts/howtos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@ this:
/ {
soc {
mydevice0: dev@... {
mydevice0: dev@0 {
compatible = "vnd,my-device";
};
mydevice1: dev@... {
mydevice1: dev@1 {
compatible = "vnd,my-device";
};
};
Expand Down Expand Up @@ -659,7 +659,7 @@ node with path ``/soc/i2c@12340000`` in a C/C++ file:
And if you're trying to **set** that property in a devicetree overlay:

.. code-block:: devicetree
.. code-block:: none
/*
* foo.overlay: DTS names with special characters, etc.
Expand Down
2 changes: 1 addition & 1 deletion samples/basic/button/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ simplicity.
};
soc {
gpio0: gpio@... {
gpio0: gpio@0 {
status = "okay";
gpio-controller;
#gpio-cells = <2>;
Expand Down

0 comments on commit ebfe9be

Please sign in to comment.