Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH
0004  */
0005 
0006 /dts-v1/;
0007 #include "rk3368-lion.dtsi"
0008 
0009 / {
0010         model = "Theobroma Systems RK3368-uQ7 Baseboard";
0011         compatible = "tsd,rk3368-lion-haikou", "rockchip,rk3368";
0012 
0013         aliases {
0014                 mmc1 = &sdmmc;
0015         };
0016 
0017         chosen {
0018                 stdout-path = "serial0:115200n8";
0019         };
0020 
0021         i2cmux2 {
0022                 i2c@0 {
0023                         eeprom: eeprom@50 {
0024                                 compatible = "atmel,24c01";
0025                                 pagesize = <8>;
0026                                 reg = <0x50>;
0027                         };
0028                 };
0029         };
0030 
0031         leds {
0032                 pinctrl-0 = <&module_led_pins>, <&sd_card_led_pin>;
0033 
0034                 sd_card_led: led-3 {
0035                         label = "sd_card_led";
0036                         gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>;
0037                         linux,default-trigger = "mmc0";
0038                 };
0039         };
0040 
0041         dc_12v: dc-12v {
0042                 compatible = "regulator-fixed";
0043                 regulator-name = "dc_12v";
0044                 regulator-always-on;
0045                 regulator-boot-on;
0046                 regulator-min-microvolt = <12000000>;
0047                 regulator-max-microvolt = <12000000>;
0048         };
0049 
0050         vcc3v3_baseboard: vcc3v3-baseboard {
0051                 compatible = "regulator-fixed";
0052                 regulator-name = "vcc3v3_baseboard";
0053                 regulator-always-on;
0054                 regulator-boot-on;
0055                 regulator-min-microvolt = <3300000>;
0056                 regulator-max-microvolt = <3300000>;
0057                 vin-supply = <&dc_12v>;
0058         };
0059 
0060         vcc5v0_otg: vcc5v0-otg-regulator {
0061                 compatible = "regulator-fixed";
0062                 enable-active-high;
0063                 gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
0064                 pinctrl-names = "default";
0065                 pinctrl-0 = <&otg_vbus_drv>;
0066                 regulator-name = "vcc5v0_otg";
0067                 regulator-always-on;
0068         };
0069 };
0070 
0071 &sdmmc {
0072         bus-width = <4>;
0073         cap-mmc-highspeed;
0074         cap-sd-highspeed;
0075         cd-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>;
0076         disable-wp;
0077         max-frequency = <25000000>;
0078         pinctrl-names = "default";
0079         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
0080         rockchip,default-sample-phase = <90>;
0081         vmmc-supply = <&vcc3v3_baseboard>;
0082         status = "okay";
0083 };
0084 
0085 &spi2 {
0086         cs-gpios = <0>, <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>;
0087         status = "okay";
0088 };
0089 
0090 &usb_otg {
0091         dr_mode = "otg";
0092         status = "okay";
0093 };
0094 
0095 &uart0 {
0096         pinctrl-names = "default";
0097         pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
0098         status = "okay";
0099 };
0100 
0101 &uart1 {
0102         /* alternate function of GPIO5/6 */
0103         status = "disabled";
0104 };
0105 
0106 &pinctrl {
0107         pinctrl-names = "default";
0108         pinctrl-0 = <&haikou_pin_hog>;
0109 
0110         hog {
0111                 haikou_pin_hog: haikou-pin-hog {
0112                         rockchip,pins =
0113                                 /* LID_BTN */
0114                                 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
0115                                 /* BATLOW# */
0116                                 <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>,
0117                                 /* SLP_BTN# */
0118                                 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>,
0119                                 /* BIOS_DISABLE# */
0120                                 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
0121                 };
0122         };
0123 
0124         leds {
0125                 sd_card_led_pin: sd-card-led-pin {
0126                         rockchip,pins =
0127                                 <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
0128                 };
0129         };
0130 
0131         sdmmc {
0132                 sdmmc_cd_pin: sdmmc-cd-pin {
0133                         rockchip,pins =
0134                                 <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
0135                 };
0136         };
0137 
0138         usb_otg {
0139                 otg_vbus_drv: otg-vbus-drv {
0140                         rockchip,pins =
0141                                 <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
0142                 };
0143         };
0144 };