MAILBOX (fully open A7<->RISC-V SCR1 round-trip, 5/5 exact echoes on c8a3):
- rockchip-mailbox.c: rv1106 has 1 shared IRQ, not 4/channel -> added
rv1106_drv_data{num_chans=1} + compatible (rk3368 fallback assumed 4 -> probe
failed 'IRQ index 1 not found').
- clk-rv1106.c: CLK_CORE_MCU (SCR1 core clock) marked CLK_IGNORE_UNUSED -
6.18's clk_disable_unused() was switching off the coprocessor clock so a
loaded firmware never ran (5.10 left it on).
- Open SCR1 echo firmware (scr1-echo/, 154B RV32IMC) + load/test scripts;
A2B_INTEN on the MCU side + CMD-then-DAT (DAT=doorbell) order. Loaded via the
proven hpmcu.rs SRAM path; do NOT kill warden-flared (dw-wdt). mailbox/VERIFIED.md.
NPU (open GPL rknpu 0.9.2 kernel driver on 6.18):
- DT fix: base npu node lacks interrupt-names, driver requests IRQ byname
'npu_irq' -> probe bailed -ENXIO. Added interrupt-names='npu_irq'.
- Verified: [drm] Initialized rknpu 0.9.2 on minor 1; /dev/dri/card1;
rknpu_version_test PASS (0.9.2 + hw version, full power/clock/reset path).
- Honest ceiling: open compute (regcmd compiler) is a from-scratch ~person-year
RE project, no RV1106 prior art; ship the driver, no blob. npu/VERIFIED.md.
DRIVER-PARITY + CAPABILITIES-AUDIT updated; dts snapshot refreshed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wB8KB3MMQztRDXCMCkPrf
271 lines
6.2 KiB
Devicetree
271 lines
6.2 KiB
Devicetree
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* WardenOS 86-Panel board DT for the self-built Linux 6.18 forward-port.
|
|
*
|
|
* Includes the full vendor rv1106.dtsi (SoC nodes + pinctrl + gpio + dmac), then
|
|
* enables only what our wall-HMI needs — no camera/ISP/CSI. Grows one driver
|
|
* batch at a time toward full parity with the 5.10 kernel (DRIVER-PARITY.md).
|
|
*/
|
|
/dts-v1/;
|
|
|
|
#include "rv1106.dtsi"
|
|
|
|
/ {
|
|
model = "WardenOS 86-Panel (RV1106)";
|
|
compatible = "rockchip,rv1106-warden", "rockchip,rv1106";
|
|
|
|
chosen {
|
|
stdout-path = "serial2:115200n8";
|
|
bootargs = "earlycon=uart8250,mmio32,0xff4c0000 console=ttyS2,115200n8 earlyprintk rootwait";
|
|
};
|
|
|
|
memory@0 {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x10000000>; /* 256 MiB */
|
|
};
|
|
|
|
/* --- M5: AIC8800DC wifi/BT power sequencing --- */
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
pinctrl-names = "default";
|
|
reset-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
/* SARADC voltage reference (1.8V) — the driver reads this for scale;
|
|
without it saradc probes -22 (regulator_get_voltage on the dummy). */
|
|
vcc_1v8: vcc-1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_1v8";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
};
|
|
};
|
|
|
|
/* --- console --- */
|
|
&uart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- eMMC rootfs (M3) --- */
|
|
&emmc {
|
|
bus-width = <8>;
|
|
cap-mmc-highspeed;
|
|
mmc-hs200-1_8v;
|
|
non-removable;
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- M5: AIC8800DC wifi/BT SDIO (on &sdmmc, mmc@ffaa0000 — NOT &sdio) --- */
|
|
&sdmmc {
|
|
max-frequency = <50000000>;
|
|
bus-width = <4>;
|
|
cap-sd-highspeed;
|
|
cap-sdio-irq;
|
|
keep-power-in-suspend;
|
|
non-removable;
|
|
rockchip,default-sample-phase = <90>;
|
|
supports-sdio;
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_bus4 &sdmmc0_det>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- batch 1: mainline peripherals (wire DT + config) --- */
|
|
&uart1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart4 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc {
|
|
vref-supply = <&vcc_1v8>;
|
|
status = "okay";
|
|
};
|
|
|
|
&wdt {
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- M4: display (VOP + RGB → 720x720 panel + PWM backlight) --- */
|
|
&display_subsystem {
|
|
status = "okay";
|
|
};
|
|
|
|
&vop {
|
|
status = "okay";
|
|
/* mainline rockchip_drm_vop requests named "ahb" + "dclk" resets that the
|
|
* vendor node omits; without them vop_bind fails "failed to get ahb reset". */
|
|
resets = <&cru SRST_H_VOP>, <&cru SRST_D_VOP>;
|
|
reset-names = "ahb", "dclk";
|
|
};
|
|
|
|
/* mainline wires vop_out straight to the panel (no separate rgb node) */
|
|
&vop_out_rgb {
|
|
remote-endpoint = <&panel_in_vop>;
|
|
};
|
|
|
|
&pwm1 {
|
|
status = "okay";
|
|
pinctrl-names = "active";
|
|
pinctrl-0 = <&pwm1m2_pins>;
|
|
};
|
|
|
|
/ {
|
|
backlight: backlight {
|
|
compatible = "pwm-backlight";
|
|
pwms = <&pwm1 0 100000 50000>;
|
|
brightness-levels = <0 32 64 96 128 160 192 224 255>;
|
|
default-brightness-level = <8>;
|
|
status = "okay";
|
|
};
|
|
|
|
panel: panel {
|
|
compatible = "panel-dpi";
|
|
backlight = <&backlight>;
|
|
width-mm = <85>;
|
|
height-mm = <85>;
|
|
|
|
panel-timing {
|
|
clock-frequency = <30000000>;
|
|
hactive = <720>;
|
|
vactive = <720>;
|
|
hback-porch = <44>;
|
|
hfront-porch = <46>;
|
|
vback-porch = <18>;
|
|
vfront-porch = <16>;
|
|
hsync-len = <2>;
|
|
vsync-len = <2>;
|
|
hsync-active = <0>;
|
|
vsync-active = <0>;
|
|
de-active = <0>;
|
|
pixelclk-active = <0>;
|
|
};
|
|
|
|
port {
|
|
panel_in_vop: endpoint {
|
|
remote-endpoint = <&vop_out_rgb>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
/* the vendor rgb bridge node has no 6.18 driver and its dangling endpoint
|
|
* corrupts the vop->panel of_graph; disable it so the graph is clean. */
|
|
&rgb {
|
|
status = "disabled";
|
|
};
|
|
|
|
/* --- sweep: USB OTG (eth0 gadget / host) via the ported inno-usb2 phy --- */
|
|
&u2phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3 {
|
|
status = "okay";
|
|
dr_mode = "otg";
|
|
};
|
|
|
|
/* --- sweep: RTC + thermal (tsadc) + I2S audio DAI --- */
|
|
&rtc {
|
|
status = "okay";
|
|
};
|
|
|
|
&tsadc {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s0_8ch {
|
|
status = "okay";
|
|
};
|
|
|
|
|
|
&rga2 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- batch A: hardware RNG (trngv1, same IP as rk3588) --- */
|
|
&rng {
|
|
compatible = "rockchip,rv1106-rng";
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- batch A: OTP / nvmem (chip id, MAC, PHY bandgap for GMAC) --- */
|
|
&otp {
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- GMAC: wired 10/100 ethernet via the on-die RMII FEPHY --- */
|
|
&gmac {
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- audio: i2s0_8ch (DAI) -> acodec (analog codec) -> speaker/headphone,
|
|
* tied together by a simple-audio-card. Matches the vendor 86-Panel wiring
|
|
* in rv1106-luckfox-pico-86panel-ipc.dtsi. The digital speaker modulator
|
|
* (dsm) driver is ported and builds, but is left disabled here: the panel
|
|
* uses the acodec path only, and the vendor board itself ships dsm
|
|
* disabled. --- */
|
|
&acodec {
|
|
#sound-dai-cells = <0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&dsm {
|
|
status = "disabled";
|
|
};
|
|
|
|
/ {
|
|
acodec_sound: acodec-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "rv1106-acodec";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,mclk-fs = <256>;
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s0_8ch>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&acodec>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* --- HPMCU mailbox (A7 <-> RISC-V SCR1). Controller binds via the rk3368
|
|
* fallback compatible with zero driver patch; @ff5c0000 is the HPMCU-connected
|
|
* instance (SRST_CORE_MCU on the Linux side, MBOX_BASE 0xFF5C0000 on the MCU
|
|
* side). M-MBOX-1 proves the controller; M-MBOX-2 adds the SCR1 echo + round-trip. */
|
|
&mailbox {
|
|
status = "okay";
|
|
};
|
|
|
|
/* --- NPU (rknpu, ff660000). Kernel driver ported from the vendor 5.10 BSP
|
|
* (GPL source port -- see warden-sdk/kernel/rv1106-enablement/npu/PORT-PLAN.md
|
|
* and PORT-PROGRESS.md). compatible/reg/interrupts/clocks/resets are already
|
|
* fully specified in rv1106.dtsi's rv1106_rknpu_config-matching npu node --
|
|
* this is only the status flip, same pattern as every other block enabled
|
|
* in this file. No iommus= property (this board's NPU runs non-iommu,
|
|
* matching the 5.10 boot-log finding), no power-domains (single-rail). */
|
|
&npu {
|
|
/* the rknpu driver requests its IRQ by name ("npu_irq"); the base dtsi
|
|
* node declares the interrupt but no interrupt-names, so probe fails
|
|
* "IRQ npu_irq not found" without this. */
|
|
interrupt-names = "npu_irq";
|
|
status = "okay";
|
|
};
|