diff options
author | Vibhore Vardhan <vibhore@ti.com> | 2022-11-23 14:49:53 +0530 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2022-11-23 20:15:11 +0530 |
commit | 2d658a24cf2875297ad1a9f76828f6e3e6e268c2 (patch) | |
tree | 319dea9119665797a5a631839cf097466577fb2b | |
parent | e4f73655443c02c82271c1a3a41674261d87fe90 (diff) |
arm64: dts: ti: k3-am62-main: Add ECAP capture nodes
The three Enhanced Capture (ECAP) modules on AM62x can be configured
in either of the following modes: PWM generator or input capture.
This commit adds the input capture nodes to the dts.
To differentiate between the two operating modes, the ECAP nodes have
been renamed as ecapN_pwm and ecapN_capture. The ECAP capture nodes
are disabled by default and can be enabled via an overlay.
The ECAP PWM nodes are currently enabled in main.dtsi, but eventually
get disabled in sk-common and skeleton as the PWM pins are going to
expansion header and might conflict with some functionality. The future
version of main dtsi is expected to disable all such nodes rather than
having this chan of enable and disable. The PWM nodes will also need to
be enabled via an overlay.
Signed-off-by: Vibhore Vardhan <vibhore@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r-- | arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 36 | ||||
-rw-r--r-- | arch/arm64/boot/dts/ti/k3-am625-skeleton.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 6 |
3 files changed, 39 insertions, 9 deletions
diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index ceda0b782cf5..10e856c512a1 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -891,7 +891,7 @@ clock-names = "tbclk", "fck"; }; - ecap0: pwm@23100000 { + ecap0_pwm: pwm@23100000 { compatible = "ti,am3352-ecap"; #pwm-cells = <3>; reg = <0x00 0x23100000 0x00 0x100>; @@ -900,7 +900,17 @@ clock-names = "fck"; }; - ecap1: pwm@23110000 { + ecap0_capture: capture@23100000 { + compatible = "ti,am62-ecap-capture"; + reg = <0x00 0x23100000 0x00 0x100>; + interrupts = <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>; + power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 51 0>; + clock-names = "fck"; + status = "disabled"; + }; + + ecap1_pwm: pwm@23110000 { compatible = "ti,am3352-ecap"; #pwm-cells = <3>; reg = <0x00 0x23110000 0x00 0x100>; @@ -909,7 +919,17 @@ clock-names = "fck"; }; - ecap2: pwm@23120000 { + ecap1_capture: capture@23110000 { + compatible = "ti,am62-ecap-capture"; + reg = <0x00 0x23110000 0x00 0x100>; + interrupts = <GIC_SPI 114 IRQ_TYPE_EDGE_RISING>; + power-domains = <&k3_pds 52 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 52 0>; + clock-names = "fck"; + status = "disabled"; + }; + + ecap2_pwm: pwm@23120000 { compatible = "ti,am3352-ecap"; #pwm-cells = <3>; reg = <0x00 0x23120000 0x00 0x100>; @@ -918,6 +938,16 @@ clock-names = "fck"; }; + ecap2_capture: capture@23120000 { + compatible = "ti,am62-ecap-capture"; + reg = <0x00 0x23120000 0x00 0x100>; + interrupts = <GIC_SPI 115 IRQ_TYPE_EDGE_RISING>; + power-domains = <&k3_pds 53 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 53 0>; + clock-names = "fck"; + status = "disabled"; + }; + mcasp0: mcasp@2b00000 { compatible = "ti,am33xx-mcasp-audio"; reg = <0x00 0x02b00000 0x00 0x2000>, diff --git a/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts b/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts index 0471ad1ae046..86aee3bb567e 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-skeleton.dts @@ -246,15 +246,15 @@ status = "disabled"; }; -&ecap0 { +&ecap0_pwm { status = "disabled"; }; -&ecap1 { +&ecap1_pwm { status = "disabled"; }; -&ecap2 { +&ecap2_pwm { status = "disabled"; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 4210171b7efe..b8b7dafce900 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -774,14 +774,14 @@ status = "disabled"; }; -&ecap0 { +&ecap0_pwm { status = "disabled"; }; -&ecap1 { +&ecap1_pwm { status = "disabled"; }; -&ecap2 { +&ecap2_pwm { status = "disabled"; }; |