Commit 0c8c9ff8 authored by Andrew Lunn's avatar Andrew Lunn Committed by Gregory CLEMENT

ARM: dts: mvebu: Add PWM properties to .dtsi files

Add properties to the GPIO nodes for Armada 370/XP to allow them to be
also used as PWM lines.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
URL: https://patchwork.ozlabs.org/patch/427294/
[Ralph Sennhauser: Add new compatible string marvell,armada-370-gpio]
Signed-off-by: default avatarRalph Sennhauser <ralph.sennhauser@gmail.com>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
parent 2ea659a9
...@@ -137,29 +137,38 @@ L2: l2-cache@8000 { ...@@ -137,29 +137,38 @@ L2: l2-cache@8000 {
}; };
gpio0: gpio@18100 { gpio0: gpio@18100 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18100 0x40>; "marvell,orion-gpio";
reg = <0x18100 0x40>, <0x181c0 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <82>, <83>, <84>, <85>; interrupts = <82>, <83>, <84>, <85>;
clocks = <&coreclk 0>;
}; };
gpio1: gpio@18140 { gpio1: gpio@18140 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18140 0x40>; "marvell,orion-gpio";
reg = <0x18140 0x40>, <0x181c8 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <87>, <88>, <89>, <90>; interrupts = <87>, <88>, <89>, <90>;
clocks = <&coreclk 0>;
}; };
gpio2: gpio@18180 { gpio2: gpio@18180 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
"marvell,orion-gpio";
reg = <0x18180 0x40>; reg = <0x18180 0x40>;
ngpios = <2>; ngpios = <2>;
gpio-controller; gpio-controller;
......
...@@ -202,25 +202,33 @@ pcie5: pcie@5,0 { ...@@ -202,25 +202,33 @@ pcie5: pcie@5,0 {
internal-regs { internal-regs {
gpio0: gpio@18100 { gpio0: gpio@18100 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18100 0x40>; "marvell,orion-gpio";
reg = <0x18100 0x40>, <0x181c0 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <82>, <83>, <84>, <85>; interrupts = <82>, <83>, <84>, <85>;
clocks = <&coreclk 0>;
}; };
gpio1: gpio@18140 { gpio1: gpio@18140 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18140 0x40>; "marvell,orion-gpio";
reg = <0x18140 0x40>, <0x181c8 0x08>;
reg-names = "gpio", "pwm";
ngpios = <17>; ngpios = <17>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <87>, <88>, <89>; interrupts = <87>, <88>, <89>;
clocks = <&coreclk 0>;
}; };
}; };
}; };
......
...@@ -285,29 +285,38 @@ pcie9: pcie@9,0 { ...@@ -285,29 +285,38 @@ pcie9: pcie@9,0 {
internal-regs { internal-regs {
gpio0: gpio@18100 { gpio0: gpio@18100 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18100 0x40>; "marvell,orion-gpio";
reg = <0x18100 0x40>, <0x181c0 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <82>, <83>, <84>, <85>; interrupts = <82>, <83>, <84>, <85>;
clocks = <&coreclk 0>;
}; };
gpio1: gpio@18140 { gpio1: gpio@18140 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18140 0x40>; "marvell,orion-gpio";
reg = <0x18140 0x40>, <0x181c8 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <87>, <88>, <89>, <90>; interrupts = <87>, <88>, <89>, <90>;
clocks = <&coreclk 0>;
}; };
gpio2: gpio@18180 { gpio2: gpio@18180 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
"marvell,orion-gpio";
reg = <0x18180 0x40>; reg = <0x18180 0x40>;
ngpios = <3>; ngpios = <3>;
gpio-controller; gpio-controller;
......
...@@ -323,29 +323,38 @@ pcie10: pcie@10,0 { ...@@ -323,29 +323,38 @@ pcie10: pcie@10,0 {
internal-regs { internal-regs {
gpio0: gpio@18100 { gpio0: gpio@18100 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18100 0x40>; "marvell,orion-gpio";
reg = <0x18100 0x40>, <0x181c0 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <82>, <83>, <84>, <85>; interrupts = <82>, <83>, <84>, <85>;
clocks = <&coreclk 0>;
}; };
gpio1: gpio@18140 { gpio1: gpio@18140 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
reg = <0x18140 0x40>; "marvell,orion-gpio";
reg = <0x18140 0x40>, <0x181c8 0x08>;
reg-names = "gpio", "pwm";
ngpios = <32>; ngpios = <32>;
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
#pwm-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <87>, <88>, <89>, <90>; interrupts = <87>, <88>, <89>, <90>;
clocks = <&coreclk 0>;
}; };
gpio2: gpio@18180 { gpio2: gpio@18180 {
compatible = "marvell,orion-gpio"; compatible = "marvell,armada-370-gpio",
"marvell,orion-gpio";
reg = <0x18180 0x40>; reg = <0x18180 0x40>;
ngpios = <3>; ngpios = <3>;
gpio-controller; gpio-controller;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment