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