From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796472928; b=QGvZW23dWx8wNwJSZimMmO1lyn1IK7kUpbl/oU8TxI3VPPtmvfwTZ1jVkJGi+CwLT0+9 gGyMjminLOpTwNWwvG3vGb9kHrFzH71TkmPKOW1voViX9dVzfATWY8MknxP5IZCE9xcOQ oJ/IsaWRr2ugT5NQ6TUvhl40mL/B+Xlf4w1PUVqEKXIhvcSaM05FtZ3YyassbijExD7X+ eAyP2eiJlgSOlmdgjuKLWdZTdj6VCm4ULt9OF3o3yVF2ggEFkyo/iJfRrSpTUp1BEHiQ2 6B/QBZJaMVzA+aT7eQTGxjsuil61ZtLV1lkMixoKFy7UUsuGa1wpc8aFiGaNgm1AC4Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796472928; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=+KcGILtRlMROPKfDFFXprrPmFS+3ISROsxIl70rpu8c=; b=snw4guWYmXh1TQA9sDydmxuMEObAMf9scEHjgfwnUHADBuUiV3PO1XMWghOWyAFsFQ+c FoM2o1C4gS3BFo50uMAdfvnU9FIg9gGEPSGn5SCyKT7CX18QAjIqsw2py9QGBlKFe3r41 bJSZZd5aHmK44++VcWLNaSWprr7ATpdsOdKYTus6Fwf97oG192LpWKcOHe77GDuQ+lGgM YM/92cBzASvOv2OKQp+N9h38tXtf8ggKw7fp8DP0SQH3lTqnPqtHCh6Aj0AQiKUva4IZF niC6b8QQ8lCFbp9QtIyWbTy1bMaNASCJ+TpIyeWEA8EjSHuO4UckCsqgP8TCPkCMPKQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=CZH9+eyF; arc=none smtp.remote-ip=209.85.215.172 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5F33606A330 for ; Sat, 5 Dec 2026 12:15:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E5F33606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=CZH9+eyF Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-cdab938dc83so749201a12.3 for ; Sat, 05 Dec 2026 04:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796472927; x=1797077727; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+KcGILtRlMROPKfDFFXprrPmFS+3ISROsxIl70rpu8c=; b=CZH9+eyFogCEt/NZ12xmf+gLSTOdZh0OD5rfK/9jzpvQR7fG6U2YNhS7hgyB9Frt1m Q+LWjJ7XeXA01hx8bgV9CVcB99nDoxgaEIiQR+Wdxp6HpOOwlpNSRIzfzRXdVqU3/OBR 4GopFWvcM/8IXa4y50lM6lj6t6OjOn5ztRnKjsora6HvRg5CJ7hGg0uLOQtgy0qdlSAj xMpVcpDJrRNOfQg4LmMBG22xxKWdBialR01zYMU9ufWf1OdybAmwQCuCT+NcGMYfQu1e +4d/I3vbXgPST2OoYwYkmEVU0rlQ0hALLZiVsPEE+1k5I9dzw2hZr/u4rmijJo52ejHO n3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796472927; x=1797077727; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+KcGILtRlMROPKfDFFXprrPmFS+3ISROsxIl70rpu8c=; b=uEtf6IW8PgCv5fjCDqSI+PhlCHmSAy2rAw+3r9+Nmwh8xmXRj0n0mPsYOUwsr4n/0s 2gcNejsy7R8ZJrT3fKmnlHOvKWaUsKZjAX6q2wySww3A2lVrQ1N7FG6Au3JRRN0sgFIh 1otT/GIo35zH69k+Hu5BIUJAMPV+db8wUZaQodpFpZAthl2R3l0KukkVwx5/MJU7T01P rNQIwrFLaFKCJOcr48JeBlVAxWTX68RemaKvA+TEM3NGCYo6hR3MueFB4HaoJUBoRj3H LZMQbNENVOnfi+Nnel1kf7ktYrxVnlNLoRGeC/oFzAi0HNcJpStm+xZYfPX47qOT4rsp CrCw== X-Gm-Message-State: APuU4Z96DM6Bti//ff8VbLPW1ai8WP9GRqsZTN4QlmkUNyI6zX6gSHKF yEAmybhkFdJQRzuBIdJcqRjYBpZu7ZFve+2ZXlzecWIarmkX2d5TeDCf X-Gm-Gg: AZFdTZccR06X7bv8RbZ+1r1BeV0Y/CJtlVaA/meVTpFN6YrIVBXgX+LtfA8G26meTYk +C1WdGLgLDtdaedsaCyeWIonCnPsbdQZsJQv3WCn+4P/tbAv3bhiou80faFhw77PQil20av8nSp ZKXqT22cjeKCVYQrv/3UMzLvArZT66rdxLDViihF39kHNSDxenuWmLxYh4B3tm1jdwrsVSiuFsn 20zFW8wSYOlI1bO1dWhBA/BAZjy+chLj5CJwJ1bqbnQ4Nf9f8Fc3eVfQjaSu5sztv/w53riAP1u T979hcwI1QnNibSDepU2pexhiMES31o9LfNfsTFFEXZRvOmI8E15iC68PEoK3yHXhYC36tf6LEG 03sB1wvmG/9hgfWh2ynE9ZwLkAw8ebxfUh5g7Xy5e1hQlelhWZVU1VuC9whz/xZW78QBaky5t2V hUhpYewyvhSy+5eMQLW4qC0ujwm8MFMkiRnJVcHkFENhWOcfze2kx/6vbueGORKmC3qnLLOkuLg QQYzbvEeVdOJ9AvtfhfS5VMgYzupToEyE1dtexpYbdxxU7Vde5IPTmVoehJWAs9zFAdv5MM13rS a3G/N44ELsK40okSA81+v7e+7tezCFi/JFFwegQ= X-Received: by 2002:a05:6a21:691:b0:40a:56b8:2555 with SMTP id adf61e73a8af0-41561b36c70mr5279045637.40.1796472927284; Sat, 05 Dec 2026 04:15:27 -0800 (PST) Received: from arch.localdomain ([152.175.35.13]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ce1237e81c0sm2769609a12.26.2026.12.05.04.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 04:15:25 -0800 (PST) From: Jun Yan To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jun Yan Subject: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1 Date: Sat, 5 Dec 2026 20:15:07 +0800 Message-ID: <20261205121507.52434-4-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261205121507.52434-1-jerrysteve1101@gmail.com> References: <20261205121507.52434-1-jerrysteve1101@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a device tree for the BeikeYun P1, an RK3328 based set-top box from Meibeike. The device tree is based on unifreq's out-of-tree Linux v6.18 device tree: https://github.com/unifreq/linux-6.18.y/blob/main/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-1296mhz.dts It has been reworked to follow the mainline bindings and conventions. Hardware description: - SoC: RK3328 (no PMIC) - RAM: 1G DDR3L - Storage: 8G eMMC - Gigabit Ethernet port - HDMI port - USB 3.0 via a GL3520 4-port USB hub - USB 2.0 OTG - Two GPIO LEDs Signed-off-by: Jun Yan --- .../boot/dts/rockchip/rk3328-beikeyun-p1.dts | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts diff --git a/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts new file mode 100644 index 000000000000..db4f51b5708f --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts @@ -0,0 +1,257 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2026 unifreq +// Copyright (C) 2026 Jun Yan + +/dts-v1/; + +#include +#include "rk3328.dtsi" + +/ { + model = "BeikeYun P1"; + compatible = "meibeike,beikeyun-p1", "rockchip,rk3328"; + + aliases { + mmc0 = &emmc; + serial2 = &uart2; + }; + + chosen { + stdout-path = "serial2:1500000n8"; + }; + + gmac_clkin: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "gmac_clkin"; + #clock-cells = <0>; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + function = LED_FUNCTION_DISK_ACTIVITY; + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc0"; + }; + + led-1 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + vcc_sys_12v: vcc-sys-12v { + compatible = "regulator-fixed"; + regulator-name = "vcc_sys_12v"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-always-on; + regulator-boot-on; + }; + + vcc_sys_5v: vcc-sys-5v { + compatible = "regulator-fixed"; + regulator-name = "vcc_sys_5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_sys_12v>; + regulator-always-on; + regulator-boot-on; + }; + + vccio_1v8: vccio-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vccio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vccio_3v3: vccio-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vccio_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vdd_arm: vdd-arm { + compatible = "pwm-regulator"; + pwms = <&pwm0 0 5000 1>; + regulator-name = "vcc_arm"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1400000>; + regulator-settling-time-up-us = <250>; + regulator-ramp-delay = <12500>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_logic: vdd-logic { + compatible = "pwm-regulator"; + pwms = <&pwm1 0 5000 1>; + regulator-name = "vcc_log"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1300000>; + regulator-settling-time-up-us = <250>; + regulator-ramp-delay = <12500>; + regulator-always-on; + regulator-boot-on; + }; +}; + +&cpu0 { + cpu-supply = <&vdd_arm>; +}; + +&cpu1 { + cpu-supply = <&vdd_arm>; +}; + +&cpu2 { + cpu-supply = <&vdd_arm>; +}; + +&cpu3 { + cpu-supply = <&vdd_arm>; +}; + +&emmc { + bus-width = <8>; + max-frequency = <150000000>; + cap-mmc-highspeed; + mmc-hs200-1_8v; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>; + vmmc-supply = <&vccio_3v3>; + vqmmc-supply = <&vccio_1v8>; + status = "okay"; +}; + +&gmac2io { + assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>; + assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>; + clock_in_out = "input"; + phy-handle = <&rtl8211f>; + phy-supply = <&vccio_3v3>; + /* TX and RX delays are applied by the MAC, see tx_delay/rx_delay. */ + phy-mode = "rgmii"; + pinctrl-names = "default"; + pinctrl-0 = <&rgmiim1_pins>; + snps,aal; + snps,pbl = <0x4>; + tx_delay = <0x26>; + rx_delay = <0x11>; + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + rtl8211f: ethernet-phy@0 { + reg = <0>; + reset-assert-us = <30000>; + reset-deassert-us = <50000>; + reset-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpu { + mali-supply = <&vdd_logic>; +}; + +&hdmi { + status = "okay"; +}; + +&hdmi_sound { + status = "okay"; +}; + +&hdmiphy { + status = "okay"; +}; + +&i2s0 { + status = "okay"; +}; + +&io_domains { + vccio1-supply = <&vccio_3v3>; + vccio2-supply = <&vccio_1v8>; + vccio3-supply = <&vccio_3v3>; + vccio4-supply = <&vccio_1v8>; + vccio5-supply = <&vccio_3v3>; + vccio6-supply = <&vccio_3v3>; + pmuio-supply = <&vccio_3v3>; + status = "okay"; +}; + +&pwm0 { + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; + +&tsadc { + rockchip,hw-tshut-mode = <0>; + rockchip,hw-tshut-polarity = <0>; + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&u2phy { + status = "okay"; +}; + +&u2phy_host { + status = "okay"; +}; + +&u2phy_otg { + status = "okay"; +}; + +/* + * The OTG port is routed to through-holes on the board and is used + * for factory firmware download, so keep it in peripheral mode. + */ +&usb20_otg { + dr_mode = "peripheral"; + status = "okay"; +}; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host0_ohci { + status = "okay"; +}; + +/* A Genesys Logic GL3520 4-port USB 3.0 hub is connected to this port. */ +&usbdrd3 { + dr_mode = "host"; + status = "okay"; +}; + +&vop { + status = "okay"; +}; + +&vop_mmu { + status = "okay"; +};