xref: /linux/arch/arm64/boot/dts/renesas/rzg3s-smarc-switches.h (revision 2f24482304ebd32c5aa374f31465b9941a860b92)
102760e35SClaudiu Beznea /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
202760e35SClaudiu Beznea /*
302760e35SClaudiu Beznea  * On-board switches for the Renesas RZ/G3S SMARC Module and RZ SMARC Carrier II
402760e35SClaudiu Beznea  * boards.
502760e35SClaudiu Beznea  *
602760e35SClaudiu Beznea  * Copyright (C) 2024 Renesas Electronics Corp.
702760e35SClaudiu Beznea  */
802760e35SClaudiu Beznea 
902760e35SClaudiu Beznea #ifndef __RZG3S_SMARC_SWITCHES_H__
1002760e35SClaudiu Beznea #define __RZG3S_SMARC_SWITCHES_H__
1102760e35SClaudiu Beznea 
1202760e35SClaudiu Beznea /*
1302760e35SClaudiu Beznea  * On-board switches' states:
1402760e35SClaudiu Beznea  * @SW_OFF: switch's state is OFF
1502760e35SClaudiu Beznea  * @SW_ON:  switch's state is ON
1602760e35SClaudiu Beznea  */
1702760e35SClaudiu Beznea #define SW_OFF		0
1802760e35SClaudiu Beznea #define SW_ON		1
1902760e35SClaudiu Beznea 
2002760e35SClaudiu Beznea /*
2102760e35SClaudiu Beznea  * SW_CONFIG[x] switches' states:
2202760e35SClaudiu Beznea  * @SW_CONFIG2:
2302760e35SClaudiu Beznea  *	SW_OFF - SD0 is connected to eMMC
2402760e35SClaudiu Beznea  *	SW_ON  - SD0 is connected to uSD0 card
2502760e35SClaudiu Beznea  * @SW_CONFIG3:
2602760e35SClaudiu Beznea  *	SW_OFF - SD2 is connected to SoC
2702760e35SClaudiu Beznea  *	SW_ON  - SCIF1, SSI0, IRQ0, IRQ1 connected to SoC
2802760e35SClaudiu Beznea  */
2902760e35SClaudiu Beznea #define SW_CONFIG2	SW_OFF
3002760e35SClaudiu Beznea #define SW_CONFIG3	SW_ON
3102760e35SClaudiu Beznea 
32*cc018b98SClaudiu Beznea /*
33*cc018b98SClaudiu Beznea  * SW_OPT_MUX[x] switches' states:
34*cc018b98SClaudiu Beznea  * @SW_OPT_MUX4:
35*cc018b98SClaudiu Beznea  *	SW_OFF - The SMARC SER0 signals are routed to M.2 Key E UART
36*cc018b98SClaudiu Beznea  *	SW_ON  - The SMARC SER0 signals are routed to PMOD1
37*cc018b98SClaudiu Beznea  */
38*cc018b98SClaudiu Beznea #define SW_OPT_MUX4	SW_ON
39*cc018b98SClaudiu Beznea 
4002760e35SClaudiu Beznea #endif /* __RZG3S_SMARC_SWITCHES_H__ */
41