Lines Matching +full:en +full:- +full:gpios

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include <dt-bindings/soc/rockchip,vop2.h>
11 #include "dt-bindings/usb/pd.h"
13 #include "rk3588-firefly-core-3588j.dtsi"
16 model = "Firefly ITX-3588J";
17 compatible = "firefly,itx-3588j", "firefly,core-3588j", "rockchip,rk3588";
25 stdout-path = "serial2:1500000n8";
32 adc-keys-0 {
33 compatible = "adc-keys";
34 io-channels = <&saradc 1>;
35 io-channel-names = "buttons";
36 keyup-threshold-microvolt = <1800000>;
37 poll-interval = <100>;
39 button-recovery {
42 press-threshold-microvolt = <2000>;
46 analog-sound {
47 compatible = "simple-audio-card";
48 pinctrl-0 = <&hp_detect>;
49 pinctrl-names = "default";
50 simple-audio-card,aux-devs = <&amp_headphones>, <&amp_speaker>;
51 simple-audio-card,format = "i2s";
52 simple-audio-card,hp-det-gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>;
53 simple-audio-card,mclk-fs = <384>;
54 simple-audio-card,name = "rockchip_es8323";
55 simple-audio-card,pin-switches = "Headphones", "Speaker";
56 simple-audio-card,routing =
69 simple-audio-card,widgets =
75 simple-audio-card,cpu {
76 sound-dai = <&i2s0_8ch>;
79 simple-audio-card,codec {
80 sound-dai = <&es8323>;
81 system-clock-frequency = <12288000>;
90 amp_headphones: headphones-audio-amplifier {
91 compatible = "simple-audio-amplifier";
92 enable-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&headphone_amplifier_en>;
95 sound-name-prefix = "Headphones Amplifier";
98 amp_speaker: speaker-audio-amplifier {
99 compatible = "simple-audio-amplifier";
100 enable-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&speaker_amplifier_en>;
103 sound-name-prefix = "Speaker Amplifier";
106 fan: pwm-fan {
107 compatible = "pwm-fan";
108 #cooling-cells = <2>;
109 cooling-levels = <0 120 150 180 210 240 255>;
110 fan-supply = <&vcc12v_dcin>;
114 hdmi0-con {
115 compatible = "hdmi-connector";
120 remote-endpoint = <&hdmi0_out_con>;
126 compatible = "gpio-leds";
133 user_led: led-1 {
134 gpios = <&pca9555 3 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "disk-activity";
139 pcie30_avdd0v75: regulator-pcie30-avdd0v75 {
140 compatible = "regulator-fixed";
141 regulator-always-on;
142 regulator-boot-on;
143 regulator-min-microvolt = <750000>;
144 regulator-max-microvolt = <750000>;
145 regulator-name = "pcie30_avdd0v75";
146 vin-supply = <&avdd_0v75_s0>;
149 vbus5v0_typec_pwr_en: regulator-vbus5v0-typec-pwr-en {
150 compatible = "regulator-fixed";
151 enable-active-high;
152 gpios = <&pca9555 12 GPIO_ACTIVE_HIGH>;
153 regulator-min-microvolt = <5000000>;
154 regulator-max-microvolt = <5000000>;
155 regulator-name = "vbus5v0_typec_pwr_en";
158 vcc12v_dcin: regulator-vcc12v-dcin {
159 compatible = "regulator-fixed";
160 regulator-always-on;
161 regulator-boot-on;
162 regulator-min-microvolt = <12000000>;
163 regulator-max-microvolt = <12000000>;
164 regulator-name = "vcc12v_dcin";
167 vcc3v3_pcie30: regulator-vcc3v3-pcie30 {
168 compatible = "regulator-fixed";
169 enable-active-high;
170 gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&pcie3_vcc3v3_en>;
173 regulator-min-microvolt = <3300000>;
174 regulator-max-microvolt = <3300000>;
175 regulator-name = "vcc3v3_pcie30";
176 startup-delay-us = <5000>;
177 vin-supply = <&vcc12v_dcin>;
180 vcc5v0_host: regulator-vcc5v0-host {
181 compatible = "regulator-fixed";
182 enable-active-high;
183 gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>;
184 regulator-always-on;
185 regulator-boot-on;
186 regulator-min-microvolt = <5000000>;
187 regulator-max-microvolt = <5000000>;
188 regulator-name = "vcc5v0_host";
189 vin-supply = <&vcc5v0_usb>;
192 vcc5v0_host3: regulator-vcc5v0-host3 {
193 compatible = "regulator-fixed";
194 enable-active-high;
195 gpios = <&pca9555 7 GPIO_ACTIVE_HIGH>;
196 regulator-name = "vcc5v0_host3";
197 regulator-boot-on;
198 regulator-always-on;
199 regulator-min-microvolt = <5000000>;
200 regulator-max-microvolt = <5000000>;
201 vin-supply = <&vcc5v0_usb>;
204 vcc5v0_sys: regulator-vcc5v0-sys {
205 compatible = "regulator-fixed";
206 regulator-always-on;
207 regulator-boot-on;
208 regulator-min-microvolt = <5000000>;
209 regulator-max-microvolt = <5000000>;
210 regulator-name = "vcc5v0_sys";
211 vin-supply = <&vcc12v_dcin>;
214 vcc5v0_usb: regulator-vcc5v0-usb {
215 compatible = "regulator-fixed";
216 regulator-always-on;
217 regulator-boot-on;
218 regulator-min-microvolt = <5000000>;
219 regulator-max-microvolt = <5000000>;
220 regulator-name = "vcc5v0_usb";
221 vin-supply = <&vcc12v_dcin>;
224 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
225 compatible = "regulator-fixed";
226 regulator-always-on;
227 regulator-boot-on;
228 regulator-min-microvolt = <1100000>;
229 regulator-max-microvolt = <1100000>;
230 regulator-name = "vcc_1v1_nldo_s3";
231 vin-supply = <&vcc5v0_sys>;
234 vcc_fan_pwr_en: regulator-vcc-fan-pwr-en {
235 compatible = "regulator-fixed";
236 enable-active-high;
237 gpios = <&pca9555 11 GPIO_ACTIVE_HIGH>;
238 regulator-always-on;
239 regulator-boot-on;
240 regulator-name = "vcc_fan_pwr_en";
243 vcc_hub_reset: regulator-vcc-hub-reset {
244 compatible = "regulator-fixed";
245 enable-active-high;
246 gpios = <&pca9555 4 GPIO_ACTIVE_HIGH>;
247 regulator-always-on;
248 regulator-boot-on;
249 regulator-name = "vcc_hub_reset";
252 vcc_hub3_reset: regulator-vcc-hub3-reset {
253 compatible = "regulator-fixed";
254 enable-active-high;
255 gpios = <&pca9555 6 GPIO_ACTIVE_HIGH>;
256 regulator-always-on;
257 regulator-name = "vcc_hub3_reset";
260 vcc_sata_pwr_en: regulator-vcc-sata-pwr-en {
261 compatible = "regulator-fixed";
262 enable-active-high;
263 gpios = <&pca9555 10 GPIO_ACTIVE_HIGH>;
264 regulator-always-on;
265 regulator-boot-on;
266 regulator-name = "vcc_sata_pwr_en";
271 regulator-state-mem {
272 regulator-on-in-suspend;
290 phy-handle = <&rgmii_phy0>;
291 phy-mode = "rgmii-rxid";
292 pinctrl-names = "default";
293 pinctrl-0 = <&gmac0_miim
305 phy-handle = <&rgmii_phy1>;
306 phy-mode = "rgmii-rxid";
307 pinctrl-names = "default";
308 pinctrl-0 = <&gmac1_miim
319 mali-supply = <&vdd_gpu_s0>;
320 sram-supply = <&vdd_gpu_mem_s0>;
330 remote-endpoint = <&vp0_out_hdmi0>;
336 remote-endpoint = <&hdmi0_con_in>;
349 * "ES8388" - it actually seems to be an ES8323 and the drivers
352 es8323: audio-codec@11 {
355 assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
356 assigned-clock-rates = <12288000>;
358 clock-names = "mclk";
359 #sound-dai-cells = <0>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&i2c6m0_xfer>;
371 gpio-controller;
372 #gpio-cells = <2>;
375 usbc0: usb-typec@22 {
378 interrupt-parent = <&gpio0>;
380 pinctrl-names = "default";
381 pinctrl-0 = <&usbc0_int>;
382 vbus-supply = <&vbus5v0_typec_pwr_en>;
385 compatible = "usb-c-connector";
386 label = "USB-C";
387 data-role = "dual";
388 op-sink-microwatt = <1000000>;
389 power-role = "dual";
390 sink-pdos =
392 source-pdos =
394 try-power-role = "source";
397 #address-cells = <1>;
398 #size-cells = <0>;
404 remote-endpoint = <&usbdp_phy0_orientation_switch>;
412 remote-endpoint = <&dwc3_0_role_switch>;
420 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
430 interrupt-parent = <&gpio0>;
432 #clock-cells = <0>;
433 clock-output-names = "hym8563";
434 pinctrl-names = "default";
435 pinctrl-0 = <&hym8563_int>;
436 wakeup-source;
441 pinctrl-names = "default";
442 pinctrl-0 = <&i2s0_lrck
451 rgmii_phy0: ethernet-phy@1 {
452 compatible = "ethernet-phy-ieee802.3-c22";
458 rgmii_phy1: ethernet-phy@1 {
459 compatible = "ethernet-phy-ieee802.3-c22";
465 pinctrl-names = "default";
466 pinctrl-0 = <&pcie2_0_rst>;
467 reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
476 pinctrl-names = "default";
477 pinctrl-0 = <&pcie3_rst>;
478 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
479 vpcie3v3-supply = <&vcc3v3_pcie30>;
485 dp1_hpd: dp1-hpd {
491 hym8563_int: hym8563-int {
496 gpio-leds {
497 sys_led_pin: sys-led-pin {
504 pcie2_0_rst: pcie2-0-rst {
510 pcie3_rst: pcie3-rst {
514 pcie3_vcc3v3_en: pcie3-vcc3v3-en {
520 hp_detect: hp-detect {
524 headphone_amplifier_en: headphone-amplifier-en {
528 speaker_amplifier_en: speaker-amplifier-en {
534 usbc0_int: usbc0-int {
541 pinctrl-names = "default";
542 pinctrl-0 = <&pwm15m2_pins>;
560 pinctrl-0 = <&uart0m2_xfer>;
565 pinctrl-0 = <&uart1m1_xfer>;
583 phy-supply = <&vcc5v0_host>;
592 phy-supply = <&vcc5v0_host>;
601 phy-supply = <&vcc5v0_host>;
622 usb-role-switch;
627 #address-cells = <1>;
628 #size-cells = <0>;
632 remote-endpoint = <&usbc0_role_sw>;
647 orientation-switch;
648 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
649 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
653 #address-cells = <1>;
654 #size-cells = <0>;
658 remote-endpoint = <&usbc0_orien_sw>;
663 remote-endpoint = <&dp_altmode_mux>;
669 rockchip,dp-lane-mux = <2 3>;
674 regulator-state-mem {
675 regulator-on-in-suspend;
676 regulator-suspend-microvolt = <1800000>;
682 regulator-state-mem {
683 regulator-on-in-suspend;
684 regulator-suspend-microvolt = <750000>;
700 remote-endpoint = <&hdmi0_in_vp0>;