1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH 4 */ 5 6 /dts-v1/; 7 #include "rk3368-lion.dtsi" 8 9 / { 10 model = "Theobroma Systems RK3368-uQ7 Baseboard"; 11 compatible = "tsd,rk3368-lion-haikou", "rockchip,rk3368"; 12 13 aliases { 14 mmc1 = &sdmmc; 15 }; 16 17 chosen { 18 stdout-path = "serial0:115200n8"; 19 }; 20 21 i2cmux2 { 22 i2c@0 { 23 eeprom: eeprom@50 { 24 compatible = "atmel,24c01"; 25 pagesize = <8>; 26 reg = <0x50>; 27 }; 28 }; 29 }; 30 31 leds { 32 pinctrl-0 = <&module_led_pins>, <&sd_card_led_pin>; 33 34 sd_card_led: led-3 { 35 label = "sd_card_led"; 36 gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>; 37 linux,default-trigger = "mmc0"; 38 }; 39 }; 40 41 dc_12v: dc-12v { 42 compatible = "regulator-fixed"; 43 regulator-name = "dc_12v"; 44 regulator-always-on; 45 regulator-boot-on; 46 regulator-min-microvolt = <12000000>; 47 regulator-max-microvolt = <12000000>; 48 }; 49 50 vcc3v3_baseboard: vcc3v3-baseboard { 51 compatible = "regulator-fixed"; 52 regulator-name = "vcc3v3_baseboard"; 53 regulator-always-on; 54 regulator-boot-on; 55 regulator-min-microvolt = <3300000>; 56 regulator-max-microvolt = <3300000>; 57 vin-supply = <&dc_12v>; 58 }; 59 60 vcc5v0_otg: vcc5v0-otg-regulator { 61 compatible = "regulator-fixed"; 62 enable-active-high; 63 gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; 64 pinctrl-names = "default"; 65 pinctrl-0 = <&otg_vbus_drv>; 66 regulator-name = "vcc5v0_otg"; 67 regulator-always-on; 68 }; 69 }; 70 71 &sdmmc { 72 bus-width = <4>; 73 cap-mmc-highspeed; 74 cap-sd-highspeed; 75 cd-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>; 76 disable-wp; 77 max-frequency = <25000000>; 78 pinctrl-names = "default"; 79 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; 80 rockchip,default-sample-phase = <90>; 81 vmmc-supply = <&vcc3v3_baseboard>; 82 status = "okay"; 83 }; 84 85 &spi2 { 86 cs-gpios = <0>, <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>; 87 status = "okay"; 88 }; 89 90 &usb_otg { 91 dr_mode = "otg"; 92 status = "okay"; 93 }; 94 95 &uart0 { 96 pinctrl-names = "default"; 97 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 98 status = "okay"; 99 }; 100 101 &uart1 { 102 /* alternate function of GPIO5/6 */ 103 status = "disabled"; 104 }; 105 106 &pinctrl { 107 pinctrl-names = "default"; 108 pinctrl-0 = <&haikou_pin_hog>; 109 110 hog { 111 haikou_pin_hog: haikou-pin-hog { 112 rockchip,pins = 113 /* LID_BTN */ 114 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, 115 /* BATLOW# */ 116 <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>, 117 /* SLP_BTN# */ 118 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, 119 /* BIOS_DISABLE# */ 120 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 121 }; 122 }; 123 124 leds { 125 sd_card_led_pin: sd-card-led-pin { 126 rockchip,pins = 127 <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 128 }; 129 }; 130 131 sdmmc { 132 sdmmc_cd_pin: sdmmc-cd-pin { 133 rockchip,pins = 134 <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; 135 }; 136 }; 137 138 usb_otg { 139 otg_vbus_drv: otg-vbus-drv { 140 rockchip,pins = 141 <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 142 }; 143 }; 144 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.