1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) << 2 /* 1 /* 3 * Google Gru-Kevin Rev 6+ board device tree s 2 * Google Gru-Kevin Rev 6+ board device tree source 4 * 3 * 5 * Copyright 2016-2017 Google, Inc 4 * Copyright 2016-2017 Google, Inc >> 5 * >> 6 * This file is dual-licensed: you can use it either under the terms >> 7 * of the GPL or the X11 license, at your option. Note that this dual >> 8 * licensing only applies to this file, and not this project as a >> 9 * whole. >> 10 * >> 11 * a) This file is free software; you can redistribute it and/or >> 12 * modify it under the terms of the GNU General Public License as >> 13 * published by the Free Software Foundation; either version 2 of the >> 14 * License, or (at your option) any later version. >> 15 * >> 16 * This file is distributed in the hope that it will be useful, >> 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 19 * GNU General Public License for more details. >> 20 * >> 21 * Or, alternatively, >> 22 * >> 23 * b) Permission is hereby granted, free of charge, to any person >> 24 * obtaining a copy of this software and associated documentation >> 25 * files (the "Software"), to deal in the Software without >> 26 * restriction, including without limitation the rights to use, >> 27 * copy, modify, merge, publish, distribute, sublicense, and/or >> 28 * sell copies of the Software, and to permit persons to whom the >> 29 * Software is furnished to do so, subject to the following >> 30 * conditions: >> 31 * >> 32 * The above copyright notice and this permission notice shall be >> 33 * included in all copies or substantial portions of the Software. >> 34 * >> 35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >> 36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >> 37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >> 38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >> 39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >> 40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >> 41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> 42 * OTHER DEALINGS IN THE SOFTWARE. 6 */ 43 */ 7 44 8 /dts-v1/; 45 /dts-v1/; 9 #include "rk3399-gru-chromebook.dtsi" !! 46 #include "rk3399-gru.dtsi" 10 #include <dt-bindings/input/linux-event-codes. 47 #include <dt-bindings/input/linux-event-codes.h> 11 48 12 /* 49 /* 13 * Kevin-specific things 50 * Kevin-specific things 14 * 51 * 15 * Things in this section should use names fro 52 * Things in this section should use names from Kevin schematic since no 16 * equivalent exists in Gru schematic. If ref 53 * equivalent exists in Gru schematic. If referring to signals that exist 17 * in Gru we use the Gru names, though. Confu 54 * in Gru we use the Gru names, though. Confusing enough for you? 18 */ 55 */ 19 / { 56 / { 20 model = "Google Kevin"; 57 model = "Google Kevin"; 21 compatible = "google,kevin-rev15", "go 58 compatible = "google,kevin-rev15", "google,kevin-rev14", 22 "google,kevin-rev13", "go 59 "google,kevin-rev13", "google,kevin-rev12", 23 "google,kevin-rev11", "go 60 "google,kevin-rev11", "google,kevin-rev10", 24 "google,kevin-rev9", "goo 61 "google,kevin-rev9", "google,kevin-rev8", 25 "google,kevin-rev7", "goo 62 "google,kevin-rev7", "google,kevin-rev6", 26 "google,kevin", "google,g 63 "google,kevin", "google,gru", "rockchip,rk3399"; 27 chassis-type = "convertible"; << 28 64 29 /* Power tree */ 65 /* Power tree */ 30 66 31 p3_3v_dig: p3-3v-dig { 67 p3_3v_dig: p3-3v-dig { 32 compatible = "regulator-fixed" 68 compatible = "regulator-fixed"; 33 regulator-name = "p3.3v_dig"; 69 regulator-name = "p3.3v_dig"; 34 pinctrl-names = "default"; 70 pinctrl-names = "default"; 35 pinctrl-0 = <&cpu3_pen_pwr_en> 71 pinctrl-0 = <&cpu3_pen_pwr_en>; 36 72 37 enable-active-high; 73 enable-active-high; 38 gpio = <&gpio4 30 GPIO_ACTIVE_ 74 gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>; 39 vin-supply = <&pp3300>; 75 vin-supply = <&pp3300>; 40 }; 76 }; 41 77 42 edp_panel: edp-panel { !! 78 backlight: backlight { 43 compatible = "sharp,lq123p1jx3 !! 79 compatible = "pwm-backlight"; 44 backlight = <&backlight>; !! 80 pwms = <&cros_ec_pwm 1>; >> 81 brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 >> 82 17 18 19 20 21 22 23 24 25 26 27 28 29 30 >> 83 31 32 33 34 35 36 37 38 39 40 41 42 43 44 >> 84 45 46 47 48 49 50 51 52 53 54 55 56 57 58 >> 85 59 60 61 62 63 64 65 66 67 68 69 70 71 72 >> 86 73 74 75 76 77 78 79 80 81 82 83 84 85 86 >> 87 87 88 89 90 91 92 93 94 95 96 97 98 99 100>; >> 88 default-brightness-level = <51>; >> 89 enable-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; 45 power-supply = <&pp3300_disp>; 90 power-supply = <&pp3300_disp>; 46 !! 91 pinctrl-names = "default"; 47 panel-timing { !! 92 pinctrl-0 = <&bl_en>; 48 clock-frequency = <266 !! 93 pwm-delay-us = <10000>; 49 hactive = <2400>; << 50 hfront-porch = <48>; << 51 hback-porch = <84>; << 52 hsync-len = <32>; << 53 hsync-active = <0>; << 54 vactive = <1600>; << 55 vfront-porch = <3>; << 56 vback-porch = <120>; << 57 vsync-len = <10>; << 58 vsync-active = <0>; << 59 }; << 60 << 61 port { << 62 panel_in_edp: endpoint << 63 remote-endpoin << 64 }; << 65 }; << 66 }; 94 }; 67 95 68 thermistor_ppvar_bigcpu: thermistor-pp 96 thermistor_ppvar_bigcpu: thermistor-ppvar-bigcpu { 69 compatible = "murata,ncp15wb47 97 compatible = "murata,ncp15wb473"; 70 pullup-uv = <1800000>; 98 pullup-uv = <1800000>; 71 pullup-ohm = <25500>; 99 pullup-ohm = <25500>; 72 pulldown-ohm = <0>; 100 pulldown-ohm = <0>; 73 io-channels = <&saradc 2>; 101 io-channels = <&saradc 2>; 74 #thermal-sensor-cells = <0>; 102 #thermal-sensor-cells = <0>; 75 }; 103 }; 76 104 77 thermistor_ppvar_litcpu: thermistor-pp 105 thermistor_ppvar_litcpu: thermistor-ppvar-litcpu { 78 compatible = "murata,ncp15wb47 106 compatible = "murata,ncp15wb473"; 79 pullup-uv = <1800000>; 107 pullup-uv = <1800000>; 80 pullup-ohm = <25500>; 108 pullup-ohm = <25500>; 81 pulldown-ohm = <0>; 109 pulldown-ohm = <0>; 82 io-channels = <&saradc 3>; 110 io-channels = <&saradc 3>; 83 #thermal-sensor-cells = <0>; 111 #thermal-sensor-cells = <0>; 84 }; 112 }; 85 }; 113 }; 86 114 87 &backlight { << 88 pwms = <&cros_ec_pwm 1>; << 89 }; << 90 << 91 &gpio_keys { 115 &gpio_keys { 92 pinctrl-names = "default"; 116 pinctrl-names = "default"; 93 pinctrl-0 = <&bt_host_wake_l>, <&cpu1_ 117 pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>; 94 118 95 switch-pen-insert { !! 119 pen-insert { 96 label = "Pen Insert"; 120 label = "Pen Insert"; 97 /* Insert = low, eject = high 121 /* Insert = low, eject = high */ 98 gpios = <&gpio0 13 GPIO_ACTIVE 122 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 99 linux,code = <SW_PEN_INSERTED> 123 linux,code = <SW_PEN_INSERTED>; 100 linux,input-type = <EV_SW>; 124 linux,input-type = <EV_SW>; 101 wakeup-source; 125 wakeup-source; 102 }; 126 }; 103 }; 127 }; 104 128 105 &thermal_zones { 129 &thermal_zones { 106 bigcpu_reg_thermal: bigcpu-reg-thermal 130 bigcpu_reg_thermal: bigcpu-reg-thermal { 107 polling-delay-passive = <100>; 131 polling-delay-passive = <100>; /* milliseconds */ 108 polling-delay = <1000>; /* mil 132 polling-delay = <1000>; /* milliseconds */ 109 thermal-sensors = <&thermistor 133 thermal-sensors = <&thermistor_ppvar_bigcpu 0>; 110 sustainable-power = <4000>; 134 sustainable-power = <4000>; 111 135 112 ppvar_bigcpu_trips: trips { 136 ppvar_bigcpu_trips: trips { 113 ppvar_bigcpu_on: ppvar 137 ppvar_bigcpu_on: ppvar-bigcpu-on { 114 temperature = 138 temperature = <40000>; /* millicelsius */ 115 hysteresis = < 139 hysteresis = <2000>; /* millicelsius */ 116 type = "passiv 140 type = "passive"; 117 }; 141 }; 118 142 119 ppvar_bigcpu_alert: pp 143 ppvar_bigcpu_alert: ppvar-bigcpu-alert { 120 temperature = 144 temperature = <50000>; /* millicelsius */ 121 hysteresis = < 145 hysteresis = <2000>; /* millicelsius */ 122 type = "passiv 146 type = "passive"; 123 }; 147 }; 124 148 125 ppvar_bigcpu_crit: ppv 149 ppvar_bigcpu_crit: ppvar-bigcpu-crit { 126 temperature = 150 temperature = <90000>; /* millicelsius */ 127 hysteresis = < 151 hysteresis = <0>; /* millicelsius */ 128 type = "critic 152 type = "critical"; 129 }; 153 }; 130 }; 154 }; 131 155 132 cooling-maps { 156 cooling-maps { 133 map0 { 157 map0 { 134 trip = <&ppvar 158 trip = <&ppvar_bigcpu_alert>; 135 cooling-device 159 cooling-device = 136 <&cpu_ !! 160 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 137 <&cpu_ << 138 <&cpu_ << 139 <&cpu_ << 140 contribution = 161 contribution = <4096>; 141 }; 162 }; 142 map1 { 163 map1 { 143 trip = <&ppvar 164 trip = <&ppvar_bigcpu_alert>; 144 cooling-device 165 cooling-device = 145 <&cpu_ !! 166 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 146 <&cpu_ << 147 contribution = 167 contribution = <1024>; 148 }; 168 }; 149 }; 169 }; 150 }; 170 }; 151 171 152 litcpu_reg_thermal: litcpu-reg-thermal 172 litcpu_reg_thermal: litcpu-reg-thermal { 153 polling-delay-passive = <100>; 173 polling-delay-passive = <100>; /* milliseconds */ 154 polling-delay = <1000>; /* mil 174 polling-delay = <1000>; /* milliseconds */ 155 thermal-sensors = <&thermistor 175 thermal-sensors = <&thermistor_ppvar_litcpu 0>; 156 sustainable-power = <4000>; 176 sustainable-power = <4000>; 157 177 158 ppvar_litcpu_trips: trips { 178 ppvar_litcpu_trips: trips { 159 ppvar_litcpu_on: ppvar 179 ppvar_litcpu_on: ppvar-litcpu-on { 160 temperature = 180 temperature = <40000>; /* millicelsius */ 161 hysteresis = < 181 hysteresis = <2000>; /* millicelsius */ 162 type = "passiv 182 type = "passive"; 163 }; 183 }; 164 184 165 ppvar_litcpu_alert: pp 185 ppvar_litcpu_alert: ppvar-litcpu-alert { 166 temperature = 186 temperature = <50000>; /* millicelsius */ 167 hysteresis = < 187 hysteresis = <2000>; /* millicelsius */ 168 type = "passiv 188 type = "passive"; 169 }; 189 }; 170 190 171 ppvar_litcpu_crit: ppv 191 ppvar_litcpu_crit: ppvar-litcpu-crit { 172 temperature = 192 temperature = <90000>; /* millicelsius */ 173 hysteresis = < 193 hysteresis = <0>; /* millicelsius */ 174 type = "critic 194 type = "critical"; 175 }; 195 }; 176 }; 196 }; 177 }; 197 }; 178 }; 198 }; 179 199 180 ap_i2c_tpm: &i2c0 { 200 ap_i2c_tpm: &i2c0 { 181 status = "okay"; 201 status = "okay"; 182 202 183 clock-frequency = <400000>; 203 clock-frequency = <400000>; 184 204 185 /* These are relatively safe rise/fall 205 /* These are relatively safe rise/fall times. */ 186 i2c-scl-falling-time-ns = <50>; 206 i2c-scl-falling-time-ns = <50>; 187 i2c-scl-rising-time-ns = <300>; 207 i2c-scl-rising-time-ns = <300>; 188 208 189 tpm: tpm@20 { 209 tpm: tpm@20 { 190 compatible = "infineon,slb9645 210 compatible = "infineon,slb9645tt"; 191 reg = <0x20>; 211 reg = <0x20>; 192 powered-while-suspended; 212 powered-while-suspended; 193 }; 213 }; 194 }; 214 }; 195 215 196 ap_i2c_dig: &i2c2 { 216 ap_i2c_dig: &i2c2 { 197 status = "okay"; 217 status = "okay"; 198 218 199 clock-frequency = <400000>; 219 clock-frequency = <400000>; 200 220 201 /* These are relatively safe rise/fall 221 /* These are relatively safe rise/fall times. */ 202 i2c-scl-falling-time-ns = <50>; 222 i2c-scl-falling-time-ns = <50>; 203 i2c-scl-rising-time-ns = <300>; 223 i2c-scl-rising-time-ns = <300>; 204 224 205 digitizer: digitizer@9 { 225 digitizer: digitizer@9 { 206 /* wacom,w9013 */ 226 /* wacom,w9013 */ 207 compatible = "hid-over-i2c"; 227 compatible = "hid-over-i2c"; 208 reg = <0x9>; 228 reg = <0x9>; 209 pinctrl-names = "default"; 229 pinctrl-names = "default"; 210 pinctrl-0 = <&cpu1_dig_irq_l & 230 pinctrl-0 = <&cpu1_dig_irq_l &cpu1_dig_pdct_l>; 211 231 212 vdd-supply = <&p3_3v_dig>; 232 vdd-supply = <&p3_3v_dig>; 213 post-power-on-delay-ms = <100> 233 post-power-on-delay-ms = <100>; 214 234 215 interrupt-parent = <&gpio2>; 235 interrupt-parent = <&gpio2>; 216 interrupts = <4 IRQ_TYPE_LEVEL 236 interrupts = <4 IRQ_TYPE_LEVEL_LOW>; 217 237 218 hid-descr-addr = <0x1>; 238 hid-descr-addr = <0x1>; 219 }; 239 }; 220 }; 240 }; 221 241 222 /* Adjustments to things in the gru baseboard 242 /* Adjustments to things in the gru baseboard */ 223 243 224 &ap_i2c_tp { 244 &ap_i2c_tp { 225 trackpad@4a { 245 trackpad@4a { 226 compatible = "atmel,maxtouch"; !! 246 compatible = "atmel,atmel_mxt_tp"; 227 reg = <0x4a>; 247 reg = <0x4a>; 228 pinctrl-names = "default"; 248 pinctrl-names = "default"; 229 pinctrl-0 = <&trackpad_int_l>; 249 pinctrl-0 = <&trackpad_int_l>; 230 interrupt-parent = <&gpio1>; 250 interrupt-parent = <&gpio1>; 231 interrupts = <4 IRQ_TYPE_LEVEL 251 interrupts = <4 IRQ_TYPE_LEVEL_LOW>; 232 linux,gpio-keymap = <KEY_RESER 252 linux,gpio-keymap = <KEY_RESERVED 233 KEY_RESER 253 KEY_RESERVED 234 KEY_RESER 254 KEY_RESERVED 235 BTN_LEFT> 255 BTN_LEFT>; 236 wakeup-source; 256 wakeup-source; 237 }; 257 }; 238 }; 258 }; 239 259 240 &ap_i2c_ts { 260 &ap_i2c_ts { 241 touchscreen@4b { 261 touchscreen@4b { 242 compatible = "atmel,maxtouch"; !! 262 compatible = "atmel,atmel_mxt_ts"; 243 reg = <0x4b>; 263 reg = <0x4b>; 244 pinctrl-names = "default"; 264 pinctrl-names = "default"; 245 pinctrl-0 = <&touch_int_l>; 265 pinctrl-0 = <&touch_int_l>; 246 interrupt-parent = <&gpio3>; 266 interrupt-parent = <&gpio3>; 247 interrupts = <13 IRQ_TYPE_LEVE 267 interrupts = <13 IRQ_TYPE_LEVEL_LOW>; 248 }; 268 }; 249 }; 269 }; 250 270 251 &ppvar_bigcpu_pwm { 271 &ppvar_bigcpu_pwm { 252 regulator-min-microvolt = <798674>; 272 regulator-min-microvolt = <798674>; 253 regulator-max-microvolt = <1302172>; 273 regulator-max-microvolt = <1302172>; 254 }; 274 }; 255 275 256 &ppvar_bigcpu { 276 &ppvar_bigcpu { 257 regulator-min-microvolt = <798674>; 277 regulator-min-microvolt = <798674>; 258 regulator-max-microvolt = <1302172>; 278 regulator-max-microvolt = <1302172>; 259 ctrl-voltage-range = <798674 1302172>; 279 ctrl-voltage-range = <798674 1302172>; 260 }; 280 }; 261 281 262 &ppvar_litcpu_pwm { 282 &ppvar_litcpu_pwm { 263 regulator-min-microvolt = <799065>; 283 regulator-min-microvolt = <799065>; 264 regulator-max-microvolt = <1303738>; 284 regulator-max-microvolt = <1303738>; 265 }; 285 }; 266 286 267 &ppvar_litcpu { 287 &ppvar_litcpu { 268 regulator-min-microvolt = <799065>; 288 regulator-min-microvolt = <799065>; 269 regulator-max-microvolt = <1303738>; 289 regulator-max-microvolt = <1303738>; 270 ctrl-voltage-range = <799065 1303738>; 290 ctrl-voltage-range = <799065 1303738>; 271 }; 291 }; 272 292 273 &ppvar_gpu_pwm { 293 &ppvar_gpu_pwm { 274 regulator-min-microvolt = <785782>; 294 regulator-min-microvolt = <785782>; 275 regulator-max-microvolt = <1217729>; 295 regulator-max-microvolt = <1217729>; 276 }; 296 }; 277 297 278 &ppvar_gpu { 298 &ppvar_gpu { 279 regulator-min-microvolt = <785782>; 299 regulator-min-microvolt = <785782>; 280 regulator-max-microvolt = <1217729>; 300 regulator-max-microvolt = <1217729>; 281 ctrl-voltage-range = <785782 1217729>; 301 ctrl-voltage-range = <785782 1217729>; 282 }; 302 }; 283 303 284 &ppvar_centerlogic_pwm { 304 &ppvar_centerlogic_pwm { 285 regulator-min-microvolt = <800069>; 305 regulator-min-microvolt = <800069>; 286 regulator-max-microvolt = <1049692>; 306 regulator-max-microvolt = <1049692>; 287 }; 307 }; 288 308 289 &ppvar_centerlogic { 309 &ppvar_centerlogic { 290 regulator-min-microvolt = <800069>; 310 regulator-min-microvolt = <800069>; 291 regulator-max-microvolt = <1049692>; 311 regulator-max-microvolt = <1049692>; 292 ctrl-voltage-range = <800069 1049692>; 312 ctrl-voltage-range = <800069 1049692>; 293 }; 313 }; 294 314 295 &saradc { 315 &saradc { 296 status = "okay"; 316 status = "okay"; 297 vref-supply = <&pp1800_ap_io>; 317 vref-supply = <&pp1800_ap_io>; 298 }; 318 }; 299 319 300 &mvl_wifi { 320 &mvl_wifi { 301 marvell,wakeup-pin = <14>; /* GPIO_14 321 marvell,wakeup-pin = <14>; /* GPIO_14 on Marvell */ 302 }; 322 }; 303 323 304 &pinctrl { 324 &pinctrl { 305 digitizer { 325 digitizer { 306 /* Has external pullup */ 326 /* Has external pullup */ 307 cpu1_dig_irq_l: cpu1-dig-irq-l 327 cpu1_dig_irq_l: cpu1-dig-irq-l { 308 rockchip,pins = <2 RK_ !! 328 rockchip,pins = <2 4 RK_FUNC_GPIO &pcfg_pull_none>; 309 }; 329 }; 310 330 311 /* Has external pullup */ 331 /* Has external pullup */ 312 cpu1_dig_pdct_l: cpu1-dig-pdct 332 cpu1_dig_pdct_l: cpu1-dig-pdct-l { 313 rockchip,pins = <2 RK_ !! 333 rockchip,pins = <2 5 RK_FUNC_GPIO &pcfg_pull_none>; 314 }; 334 }; 315 }; 335 }; 316 336 317 discrete-regulators { 337 discrete-regulators { 318 cpu3_pen_pwr_en: cpu3-pen-pwr- 338 cpu3_pen_pwr_en: cpu3-pen-pwr-en { 319 rockchip,pins = <4 RK_ !! 339 rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_none>; 320 }; 340 }; 321 }; 341 }; 322 342 323 pen { 343 pen { 324 cpu1_pen_eject: cpu1-pen-eject 344 cpu1_pen_eject: cpu1-pen-eject { 325 rockchip,pins = <0 RK_ !! 345 rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_up>; >> 346 }; >> 347 }; >> 348 >> 349 wifi { >> 350 wlan_host_wake_l: wlan-host-wake-l { >> 351 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_none>; 326 }; 352 }; 327 }; 353 }; 328 }; 354 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.