VS-RK3399 内核的kernel的dts简写: /* * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /dts-v1/; #include <dt-bindings/input/input.h> #include "rk3399-videostrong-board.dtsi" #include "rk3399-android.dtsi" #include "rk3399-vop-clk-set.dtsi" #include <dt-bindings/sensor-dev.h> / { model = "Rockchip RK3399 VideoStrong Board MID (Android)"; compatible = "rockchip,android", "rockchip,rk3399-VideoStrong-boad", "rockchip,rk3399"; backlight: backlight { //背光控制 status = "disabled"; compatible = "pwm-backlight"; pwms = <&pwm0 0 25000 0>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; default-brightness-level = <200>; }; test-power { status = "okay"; }; vsgpio_set { //自定义 compatible = "videostrong,gpio"; pinctrl-names = "default"; pinctrl-0 = <&b3G_gpio>; 3G_power = <&gpio0 2 GPIO_ACTIVE_LOW>; 3G_Spk_GP = <&gpio0 11 GPIO_ACTIVE_HIGH>; POWR_LED = <&gpio1 1 GPIO_ACTIVE_HIGH>; status = "okay"; }; vsproc_set { compatible = "videostrong,proc"; status = "disabled"; }; }; &backlight { status = "okay"; #enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; }; &i2s1 { status = "okay"; rockchip,i2s-broken-burst-len; rockchip,playback-channels = <2>; rockchip,capture-channels = <2>; #sound-dai-cells = <0>; }; &i2s2 { //打开音频通道 status = "okay"; }; &hdmi {//打开音频通道 status = "okay"; }; &hdmi_sound { status = "okay"; }; &i2c1 { status = "okay"; }; &i2c4 { status = "okay"; gslx680@40 { //配置触摸屏 status = "disabled"; compatible = "videostrong,gslx680"; reg = <0x40>; touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>; reset-gpio = <&gpio1 22 GPIO_ACTIVE_LOW>; max_x = <1024>; max_y = <600>; }; gt9xx@5d { //触摸屏配置 status = "disabled"; compatible = "videostrong,gt9xx"; reg = <0x5d>; touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>; reset-gpio = <&gpio1 22 GPIO_ACTIVE_LOW>; tp-size=<911>; max-x = <1024>; max-y = <600>; }; mipitolvds@5a { //mipi 转LVDS配置 status = "okay"; compatible = "videostrong,mipitolvds"; reset-gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>; reg = <0x2d>; }; lsm330_accel@1e { //重力定义 status = "okay"; compatible = "lsm330_acc"; pinctrl-names = "default"; pinctrl-0 = <&lsm330a_irq_gpio>; reg = <0x1e>; irq-gpio = <&gpio4 26 IRQ_TYPE_EDGE_RISING>; type = <SENSOR_TYPE_ACCEL>; irq_enable = <0>; poll_delay_ms = <30>; layout = <4>; }; lsm330_gyro@6a { status = "okay"; compatible = "lsm330_gyro"; pinctrl-names = "default"; pinctrl-0 = <&lsm330g_irq_gpio>; reg = <0x6a>; irq-gpio = <&gpio1 24 IRQ_TYPE_EDGE_RISING>; type = <SENSOR_TYPE_GYROSCOPE>; irq_enable = <0>; poll_delay_ms = <30>; }; /* sensor@0f { status = "okay"; compatible = "ak8963"; pinctrl-names = "default"; pinctrl-0 = <&ak8963_irq_gpio>; reg = <0x0f>; type = <SENSOR_TYPE_COMPASS>; irq-gpio = <&gpio4 26 IRQ_TYPE_EDGE_RISING>; irq_enable = <0>; poll_delay_ms = <30>; layout = <3>; }; mma7600@4c { status = "okay"; compatible = "gs_mma7660"; pinctrl-names = "default"; pinctrl-0 = <&mma7660_irq_gpio>; reg = <0x4c>; irq-gpio = <&gpio4 26 IRQ_TYPE_EDGE_RISING>; type = <SENSOR_TYPE_ACCEL>; irq_enable = <1>; poll_delay_ms = <30>; }; */ }; &pwm3 { //遥控器配置 status = "okay"; interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>; compatible = "rockchip,remotectl-pwm"; remote_pwm_id = <3>; handle_cpu_id = <0>; ir_key0 { rockchip,usercode = <0xff00>; rockchip,key_table = <0xa6 KEY_POWER>, <0xf2 KEY_HOME>, <0xfa KEY_BACK>, <0xba KEY_MENU>, <0xf9 KEY_UP>, <0xe9 KEY_DOWN>, <0xa5 KEY_LEFT>, <0xe4 KEY_RIGHT>, <0xe5 KEY_ENTER>, <0xec KEY_VOLUMEUP>, <0xe8 KEY_VOLUMEDOWN>, <0xe6 KEY_MUTE>, <0xed 388>, <0xad KEY_1>, <0xaf KEY_2>, <0xef KEY_3>, <0xa9 KEY_4>, <0xab KEY_5>, <0xeb KEY_6>, <0xb1 KEY_7>, <0xb3 KEY_8>, <0xf3 KEY_9>, <0xf0 KEY_0>, <0xae KEY_BACKSPACE>, <0xde KEY_SEARCH>; }; ir_key1 { rockchip,usercode = <0xfe01>; rockchip,key_table = <0xb0 KEY_BACK>, <0xb4 KEY_F12>, <0xb2 KEY_F11>, <0xed 388>, <0xde KEY_SEARCH>; }; }; &isp0 { status = "okay"; }; &isp1 { status = "okay"; }; &isp0_mmu { status = "okay"; }; &isp1_mmu { status = "okay"; }; &pcie_phy { status = "okay"; }; &pcie0 { ep-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; num-lanes = <4>; pinctrl-names = "default"; pinctrl-0 = <&pcie_clkreqn>; status = "okay"; }; &mipi_dsi { //MIPI接口的LCD配置 status = "okay"; panel { compatible ="simple-panel-dsi"; reg = <0>; backlight = <&backlight>; enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_VIDEO_SYNC_PULSE)>; dsi,format = <MIPI_DSI_FMT_RGB888>; dsi,lanes = <4>; status = "okay"; display-timings { native-mode = <&timing0>; timing0: timing0 { clock-frequency = <65000000>; hactive = <1024>; vactive = <600>; hback-porch = <80>; hfront-porch = <80>; vback-porch = <20>; vfront-porch = <12>; hsync-len = <2>; vsync-len = <3>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <0>; }; }; }; }; &route_hdmi { status = "okay"; connect = <&vopb_out_hdmi>; }; &route_mipi { //MIPI开启开机图片功能 connect = <&vopl_out_mipi>; status = "okay"; }; &mipi_in_vopb { status = "disabled"; }; &hdmi_in_vopl{ status = "disabled"; }; &vopb { assigned-clocks = <&cru DCLK_VOP0_DIV>; assigned-clock-parents = <&cru PLL_VPLL>; }; &vopl { assigned-clocks = <&cru DCLK_VOP1_DIV>; assigned-clock-parents = <&cru PLL_CPLL>; }; &pinctrl { lcd-panel { lcd_panel_reset: lcd-panel-reset { rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_up>; }; }; hdmiin { hdmiin_gpios: hdmiin_gpios { rockchip,pins = <2 5 RK_FUNC_GPIO &pcfg_pull_none>, <2 6 RK_FUNC_GPIO &pcfg_pull_none>, <2 7 RK_FUNC_GPIO &pcfg_pull_none>, <2 8 RK_FUNC_GPIO &pcfg_pull_none>, <2 9 RK_FUNC_GPIO &pcfg_pull_none>, <2 12 RK_FUNC_GPIO &pcfg_pull_none>; }; }; ak8963{ ak8963_irq_gpio:ak8963_irq_gpio{ rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_pull_none>; }; }; mma7660 { mma7660_irq_gpio: mma7660_irq_gpio { rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_pull_none>; }; }; lsm330_a { lsm330a_irq_gpio: lsm330a-irq-gpio { rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_pull_none>; }; }; lsm330_g { lsm330g_irq_gpio: lsm330g-irq-gpio { rockchip,pins = <1 24 RK_FUNC_GPIO &pcfg_pull_none>; }; }; vsgpio_back {//配置GPIO输出功能 b3G_gpio: b3G_gpio { rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>, <2 12 RK_FUNC_GPIO &pcfg_pull_up>, <2 27 RK_FUNC_GPIO &pcfg_pull_up>, <2 28 RK_FUNC_GPIO &pcfg_pull_up>; }; }; }; |
VS-RK3399 内核的kernel的dts简写
最新推荐文章于 2023-05-11 01:02:00 发布