// SPDX-License-Identifier: (GPL-2.0 OR MIT) /* * Copyright (C) 2024 Thomas Bonnefille */ /dts-v1/; #include "sg2002.dtsi" / { model = "LicheeRV Nano B"; compatible = "sipeed,licheerv-nano-b", "sipeed,licheerv-nano", "sophgo,sg2002"; aliases { gpio0 = &gpio0; gpio1 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; serial3 = &uart3; serial4 = &uart4; }; chosen { stdout-path = "serial0:115200n8"; }; }; &osc { clock-frequency = <25000000>; }; &pinctrl { uart0_cfg: uart0-cfg { uart0-pins { pinmux = , ; bias-pull-up; drive-strength-microamp = <10800>; power-source = <3300>; }; }; sdhci0_cfg: sdhci0-cfg { sdhci0-clk-pins { pinmux = ; bias-pull-up; drive-strength-microamp = <16100>; power-source = <3300>; }; sdhci0-cmd-pins { pinmux = ; bias-pull-up; drive-strength-microamp = <10800>; power-source = <3300>; }; sdhci0-data-pins { pinmux = , , , ; bias-pull-up; drive-strength-microamp = <10800>; power-source = <3300>; }; sdhci0-cd-pins { pinmux = ; bias-pull-up; drive-strength-microamp = <10800>; power-source = <3300>; }; }; }; &sdhci0 { pinctrl-0 = <&sdhci0_cfg>; pinctrl-names = "default"; status = "okay"; bus-width = <4>; no-1-8-v; no-mmc; no-sdio; disable-wp; }; &uart0 { pinctrl-0 = <&uart0_cfg>; pinctrl-names = "default"; status = "okay"; };