1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Google Gru-Kevin Rev 6+ board device tree s 4 * 5 * Copyright 2016-2017 Google, Inc 6 */ 7 8 /dts-v1/; 9 #include "rk3399-gru-chromebook.dtsi" 10 #include <dt-bindings/input/linux-event-codes. 11 12 /* 13 * Kevin-specific things 14 * 15 * Things in this section should use names fro 16 * equivalent exists in Gru schematic. If ref 17 * in Gru we use the Gru names, though. Confu 18 */ 19 / { 20 model = "Google Kevin"; 21 compatible = "google,kevin-rev15", "go 22 "google,kevin-rev13", "go 23 "google,kevin-rev11", "go 24 "google,kevin-rev9", "goo 25 "google,kevin-rev7", "goo 26 "google,kevin", "google,g 27 chassis-type = "convertible"; 28 29 /* Power tree */ 30 31 p3_3v_dig: p3-3v-dig { 32 compatible = "regulator-fixed" 33 regulator-name = "p3.3v_dig"; 34 pinctrl-names = "default"; 35 pinctrl-0 = <&cpu3_pen_pwr_en> 36 37 enable-active-high; 38 gpio = <&gpio4 30 GPIO_ACTIVE_ 39 vin-supply = <&pp3300>; 40 }; 41 42 edp_panel: edp-panel { 43 compatible = "sharp,lq123p1jx3 44 backlight = <&backlight>; 45 power-supply = <&pp3300_disp>; 46 47 panel-timing { 48 clock-frequency = <266 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 }; 67 68 thermistor_ppvar_bigcpu: thermistor-pp 69 compatible = "murata,ncp15wb47 70 pullup-uv = <1800000>; 71 pullup-ohm = <25500>; 72 pulldown-ohm = <0>; 73 io-channels = <&saradc 2>; 74 #thermal-sensor-cells = <0>; 75 }; 76 77 thermistor_ppvar_litcpu: thermistor-pp 78 compatible = "murata,ncp15wb47 79 pullup-uv = <1800000>; 80 pullup-ohm = <25500>; 81 pulldown-ohm = <0>; 82 io-channels = <&saradc 3>; 83 #thermal-sensor-cells = <0>; 84 }; 85 }; 86 87 &backlight { 88 pwms = <&cros_ec_pwm 1>; 89 }; 90 91 &gpio_keys { 92 pinctrl-names = "default"; 93 pinctrl-0 = <&bt_host_wake_l>, <&cpu1_ 94 95 switch-pen-insert { 96 label = "Pen Insert"; 97 /* Insert = low, eject = high 98 gpios = <&gpio0 13 GPIO_ACTIVE 99 linux,code = <SW_PEN_INSERTED> 100 linux,input-type = <EV_SW>; 101 wakeup-source; 102 }; 103 }; 104 105 &thermal_zones { 106 bigcpu_reg_thermal: bigcpu-reg-thermal 107 polling-delay-passive = <100>; 108 polling-delay = <1000>; /* mil 109 thermal-sensors = <&thermistor 110 sustainable-power = <4000>; 111 112 ppvar_bigcpu_trips: trips { 113 ppvar_bigcpu_on: ppvar 114 temperature = 115 hysteresis = < 116 type = "passiv 117 }; 118 119 ppvar_bigcpu_alert: pp 120 temperature = 121 hysteresis = < 122 type = "passiv 123 }; 124 125 ppvar_bigcpu_crit: ppv 126 temperature = 127 hysteresis = < 128 type = "critic 129 }; 130 }; 131 132 cooling-maps { 133 map0 { 134 trip = <&ppvar 135 cooling-device 136 <&cpu_ 137 <&cpu_ 138 <&cpu_ 139 <&cpu_ 140 contribution = 141 }; 142 map1 { 143 trip = <&ppvar 144 cooling-device 145 <&cpu_ 146 <&cpu_ 147 contribution = 148 }; 149 }; 150 }; 151 152 litcpu_reg_thermal: litcpu-reg-thermal 153 polling-delay-passive = <100>; 154 polling-delay = <1000>; /* mil 155 thermal-sensors = <&thermistor 156 sustainable-power = <4000>; 157 158 ppvar_litcpu_trips: trips { 159 ppvar_litcpu_on: ppvar 160 temperature = 161 hysteresis = < 162 type = "passiv 163 }; 164 165 ppvar_litcpu_alert: pp 166 temperature = 167 hysteresis = < 168 type = "passiv 169 }; 170 171 ppvar_litcpu_crit: ppv 172 temperature = 173 hysteresis = < 174 type = "critic 175 }; 176 }; 177 }; 178 }; 179 180 ap_i2c_tpm: &i2c0 { 181 status = "okay"; 182 183 clock-frequency = <400000>; 184 185 /* These are relatively safe rise/fall 186 i2c-scl-falling-time-ns = <50>; 187 i2c-scl-rising-time-ns = <300>; 188 189 tpm: tpm@20 { 190 compatible = "infineon,slb9645 191 reg = <0x20>; 192 powered-while-suspended; 193 }; 194 }; 195 196 ap_i2c_dig: &i2c2 { 197 status = "okay"; 198 199 clock-frequency = <400000>; 200 201 /* These are relatively safe rise/fall 202 i2c-scl-falling-time-ns = <50>; 203 i2c-scl-rising-time-ns = <300>; 204 205 digitizer: digitizer@9 { 206 /* wacom,w9013 */ 207 compatible = "hid-over-i2c"; 208 reg = <0x9>; 209 pinctrl-names = "default"; 210 pinctrl-0 = <&cpu1_dig_irq_l & 211 212 vdd-supply = <&p3_3v_dig>; 213 post-power-on-delay-ms = <100> 214 215 interrupt-parent = <&gpio2>; 216 interrupts = <4 IRQ_TYPE_LEVEL 217 218 hid-descr-addr = <0x1>; 219 }; 220 }; 221 222 /* Adjustments to things in the gru baseboard 223 224 &ap_i2c_tp { 225 trackpad@4a { 226 compatible = "atmel,maxtouch"; 227 reg = <0x4a>; 228 pinctrl-names = "default"; 229 pinctrl-0 = <&trackpad_int_l>; 230 interrupt-parent = <&gpio1>; 231 interrupts = <4 IRQ_TYPE_LEVEL 232 linux,gpio-keymap = <KEY_RESER 233 KEY_RESER 234 KEY_RESER 235 BTN_LEFT> 236 wakeup-source; 237 }; 238 }; 239 240 &ap_i2c_ts { 241 touchscreen@4b { 242 compatible = "atmel,maxtouch"; 243 reg = <0x4b>; 244 pinctrl-names = "default"; 245 pinctrl-0 = <&touch_int_l>; 246 interrupt-parent = <&gpio3>; 247 interrupts = <13 IRQ_TYPE_LEVE 248 }; 249 }; 250 251 &ppvar_bigcpu_pwm { 252 regulator-min-microvolt = <798674>; 253 regulator-max-microvolt = <1302172>; 254 }; 255 256 &ppvar_bigcpu { 257 regulator-min-microvolt = <798674>; 258 regulator-max-microvolt = <1302172>; 259 ctrl-voltage-range = <798674 1302172>; 260 }; 261 262 &ppvar_litcpu_pwm { 263 regulator-min-microvolt = <799065>; 264 regulator-max-microvolt = <1303738>; 265 }; 266 267 &ppvar_litcpu { 268 regulator-min-microvolt = <799065>; 269 regulator-max-microvolt = <1303738>; 270 ctrl-voltage-range = <799065 1303738>; 271 }; 272 273 &ppvar_gpu_pwm { 274 regulator-min-microvolt = <785782>; 275 regulator-max-microvolt = <1217729>; 276 }; 277 278 &ppvar_gpu { 279 regulator-min-microvolt = <785782>; 280 regulator-max-microvolt = <1217729>; 281 ctrl-voltage-range = <785782 1217729>; 282 }; 283 284 &ppvar_centerlogic_pwm { 285 regulator-min-microvolt = <800069>; 286 regulator-max-microvolt = <1049692>; 287 }; 288 289 &ppvar_centerlogic { 290 regulator-min-microvolt = <800069>; 291 regulator-max-microvolt = <1049692>; 292 ctrl-voltage-range = <800069 1049692>; 293 }; 294 295 &saradc { 296 status = "okay"; 297 vref-supply = <&pp1800_ap_io>; 298 }; 299 300 &mvl_wifi { 301 marvell,wakeup-pin = <14>; /* GPIO_14 302 }; 303 304 &pinctrl { 305 digitizer { 306 /* Has external pullup */ 307 cpu1_dig_irq_l: cpu1-dig-irq-l 308 rockchip,pins = <2 RK_ 309 }; 310 311 /* Has external pullup */ 312 cpu1_dig_pdct_l: cpu1-dig-pdct 313 rockchip,pins = <2 RK_ 314 }; 315 }; 316 317 discrete-regulators { 318 cpu3_pen_pwr_en: cpu3-pen-pwr- 319 rockchip,pins = <4 RK_ 320 }; 321 }; 322 323 pen { 324 cpu1_pen_eject: cpu1-pen-eject 325 rockchip,pins = <0 RK_ 326 }; 327 }; 328 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.