Commit c3a20798 authored by Rob Herring's avatar Rob Herring

dt-bindings: pwm: Fix cros-ec-pwm example dtc 'reg' warning

The example for the CrOS EC PWM is incomplete and now generates a dtc
warning:

Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.example.dts:17.11-23.11:
Warning (unit_address_vs_reg): /example-0/cros-ec@0: node has a unit name, but no reg or ranges property

Fixing this results in more warnings as a parent spi node is needed as
well.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Benson Leung <bleung@chromium.org>
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: linux-pwm@vger.kernel.org
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 5fd274ed
...@@ -31,10 +31,17 @@ additionalProperties: false ...@@ -31,10 +31,17 @@ additionalProperties: false
examples: examples:
- | - |
spi {
#address-cells = <1>;
#size-cells = <0>;
cros-ec@0 { cros-ec@0 {
compatible = "google,cros-ec-spi"; compatible = "google,cros-ec-spi";
reg = <0>;
cros_ec_pwm: ec-pwm { cros_ec_pwm: ec-pwm {
compatible = "google,cros-ec-pwm"; compatible = "google,cros-ec-pwm";
#pwm-cells = <1>; #pwm-cells = <1>;
}; };
}; };
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment