arm64: dts: ti: k3-j721s2: Add support for ADC nodes
Subsystems (2)
PATCH v3 1/1 arm64: dts: ti: k3-j721s2: Add support for ADC nodes
J721s2 has two instances of 8 channel ADCs in MCU domain. Add DT nodes for 8 channel ADCs for J721s2 SoC.
---
Changelog v2->v3:
- Added Newline at the end of files.
.../dts/ti/k3-j721s2-common-proc-board.dts | 14 +++++++ .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 42 ++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +14 -0
@@ -309,3 +309,17 @@ &mcu_mcan1 { pinctrl-0 = <&mcu_mcan1_pins_default>; phys = <&transceiver2>; }; + +&tscadc0 { + status = "okay"; + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; +}; + +&tscadc1 { + status = "okay"; + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; +};
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +41 -1
45 lines not on this page · raw message
Signature · 1 line
2.37.2
Vignesh Raghavendra
maintainerQuoted 40 lines · Bhavya Kapoor
J721s2 has two instances of 8 channel ADCs in MCU domain. Add DT nodes for 8 channel ADCs for J721s2 SoC.
Signed-off-by Bhavya Kapoor <[email protected]>---
Changelog
v2->v3:
- Added Newline at the end of files..../dts/ti/k3-j721s2-common-proc-board.dts | 14 +++++++ .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 42 ++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-)arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +14
-0@@ -309,3 +309,17 @@ &mcu_mcan1 { pinctrl-0 = <&mcu_mcan1_pins_default>; phys = <&transceiver2>; }; + +&tscadc0 { + status = "okay"; + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; +}; + +&tscadc1 { + status = "okay"; + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; +};arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +0
-0
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi cpts@3d000 { · line 312
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +4
-1@@ -306,4 +306,44 @@ cpts@3d000 { ti,cpts-periodic-outputs = <2>; }; }; -}; + + tscadc0: tscadc@40200000 { + compatible = "ti,am3359-tscadc"; + reg = <0x0 0x40200000 0x0 0x1000>;
Following convention of the file, please use:
reg = <0x00 0x40200000 0x00 0x1000>;
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi cpts@3d000 { · line 318
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +6
-0+ 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 = "adc_tsc_fck";
Documentation/devicetree/bindings/mfd/ti,am3359-tscadc.yaml -> clock-names = "fck"
+/workdir/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dtb: tscadc@40200000: clock-names:0: 'fck' was expected
make dtbs_check will warn you
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +4
-0+ dmas = <&main_udmap 0x7400>, + <&main_udmap 0x7401>; + dma-names = "fifo0", "fifo1"; + status = "disabled";
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi cpts@3d000 { · line 332
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +10
-0+ + adc { + #io-channel-cells = <1>; + compatible = "ti,am3359-adc"; + }; + }; + + tscadc1: tscadc@40210000 { + compatible = "ti,am3359-tscadc"; + reg = <0x0 0x40210000 0x0 0x1000>;
Same here
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi cpts@3d000 { · line 338
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +6
-0+ 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 = "adc_tsc_fck";
+/workdir/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dtb: tscadc@40210000: clock-names:0: 'fck' was expected
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi cpts@3d000 { · line 349
Quoted 11 lines
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +11
-0+ dmas = <&main_udmap 0x7402>, + <&main_udmap 0x7403>; + dma-names = "fifo0", "fifo1"; + status = "disabled"; + + adc { + #io-channel-cells = <1>; + compatible = "ti,am3359-adc"; + }; + }; + };
WARNING: please, no spaces at the start of a line
#87: FILE: arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi:349:
+ };$
Please run ./scripts/checkpatch.pl --strict and fix all the issues before sending out the patches
Signature · 7 lines
Regards Vignesh _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel