Skip to content

Commit cf2aacf

Browse files
b-k-officialnmenon
authored andcommitted
arm64: dts: ti: k3-j721s2-common-proc-board: Add pinmux information for ADC
J721s2 has two instances of 8 channel ADCs in MCU domain. Add pinmux information 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-3-b-kapoor@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 4eec5d7 commit cf2aacf

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,32 @@
197197
J721S2_WKUP_IOPAD(0x0c8, PIN_INPUT, 7) /* (C28) WKUP_GPIO0_2 */
198198
>;
199199
};
200+
201+
mcu_adc0_pins_default: mcu-adc0-pins-default {
202+
pinctrl-single,pins = <
203+
J721S2_WKUP_IOPAD(0x134, PIN_INPUT, 0) /* (L25) MCU_ADC0_AIN0 */
204+
J721S2_WKUP_IOPAD(0x138, PIN_INPUT, 0) /* (K25) MCU_ADC0_AIN1 */
205+
J721S2_WKUP_IOPAD(0x13c, PIN_INPUT, 0) /* (M24) MCU_ADC0_AIN2 */
206+
J721S2_WKUP_IOPAD(0x140, PIN_INPUT, 0) /* (L24) MCU_ADC0_AIN3 */
207+
J721S2_WKUP_IOPAD(0x144, PIN_INPUT, 0) /* (L27) MCU_ADC0_AIN4 */
208+
J721S2_WKUP_IOPAD(0x148, PIN_INPUT, 0) /* (K24) MCU_ADC0_AIN5 */
209+
J721S2_WKUP_IOPAD(0x14c, PIN_INPUT, 0) /* (M27) MCU_ADC0_AIN6 */
210+
J721S2_WKUP_IOPAD(0x150, PIN_INPUT, 0) /* (M26) MCU_ADC0_AIN7 */
211+
>;
212+
};
213+
214+
mcu_adc1_pins_default: mcu-adc1-pins-default {
215+
pinctrl-single,pins = <
216+
J721S2_WKUP_IOPAD(0x154, PIN_INPUT, 0) /* (P25) MCU_ADC1_AIN0 */
217+
J721S2_WKUP_IOPAD(0x158, PIN_INPUT, 0) /* (R25) MCU_ADC1_AIN1 */
218+
J721S2_WKUP_IOPAD(0x15c, PIN_INPUT, 0) /* (P28) MCU_ADC1_AIN2 */
219+
J721S2_WKUP_IOPAD(0x160, PIN_INPUT, 0) /* (P27) MCU_ADC1_AIN3 */
220+
J721S2_WKUP_IOPAD(0x164, PIN_INPUT, 0) /* (N25) MCU_ADC1_AIN4 */
221+
J721S2_WKUP_IOPAD(0x168, PIN_INPUT, 0) /* (P26) MCU_ADC1_AIN5 */
222+
J721S2_WKUP_IOPAD(0x16c, PIN_INPUT, 0) /* (N26) MCU_ADC1_AIN6 */
223+
J721S2_WKUP_IOPAD(0x170, PIN_INPUT, 0) /* (N27) MCU_ADC1_AIN7 */
224+
>;
225+
};
200226
};
201227

202228
&main_gpio2 {
@@ -309,3 +335,21 @@
309335
pinctrl-0 = <&mcu_mcan1_pins_default>;
310336
phys = <&transceiver2>;
311337
};
338+
339+
&tscadc0 {
340+
pinctrl-0 = <&mcu_adc0_pins_default>;
341+
pinctrl-names = "default";
342+
status = "okay";
343+
adc {
344+
ti,adc-channels = <0 1 2 3 4 5 6 7>;
345+
};
346+
};
347+
348+
&tscadc1 {
349+
pinctrl-0 = <&mcu_adc1_pins_default>;
350+
pinctrl-names = "default";
351+
status = "okay";
352+
adc {
353+
ti,adc-channels = <0 1 2 3 4 5 6 7>;
354+
};
355+
};

0 commit comments

Comments
 (0)