From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=149.28.215.223 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795101679; b=EHucfp00nnE5H1iocIau3YwF7GINM2P/mHxvW3YnBQSBQHpd6MlfwbDjBU/xho3jLxxm /2DOMGXDQea+GkXs1CDbwHqbL4EML5K2M0kM+icsVr+FykvqzS9ngAT0lzFFjDch4yO+e us1BWgEO/e/SVi9YVVY41gFUrWrPPf7BL3fNOx8VaX/4ZZxkvFUThLsrjcp3Y5mC25cPp b7FcUcPhlTD97jTnQGCwRZtqEbnIEFJ4lIafYLogAfyCQZJSdGVF5ZaTzT493drG4VWoS 9p+5ZIUAFAlSeBfZ2KQjM2pCJvEFRONmNJOMyLuQuEqLxSQtM5lwiw+ysx+nzTRW/9A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795101679; h=DMARC-Filter:DKIM-Signature:DKIM-Signature:CFBL-Feedback-ID: CFBL-Address:X-Forward-Email-ID:X-Forward-Email-Sender: X-Forward-Email-Version:X-Forward-Email-Website:X-Complaints-To: X-Report-Abuse:X-Report-Abuse-To:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=l97TtMy7x+yYt7ekyvNFTrCiW2KW55M+lbA28Kc94gs=; b=ow6FD5Kc+GuF+hzY7pI+CpfsN4X38vlgCsHZ3lyVNBj3C0TK69ldXCkE2GagSZlL9bOV 5vLyWH0p7ib/LXLPOtrX2XurmB6xbj6wPXn3sD2Wutf5Sir6nQWkCWwa+VYxvWY+NgGQN uS4ptnRanlQ06+04aYIrux3K/HQkvHbRugi2NQmOWBFFn5TjaxucfDY87TFI5tl92sI3/ 6ZODkrAZ+9qKt9n0IpKAK1Ifab4fWNZNaM1K1pU2vuq01VHIRfdYj7XH+bfkTNx84/HEa F4E1/CYzJIGct2jKrnsoYeEn5B9bzF0LMO1ApUfeklNtqgSJ6kU5kbNZOche1bb3Jtg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass header.d=kwiboo.se header.i=@kwiboo.se header.a=rsa-sha256 header.s=fe-e1b5cab7be header.b=l5bwG3o8; dkim=pass header.d=forwardemail.net header.i=@forwardemail.net header.a=rsa-sha256 header.s=default header.b="mtG47n/v"; arc=none smtp.remote-ip=149.28.215.223 Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D450260A2611 for ; Thu, 19 Nov 2026 15:21:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D450260A2611 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.a=rsa-sha256 header.s=fe-e1b5cab7be header.b=l5bwG3o8; dkim=pass (1024-bit key) header.d=forwardemail.net header.i=@forwardemail.net header.a=rsa-sha256 header.s=default header.b=mtG47n/v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From: CFBL-Address: CFBL-Feedback-ID; q=dns/txt; s=fe-e1b5cab7be; t=1795101678; bh=l97TtMy7x+yYt7ekyvNFTrCiW2KW55M+lbA28Kc94gs=; b=l5bwG3o8Xf6myANRC/mEPfd4AW2Vflx/MRguwyXygI8725ICmkgXiYj5vK1MrbzM5cf0QYfqj HIUzMXTGJdoPSock3379DSophSl/TAPRpzjN+7XIRsphhIs6YmyKw/IJsVGeq/jYm7d2JLMb8iZ lPlPtlMvUQgKKwAX+0F7vswnPgkiDM+zOhC5TN6yXZ3ATvKyRhP0nAyvBERyOZBCS9ZDzfxsS97 C4bc6lRF+rfnnRxS1Ji5QdWXoTPMHBuLPZHDQQlULcLIZNG3Gi1y2gSBnq97nwXCwpfeRn3WeR1 7S7X/lMiSaunrYxydMYb1nO1KT4oF+hwdf1WL1LHsejA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forwardemail.net; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From: CFBL-Address: CFBL-Feedback-ID; q=dns/txt; s=default; t=1795101678; bh=l97TtMy7x+yYt7ekyvNFTrCiW2KW55M+lbA28Kc94gs=; b=mtG47n/vJVOWdt2YfSsAAHaOecmmWCQQN2pIILF2BIdPyUh/Q2+LfETPvSHWTckuMr+zofWHO RIzMI70FmjWX7Q33vJWYmUWnQYvccYNH44nkY7rbOq4B131JLlu7KXFOs51equgRy+LX3/YVkxD P7srCkV0HsawOnY0sDSH3bU= CFBL-Feedback-ID: 6aff13eb83f3cb488062baa0:7efa6f550ad28fee942e68e7188c25ae CFBL-Address: abuse@forwardemail.net; report=arf X-Forward-Email-ID: 6aff13eb83f3cb488062baa0 X-Forward-Email-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-Forward-Email-Version: 2.19.33 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net From: Jonas Karlman To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH 4/8] ARM: dts: rockchip: Add Luckfox Lyra and Lyra Plus boards Date: Thu, 19 Nov 2026 15:20:47 +0000 Message-ID: <20261119152055.556266-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261119152055.556266-1-jonas@kwiboo.se> References: <20261119152055.556266-1-jonas@kwiboo.se> X-Mailing-List: linux-kernel@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 Luckfox Lyra and Lyra Plus is powered by the Rockchip RK3506G2 SoC, which integrates three Cortex-A7 cores, one Cortex-M0 core, and 128 MB of DDR3 memory. Link: https://wiki.luckfox.com/Luckfox-Lyra/Luckfox-Lyra Link: https://wiki.luckfox.com/Luckfox-Lyra/Luckfox-Lyra-Plus Signed-off-by: Jonas Karlman --- arch/arm/boot/dts/rockchip/Makefile | 4 +- .../dts/rockchip/rk3506-luckfox-lyra-plus.dts | 31 +++++ .../boot/dts/rockchip/rk3506-luckfox-lyra.dts | 9 ++ .../dts/rockchip/rk3506-luckfox-lyra.dtsi | 124 ++++++++++++++++++ 4 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra-plus.dts create mode 100644 arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dts create mode 100644 arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dtsi diff --git a/arch/arm/boot/dts/rockchip/Makefile b/arch/arm/boot/dts/rockchip/Makefile index e9f9e0ac3bfd..df620116bb2d 100644 --- a/arch/arm/boot/dts/rockchip/Makefile +++ b/arch/arm/boot/dts/rockchip/Makefile @@ -45,4 +45,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rk3288-veyron-pinky.dtb \ rk3288-veyron-speedy.dtb \ rk3288-veyron-tiger.dtb \ - rk3288-vyasa.dtb + rk3288-vyasa.dtb \ + rk3506-luckfox-lyra-plus.dtb \ + rk3506-luckfox-lyra.dtb diff --git a/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra-plus.dts b/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra-plus.dts new file mode 100644 index 000000000000..c8991f4179bd --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra-plus.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; +#include "rk3506-luckfox-lyra.dtsi" + +/ { + model = "Luckfox Lyra Plus"; + compatible = "luckfox,lyra-plus", "rockchip,rk3506"; + + aliases { + ethernet0 = &gmac1; + }; +}; + +&gmac1 { + assigned-clocks = <&cru CLK_MAC1>; + assigned-clock-rates = <50000000>; + phy-handle = <&rmii_phy1>; + pinctrl-names = "default"; + pinctrl-0 = <ð_rmii1_miim>, <ð_rmii1_tx_bus2>, + <ð_rmii1_rx_bus2>, <ð_rmii1_clk>; + clock_in_out = "output"; + status = "okay"; +}; + +&mdio1 { + rmii_phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; diff --git a/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dts b/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dts new file mode 100644 index 000000000000..b7f11c7c510f --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; +#include "rk3506-luckfox-lyra.dtsi" + +/ { + model = "Luckfox Lyra"; + compatible = "luckfox,lyra", "rockchip,rk3506"; +}; diff --git a/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dtsi b/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dtsi new file mode 100644 index 000000000000..d02d3a18b052 --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rk3506-luckfox-lyra.dtsi @@ -0,0 +1,124 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include +#include +#include "rk3506.dtsi" + +/ { + aliases { + mmc0 = &sdmmc; + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:1500000n8"; + }; + + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + button-recovery { + label = "Recovery"; + press-threshold-microvolt = <0>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + default-state = "on"; + function = LED_FUNCTION_HEARTBEAT; + gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&led1>; + linux,default-trigger = "heartbeat"; + }; + }; + + vcc_1v8: regulator-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3>; + }; + + vcc_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc5v0_sys>; + }; + + vcc3v3_sd: regulator-3v3-sd { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_sd"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3>; + }; + + vcc5v0_sys: regulator-5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; +}; + +&fspi { + status = "okay"; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + bootph-pre-ram; + bootph-some-ram; + spi-max-frequency = <80000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + +&pinctrl { + leds { + /omit-if-no-ref/ + led1: led1 { + rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&saradc { + vref-supply = <&vcc_1v8>; + status = "okay"; +}; + +&sdmmc { + cap-mmc-highspeed; + cap-sd-highspeed; + disable-wp; + no-sdio; + vmmc-supply = <&vcc3v3_sd>; + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; -- 2.56.1