Created
March 5, 2024 11:51
-
-
Save apritzel/f35dd4ab78c3df08b344b115751cd2b8 to your computer and use it in GitHub Desktop.
Anbernic RG35XX-Plus minimal DT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | |
/* | |
* Copyright (C) 2024 Arm Ltd. | |
*/ | |
/dts-v1/; | |
#include "sun50i-h616.dtsi" | |
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/interrupt-controller/arm-gic.h> | |
/ { | |
model = "Anbernic RG35XX Plus"; | |
compatible = "anbernic,rg35xx-plus", "allwinner,sun50i-h618"; | |
aliases { | |
serial0 = &uart0; | |
}; | |
chosen { | |
stdout-path = "serial0:115200n8"; | |
}; | |
reg_vcc5v: vcc5v { | |
/* board wide 5V supply directly from the USB type-C input */ | |
compatible = "regulator-fixed"; | |
regulator-name = "vcc-5v"; | |
regulator-min-microvolt = <5000000>; | |
regulator-max-microvolt = <5000000>; | |
regulator-always-on; | |
}; | |
reg_vcc3v3: vcc3v3 { | |
/* placeholder 3.3V regulator for now, use AXP717 rails */ | |
compatible = "regulator-fixed"; | |
regulator-name = "vcc-3v3"; | |
regulator-min-microvolt = <3300000>; | |
regulator-max-microvolt = <3300000>; | |
regulator-always-on; | |
}; | |
reg_vcc1v8: vcc1v8 { | |
/* placeholder 1.8V regulator for now, use AXP717 rails */ | |
compatible = "regulator-fixed"; | |
regulator-name = "vcc-1v8"; | |
regulator-min-microvolt = <1800000>; | |
regulator-max-microvolt = <1800000>; | |
regulator-always-on; | |
}; | |
}; | |
&ehci0 { | |
status = "okay"; | |
}; | |
&mmc0 { | |
vmmc-supply = <®_vcc3v3>; | |
broken-cd; | |
// cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ | |
bus-width = <4>; | |
status = "okay"; | |
}; | |
/* SDIO WiFi RTL8821CS, powered by CLDO4, regon=PG18, hostwake=PG15 */ | |
&mmc1 { | |
vmmc-supply = <®_vcc3v3>; | |
vqmmc-supply = <®_vcc1v8>; | |
bus-width = <4>; | |
status = "okay"; | |
}; | |
/* second SD card, to be confirmed, references ALDO1 */ | |
&mmc2 { | |
vmmc-supply = <®_vcc3v3>; | |
broken-cd; | |
// cd-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ | |
bus-width = <4>; | |
status = "okay"; | |
}; | |
&ohci0 { | |
status = "okay"; | |
}; | |
&uart0 { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&uart0_ph_pins>; | |
status = "okay"; | |
}; | |
/* Bluetooth RTL8821CS, RST_N: PG19, BT_WAKE: PG17, BT_HOSTWAKE: PG16 */ | |
&uart1 { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; | |
status = "okay"; | |
}; | |
/* the AXP717 has USB type-C role switch functionality, to be implemented */ | |
&usbotg { | |
dr_mode = "host"; /* USB type-C receptable */ | |
status = "okay"; | |
}; | |
&usbphy { | |
status = "okay"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't understand: I have rg35xx++_P model (2024) with firmware 1.1.8 in theory it has bluetooth and I see it also in the kern.log in /var but I don't see any bluetooth option anywhere.