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