diff options
Diffstat (limited to 'Documentation')
5 files changed, 107 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt new file mode 100644 index 000000000000..d9254a6da5ed --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | Broadcom BCM7038 PWM controller (BCM7xxx Set Top Box PWM controller) | ||
2 | |||
3 | Required properties: | ||
4 | |||
5 | - compatible: must be "brcm,bcm7038-pwm" | ||
6 | - reg: physical base address and length for this controller | ||
7 | - #pwm-cells: should be 2. See pwm.txt in this directory for a description | ||
8 | of the cells format | ||
9 | - clocks: a phandle to the reference clock for this block which is fed through | ||
10 | its internal variable clock frequency generator | ||
11 | |||
12 | |||
13 | Example: | ||
14 | |||
15 | pwm: pwm@f0408000 { | ||
16 | compatible = "brcm,bcm7038-pwm"; | ||
17 | reg = <0xf0408000 0x28>; | ||
18 | #pwm-cells = <2>; | ||
19 | clocks = <&upg_fixed>; | ||
20 | }; | ||
diff --git a/Documentation/devicetree/bindings/pwm/pwm-berlin.txt b/Documentation/devicetree/bindings/pwm/pwm-berlin.txt new file mode 100644 index 000000000000..82cbe16fcbbc --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-berlin.txt | |||
@@ -0,0 +1,17 @@ | |||
1 | Berlin PWM controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "marvell,berlin-pwm" | ||
5 | - reg: physical base address and length of the controller's registers | ||
6 | - clocks: phandle to the input clock | ||
7 | - #pwm-cells: should be 3. See pwm.txt in this directory for a description of | ||
8 | the cells format. | ||
9 | |||
10 | Example: | ||
11 | |||
12 | pwm: pwm@f7f20000 { | ||
13 | compatible = "marvell,berlin-pwm"; | ||
14 | reg = <0xf7f20000 0x40>; | ||
15 | clocks = <&chip_clk CLKID_CFG>; | ||
16 | #pwm-cells = <3>; | ||
17 | } | ||
diff --git a/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt b/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt new file mode 100644 index 000000000000..f8f59baf6b67 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt | |||
@@ -0,0 +1,42 @@ | |||
1 | MediaTek display PWM controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "mediatek,<name>-disp-pwm": | ||
5 | - "mediatek,mt8173-disp-pwm": found on mt8173 SoC. | ||
6 | - "mediatek,mt6595-disp-pwm": found on mt6595 SoC. | ||
7 | - reg: physical base address and length of the controller's registers. | ||
8 | - #pwm-cells: must be 2. See pwm.txt in this directory for a description of | ||
9 | the cell format. | ||
10 | - clocks: phandle and clock specifier of the PWM reference clock. | ||
11 | - clock-names: must contain the following: | ||
12 | - "main": clock used to generate PWM signals. | ||
13 | - "mm": sync signals from the modules of mmsys. | ||
14 | - pinctrl-names: Must contain a "default" entry. | ||
15 | - pinctrl-0: One property must exist for each entry in pinctrl-names. | ||
16 | See pinctrl/pinctrl-bindings.txt for details of the property values. | ||
17 | |||
18 | Example: | ||
19 | pwm0: pwm@1401e000 { | ||
20 | compatible = "mediatek,mt8173-disp-pwm", | ||
21 | "mediatek,mt6595-disp-pwm"; | ||
22 | reg = <0 0x1401e000 0 0x1000>; | ||
23 | #pwm-cells = <2>; | ||
24 | clocks = <&mmsys CLK_MM_DISP_PWM026M>, | ||
25 | <&mmsys CLK_MM_DISP_PWM0MM>; | ||
26 | clock-names = "main", "mm"; | ||
27 | pinctrl-names = "default"; | ||
28 | pinctrl-0 = <&disp_pwm0_pins>; | ||
29 | }; | ||
30 | |||
31 | backlight_lcd: backlight_lcd { | ||
32 | compatible = "pwm-backlight"; | ||
33 | pwms = <&pwm0 0 1000000>; | ||
34 | brightness-levels = < | ||
35 | 0 16 32 48 64 80 96 112 | ||
36 | 128 144 160 176 192 208 224 240 | ||
37 | 255 | ||
38 | >; | ||
39 | default-brightness-level = <9>; | ||
40 | power-supply = <&mt6397_vio18_reg>; | ||
41 | enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>; | ||
42 | }; | ||
diff --git a/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt b/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt index ae0273e19506..cf6068b8e974 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt | |||
@@ -3,6 +3,8 @@ Allwinner sun4i and sun7i SoC PWM controller | |||
3 | Required properties: | 3 | Required properties: |
4 | - compatible: should be one of: | 4 | - compatible: should be one of: |
5 | - "allwinner,sun4i-a10-pwm" | 5 | - "allwinner,sun4i-a10-pwm" |
6 | - "allwinner,sun5i-a10s-pwm" | ||
7 | - "allwinner,sun5i-a13-pwm" | ||
6 | - "allwinner,sun7i-a20-pwm" | 8 | - "allwinner,sun7i-a20-pwm" |
7 | - reg: physical base address and length of the controller's registers | 9 | - reg: physical base address and length of the controller's registers |
8 | - #pwm-cells: should be 3. See pwm.txt in this directory for a description of | 10 | - #pwm-cells: should be 3. See pwm.txt in this directory for a description of |
diff --git a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt new file mode 100644 index 000000000000..0822a083fc57 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt | |||
@@ -0,0 +1,26 @@ | |||
1 | * Renesas R-Car PWM Timer Controller | ||
2 | |||
3 | Required Properties: | ||
4 | - compatible: should be "renesas,pwm-rcar" and one of the following. | ||
5 | - "renesas,pwm-r8a7778": for R-Car M1A | ||
6 | - "renesas,pwm-r8a7779": for R-Car H1 | ||
7 | - "renesas,pwm-r8a7790": for R-Car H2 | ||
8 | - "renesas,pwm-r8a7791": for R-Car M2-W | ||
9 | - "renesas,pwm-r8a7794": for R-Car E2 | ||
10 | - reg: base address and length of the registers block for the PWM. | ||
11 | - #pwm-cells: should be 2. See pwm.txt in this directory for a description of | ||
12 | the cells format. | ||
13 | - clocks: clock phandle and specifier pair. | ||
14 | - pinctrl-0: phandle, referring to a default pin configuration node. | ||
15 | - pinctrl-names: Set to "default". | ||
16 | |||
17 | Example: R8A7790 (R-Car H2) PWM Timer node | ||
18 | |||
19 | pwm0: pwm@e6e30000 { | ||
20 | compatible = "renesas,pwm-r8a7790", "renesas,pwm-rcar"; | ||
21 | reg = <0 0xe6e30000 0 0x8>; | ||
22 | #pwm-cells = <2>; | ||
23 | clocks = <&mstp5_clks R8A7790_CLK_PWM>; | ||
24 | pinctrl-0 = <&pwm0_pins>; | ||
25 | pinctrl-names = "default"; | ||
26 | }; | ||