--- msm8916-jz08-aurora.dts 2026-09-29 23:46:05.613692870 +0600 +++ msm8916-jz08-aurora-usb1.dts 2026-09-30 03:41:18.973233454 +0600 @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Project Aurora — JZ08AU-XPA-7J-R3 (MSM8916, 512 MB, ST7735S SPI panel). - * RAM-BOOT #1: kernel + UART console only. Everything that could touch + * RAM-BOOT USB1: kernel + UART console + USB peripheral (NCM gadget). Everything that could touch * storage, radios or power management is explicitly disabled. * * Hardware facts from stock Aurora dtb_01 (see NOTES.md S2.1/S12): @@ -11,10 +11,10 @@ /dts-v1/; -#include "msm8916.dtsi" +#include "msm8916-pm8916.dtsi" /* + RPM regulators (USB PHY L7/L13) */ / { - model = "JZ08AU Aurora (RAM boot 1)"; + model = "JZ08AU Aurora (RAM boot USB1)"; compatible = "jz08au,aurora", "qcom,msm8916"; chassis-type = "embedded"; @@ -37,8 +37,27 @@ /* --- RAM boot #1 safety: no storage, no radios, no USB --- */ &sdhc_1 { status = "disabled"; }; /* eMMC: must stay untouched */ &sdhc_2 { status = "disabled"; }; -&usb { status = "disabled"; }; +/* usb: see peripheral block below */ &mpss { status = "disabled"; }; &bam_dmux { status = "disabled"; }; &bam_dmux_dma { status = "disabled"; }; &wcnss { status = "disabled"; }; /* WCNSS/pronto remoteproc */ + +/* + * USB peripheral only (ChipIdea ci-hdrc + qcom,usb-hs-phy-msm8916, upstream bindings). + * Stock Aurora: HSUSB_1p8 = L7 1.8 V, HSUSB_3p3 = L13 3.075 V, otg-control = 2 (PMIC VBUS detect), + * PHY init-seq identical to upstream. VBUS detect via PM8916 USB_IN (as on JZ02). No host, no role switch. + */ +&pm8916_usbin { + status = "okay"; +}; + +&usb { + dr_mode = "peripheral"; + extcon = <&pm8916_usbin>; + status = "okay"; +}; + +&usb_hs_phy { + extcon = <&pm8916_usbin>; +};