arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt
Subsystems (4)
PATCH v2 1/1 arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt
From: Rob Clark <[email protected]>
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.
---
v2: update for Stephen and Doug's comments
arch/arm64/boot/dts/qcom/Makefile | 5 + .../boot/dts/qcom/sc7180-trogdor-lazor-r0.dts | 24 + .../dts/qcom/sc7180-trogdor-lazor-r1-lte.dts | 18 + .../boot/dts/qcom/sc7180-trogdor-lazor-r1.dts | 15 + .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 192 +++ .../boot/dts/qcom/sc7180-trogdor-lte-sku.dtsi | 15 + .../boot/dts/qcom/sc7180-trogdor-r1-lte.dts | 14 + .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 191 +++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1346 +++++++++++++++++ 9 files changed, 1820 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lte-sku.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-r1-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
arch/arm64/boot/dts/qcom/Makefile +5 -0
@@ -20,6 +20,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
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r0.dts new file +24 -0
@@ -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>; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts new file +18 -0
@@ -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"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1.dts new file +15 -0
@@ -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"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi new file +192 -0
192 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-lte-sku.dtsi new file +15 -0
@@ -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"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1-lte.dts new file +14 -0
@@ -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"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts new file +191 -0
191 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi new file +1346 -0
1,346 lines not on this page · raw message
Signature · 1 line
2.26.2
Hi,
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi line 212
Quoted 8 lines · Rob Clark
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi new file +7
-0+ max98357a: audio-codec-0 { + compatible = "maxim,max98357a"; + pinctrl-names = "default"; + pinctrl-0 = <&_en>; + sdmode-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>; + #sound-dai-cells = <0>; + };
Even though Device Tree spec says "audio-codec", I agree that "audio-codec-0" should be fine. Since this is at the top level that could be important to disambiguate if there was more than one audio codec.
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi line 849
Quoted 5 lines
+&wifi {
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi new file +4
-0+ status = "okay"; + vdd-0.8-cx-mx-supply = <&vdd_cx_wlan>; + vdd-1.8-xo-supply = <&pp1800_l1c>; + vdd-1.3-rfa-supply = <&pp1300_l2c>;
Sorry, I should have been clearer. Here you should add:
vdd-3.3-ch0-supply = <&pp3300_l10c>;
vdd-3.3-ch1-supply = <&pp3300_l11c>;
...the hack that was downstream was to stick the "ch1" regulator in the "ch0" slot since Bluetooth was already holding the "ch0" regulator open and the "ch1" wasn't part of the bindings yet.
Once the supplies are added for WiFi feel free to add my Reviewed-by tag.
-Doug