diff options
| -rw-r--r-- | Documentation/devicetree/bindings/arm/rockchip.txt | 20 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/rockchip/Makefile | 1 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 306 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 1103 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi | 145 | ||||
| -rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399.dtsi | 54 |
6 files changed, 1629 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/rockchip.txt b/Documentation/devicetree/bindings/arm/rockchip.txt index cc4ace6397ab..d05caa6ee89d 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.txt +++ b/Documentation/devicetree/bindings/arm/rockchip.txt | |||
| @@ -56,6 +56,17 @@ Rockchip platforms device tree bindings | |||
| 56 | - compatible = "google,veyron-brain-rev0", "google,veyron-brain", | 56 | - compatible = "google,veyron-brain-rev0", "google,veyron-brain", |
| 57 | "google,veyron", "rockchip,rk3288"; | 57 | "google,veyron", "rockchip,rk3288"; |
| 58 | 58 | ||
| 59 | - Google Gru (dev-board): | ||
| 60 | Required root node properties: | ||
| 61 | - compatible = "google,gru-rev15", "google,gru-rev14", | ||
| 62 | "google,gru-rev13", "google,gru-rev12", | ||
| 63 | "google,gru-rev11", "google,gru-rev10", | ||
| 64 | "google,gru-rev9", "google,gru-rev8", | ||
| 65 | "google,gru-rev7", "google,gru-rev6", | ||
| 66 | "google,gru-rev5", "google,gru-rev4", | ||
| 67 | "google,gru-rev3", "google,gru-rev2", | ||
| 68 | "google,gru", "rockchip,rk3399"; | ||
| 69 | |||
| 59 | - Google Jaq (Haier Chromebook 11 and more): | 70 | - Google Jaq (Haier Chromebook 11 and more): |
| 60 | Required root node properties: | 71 | Required root node properties: |
| 61 | - compatible = "google,veyron-jaq-rev5", "google,veyron-jaq-rev4", | 72 | - compatible = "google,veyron-jaq-rev5", "google,veyron-jaq-rev4", |
| @@ -70,6 +81,15 @@ Rockchip platforms device tree bindings | |||
| 70 | "google,veyron-jerry-rev3", "google,veyron-jerry", | 81 | "google,veyron-jerry-rev3", "google,veyron-jerry", |
| 71 | "google,veyron", "rockchip,rk3288"; | 82 | "google,veyron", "rockchip,rk3288"; |
| 72 | 83 | ||
| 84 | - Google Kevin (Samsung Chromebook Plus): | ||
| 85 | Required root node properties: | ||
| 86 | - compatible = "google,kevin-rev15", "google,kevin-rev14", | ||
| 87 | "google,kevin-rev13", "google,kevin-rev12", | ||
| 88 | "google,kevin-rev11", "google,kevin-rev10", | ||
| 89 | "google,kevin-rev9", "google,kevin-rev8", | ||
| 90 | "google,kevin-rev7", "google,kevin-rev6", | ||
| 91 | "google,kevin", "google,gru", "rockchip,rk3399"; | ||
| 92 | |||
| 73 | - Google Mickey (Asus Chromebit CS10): | 93 | - Google Mickey (Asus Chromebit CS10): |
| 74 | Required root node properties: | 94 | Required root node properties: |
| 75 | - compatible = "google,veyron-mickey-rev8", "google,veyron-mickey-rev7", | 95 | - compatible = "google,veyron-mickey-rev8", "google,veyron-mickey-rev7", |
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 3a862894ea44..b82f7b61ab6f 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile | |||
| @@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-orion-r68-meta.dtb | |||
| 4 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb | 4 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb |
| 5 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb | 5 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb |
| 6 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb | 6 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb |
| 7 | dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb | ||
| 7 | 8 | ||
| 8 | always := $(dtb-y) | 9 | always := $(dtb-y) |
| 9 | subdir-y := $(dts-dirs) | 10 | subdir-y := $(dts-dirs) |
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts new file mode 100644 index 000000000000..658bb9dc9dfd --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | |||
| @@ -0,0 +1,306 @@ | |||
| 1 | /* | ||
| 2 | * Google Gru-Kevin Rev 6+ board device tree source | ||
| 3 | * | ||
| 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. | ||
| 43 | */ | ||
| 44 | |||
| 45 | /dts-v1/; | ||
| 46 | #include "rk3399-gru.dtsi" | ||
| 47 | #include <include/dt-bindings/input/linux-event-codes.h> | ||
| 48 | |||
| 49 | /* | ||
| 50 | * Kevin-specific things | ||
| 51 | * | ||
| 52 | * Things in this section should use names from Kevin schematic since no | ||
| 53 | * equivalent exists in Gru schematic. If referring to signals that exist | ||
| 54 | * in Gru we use the Gru names, though. Confusing enough for you? | ||
| 55 | */ | ||
| 56 | / { | ||
| 57 | model = "Google Kevin"; | ||
| 58 | compatible = "google,kevin-rev15", "google,kevin-rev14", | ||
| 59 | "google,kevin-rev13", "google,kevin-rev12", | ||
| 60 | "google,kevin-rev11", "google,kevin-rev10", | ||
| 61 | "google,kevin-rev9", "google,kevin-rev8", | ||
| 62 | "google,kevin-rev7", "google,kevin-rev6", | ||
| 63 | "google,kevin", "google,gru", "rockchip,rk3399"; | ||
| 64 | |||
| 65 | /* Power tree */ | ||
| 66 | |||
| 67 | p3_3v_dig: p3-3v-dig { | ||
| 68 | compatible = "regulator-fixed"; | ||
| 69 | regulator-name = "p3.3v_dig"; | ||
| 70 | pinctrl-names = "default"; | ||
| 71 | pinctrl-0 = <&cpu3_pen_pwr_en>; | ||
| 72 | |||
| 73 | enable-active-high; | ||
| 74 | gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>; | ||
| 75 | vin-supply = <&pp3300>; | ||
| 76 | }; | ||
| 77 | |||
| 78 | backlight: backlight { | ||
| 79 | compatible = "pwm-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>; | ||
| 90 | power-supply = <&pp3300_disp>; | ||
| 91 | pinctrl-names = "default"; | ||
| 92 | pinctrl-0 = <&bl_en>; | ||
| 93 | pwm-delay-us = <10000>; | ||
| 94 | }; | ||
| 95 | |||
| 96 | thermistor_ppvar_bigcpu: thermistor-ppvar-bigcpu { | ||
| 97 | compatible = "murata,ncp15wb473"; | ||
| 98 | pullup-uv = <1800000>; | ||
| 99 | pullup-ohm = <25500>; | ||
| 100 | pulldown-ohm = <0>; | ||
| 101 | io-channels = <&saradc 2>; | ||
| 102 | #thermal-sensor-cells = <0>; | ||
| 103 | }; | ||
| 104 | |||
| 105 | thermistor_ppvar_litcpu: thermistor-ppvar-litcpu { | ||
| 106 | compatible = "murata,ncp15wb473"; | ||
| 107 | pullup-uv = <1800000>; | ||
| 108 | pullup-ohm = <25500>; | ||
| 109 | pulldown-ohm = <0>; | ||
| 110 | io-channels = <&saradc 3>; | ||
| 111 | #thermal-sensor-cells = <0>; | ||
| 112 | }; | ||
| 113 | }; | ||
| 114 | |||
| 115 | &gpio_keys { | ||
| 116 | pinctrl-names = "default"; | ||
| 117 | pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>; | ||
| 118 | |||
| 119 | pen-insert { | ||
| 120 | label = "Pen Insert"; | ||
| 121 | /* Insert = low, eject = high */ | ||
| 122 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||
| 123 | linux,code = <SW_PEN_INSERTED>; | ||
| 124 | linux,input-type = <EV_SW>; | ||
| 125 | wakeup-source; | ||
| 126 | }; | ||
| 127 | }; | ||
| 128 | |||
| 129 | &thermal_zones { | ||
| 130 | bigcpu_reg_thermal: bigcpu-reg-thermal { | ||
| 131 | polling-delay-passive = <100>; /* milliseconds */ | ||
| 13 | |||
