1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 * Device Tree Source for the RZ SMARC Carrier-II Board.
5 * Copyright (C) 2023 Renesas Electronics Corp.
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
19 compatible = "gpio-keys";
22 interrupts = <RZG2L_GPIO(18, 0) IRQ_TYPE_EDGE_FALLING>;
23 interrupt-parent = <&pinctrl>;
27 debounce-interval = <20>;
31 interrupts = <RZG2L_GPIO(0, 1) IRQ_TYPE_EDGE_FALLING>;
32 interrupt-parent = <&pinctrl>;
36 debounce-interval = <20>;
40 interrupts = <RZG2L_GPIO(0, 3) IRQ_TYPE_EDGE_FALLING>;
41 interrupt-parent = <&pinctrl>;
45 debounce-interval = <20>;
49 vcc_sdhi1: regulator-vcc-sdhi1 {
50 compatible = "regulator-fixed";
51 regulator-name = "SDHI1 Vcc";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
54 gpios = <&pinctrl RZG2L_GPIO(2, 3) GPIO_ACTIVE_HIGH>;
58 vccq_sdhi1: regulator-vccq-sdhi1 {
59 compatible = "regulator-gpio";
60 regulator-name = "SDHI1 VccQ";
61 regulator-min-microvolt = <1800000>;
62 regulator-max-microvolt = <3300000>;
63 gpios = <&pinctrl RZG2L_GPIO(4, 2) GPIO_ACTIVE_HIGH>;
65 states = <3300000 1>, <1800000 0>;
72 gpios = <RZG2L_GPIO(18, 0) GPIO_ACTIVE_LOW>;
74 line-name = "key-1-gpio-irq";
79 gpios = <RZG2L_GPIO(0, 1) GPIO_ACTIVE_LOW>;
81 line-name = "key-2-gpio-irq";
86 gpios = <RZG2L_GPIO(0, 3) GPIO_ACTIVE_LOW>;
88 line-name = "key-3-gpio-irq";
92 pinmux = <RZG2L_PORT_PINMUX(6, 3, 1)>, /* RXD */
93 <RZG2L_PORT_PINMUX(6, 4, 1)>; /* TXD */
98 pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
99 power-source = <3300>;
103 pins = "SD1_CLK", "SD1_CMD";
104 power-source = <3300>;
108 pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
112 sdhi1_pins_uhs: sd1-uhs {
114 pins = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3";
115 power-source = <1800>;
119 pins = "SD1_CLK", "SD1_CMD";
120 power-source = <1800>;
124 pinmux = <RZG2L_PORT_PINMUX(0, 2, 1)>; /* SD1_CD */
130 pinctrl-names = "default";
131 pinctrl-0 = <&scif0_pins>;
136 pinctrl-0 = <&sdhi1_pins>;
137 pinctrl-1 = <&sdhi1_pins_uhs>;
138 pinctrl-names = "default", "state_uhs";
139 vmmc-supply = <&vcc_sdhi1>;
140 vqmmc-supply = <&vccq_sdhi1>;
144 max-frequency = <125000000>;