1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org> 4 */ 5 6/dts-v1/; 7 8#include "cv1800b.dtsi" 9 10/ { 11 model = "Milk-V Duo"; 12 compatible = "milkv,duo", "sophgo,cv1800b"; 13 14 aliases { 15 serial0 = &uart0; 16 serial1 = &uart1; 17 serial2 = &uart2; 18 serial3 = &uart3; 19 serial4 = &uart4; 20 }; 21 22 chosen { 23 stdout-path = "serial0:115200n8"; 24 }; 25 26 reserved-memory { 27 #address-cells = <1>; 28 #size-cells = <1>; 29 ranges; 30 31 coprocessor_rtos: region@83f40000 { 32 reg = <0x83f40000 0xc0000>; 33 no-map; 34 }; 35 }; 36}; 37 38&osc { 39 clock-frequency = <25000000>; 40}; 41 42&pinctrl { 43 uart0_cfg: uart0-cfg { 44 uart0-pins { 45 pinmux = <PINMUX(PIN_UART0_TX, 0)>, 46 <PINMUX(PIN_UART0_RX, 0)>; 47 bias-pull-up; 48 drive-strength-microamp = <10800>; 49 power-source = <3300>; 50 }; 51 }; 52 53 sdhci0_cfg: sdhci0-cfg { 54 sdhci0-clk-pins { 55 pinmux = <PINMUX(PIN_SD0_CLK, 0)>; 56 bias-pull-up; 57 drive-strength-microamp = <16100>; 58 power-source = <3300>; 59 }; 60 61 sdhci0-cmd-pins { 62 pinmux = <PINMUX(PIN_SD0_CMD, 0)>; 63 bias-pull-up; 64 drive-strength-microamp = <10800>; 65 power-source = <3300>; 66 }; 67 68 sdhci0-data-pins { 69 pinmux = <PINMUX(PIN_SD0_D0, 0)>, 70 <PINMUX(PIN_SD0_D1, 0)>, 71 <PINMUX(PIN_SD0_D2, 0)>, 72 <PINMUX(PIN_SD0_D3, 0)>; 73 bias-pull-up; 74 drive-strength-microamp = <10800>; 75 power-source = <3300>; 76 }; 77 78 sdhci0-cd-pins { 79 pinmux = <PINMUX(PIN_SD0_CD, 0)>; 80 bias-pull-up; 81 drive-strength-microamp = <10800>; 82 power-source = <3300>; 83 }; 84 }; 85}; 86 87&sdhci0 { 88 pinctrl-0 = <&sdhci0_cfg>; 89 pinctrl-names = "default"; 90 status = "okay"; 91 bus-width = <4>; 92 no-1-8-v; 93 no-mmc; 94 no-sdio; 95 disable-wp; 96}; 97 98&uart0 { 99 pinctrl-0 = <&uart0_cfg>; 100 pinctrl-names = "default"; 101 status = "okay"; 102}; 103