Skip to content

Commit 25b2398

Browse files
committed
Merge tag 'gpio-v4.12-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio
Pull GPIO fix from Linus Walleij: "A single GPIO patch fixing the compatible string for the MVEBU PWM controller embedded in the GPIO controller before we release v4.12. Hopefully" * tag 'gpio-v4.12-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: gpio: mvebu: change compatible string for PWM support
2 parents 51c933f + 6c7515c commit 25b2398

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Documentation/devicetree/bindings/gpio/gpio-mvebu.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Required properties:
4141
Optional properties:
4242

4343
In order to use the GPIO lines in PWM mode, some additional optional
44-
properties are required. Only Armada 370 and XP support these properties.
44+
properties are required.
4545

46-
- compatible: Must contain "marvell,armada-370-xp-gpio"
46+
- compatible: Must contain "marvell,armada-370-gpio"
4747

4848
- reg: an additional register set is needed, for the GPIO Blink
4949
Counter on/off registers.
@@ -71,7 +71,7 @@ Example:
7171
};
7272

7373
gpio1: gpio@18140 {
74-
compatible = "marvell,armada-370-xp-gpio";
74+
compatible = "marvell,armada-370-gpio";
7575
reg = <0x18140 0x40>, <0x181c8 0x08>;
7676
reg-names = "gpio", "pwm";
7777
ngpios = <17>;

drivers/gpio/gpio-mvebu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ static int mvebu_pwm_probe(struct platform_device *pdev,
721721
u32 set;
722722

723723
if (!of_device_is_compatible(mvchip->chip.of_node,
724-
"marvell,armada-370-xp-gpio"))
724+
"marvell,armada-370-gpio"))
725725
return 0;
726726

727727
if (IS_ERR(mvchip->clk))
@@ -852,7 +852,7 @@ static const struct of_device_id mvebu_gpio_of_match[] = {
852852
.data = (void *) MVEBU_GPIO_SOC_VARIANT_ARMADAXP,
853853
},
854854
{
855-
.compatible = "marvell,armada-370-xp-gpio",
855+
.compatible = "marvell,armada-370-gpio",
856856
.data = (void *) MVEBU_GPIO_SOC_VARIANT_ORION,
857857
},
858858
{
@@ -1128,7 +1128,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
11281128
mvchip);
11291129
}
11301130

1131-
/* Armada 370/XP has simple PWM support for GPIO lines */
1131+
/* Some MVEBU SoCs have simple PWM support for GPIO lines */
11321132
if (IS_ENABLED(CONFIG_PWM))
11331133
return mvebu_pwm_probe(pdev, mvchip, id);
11341134

0 commit comments

Comments
 (0)