Skip to content
Commit 3d14374c authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

scripts/dts/edtlib.py: add 'const' support to bindings



Add a 'const' property to bindings for any properties that are expected
to have a specifi known value.  For example, #address-cells for an I2C
bus should always be '1'.  So we can do something like the following in
the I2C bus binding:

    "#address-cells":
      type: int
      category: required
      const: 1

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
Signed-off-by: default avatarUlf Magnusson <Ulf.Magnusson@nordicsemi.no>
parent cd72ce12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment