// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2022 FriendlyElec Computer Tech. Co., Ltd. * (http://www.friendlyelec.com) */ /dts-v1/; #include "rk3568.dtsi" #include "rk3568-nanopi5-common.dtsi" / { model = "FriendlyElec NanoPi R5C"; compatible = "friendlyelec,nanopi-r5c", "rockchip,rk3568"; aliases { ethernet0 = &r8125_1; ethernet1 = &r8125_2; }; gpio_keys: gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&key1_pin>; button@1 { debounce-interval = <50>; gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>; label = "K1"; linux,code = ; wakeup-source; }; }; gpio_leds: gpio-leds { compatible = "gpio-leds"; sys_led: led-0 { gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>; label = "sys_led"; linux,default-trigger = "heartbeat"; pinctrl-names = "default"; pinctrl-0 = <&sys_led_pin>; }; wan_led: led-1 { gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; label = "wan_led"; pinctrl-names = "default"; pinctrl-0 = <&wan_led_pin>; }; lan1_led: led-2 { gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; label = "lan1_led"; pinctrl-names = "default"; pinctrl-0 = <&lan1_led_pin>; }; lan2_led: led-3 { gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>; label = "lan2_led"; pinctrl-names = "default"; pinctrl-0 = <&lan2_led_pin>; }; }; m2_wlan_radio: m2-wlan-radio { compatible = "rfkill-gpio"; type = "wlan"; shutdown-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; }; }; &combphy0_us { status = "okay"; }; &combphy1_usq { status = "okay"; }; &combphy2_psq { status = "okay"; }; &dfi { status = "disabled"; }; &dmc { status = "disabled"; }; &mach { hwrev = <2>; model = "NanoPi R5C"; }; &i2c5 { status = "okay"; hym8563: hym8563@51 { compatible = "haoyu,hym8563"; reg = <0x51>; pinctrl-names = "default"; pinctrl-0 = <&rtc_int>; interrupt-parent = <&gpio0>; interrupts = ; wakeup-source; }; }; &pcie30phy { status = "okay"; }; &pcie2x1 { num-viewport = <4>; pinctrl-names = "default"; pinctrl-0 = <&m2_w_disable_pin>; reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; status = "okay"; }; &pcie3x1 { num-viewport = <4>; rockchip,bifurcation; rockchip,init-delay-ms = <100>; reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; status = "okay"; pcie@10 { reg = <0x00100000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; r8125_2: pcie@10,0 { reg = <0x000000 0 0 0 0>; local-mac-address = [ 00 00 00 00 00 00 ]; }; }; }; &pcie3x2 { num-viewport = <4>; rockchip,bifurcation; reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; status = "okay"; pcie@20 { reg = <0x00200000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; r8125_1: pcie@20,0 { reg = <0x000000 0 0 0 0>; local-mac-address = [ 00 00 00 00 00 00 ]; }; }; }; &pinctrl { gpio-key { key1_pin: key1-pin { rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>; }; }; gpio-leds { sys_led_pin: sys-led-pin { rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; wan_led_pin: wan-led-pin { rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; }; lan1_led_pin: lan1-led-pin { rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; }; lan2_led_pin: lan2-led-pin { rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; }; }; m2-pins { m2_w_disable_pin: m2-w-disable-pin { rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_output_high>; }; }; rtc { rtc_int: rtc-int { rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>; }; }; }; &pwm0 { status = "disabled"; }; &sata2 { status = "disabled"; }; &sfc { status = "disabled"; }; &simple_bat { voltage-max-design-microvolt = <5400000>; voltage-min-design-microvolt = <4200000>; };