dt-bindings: ap806: document gpio marvell,pwm-offset property
authorBaruch Siach <baruch@tkos.co.il>
Mon, 11 Jan 2021 11:46:29 +0000 (13:46 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:31 +0000 (11:43 +0100)
Update the example as well. Add the '#pwm-cells' and 'clocks' properties
for a complete working example.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Documentation/devicetree/bindings/arm/marvell/ap80x-system-controller.txt

index e315112..052a967 100644 (file)
@@ -80,6 +80,11 @@ Required properties:
 
 - offset: offset address inside the syscon block
 
+Optional properties:
+
+- marvell,pwm-offset: offset address of PWM duration control registers inside
+  the syscon block
+
 Example:
 ap_syscon: system-controller@6f4000 {
        compatible = "syscon", "simple-mfd";
@@ -101,6 +106,9 @@ ap_syscon: system-controller@6f4000 {
                gpio-controller;
                #gpio-cells = <2>;
                gpio-ranges = <&ap_pinctrl 0 0 19>;
+               marvell,pwm-offset = <0x10c0>;
+               #pwm-cells = <2>;
+               clocks = <&ap_clk 3>;
        };
 };