* [PATCH] arm64: dts: ti: k3-am65-mcu: Add ADC nodes
@ 2019-02-12 12:22 Vignesh R
2019-02-15 8:47 ` Tero Kristo
0 siblings, 1 reply; 2+ messages in thread
From: Vignesh R @ 2019-02-12 12:22 UTC (permalink / raw)
To: Tero Kristo
Cc: Nishanth Menon, linux-arm-kernel, devicetree, linux-kernel, Vignesh R
TI AM654 SoC has two ADC instances in the MCU domain. Add DT nodes for
the same.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
Tero,
Could you also pick up DT bindings here: https://patchwork.kernel.org/patch/10751429/
All the Acks are in place.
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 30 +++++++++++++++++++
.../arm64/boot/dts/ti/k3-am654-base-board.dts | 12 ++++++++
2 files changed, 42 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
index 593f718e8fb5..6f7d2b316ded 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
@@ -57,4 +57,34 @@
#address-cells = <1>;
#size-cells = <0>;
};
+
+ tscadc0: tscadc@40200000 {
+ compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
+ reg = <0x0 0x40200000 0x0 0x1000>;
+ interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&k3_clks 0 2>;
+ assigned-clocks = <&k3_clks 0 2>;
+ assigned-clock-rates = <60000000>;
+ clock-names = "adc_tsc_fck";
+
+ adc {
+ #io-channel-cells = <1>;
+ compatible = "ti,am654-adc", "ti,am3359-adc";
+ };
+ };
+
+ tscadc1: tscadc@40210000 {
+ compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
+ reg = <0x0 0x40210000 0x0 0x1000>;
+ interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&k3_clks 1 2>;
+ assigned-clocks = <&k3_clks 1 2>;
+ assigned-clock-rates = <60000000>;
+ clock-names = "adc_tsc_fck";
+
+ adc {
+ #io-channel-cells = <1>;
+ compatible = "ti,am654-adc", "ti,am3359-adc";
+ };
+ };
};
diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index e41fc3a5987b..fb6df5c8f85b 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -163,3 +163,15 @@
#size-cells= <1>;
};
};
+
+&tscadc0 {
+ adc {
+ ti,adc-channels = <0 1 2 3 4 5 6 7>;
+ };
+};
+
+&tscadc1 {
+ adc {
+ ti,adc-channels = <0 1 2 3 4 5 6 7>;
+ };
+};
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: ti: k3-am65-mcu: Add ADC nodes
2019-02-12 12:22 [PATCH] arm64: dts: ti: k3-am65-mcu: Add ADC nodes Vignesh R
@ 2019-02-15 8:47 ` Tero Kristo
0 siblings, 0 replies; 2+ messages in thread
From: Tero Kristo @ 2019-02-15 8:47 UTC (permalink / raw)
To: Vignesh R; +Cc: Nishanth Menon, linux-arm-kernel, devicetree, linux-kernel
On 12/02/2019 14:22, Vignesh R wrote:
> TI AM654 SoC has two ADC instances in the MCU domain. Add DT nodes for
> the same.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
> Tero,
>
> Could you also pick up DT bindings here: https://patchwork.kernel.org/patch/10751429/
> All the Acks are in place.
Queued for 5.1, including the dt-binding.
Thanks, Tero
>
> arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 30 +++++++++++++++++++
> .../arm64/boot/dts/ti/k3-am654-base-board.dts | 12 ++++++++
> 2 files changed, 42 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
> index 593f718e8fb5..6f7d2b316ded 100644
> --- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
> @@ -57,4 +57,34 @@
> #address-cells = <1>;
> #size-cells = <0>;
> };
> +
> + tscadc0: tscadc@40200000 {
> + compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
> + reg = <0x0 0x40200000 0x0 0x1000>;
> + interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&k3_clks 0 2>;
> + assigned-clocks = <&k3_clks 0 2>;
> + assigned-clock-rates = <60000000>;
> + clock-names = "adc_tsc_fck";
> +
> + adc {
> + #io-channel-cells = <1>;
> + compatible = "ti,am654-adc", "ti,am3359-adc";
> + };
> + };
> +
> + tscadc1: tscadc@40210000 {
> + compatible = "ti,am654-tscadc", "ti,am3359-tscadc";
> + reg = <0x0 0x40210000 0x0 0x1000>;
> + interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&k3_clks 1 2>;
> + assigned-clocks = <&k3_clks 1 2>;
> + assigned-clock-rates = <60000000>;
> + clock-names = "adc_tsc_fck";
> +
> + adc {
> + #io-channel-cells = <1>;
> + compatible = "ti,am654-adc", "ti,am3359-adc";
> + };
> + };
> };
> diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
> index e41fc3a5987b..fb6df5c8f85b 100644
> --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
> +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
> @@ -163,3 +163,15 @@
> #size-cells= <1>;
> };
> };
> +
> +&tscadc0 {
> + adc {
> + ti,adc-channels = <0 1 2 3 4 5 6 7>;
> + };
> +};
> +
> +&tscadc1 {
> + adc {
> + ti,adc-channels = <0 1 2 3 4 5 6 7>;
> + };
> +};
>
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-15 8:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 12:22 [PATCH] arm64: dts: ti: k3-am65-mcu: Add ADC nodes Vignesh R
2019-02-15 8:47 ` Tero Kristo
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).