arm64: dts: ti: k3-j721s2-mcu-wakeup: Add support for ADC nodes
authorBhavya Kapoor <b-kapoor@ti.com>
Thu, 16 Mar 2023 09:51:45 +0000 (15:21 +0530)
committerNishanth Menon <nm@ti.com>
Mon, 20 Mar 2023 17:41:13 +0000 (12:41 -0500)
J721s2 has two instances of 8 channel ADCs in MCU domain. Add support
for both ADC nodes.

Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20230316095146.498999-2-b-kapoor@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi

index 0af242a..5da5f0c 100644 (file)
                        ti,cpts-periodic-outputs = <2>;
                };
        };
+
+       tscadc0: tscadc@40200000 {
+               compatible = "ti,am3359-tscadc";
+               reg = <0x00 0x40200000 0x00 0x1000>;
+               interrupts = <GIC_SPI 860 IRQ_TYPE_LEVEL_HIGH>;
+               power-domains = <&k3_pds 0 TI_SCI_PD_EXCLUSIVE>;
+               clocks = <&k3_clks 0 0>;
+               assigned-clocks = <&k3_clks 0 2>;
+               assigned-clock-rates = <60000000>;
+               clock-names = "fck";
+               dmas = <&main_udmap 0x7400>,
+                       <&main_udmap 0x7401>;
+               dma-names = "fifo0", "fifo1";
+               status = "disabled";
+
+               adc {
+                       #io-channel-cells = <1>;
+                       compatible = "ti,am3359-adc";
+               };
+       };
+
+       tscadc1: tscadc@40210000 {
+               compatible = "ti,am3359-tscadc";
+               reg = <0x00 0x40210000 0x00 0x1000>;
+               interrupts = <GIC_SPI 861 IRQ_TYPE_LEVEL_HIGH>;
+               power-domains = <&k3_pds 1 TI_SCI_PD_EXCLUSIVE>;
+               clocks = <&k3_clks 1 0>;
+               assigned-clocks = <&k3_clks 1 2>;
+               assigned-clock-rates = <60000000>;
+               clock-names = "fck";
+               dmas = <&main_udmap 0x7402>,
+                       <&main_udmap 0x7403>;
+               dma-names = "fifo0", "fifo1";
+               status = "disabled";
+
+               adc {
+                       #io-channel-cells = <1>;
+                       compatible = "ti,am3359-adc";
+               };
+       };
 };