~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dts

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php