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