1/* 2 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT). 5 */ 6 7/dts-v1/; 8 9#include "rk3229-at-som.dtsi" 10 11/ { 12 model = "RK3229 ANDROID THINGS Full Function Board"; 13 compatible = "rockchip,rk3229-at-3nod", "rockchip,rk3229"; 14 15 gpio_keys { 16 compatible = "gpio-keys"; 17 #address-cells = <1>; 18 #size-cells = <0>; 19 autorepeat; 20 21 pinctrl-names = "default"; 22 pinctrl-0 = <&pwr_key>; 23 24 power_key { 25 label = "GPIO Key Power"; 26 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 27 linux,code = <116>; 28 debounce-interval = <100>; 29 wakeup-source; 30 }; 31 }; 32 33 sdio_pwrseq: sdio-pwrseq { 34 compatible = "mmc-pwrseq-simple"; 35 clocks = <&rk805 1>; 36 clock-names = "ext_clock"; 37 pinctrl-names = "default"; 38 pinctrl-0 = <&wifi_enable_h>; 39 40 /* 41 * On the module itself this is one of these (depending 42 * on the actual card populated): 43 * - SDIO_RESET_L_WL_REG_ON 44 * - PDN (power down when low) 45 */ 46 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* GPIO3_B7 */ 47 }; 48 49 wireless-bluetooth { 50 compatible = "bluetooth-platdata"; 51 clocks = <&rk805 1>; 52 clock-names = "ext_clock"; 53 uart_rts_gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; 54 pinctrl-names = "default", "rts_gpio"; 55 pinctrl-0 = <&uart11_rts>; 56 pinctrl-1 = <&uart11_rts_gpio>; 57 BT,reset_gpio = <&gpio2 29 GPIO_ACTIVE_HIGH>; 58 BT,wake_gpio = <&gpio3 27 GPIO_ACTIVE_HIGH>; 59 BT,wake_host_irq = <&gpio3 26 GPIO_ACTIVE_HIGH>; 60 status = "okay"; 61 }; 62 63 wireless-wlan { 64 compatible = "wlan-platdata"; 65 rockchip,grf = <&grf>; 66 wifi_chip_type = "ap6255"; 67 WIFI,host_wake_irq = <&gpio0 28 GPIO_ACTIVE_HIGH>; 68 status = "okay"; 69 }; 70}; 71 72&emmc { 73 /* 74 * enable emmc ddr mode, choose the 75 * according parameter base on the emmc 76 * io voltage. 77 */ 78 mmc-ddr-1_8v; 79 status = "okay"; 80}; 81 82&gpu { 83 status = "okay"; 84}; 85 86&nandc { 87 status = "disabled"; 88}; 89 90&pinctrl { 91 pinctrl-names = "default"; 92 /* 93 * sdmmc, pwm0, pwm2, ir, and spdif pins are defaultly set as gpio, 94 * if you want to enable it, please remove below besides fixed_gpio. 95 */ 96 pinctrl-0 = <&sdmmc_gpio &pwm0_gpio &pwm2_gpio 97 &ir_gpio &spdif_gpio &fixed_gpio>; 98 99 keys { 100 pwr_key: pwr-key { 101 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_down>; 102 }; 103 }; 104 105 sdio-pwrseq { 106 wifi_enable_h: wifi-enable-h { 107 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 108 }; 109 }; 110}; 111 112&reboot_mode { 113 /delete-property/ mode-bootloader; 114}; 115 116&sdio { 117 max-frequency = <150000000>; 118 mmc-pwrseq = <&sdio_pwrseq>; 119 num-slots = <1>; 120 sd-uhs-sdr104; 121 status = "okay"; 122}; 123 124&vop { 125 assigned-clocks = <&cru DCLK_VOP>; 126 assigned-clock-parents = <&cru HDMIPHY>; 127 status = "okay"; 128}; 129 130&vop_mmu { 131 status = "okay"; 132}; 133