Skip to content

Commit

Permalink
arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt
Browse files Browse the repository at this point in the history
This is essentialy a squash of a bunch of history of trogdor and lazor
dt updates from the chromium kernel tree.

I don't claim any credit other than wanting to more easily boot upstream
kernel on these devices.

I've tried to add cc tags for all the original authors.

Cc: Stephen Boyd <swboyd@chromium.org>
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Matthias Kaehlcke <mka@chromium.org>
Cc: Atul Dhudase <adhudase@codeaurora.org>
Cc: Venkata Lakshmi Narayana Gubba <gubbaven@codeaurora.org>
Cc: Evan Green <evgreen@chromium.org>
Cc: Cheng-Yi Chiang <cychiang@chromium.org>
Cc: Ajit Pandey <ajitp@codeaurora.org>
Cc: Alexandru Stan <amstan@chromium.org>
Cc: Sujit Kautkar <sujitka@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20200828204052.2085508-1-robdclark@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
robclark authored and andersson committed Aug 31, 2020
1 parent efe7883 commit 7ec3e67
Show file tree
Hide file tree
Showing 9 changed files with 1,822 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm64/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-hp-envy-x2.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-lenovo-miix-630.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb
dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r0.dtb
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r1.dtb
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r1-lte.dtb
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-r1.dtb
dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-r1-lte.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-ganges-kirin.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-discovery.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm630-sony-xperia-nile-pioneer.dtb
Expand Down
24 changes: 24 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Google Lazor board device tree source
*
* Copyright 2020 Google LLC.
*/

/dts-v1/;

#include "sc7180-trogdor-lazor.dtsi"

/ {
model = "Google Lazor (rev0)";
compatible = "google,lazor-rev0", "qcom,sc7180";
};

&sn65dsi86_out {
/*
* Lane 0 was incorrectly mapped on the cable, but we've now decided
* that the cable is canon and in -rev1+ we'll make a board change
* that means we no longer need the swizzle.
*/
lane-polarities = <1 0>;
};
18 changes: 18 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Google Lazor board device tree source
*
* Copyright 2020 Google LLC.
*/

#include "sc7180-trogdor-lazor-r1.dts"
#include "sc7180-trogdor-lte-sku.dtsi"

/ {
model = "Google Lazor (rev1+) with LTE";
compatible = "google,lazor-sku0", "qcom,sc7180";
};

&keyboard_backlight {
status = "okay";
};
15 changes: 15 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Google Lazor board device tree source
*
* Copyright 2020 Google LLC.
*/

/dts-v1/;

#include "sc7180-trogdor-lazor.dtsi"

/ {
model = "Google Lazor (rev1+)";
compatible = "google,lazor", "qcom,sc7180";
};
192 changes: 192 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Google Lazor board device tree source
*
* Copyright 2020 Google LLC.
*/

#include "sc7180.dtsi"

ap_ec_spi: &spi6 {};
ap_h1_spi: &spi0 {};

#include "sc7180-trogdor.dtsi"

/ {
panel: panel {
compatible = "boe,nv133fhm-n62";
power-supply = <&pp3300_dx_edp>;
backlight = <&backlight>;
hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>;

ports {
port {
panel_in_edp: endpoint {
remote-endpoint = <&sn65dsi86_out>;
};
};
};
};
};

&ap_sar_sensor {
status = "okay";
};

ap_ts_pen_1v8: &i2c4 {
status = "okay";
clock-frequency = <400000>;

ap_ts: touchscreen@10 {
compatible = "hid-over-i2c";
reg = <0x10>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;

interrupt-parent = <&tlmm>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;

post-power-on-delay-ms = <20>;
hid-descr-addr = <0x0001>;

vdd-supply = <&pp3300_ts>;
};
};

/* PINCTRL - modifications to sc7180-trogdor.dtsi */

&ts_reset_l {
pinconf {
/* This pin is not connected on -rev0, pull up to park. */
/delete-property/bias-disable;
bias-pull-up;
};
};

/* PINCTRL - board-specific pinctrl */

&tlmm {
gpio-line-names = "ESIM_MISO",
"ESIM_MOSI",
"ESIM_CLK",
"ESIM_CS_L",
"",
"",
"AP_TP_I2C_SDA",
"AP_TP_I2C_SCL",
"TS_RESET_L",
"TS_INT_L",
"",
"EDP_BRIJ_IRQ",
"AP_EDP_BKLTEN",
"AP_RAM_ID2",
"",
"EDP_BRIJ_I2C_SDA",
"EDP_BRIJ_I2C_SCL",
"HUB_RST_L",
"",
"AP_RAM_ID1",
"AP_SKU_ID2",
"",
"",
"AMP_EN",
"P_SENSOR_INT_L",
"AP_SAR_SENSOR_SDA",
"AP_SAR_SENSOR_SCL",
"",
"HP_IRQ",
"AP_RAM_ID0",
"EN_PP3300_DX_EDP",
"AP_BRD_ID2",
"BRIJ_SUSPEND",
"AP_BRD_ID0",
"AP_H1_SPI_MISO",
"AP_H1_SPI_MOSI",
"AP_H1_SPI_CLK",
"AP_H1_SPI_CS_L",
"",
"",
"",
"",
"H1_AP_INT_ODL",
"",
"UART_AP_TX_DBG_RX",
"UART_DBG_TX_AP_RX",
"HP_I2C_SDA",
"HP_I2C_SCL",
"FORCED_USB_BOOT",
"",
"",
"AMP_DIN",
"",
"HP_BCLK",
"HP_LRCLK",
"HP_DOUT",
"HP_DIN",
"HP_MCLK",
"TRACKPAD_INT_1V8_ODL",
"AP_EC_SPI_MISO",
"AP_EC_SPI_MOSI",
"AP_EC_SPI_CLK",
"AP_EC_SPI_CS_L",
"AP_SPI_CLK",
"AP_SPI_MOSI",
"AP_SPI_MISO",
/*
* AP_FLASH_WP_L is crossystem ABI. Schematics
* call it BIOS_FLASH_WP_L.
*/
"AP_FLASH_WP_L",
"DBG_SPI_HOLD_L",
"AP_SPI_CS0_L",
"",
"",
"",
"",
"",
"",
"UIM2_DATA",
"UIM2_CLK",
"UIM2_RST",
"UIM2_PRESENT",
"UIM1_DATA",
"UIM1_CLK",
"UIM1_RST",
"",
"EN_PP3300_CODEC",
"EN_PP3300_HUB",
"",
"",
"",
"",
"",
"AP_SKU_ID1",
"AP_RST_REQ",
"",
"AP_BRD_ID1",
"AP_EC_INT_L",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"EDP_BRIJ_EN",
"AP_SKU_ID0",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"AP_TS_PEN_I2C_SDA",
"AP_TS_PEN_I2C_SCL",
"DP_HOT_PLUG_DET",
"EC_IN_RW_ODL";
};
15 changes: 15 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7180-trogdor-lte-sku.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Google Trogdor dts fragment for LTE SKUs
*
* Copyright 2020 Google LLC.
*/

&ap_sar_sensor {
label = "proximity-wifi-lte";
};

&remoteproc_mpss {
firmware-name = "qcom/sc7180-trogdor/modem/mba.mbn",
"qcom/sc7180-trogdor/modem/qdsp6sw.mbn";
};
14 changes: 14 additions & 0 deletions arch/arm64/boot/dts/qcom/sc7180-trogdor-r1-lte.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Google Trogdor board device tree source
*
* Copyright 2020 Google LLC.
*/

#include "sc7180-trogdor-r1.dts"
#include "sc7180-trogdor-lte-sku.dtsi"

/ {
model = "Google Trogdor (rev1+) with LTE";
compatible = "google,trogdor-sku0", "qcom,sc7180";
};
Loading

0 comments on commit 7ec3e67

Please sign in to comment.