[v6 1/4] dt-bindings: pwm: Add ASPEED PWM Control documentation
Billy Tsai
billy_tsai at aspeedtech.com
Thu Jun 8 17:47:23 AEST 2023
>> +
>> +allOf:
>> + - $ref: pwm.yaml#
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - aspeed,ast2600-pwm
>> +
>> + "#pwm-cells":
>> + const: 3
> 3 cells? For one PWM? What are they?
channel, period and polarity.
>> +
>> + clocks:
>> + maxItems: 1
>> +
>> + resets:
>> + maxItems: 1
>> +
>> +required:
>> + - compatible
>> + - clocks
>> + - resets
>> +
>> +additionalProperties: false
> Missing examples. All bindings need examples.
The examples will looks like following:
pwm0: pwm0 at 1e610000 {
compatible = "aspeed,ast2600-pwm";
reg = <0x1e610000 0x8>;
#pwm-cells = <3>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm0_default>;
clocks = <&syscon ASPEED_CLK_AHB>;
resets = <&syscon ASPEED_RESET_PWM>;
status = "disabled";
};
pwm1: pwm1 at 1e610010 {
compatible = "aspeed,ast2600-pwm";
reg = <0x1e610010 0x8>;
#pwm-cells = <3>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm1_default>;
clocks = <&syscon ASPEED_CLK_AHB>;
resets = <&syscon ASPEED_RESET_PWM>;
status = "disabled";
};
...
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20230608/1cd9195e/attachment-0001.htm>
More information about the Linux-aspeed
mailing list