xref: /freebsd/sys/contrib/device-tree/src/arm64/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
17d0873ebSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27d0873ebSEmmanuel Vadot/*
37d0873ebSEmmanuel Vadot * Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
47d0873ebSEmmanuel Vadot */
57d0873ebSEmmanuel Vadot
67d0873ebSEmmanuel Vadot/dts-v1/;
77d0873ebSEmmanuel Vadot
87d0873ebSEmmanuel Vadot#include "sun50i-h616.dtsi"
90e8011faSEmmanuel Vadot#include "sun50i-h616-cpu-opp.dtsi"
107d0873ebSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
117d0873ebSEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h>
127d0873ebSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
137d0873ebSEmmanuel Vadot#include <dt-bindings/leds/common.h>
147d0873ebSEmmanuel Vadot
157d0873ebSEmmanuel Vadot/ {
167d0873ebSEmmanuel Vadot	model = "Anbernic RG35XX 2024";
177d0873ebSEmmanuel Vadot	chassis-type = "handset";
187d0873ebSEmmanuel Vadot	compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700";
197d0873ebSEmmanuel Vadot
207d0873ebSEmmanuel Vadot	aliases {
217d0873ebSEmmanuel Vadot		serial0 = &uart0;
227d0873ebSEmmanuel Vadot	};
237d0873ebSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot	battery: battery {
25*b2d2a78aSEmmanuel Vadot		compatible = "simple-battery";
26*b2d2a78aSEmmanuel Vadot		constant-charge-current-max-microamp = <1024000>;
27*b2d2a78aSEmmanuel Vadot		voltage-max-design-microvolt = <4200000>;
28*b2d2a78aSEmmanuel Vadot	};
29*b2d2a78aSEmmanuel Vadot
307d0873ebSEmmanuel Vadot	chosen {
317d0873ebSEmmanuel Vadot		stdout-path = "serial0:115200n8";
327d0873ebSEmmanuel Vadot	};
337d0873ebSEmmanuel Vadot
347d0873ebSEmmanuel Vadot	gpio_keys_gamepad: gpio-keys-gamepad {
357d0873ebSEmmanuel Vadot		compatible = "gpio-keys";
367d0873ebSEmmanuel Vadot
377d0873ebSEmmanuel Vadot		button-a {
387d0873ebSEmmanuel Vadot			label = "Action-Pad A";
397d0873ebSEmmanuel Vadot			gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */
407d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
417d0873ebSEmmanuel Vadot			linux,code = <BTN_EAST>;
427d0873ebSEmmanuel Vadot		};
437d0873ebSEmmanuel Vadot
447d0873ebSEmmanuel Vadot		button-b {
457d0873ebSEmmanuel Vadot			label = "Action-Pad B";
467d0873ebSEmmanuel Vadot			gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */
477d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
487d0873ebSEmmanuel Vadot			linux,code = <BTN_SOUTH>;
497d0873ebSEmmanuel Vadot		};
507d0873ebSEmmanuel Vadot
517d0873ebSEmmanuel Vadot		button-down {
527d0873ebSEmmanuel Vadot			label = "D-Pad Down";
537d0873ebSEmmanuel Vadot			gpios = <&pio 4 0 GPIO_ACTIVE_LOW>; /* PE0 */
547d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
557d0873ebSEmmanuel Vadot			linux,code = <BTN_DPAD_DOWN>;
567d0873ebSEmmanuel Vadot		};
577d0873ebSEmmanuel Vadot
587d0873ebSEmmanuel Vadot		button-l1 {
597d0873ebSEmmanuel Vadot			label = "Key L1";
607d0873ebSEmmanuel Vadot			gpios = <&pio 0 10 GPIO_ACTIVE_LOW>; /* PA10 */
617d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
627d0873ebSEmmanuel Vadot			linux,code = <BTN_TL>;
637d0873ebSEmmanuel Vadot		};
647d0873ebSEmmanuel Vadot
657d0873ebSEmmanuel Vadot		button-l2 {
667d0873ebSEmmanuel Vadot			label = "Key L2";
677d0873ebSEmmanuel Vadot			gpios = <&pio 0 11 GPIO_ACTIVE_LOW>; /* PA11 */
687d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
697d0873ebSEmmanuel Vadot			linux,code = <BTN_TL2>;
707d0873ebSEmmanuel Vadot		};
717d0873ebSEmmanuel Vadot
727d0873ebSEmmanuel Vadot		button-left {
737d0873ebSEmmanuel Vadot			label = "D-Pad left";
747d0873ebSEmmanuel Vadot			gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */
757d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
767d0873ebSEmmanuel Vadot			linux,code = <BTN_DPAD_LEFT>;
777d0873ebSEmmanuel Vadot		};
787d0873ebSEmmanuel Vadot
797d0873ebSEmmanuel Vadot		button-menu {
807d0873ebSEmmanuel Vadot			label = "Key Menu";
817d0873ebSEmmanuel Vadot			gpios = <&pio 4 3 GPIO_ACTIVE_LOW>; /* PE3 */
827d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
837d0873ebSEmmanuel Vadot			linux,code = <BTN_MODE>;
847d0873ebSEmmanuel Vadot		};
857d0873ebSEmmanuel Vadot
867d0873ebSEmmanuel Vadot		button-r1 {
877d0873ebSEmmanuel Vadot			label = "Key R1";
887d0873ebSEmmanuel Vadot			gpios = <&pio 0 12 GPIO_ACTIVE_LOW>; /* PA12 */
897d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
907d0873ebSEmmanuel Vadot			linux,code = <BTN_TR>;
917d0873ebSEmmanuel Vadot		};
927d0873ebSEmmanuel Vadot
937d0873ebSEmmanuel Vadot		button-r2 {
947d0873ebSEmmanuel Vadot			label = "Key R2";
957d0873ebSEmmanuel Vadot			gpios = <&pio 0 7 GPIO_ACTIVE_LOW>; /* PA7 */
967d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
977d0873ebSEmmanuel Vadot			linux,code = <BTN_TR2>;
987d0873ebSEmmanuel Vadot		};
997d0873ebSEmmanuel Vadot
1007d0873ebSEmmanuel Vadot		button-right {
1017d0873ebSEmmanuel Vadot			label = "D-Pad Right";
1027d0873ebSEmmanuel Vadot			gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
1037d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1047d0873ebSEmmanuel Vadot			linux,code = <BTN_DPAD_RIGHT>;
1057d0873ebSEmmanuel Vadot		};
1067d0873ebSEmmanuel Vadot
1077d0873ebSEmmanuel Vadot		button-select {
1087d0873ebSEmmanuel Vadot			label = "Key Select";
1097d0873ebSEmmanuel Vadot			gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */
1107d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1117d0873ebSEmmanuel Vadot			linux,code = <BTN_SELECT>;
1127d0873ebSEmmanuel Vadot		};
1137d0873ebSEmmanuel Vadot		button-start {
1147d0873ebSEmmanuel Vadot			label = "Key Start";
1157d0873ebSEmmanuel Vadot			gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
1167d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1177d0873ebSEmmanuel Vadot			linux,code = <BTN_START>;
1187d0873ebSEmmanuel Vadot		};
1197d0873ebSEmmanuel Vadot
1207d0873ebSEmmanuel Vadot		button-up {
1217d0873ebSEmmanuel Vadot			label = "D-Pad Up";
1227d0873ebSEmmanuel Vadot			gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */
1237d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1247d0873ebSEmmanuel Vadot			linux,code = <BTN_DPAD_UP>;
1257d0873ebSEmmanuel Vadot		};
1267d0873ebSEmmanuel Vadot
1277d0873ebSEmmanuel Vadot		button-x {
1287d0873ebSEmmanuel Vadot			label = "Action-Pad X";
1297d0873ebSEmmanuel Vadot			gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */
1307d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1317d0873ebSEmmanuel Vadot			linux,code = <BTN_NORTH>;
1327d0873ebSEmmanuel Vadot		};
1337d0873ebSEmmanuel Vadot
1347d0873ebSEmmanuel Vadot		button-y {
1357d0873ebSEmmanuel Vadot			label = "Action Pad Y";
1367d0873ebSEmmanuel Vadot			gpios = <&pio 0 2 GPIO_ACTIVE_LOW>; /* PA2 */
1377d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1387d0873ebSEmmanuel Vadot			linux,code = <BTN_WEST>;
1397d0873ebSEmmanuel Vadot		};
1407d0873ebSEmmanuel Vadot	};
1417d0873ebSEmmanuel Vadot
1427d0873ebSEmmanuel Vadot	gpio-keys-volume {
1437d0873ebSEmmanuel Vadot		compatible = "gpio-keys";
1447d0873ebSEmmanuel Vadot		autorepeat;
1457d0873ebSEmmanuel Vadot
1467d0873ebSEmmanuel Vadot		button-vol-up {
1477d0873ebSEmmanuel Vadot			label = "Key Volume Up";
1487d0873ebSEmmanuel Vadot			gpios = <&pio 4 1 GPIO_ACTIVE_LOW>; /* PE1 */
1497d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1507d0873ebSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
1517d0873ebSEmmanuel Vadot		};
1527d0873ebSEmmanuel Vadot
1537d0873ebSEmmanuel Vadot		button-vol-down {
1547d0873ebSEmmanuel Vadot			label = "Key Volume Down";
1557d0873ebSEmmanuel Vadot			gpios = <&pio 4 2 GPIO_ACTIVE_LOW>; /* PE2 */
1567d0873ebSEmmanuel Vadot			linux,input-type = <EV_KEY>;
1577d0873ebSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
1587d0873ebSEmmanuel Vadot		};
1597d0873ebSEmmanuel Vadot	};
1607d0873ebSEmmanuel Vadot
1617d0873ebSEmmanuel Vadot	leds {
1627d0873ebSEmmanuel Vadot		compatible = "gpio-leds";
1637d0873ebSEmmanuel Vadot
1647d0873ebSEmmanuel Vadot		led-0 {
1657d0873ebSEmmanuel Vadot			function = LED_FUNCTION_POWER;
1667d0873ebSEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
1677d0873ebSEmmanuel Vadot			gpios = <&pio 8 12 GPIO_ACTIVE_HIGH>; /* PI12 */
1687d0873ebSEmmanuel Vadot			default-state = "on";
1697d0873ebSEmmanuel Vadot		};
1707d0873ebSEmmanuel Vadot	};
1717d0873ebSEmmanuel Vadot
1727d0873ebSEmmanuel Vadot	reg_vcc5v: regulator-vcc5v { /* USB-C power input */
1737d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
1747d0873ebSEmmanuel Vadot		regulator-name = "vcc-5v";
1757d0873ebSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
1767d0873ebSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
1777d0873ebSEmmanuel Vadot	};
1787d0873ebSEmmanuel Vadot};
1797d0873ebSEmmanuel Vadot
1807d0873ebSEmmanuel Vadot&cpu0 {
1817d0873ebSEmmanuel Vadot	cpu-supply = <&reg_dcdc1>;
1827d0873ebSEmmanuel Vadot};
1837d0873ebSEmmanuel Vadot
1847d0873ebSEmmanuel Vadot&ehci0 {
1857d0873ebSEmmanuel Vadot	status = "okay";
1867d0873ebSEmmanuel Vadot};
1877d0873ebSEmmanuel Vadot
1887d0873ebSEmmanuel Vadot&mmc0 {
1897d0873ebSEmmanuel Vadot	vmmc-supply = <&reg_cldo3>;
1907d0873ebSEmmanuel Vadot	disable-wp;
1917d0873ebSEmmanuel Vadot	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;  /* PF6 */
1927d0873ebSEmmanuel Vadot	bus-width = <4>;
1937d0873ebSEmmanuel Vadot	status = "okay";
1947d0873ebSEmmanuel Vadot};
1957d0873ebSEmmanuel Vadot
1967d0873ebSEmmanuel Vadot&ohci0 {
1977d0873ebSEmmanuel Vadot	status = "okay";
1987d0873ebSEmmanuel Vadot};
1997d0873ebSEmmanuel Vadot
2007d0873ebSEmmanuel Vadot&pio {
2017d0873ebSEmmanuel Vadot	vcc-pa-supply = <&reg_cldo3>;
2027d0873ebSEmmanuel Vadot	vcc-pc-supply = <&reg_cldo3>;
2037d0873ebSEmmanuel Vadot	vcc-pe-supply = <&reg_cldo3>;
2047d0873ebSEmmanuel Vadot	vcc-pf-supply = <&reg_cldo3>;
2057d0873ebSEmmanuel Vadot	vcc-pg-supply = <&reg_aldo4>;
2067d0873ebSEmmanuel Vadot	vcc-ph-supply = <&reg_cldo3>;
2077d0873ebSEmmanuel Vadot	vcc-pi-supply = <&reg_cldo3>;
2087d0873ebSEmmanuel Vadot};
2097d0873ebSEmmanuel Vadot
210*b2d2a78aSEmmanuel Vadot&r_i2c {
2117d0873ebSEmmanuel Vadot	status = "okay";
2127d0873ebSEmmanuel Vadot
213*b2d2a78aSEmmanuel Vadot	axp717: pmic@34 {
2147d0873ebSEmmanuel Vadot		compatible = "x-powers,axp717";
215*b2d2a78aSEmmanuel Vadot		reg = <0x34>;
2167d0873ebSEmmanuel Vadot		interrupt-controller;
2177d0873ebSEmmanuel Vadot		#interrupt-cells = <1>;
2187d0873ebSEmmanuel Vadot		interrupt-parent = <&nmi_intc>;
2197d0873ebSEmmanuel Vadot		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
2207d0873ebSEmmanuel Vadot
2217d0873ebSEmmanuel Vadot		vin1-supply = <&reg_vcc5v>;
2227d0873ebSEmmanuel Vadot		vin2-supply = <&reg_vcc5v>;
2237d0873ebSEmmanuel Vadot		vin3-supply = <&reg_vcc5v>;
2247d0873ebSEmmanuel Vadot		vin4-supply = <&reg_vcc5v>;
2257d0873ebSEmmanuel Vadot
226*b2d2a78aSEmmanuel Vadot		axp_adc: adc {
227*b2d2a78aSEmmanuel Vadot			compatible = "x-powers,axp717-adc";
228*b2d2a78aSEmmanuel Vadot			#io-channel-cells = <1>;
229*b2d2a78aSEmmanuel Vadot		};
230*b2d2a78aSEmmanuel Vadot
231*b2d2a78aSEmmanuel Vadot		battery_power: battery-power {
232*b2d2a78aSEmmanuel Vadot			compatible = "x-powers,axp717-battery-power-supply";
233*b2d2a78aSEmmanuel Vadot			monitored-battery = <&battery>;
234*b2d2a78aSEmmanuel Vadot		};
235*b2d2a78aSEmmanuel Vadot
2367d0873ebSEmmanuel Vadot		regulators {
2377d0873ebSEmmanuel Vadot			reg_dcdc1: dcdc1 {
2387d0873ebSEmmanuel Vadot				regulator-always-on;
2397d0873ebSEmmanuel Vadot				regulator-min-microvolt = <900000>;
2400e8011faSEmmanuel Vadot				regulator-max-microvolt = <1160000>;
2417d0873ebSEmmanuel Vadot				regulator-name = "vdd-cpu";
2427d0873ebSEmmanuel Vadot			};
2437d0873ebSEmmanuel Vadot
2447d0873ebSEmmanuel Vadot			reg_dcdc2: dcdc2 {
2457d0873ebSEmmanuel Vadot				regulator-always-on;
2467d0873ebSEmmanuel Vadot				regulator-min-microvolt = <940000>;
2477d0873ebSEmmanuel Vadot				regulator-max-microvolt = <940000>;
2487d0873ebSEmmanuel Vadot				regulator-name = "vdd-gpu-sys";
2497d0873ebSEmmanuel Vadot			};
2507d0873ebSEmmanuel Vadot
2517d0873ebSEmmanuel Vadot			reg_dcdc3: dcdc3 {
2527d0873ebSEmmanuel Vadot				regulator-always-on;
2537d0873ebSEmmanuel Vadot				regulator-min-microvolt = <1100000>;
2547d0873ebSEmmanuel Vadot				regulator-max-microvolt = <1100000>;
2557d0873ebSEmmanuel Vadot				regulator-name = "vdd-dram";
2567d0873ebSEmmanuel Vadot			};
2577d0873ebSEmmanuel Vadot
2587d0873ebSEmmanuel Vadot			reg_aldo1: aldo1 {
2597d0873ebSEmmanuel Vadot				/* 1.8v - unused */
2607d0873ebSEmmanuel Vadot			};
2617d0873ebSEmmanuel Vadot
2627d0873ebSEmmanuel Vadot			reg_aldo2: aldo2 {
2637d0873ebSEmmanuel Vadot				/* 1.8v - unused */
2647d0873ebSEmmanuel Vadot			};
2657d0873ebSEmmanuel Vadot
2667d0873ebSEmmanuel Vadot			reg_aldo3: aldo3 {
2677d0873ebSEmmanuel Vadot				/* 1.8v - unused */
2687d0873ebSEmmanuel Vadot			};
2697d0873ebSEmmanuel Vadot
2707d0873ebSEmmanuel Vadot			reg_aldo4: aldo4 {
2717d0873ebSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
2727d0873ebSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
2737d0873ebSEmmanuel Vadot				regulator-name = "vcc-pg";
2747d0873ebSEmmanuel Vadot			};
2757d0873ebSEmmanuel Vadot
2767d0873ebSEmmanuel Vadot			reg_bldo1: bldo1 {
2777d0873ebSEmmanuel Vadot				/* 1.8v - unused */
2787d0873ebSEmmanuel Vadot			};
2797d0873ebSEmmanuel Vadot
2807d0873ebSEmmanuel Vadot			reg_bldo2: bldo2 {
2817d0873ebSEmmanuel Vadot				regulator-always-on;
2827d0873ebSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
2837d0873ebSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
2847d0873ebSEmmanuel Vadot				regulator-name = "vcc-pll";
2857d0873ebSEmmanuel Vadot			};
2867d0873ebSEmmanuel Vadot
2877d0873ebSEmmanuel Vadot			reg_bldo3: bldo3 {
2887d0873ebSEmmanuel Vadot				/* 2.8v - unused */
2897d0873ebSEmmanuel Vadot			};
2907d0873ebSEmmanuel Vadot
2917d0873ebSEmmanuel Vadot			reg_bldo4: bldo4 {
2927d0873ebSEmmanuel Vadot				/* 1.2v - unused */
2937d0873ebSEmmanuel Vadot			};
2947d0873ebSEmmanuel Vadot
2957d0873ebSEmmanuel Vadot			reg_cldo1: cldo1 {
2967d0873ebSEmmanuel Vadot				/* 3.3v - audio codec - not yet implemented */
2977d0873ebSEmmanuel Vadot			};
2987d0873ebSEmmanuel Vadot
2997d0873ebSEmmanuel Vadot			reg_cldo2: cldo2 {
3007d0873ebSEmmanuel Vadot				/* 3.3v - unused */
3017d0873ebSEmmanuel Vadot			};
3027d0873ebSEmmanuel Vadot
3037d0873ebSEmmanuel Vadot			reg_cldo3: cldo3 {
3047d0873ebSEmmanuel Vadot				regulator-always-on;
3057d0873ebSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
3067d0873ebSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
3077d0873ebSEmmanuel Vadot				regulator-name = "vcc-io";
3087d0873ebSEmmanuel Vadot			};
3097d0873ebSEmmanuel Vadot
3107d0873ebSEmmanuel Vadot			reg_cldo4: cldo4 {
3117d0873ebSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
3127d0873ebSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
3137d0873ebSEmmanuel Vadot				regulator-name = "vcc-wifi";
3147d0873ebSEmmanuel Vadot			};
3157d0873ebSEmmanuel Vadot
3167d0873ebSEmmanuel Vadot			reg_boost: boost {
3177d0873ebSEmmanuel Vadot				regulator-min-microvolt = <5000000>;
3187d0873ebSEmmanuel Vadot				regulator-max-microvolt = <5200000>;
3197d0873ebSEmmanuel Vadot				regulator-name = "boost";
3207d0873ebSEmmanuel Vadot			};
3217d0873ebSEmmanuel Vadot
3227d0873ebSEmmanuel Vadot			reg_cpusldo: cpusldo {
3237d0873ebSEmmanuel Vadot				/* unused */
3247d0873ebSEmmanuel Vadot			};
3257d0873ebSEmmanuel Vadot		};
326*b2d2a78aSEmmanuel Vadot
327*b2d2a78aSEmmanuel Vadot		usb_power: usb-power {
328*b2d2a78aSEmmanuel Vadot			compatible = "x-powers,axp717-usb-power-supply";
329*b2d2a78aSEmmanuel Vadot			input-current-limit-microamp = <1500000>;
330*b2d2a78aSEmmanuel Vadot		};
3317d0873ebSEmmanuel Vadot	};
3327d0873ebSEmmanuel Vadot};
3337d0873ebSEmmanuel Vadot
3347d0873ebSEmmanuel Vadot&uart0 {
3357d0873ebSEmmanuel Vadot	pinctrl-names = "default";
3367d0873ebSEmmanuel Vadot	pinctrl-0 = <&uart0_ph_pins>;
3377d0873ebSEmmanuel Vadot	status = "okay";
3387d0873ebSEmmanuel Vadot};
3397d0873ebSEmmanuel Vadot
3407d0873ebSEmmanuel Vadot/* the AXP717 has USB type-C role switch functionality, not yet described by the binding */
3417d0873ebSEmmanuel Vadot&usbotg {
3427d0873ebSEmmanuel Vadot	dr_mode = "peripheral";   /* USB type-C receptable */
3437d0873ebSEmmanuel Vadot	status = "okay";
3447d0873ebSEmmanuel Vadot};
3457d0873ebSEmmanuel Vadot
3467d0873ebSEmmanuel Vadot&usbphy {
3477d0873ebSEmmanuel Vadot	status = "okay";
3487d0873ebSEmmanuel Vadot};
349