Skip to content

Commit

Permalink
dt-bindings: pwm: Use examples with documented/matching schema
Browse files Browse the repository at this point in the history
'nvidia,tegra20-pwm' is not yet documented in the YAML schema. Use
'allwinner,sun7i-a20-pwm' instead to get rid of the following warning
with 'make DT_CHECKER_FLAGS=-m dt_binding_check':

	pwm/pwm.example.dt.yaml:0:0: /example-0/pwm@7000a000: failed to match
	any schema with compatible: ['nvidia,tegra20-pwm']

Signed-off-by: Sudeep Holla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
sudeep-holla authored and robherring committed Jun 16, 2021
1 parent 8676e8e commit ca622ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Documentation/devicetree/bindings/pwm/pwm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ additionalProperties: true

examples:
- |
pwm: pwm@7000a000 {
compatible = "nvidia,tegra20-pwm";
reg = <0x7000a000 0x100>;
#pwm-cells = <2>;
pwm: pwm@1c20e00 {
compatible = "allwinner,sun7i-a20-pwm";
reg = <0x01c20e00 0xc>;
clocks = <&osc24M>;
#pwm-cells = <3>;
};

0 comments on commit ca622ed

Please sign in to comment.