arm64: dts: mediatek: add mt8173 elm and hana board

Elm is Acer Chromebook R13. Hana is Lenovo Chromebook. Both uses mt8173
SoC.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20200210063523.133333-5-hsinyi@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
Hsin-Yi Wang 2020-02-10 14:35:23 +08:00 committed by Matthias Brugger
parent 72b29215ac
commit 689b937bed
7 changed files with 1301 additions and 1 deletions

View File

@ -6,6 +6,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana-rev7.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb

View File

@ -0,0 +1,27 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2019 MediaTek Inc.
*/
/dts-v1/;
#include "mt8173-elm-hana.dtsi"
/ {
model = "Google Hanawl";
compatible = "google,hana-rev7", "mediatek,mt8173";
};
&cpu_thermal {
trips {
cpu_crit: cpu_crit0 {
temperature = <100000>;
type = "critical";
};
};
};
&gpio_keys {
/delete-node/tablet_mode;
/delete-node/volume_down;
/delete-node/volume_up;
};

View File

@ -0,0 +1,14 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2016 MediaTek Inc.
*/
/dts-v1/;
#include "mt8173-elm-hana.dtsi"
/ {
model = "Google Hana";
compatible = "google,hana-rev6", "google,hana-rev5",
"google,hana-rev4", "google,hana-rev3",
"google,hana", "mediatek,mt8173";
};

View File

@ -0,0 +1,70 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2016 MediaTek Inc.
*/
#include "mt8173-elm.dtsi"
&i2c0 {
clock-frequency = <200000>;
};
&i2c3 {
touchscreen2: touchscreen@34 {
compatible = "melfas,mip4_ts";
reg = <0x34>;
interrupt-parent = <&pio>;
interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
};
/*
* Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
* Gen (MTK) are using synaptics touchscreen (hid-over-i2c driver) as a
* second source touchscreen.
*/
touchscreen3: touchscreen@20 {
compatible = "hid-over-i2c";
reg = <0x20>;
hid-descr-addr = <0x0020>;
interrupt-parent = <&pio>;
interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
};
};
&i2c4 {
/*
* Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
* Gen (MTK) are using synaptics trackpad (hid-over-i2c driver) as a
* second source trackpad.
*/
trackpad2: trackpad@2c {
compatible = "hid-over-i2c";
interrupt-parent = <&pio>;
interrupts = <117 IRQ_TYPE_LEVEL_LOW>;
reg = <0x2c>;
hid-descr-addr = <0x0020>;
wakeup-source;
};
};
&mmc1 {
wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
};
&pio {
hdmi_mux_pins: hdmi_mux_pins {
pins2 {
pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
bias-pull-up;
output-high;
};
};
mmc1_pins_default: mmc1default {
pins_wp {
pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
input-enable;
bias-pull-up;
};
};
};

View File

@ -0,0 +1,14 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2016 MediaTek Inc.
*/
/dts-v1/;
#include "mt8173-elm.dtsi"
/ {
model = "Google Elm";
compatible = "google,elm-rev8", "google,elm-rev7", "google,elm-rev6",
"google,elm-rev5", "google,elm-rev4", "google,elm-rev3",
"google,elm", "mediatek,mt8173";
};

File diff suppressed because it is too large Load Diff

View File

@ -1457,4 +1457,3 @@
};
};
};