// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd. * (http://www.friendlyarm.com) */ /dts-v1/; #include "rk3328-nanopi-r2-common.dtsi" / { model = "FriendlyElec NanoPi NEO3 Purple"; compatible = "friendlyelec,nanopi-neo3-purple", "rockchip,rk3328"; vcc_rtl8153: vcc-rtl8153-regulator { compatible = "regulator-fixed"; gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&usb30_en_drv>; regulator-always-on; regulator-name = "vcc_rtl8153"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; off-on-delay-us = <5000>; enable-active-high; }; }; &mach { hwrev = <0x23>; model = "NanoPi NEO3 Purple"; }; &emmc { status = "okay"; }; &leds { status = "okay"; led@1 { gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; label = "sys_led"; linux,default-trigger = "heartbeat"; linux,default-trigger-delay-ms = <0>; }; led@2 { gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; label = "wan_led"; }; led@3 { gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; label = "lan_led"; }; led@4 { gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; label = "red_led"; default-state = "off"; }; }; &leds_gpio { rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>, <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>, <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>, <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; }; &vccio_sd { status = "okay"; }; &io_domains { vccio3-supply = <&vccio_sd>; }; &sdmmc { vqmmc-supply = <&vccio_sd>; max-frequency = <150000000>; sd-uhs-sdr50; sd-uhs-sdr104; status = "okay"; };