* [PATCH 0/4] K2G: Add support for PWM ECAP
@ 2017-08-07 11:49 Vignesh R
2017-08-07 11:49 ` [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible Vignesh R
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Vignesh R @ 2017-08-07 11:49 UTC (permalink / raw)
To: Thierry Reding, Rob Herring, Santosh Shilimkar
Cc: Vignesh R, linux-pwm, devicetree, linux-kernel, linux-arm-kernel
This series adds support for TI ECAP PWM IP present in 66AK2G SoC.
Based on linux-next.
Vignesh R (4):
pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible
ARM: dts: keystone-k2g: Add ECAP PWM DT nodes
ARM: dts: keystone-k2g-evm: Enable PWM ECAP0
ARM: configs: keystone: Enable TIECAP PWM driver
Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
arch/arm/boot/dts/keystone-k2g-evm.dts | 12 ++++++++++++
arch/arm/boot/dts/keystone-k2g.dtsi | 20 ++++++++++++++++++++
arch/arm/configs/keystone_defconfig | 2 ++
4 files changed, 35 insertions(+)
--
2.13.3
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible
2017-08-07 11:49 [PATCH 0/4] K2G: Add support for PWM ECAP Vignesh R
@ 2017-08-07 11:49 ` Vignesh R
2017-08-10 20:52 ` Rob Herring
2017-08-21 6:12 ` Thierry Reding
2017-08-07 11:49 ` [PATCH 2/4] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes Vignesh R
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: Vignesh R @ 2017-08-07 11:49 UTC (permalink / raw)
To: Thierry Reding, Rob Herring, Santosh Shilimkar
Cc: Vignesh R, linux-pwm, devicetree, linux-kernel, linux-arm-kernel
Add a new compatible string "ti,k2g-ecap" to support PWM ECAP IP of
TI 66AK2G SoC.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
index 8007e839a716..06a363d9ccef 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
@@ -6,6 +6,7 @@ Required properties:
for am4372 - compatible = "ti,am4372-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
for da850 - compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
for dra746 - compatible = "ti,dra746-ecap", "ti,am3352-ecap";
+ for 66ak2g - compatible = "ti,k2g-ecap", "ti,am3352-ecap";
- #pwm-cells: should be 3. See pwm.txt in this directory for a description of
the cells format. The PWM channel index ranges from 0 to 4. The only third
cell flag supported by this binding is PWM_POLARITY_INVERTED.
--
2.13.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes
2017-08-07 11:49 [PATCH 0/4] K2G: Add support for PWM ECAP Vignesh R
2017-08-07 11:49 ` [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible Vignesh R
@ 2017-08-07 11:49 ` Vignesh R
2017-08-07 11:49 ` [PATCH 3/4] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 Vignesh R
2017-08-07 11:49 ` [PATCH 4/4] ARM: configs: keystone: Enable TIECAP PWM driver Vignesh R
3 siblings, 0 replies; 7+ messages in thread
From: Vignesh R @ 2017-08-07 11:49 UTC (permalink / raw)
To: Thierry Reding, Rob Herring, Santosh Shilimkar
Cc: Vignesh R, linux-pwm, devicetree, linux-kernel, linux-arm-kernel
Add DT nodes for PWM ECAP IP present on 66AK2G SoC.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
arch/arm/boot/dts/keystone-k2g.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi
index bf4d1fa30840..b35d29672f30 100644
--- a/arch/arm/boot/dts/keystone-k2g.dtsi
+++ b/arch/arm/boot/dts/keystone-k2g.dtsi
@@ -168,5 +168,25 @@
#reset-cells = <2>;
};
};
+
+ ecap0: pwm@21d1800 {
+ compatible = "ti,k2g-ecap", "ti,am3352-ecap";
+ #pwm-cells = <3>;
+ reg = <0x021d1800 0x60>;
+ power-domains = <&k2g_pds 0x38>;
+ clocks = <&k2g_clks 0x38 0>;
+ clock-names = "fck";
+ status = "disabled";
+ };
+
+ ecap1: pwm@21d1c00 {
+ compatible = "ti,k2g-ecap", "ti,am3352-ecap";
+ #pwm-cells = <3>;
+ reg = <0x021d1c00 0x60>;
+ power-domains = <&k2g_pds 0x39>;
+ clocks = <&k2g_clks 0x39 0x0>;
+ clock-names = "fck";
+ status = "disabled";
+ };
};
};
--
2.13.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0
2017-08-07 11:49 [PATCH 0/4] K2G: Add support for PWM ECAP Vignesh R
2017-08-07 11:49 ` [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible Vignesh R
2017-08-07 11:49 ` [PATCH 2/4] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes Vignesh R
@ 2017-08-07 11:49 ` Vignesh R
2017-08-07 11:49 ` [PATCH 4/4] ARM: configs: keystone: Enable TIECAP PWM driver Vignesh R
3 siblings, 0 replies; 7+ messages in thread
From: Vignesh R @ 2017-08-07 11:49 UTC (permalink / raw)
To: Thierry Reding, Rob Herring, Santosh Shilimkar
Cc: Vignesh R, linux-pwm, devicetree, linux-kernel, linux-arm-kernel
Enable PWM ECAP0 which will be used for display backlight.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
arch/arm/boot/dts/keystone-k2g-evm.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts
index 61883cb969d2..3ce8010622ff 100644
--- a/arch/arm/boot/dts/keystone-k2g-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2g-evm.dts
@@ -34,6 +34,12 @@
K2G_CORE_IOPAD(0x11d0) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
>;
};
+
+ ecap0_pins: ecap0_pins {
+ pinctrl-single,pins = <
+ K2G_CORE_IOPAD(0x1374) (BUFFER_CLASS_B | MUX_MODE4) /* pr1_mdio_data.ecap0_in_apwm0_out */
+ >;
+ };
};
&uart0 {
@@ -41,3 +47,9 @@
pinctrl-0 = <&uart0_pins>;
status = "okay";
};
+
+&ecap0 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&ecap0_pins>;
+};
--
2.13.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] ARM: configs: keystone: Enable TIECAP PWM driver
2017-08-07 11:49 [PATCH 0/4] K2G: Add support for PWM ECAP Vignesh R
` (2 preceding siblings ...)
2017-08-07 11:49 ` [PATCH 3/4] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 Vignesh R
@ 2017-08-07 11:49 ` Vignesh R
3 siblings, 0 replies; 7+ messages in thread
From: Vignesh R @ 2017-08-07 11:49 UTC (permalink / raw)
To: Thierry Reding, Rob Herring, Santosh Shilimkar
Cc: Vignesh R, linux-pwm, devicetree, linux-kernel, linux-arm-kernel
Enable PWM_TIECAP driver to support ECAP IP present in 66AK2G SoC.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
arch/arm/configs/keystone_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig
index d47ea43d097e..445ad438b451 100644
--- a/arch/arm/configs/keystone_defconfig
+++ b/arch/arm/configs/keystone_defconfig
@@ -182,6 +182,8 @@ CONFIG_KEYSTONE_NAVIGATOR_DMA=y
CONFIG_TI_SCI_PM_DOMAINS=y
CONFIG_MEMORY=y
CONFIG_TI_AEMIF=y
+CONFIG_PWM=y
+CONFIG_PWM_TIECAP=m
CONFIG_KEYSTONE_IRQ=y
CONFIG_RESET_TI_SCI=m
CONFIG_RESET_TI_SYSCON=m
--
2.13.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible
2017-08-07 11:49 ` [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible Vignesh R
@ 2017-08-10 20:52 ` Rob Herring
2017-08-21 6:12 ` Thierry Reding
1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2017-08-10 20:52 UTC (permalink / raw)
To: Vignesh R
Cc: Thierry Reding, Santosh Shilimkar, linux-pwm, devicetree,
linux-kernel, linux-arm-kernel
On Mon, Aug 07, 2017 at 05:19:40PM +0530, Vignesh R wrote:
> Add a new compatible string "ti,k2g-ecap" to support PWM ECAP IP of
> TI 66AK2G SoC.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
> Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible
2017-08-07 11:49 ` [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible Vignesh R
2017-08-10 20:52 ` Rob Herring
@ 2017-08-21 6:12 ` Thierry Reding
1 sibling, 0 replies; 7+ messages in thread
From: Thierry Reding @ 2017-08-21 6:12 UTC (permalink / raw)
To: Vignesh R
Cc: Rob Herring, Santosh Shilimkar, linux-pwm, devicetree,
linux-kernel, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 355 bytes --]
On Mon, Aug 07, 2017 at 05:19:40PM +0530, Vignesh R wrote:
> Add a new compatible string "ti,k2g-ecap" to support PWM ECAP IP of
> TI 66AK2G SoC.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
> Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 +
> 1 file changed, 1 insertion(+)
Applied to for-4.14/drivers, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-08-21 6:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07 11:49 [PATCH 0/4] K2G: Add support for PWM ECAP Vignesh R
2017-08-07 11:49 ` [PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible Vignesh R
2017-08-10 20:52 ` Rob Herring
2017-08-21 6:12 ` Thierry Reding
2017-08-07 11:49 ` [PATCH 2/4] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes Vignesh R
2017-08-07 11:49 ` [PATCH 3/4] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 Vignesh R
2017-08-07 11:49 ` [PATCH 4/4] ARM: configs: keystone: Enable TIECAP PWM driver Vignesh R
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).