arm64: dts: qcom: Update sc7180-trogdor variants from downstream
Subsystems (4)
cover arm64: dts: qcom: Update sc7180-trogdor variants from downstream
The point of this series is to catch upstream up to what we have downstream in terms of sc7180-trogdor variants. Notably:
- It incorporates minor changes that snuck into the trogdor and lazor device tree files since they were posted upstream.
- It adds the "Limozeen" SKU variant of Lazor.
- It adds support the Pompom and CoachZ type trogdor boards.
This series was tested on mainline Linux instead of the Qualcomm tree since mainline has important bugfixes that are not in the current Qualcomm tree. Given the current state of the merge window mainline has all of the relevant Qualcomm device tree files anyway. For testing, I picked these atop mainline:
- Commit fe7952c629da ("drm/msm: Add speed-bin support to a618 gpu") to keep the GPU from crashing due to the fact that commit 20fd3b37285b ("arm64: dts: qcom: sc7180: Add support for gpu fuse") is in mainline. This commit is in msm-next.
- The patch ("arm64: dts: qcom: sc7180: Use pdc interrupts for USB instead of GIC interrupts") [1] just because it reduced diffs and seemed ready to go.
- The patch ("arm64: dts: qcom: sc7180: Avoid glitching SPI CS at bootup on trogdor") [2] because that's an important bugfix.
With all these changes things are in pretty good shape. Looking at diffs compared to downstream w/ a few patches [3]:
- I haven't tried to resolve "sound" with upstream, instead stripping / leaving as-is any audio related nodes. Someone with more knowledge of the current state of audio needs to take a pass here.
- I haven't tried to resolve DP with upstream. It's basically not there. Someone who works on this: please help!
- We have a downstream patch to manage power for USB hubs. Without that we have to keep power on all the time for USB. Matthias is still working on trying to get an agreement for how that should work.
- Downstream we have an early version of the "sleep stats" driver landed. I believe this is in Maulik's court to re-post.
I have tested this series on "lazor", "lazor-limozeen", "pompom" and "coachz". All of them boot to the web browser with this patch series.
I have confirmed that Matthias's recent charger series [4] applies atop this with no conflicts, though I haven't looked at exactly which revs of coachz / pompom need a similar change. It might be easiest to just follow up once both series land and we get final confirmation about exactly which revs will have exactly which thermistor.
[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/20210218145456.1.I1da01a075dd86e005152f993b2d5d82dd9686238@changeid
[3] https://chromium.googlesource.com/chromiumos/third_party/kernel/+log/refs/sandbox/dianders/210225-downstream-dts
[4] https://lore.kernel.org/linux-arm-msm/20210225103330.v2.1.I6a426324db3d98d6cfae8adf2598831bb30bba74@changeid/
Abhishek Kumar (1):
arm64: dts: qcom: sc7180: add GO_LAZOR variant property for lazor
Alexandru M Stan (1):
arm64: dts: qcom: sc7180-trogdor: Remove fp control pins in prep for
coachz
Douglas Anderson (6):
arm64: dts: qcom: Move sc7180 MI2S config to board files and make
pulldown
arm64: dts: qcom: Prep sc7180-trogdor trackpad IRQ for new boards
arm64: dts: qcom: Unify the sc7180-trogdor panel nodes
arm64: dts: qcom: Add sc7180-lazor-limozeen skus
arm64: dts: qcom: Add sc7180-lazor-pompom skus
arm64: dts: qcom: Add sc7180-lazor-coachz skus
Matthias Kaehlcke (1):
arm64: dts: qcom: sc7180: Set up lazor r3+ as sc7180-lite SKUs
Stephen Boyd (3):
arm64: dts: qcom: sc7180: Update dts for DP phy inside QMP phy
arm64: dts: qcom: trogdor: Only wakeup from pen eject
arm64: dts: qcom: Disable camera clk on sc7180-trogdor devices by
default
Venkata Lakshmi Narayana Gubba (1):
arm64: dts: qcom: sc7180: Remove clock for bluetooth on Trogdor
arch/arm64/boot/dts/qcom/Makefile | 11 + .../dts/qcom/sc7180-trogdor-coachz-r1-lte.dts | 18 ++ .../dts/qcom/sc7180-trogdor-coachz-r1.dts | 154 ++++++++++ .../dts/qcom/sc7180-trogdor-coachz-r2-lte.dts | 18 ++ .../dts/qcom/sc7180-trogdor-coachz-r2.dts | 15 + .../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 249 +++++++++++++++ .../sc7180-trogdor-lazor-limozeen-nots-r4.dts | 34 +++ .../sc7180-trogdor-lazor-limozeen-nots.dts | 26 ++ .../qcom/sc7180-trogdor-lazor-limozeen.dts | 42 +++ .../dts/qcom/sc7180-trogdor-lazor-r3-kb.dts | 5 +- .../dts/qcom/sc7180-trogdor-lazor-r3-lte.dts | 4 +- .../boot/dts/qcom/sc7180-trogdor-lazor-r3.dts | 1 + .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 39 +-- .../dts/qcom/sc7180-trogdor-pompom-r1-lte.dts | 14 + .../dts/qcom/sc7180-trogdor-pompom-r1.dts | 26 ++ .../dts/qcom/sc7180-trogdor-pompom-r2-lte.dts | 14 + .../dts/qcom/sc7180-trogdor-pompom-r2.dts | 44 +++ .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 288 ++++++++++++++++++ .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 35 ++- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 105 +++---- arch/arm64/boot/dts/qcom/sc7180.dtsi | 41 +-- 21 files changed, 1073 insertions(+), 110 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r4.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
PATCH 1/13 arm64: dts: qcom: sc7180: Update dts for DP phy inside QMP phy
From: Stephen Boyd <[email protected]>
Drop the old node and add the new one in its place.
---
arch/arm64/boot/dts/qcom/sc7180.dtsi | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/qcom/sc7180.dtsi +16 -7
@@ -2770,12 +2770,11 @@ usb_1_hsphy: phy@88e3000 { }; usb_1_qmpphy: phy-wrapper@88e9000 { - compatible = "qcom,sc7180-qmp-usb3-phy"; + compatible = "qcom,sc7180-qmp-usb3-dp-phy"; reg = <0 0x088e9000 0 0x18c>, - <0 0x088e8000 0 0x38>; - reg-names = "reg-base", "dp_com"; + <0 0x088e8000 0 0x38>, + <0 0x088ea000 0 0x40>; status = "disabled"; - #clock-cells = <1>; #address-cells = <2>; #size-cells = <2>; ranges;
@@ -2790,7 +2789,7 @@ usb_1_qmpphy: phy-wrapper@88e9000 { <&gcc GCC_USB3_DP_PHY_PRIM_BCR>; reset-names = "phy", "common"; - usb_1_ssphy: phy@88e9200 { + usb_1_ssphy: usb3-phy@88e9200 { reg = <0 0x088e9200 0 0x128>, <0 0x088e9400 0 0x200>, <0 0x088e9c00 0 0x218>,
@@ -2803,6 +2802,16 @@ usb_1_ssphy: phy@88e9200 { clock-names = "pipe0"; clock-output-names = "usb3_phy_pipe_clk_src"; }; + + dp_phy: dp-phy@88ea200 { + reg = <0 0x088ea200 0 0x200>, + <0 0x088ea400 0 0x200>, + <0 0x088eaa00 0 0x200>, + <0 0x088ea600 0 0x200>, + <0 0x088ea800 0 0x200>; + #clock-cells = <1>; + #phy-cells = <0>; + }; }; dc_noc: interconnect@9160000 {
@@ -3166,8 +3175,8 @@ dispcc: clock-controller@af00000 { <&gcc GCC_DISP_GPLL0_CLK_SRC>, <&dsi_phy 0>, <&dsi_phy 1>, - <0>, - <0>; + <&dp_phy 0>, + <&dp_phy 1>; clock-names = "bi_tcxo", "gcc_disp_gpll0_clk_src", "dsi0_phy_pll_out_byteclk",
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 01/13] arm64: dts: qcom: sc7180: Update dts for DP phy inside QMP phy
Quoted 23 lines · Douglas Anderson
From: Stephen Boyd <[email protected]>
Drop the old node and add the new one in its place.
Cc Stephen Boyd <[email protected]>Cc Jeykumar Sankaran <[email protected]>Cc Chandan Uddaraju <[email protected]>Cc Vara Reddy <[email protected]>Cc Tanmay Shah <[email protected]>Cc Rob Clark <[email protected]>Signed-off-by Stephen Boyd <[email protected]>[dianders: Adjusted due to DP not itself not in upstream dts yet]Signed-off-by Douglas Anderson <[email protected]>---
arch/arm64/boot/dts/qcom/sc7180.dtsi | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-)arch/arm64/boot/dts/qcom/sc7180.dtsi +0
-0
arch/arm64/boot/dts/qcom/sc7180.dtsi usb_1_hsphy: phy@88e3000 { · line 2775
Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +2
-3@@ -2770,12 +2770,11 @@ usb_1_hsphy: phy@88e3000 { }; usb_1_qmpphy: phy-wrapper@88e9000 { - compatible = "qcom,sc7180-qmp-usb3-phy"; + compatible = "qcom,sc7180-qmp-usb3-dp-phy"; reg = <0 0x088e9000 0 0x18c>, - <0 0x088e8000 0 0x38>; - reg-names = "reg-base", "dp_com"; + <0 0x088e8000 0 0x38>,
Technically this should be 0x3c. Offset 0x38 is USB3_DP_COM_REVISION_ID3 (not used by the current driver though).
arch/arm64/boot/dts/qcom/sc7180.dtsi usb_1_hsphy: phy@88e3000 { · line 2776
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <0 0x088ea000 0 0x40>;
I think 0x40 is not enough here.
This is a serdes region and qmp_v3_dp_serdes_tbl contains registers 0x148 and 0x154.
Quoted 43 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +13
-4status = "disabled"; - #clock-cells = <1>; #address-cells = <2>; #size-cells = <2>; ranges;@@ -2790,7 +2789,7 @@ usb_1_qmpphy: phy-wrapper@88e9000 { <&gcc GCC_USB3_DP_PHY_PRIM_BCR>; reset-names = "phy", "common"; - usb_1_ssphy: phy@88e9200 { + usb_1_ssphy: usb3-phy@88e9200 { reg = <0 0x088e9200 0 0x128>, <0 0x088e9400 0 0x200>, <0 0x088e9c00 0 0x218>,@@ -2803,6 +2802,16 @@ usb_1_ssphy: phy@88e9200 { clock-names = "pipe0"; clock-output-names = "usb3_phy_pipe_clk_src"; }; + + dp_phy: dp-phy@88ea200 { + reg = <0 0x088ea200 0 0x200>, + <0 0x088ea400 0 0x200>, + <0 0x088eaa00 0 0x200>, + <0 0x088ea600 0 0x200>, + <0 0x088ea800 0 0x200>; + #clock-cells = <1>; + #phy-cells = <0>; + }; }; dc_noc: interconnect@9160000 {@@ -3166,8 +3175,8 @@ dispcc: clock-controller@af00000 { <&gcc GCC_DISP_GPLL0_CLK_SRC>, <&dsi_phy 0>, <&dsi_phy 1>, - <0>, - <0>; + <&dp_phy 0>, + <&dp_phy 1>; clock-names = "bi_tcxo", "gcc_disp_gpll0_clk_src", "dsi0_phy_pll_out_byteclk",
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 01/13] arm64: dts: qcom: sc7180: Update dts for DP phy inside QMP phy
Hi,
Quoted 9 lines · Dmitry Baryshkov
arch/arm64/boot/dts/qcom/sc7180.dtsi usb_1_hsphy: phy@88e3000 { · line 2775
Quoted 8 lines
usb_1_qmpphy: phy-wrapper@88e9000 {arch/arm64/boot/dts/qcom/sc7180.dtsi +2
-3- compatible = "qcom,sc7180-qmp-usb3-phy"; + compatible = "qcom,sc7180-qmp-usb3-dp-phy"; reg = <0 0x088e9000 0 0x18c>, - <0 0x088e8000 0 0x38>; - reg-names = "reg-base", "dp_com"; + <0 0x088e8000 0 0x38>,
Quoted 8 lines
Technically this should be
0x3c. Offset0x38isUSB3_DP_COM_REVISION_ID3(not used by the current driver though).Quoted 1 line
+ <0
0x088ea00000x40>;I think
0x40is not enough here.
This is a serdes region andqmp_v3_dp_serdes_tblcontains registers0x148and0x154.
OK!
https://lore.kernel.org/r/20210315103836.1.I9a97120319d43b42353aeac4d348624d60687df7@changeid
-Doug
PATCH 2/13 arm64: dts: qcom: Move sc7180 MI2S config to board files and make pulldown
In reply to Douglas AndersonIn general pinconf belongs in board files, not SoC files. Move it to the only current user (trogdor). Also adjust the drive strengths and pulls.
---
This should replace the patch ("Asoc: qcom: dts: Change MI2S GPIO configuration to pulldown") [1].
[1] https://lore.kernel.org/r/[email protected]
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 24 ++++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 18 --------------- 2 files changed, 24 insertions(+), 18 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +24 -0
@@ -875,6 +875,22 @@ pinconf { }; }; +&pri_mi2s_active { + pinconf { + pins = "gpio53", "gpio54", "gpio55", "gpio56"; + drive-strength = <2>; + bias-pull-down; + }; +}; + +&pri_mi2s_mclk_active { + pinconf { + pins = "gpio57"; + drive-strength = <2>; + bias-pull-down; + }; +}; + &qspi_cs0 { pinconf { pins = "gpio68";
@@ -1015,6 +1031,14 @@ pinconf-rx { }; }; +&sec_mi2s_active { + pinconf { + pins = "gpio49", "gpio50", "gpio51"; + drive-strength = <2>; + bias-pull-down; + }; +}; + /* PINCTRL - board-specific pinctrl */ &pm6150_gpio {
arch/arm64/boot/dts/qcom/sc7180.dtsi +0 -18
@@ -1856,12 +1856,6 @@ pinmux { pins = "gpio49", "gpio50", "gpio51"; function = "mi2s_1"; }; - - pinconf { - pins = "gpio49", "gpio50", "gpio51"; - drive-strength = <8>; - bias-pull-up; - }; }; pri_mi2s_active: pri-mi2s-active {
@@ -1869,12 +1863,6 @@ pinmux { pins = "gpio53", "gpio54", "gpio55", "gpio56"; function = "mi2s_0"; }; - - pinconf { - pins = "gpio53", "gpio54", "gpio55", "gpio56"; - drive-strength = <8>; - bias-pull-up; - }; }; pri_mi2s_mclk_active: pri-mi2s-mclk-active {
@@ -1882,12 +1870,6 @@ pinmux { pins = "gpio57"; function = "lpass_ext"; }; - - pinconf { - pins = "gpio57"; - drive-strength = <8>; - bias-pull-up; - }; }; sdc1_on: sdc1-on {
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 02/13] arm64: dts: qcom: Move sc7180 MI2S config to board files and make pulldown
Hi,
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi pinconf { · line 885
Quoted 9 lines
+&pri_mi2s_active {
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +7
-0+ pinconf { + pins = "gpio53", "gpio54", "gpio55", "gpio56"; + drive-strength = <2>; + bias-pull-down; + }; +}; +
You can omit pinconf{}, so the outcome would be:&pri_mi2s_active {
pins = ...
...
};
This makes the DTs ever so shorter and is the style that's currently used for new submissions.
Same goes for the nodes that are being referenced.
Quoted 60 lines
+&pri_mi2s_mclk_active {
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +15
-0+ pinconf { + pins = "gpio57"; + drive-strength = <2>; + bias-pull-down; + }; +}; + &qspi_cs0 { pinconf { pins = "gpio68";@@ -1015,6 +1031,14 @@ pinconf-rx { }; }; +&sec_mi2s_active { + pinconf { + pins = "gpio49", "gpio50", "gpio51"; + drive-strength = <2>; + bias-pull-down; + }; +}; + /* PINCTRL - board-specific pinctrl */ &pm6150_gpio {arch/arm64/boot/dts/qcom/sc7180.dtsi +0
-12@@ -1856,12 +1856,6 @@ pinmux { pins = "gpio49", "gpio50", "gpio51"; function = "mi2s_1"; }; - - pinconf { - pins = "gpio49", "gpio50", "gpio51"; - drive-strength = <8>; - bias-pull-up; - }; }; pri_mi2s_active: pri-mi2s-active {@@ -1869,12 +1863,6 @@ pinmux { pins = "gpio53", "gpio54", "gpio55", "gpio56"; function = "mi2s_0"; }; - - pinconf { - pins = "gpio53", "gpio54", "gpio55", "gpio56"; - drive-strength = <8>; - bias-pull-up; - }; }; pri_mi2s_mclk_active: pri-mi2s-mclk-active {@@ -1882,12 +1870,6 @@ pinmux { pins = "gpio57"; function = "lpass_ext";
arch/arm64/boot/dts/qcom/sc7180.dtsi pinmux { · line 1875
Quoted 10 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +0
-6}; - - pinconf { - pins = "gpio57"; - drive-strength = <8>; - bias-pull-up; - }; }; sdc1_on: sdc1-on {
Applies to all ^.
Konrad
Re: [PATCH 02/13] arm64: dts: qcom: Move sc7180 MI2S config to board files and make pulldown
Hi,
Quoted 21 lines · Konrad Dybcio
Hi,
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi pinconf { · line 885
Quoted 9 lines
+&pri_mi2s_active {
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +7
-0+ pinconf { + pins = "gpio53", "gpio54", "gpio55", "gpio56"; + drive-strength = <2>; + bias-pull-down; + }; +}; +You can omit pinconf{}, so the outcome would be:
&pri_mi2s_active{pins = ... ...
Quoted 6 lines
};
This makes the DTs ever so shorter and is the style that's currently used for new submissions.
Same goes for the nodes that are being referenced.
Yes, I agree. That definitely makes sense going forward, but I think it'll just add to the confusion to switch a dts for a given SoC mid-stride. ...or, if we do switch the style it should be done in a separate (no-op) patch series. This series is already giant enough...
-Doug
Re: [PATCH 02/13] arm64: dts: qcom: Move sc7180 MI2S config to board files and make pulldown
Quoted 8 lines
Yes, I agree. That definitely makes sense going forward, but I think it'll just add to the confusion to switch a dts for a given SoC mid-stride. ...or, if we do switch the style it should be done in a separate (no-op) patch series. This series is already giant enough...
-Doug
Sounds good to me!
Konrad
Re: [PATCH 02/13] arm64: dts: qcom: Move sc7180 MI2S config to board files and make pulldown
In reply to Douglas AndersonQuoted 13 lines · Douglas Anderson
In general pinconf belongs in board files, not SoC files. Move it to the only current user (trogdor). Also adjust the drive strengths and pulls.
Cc V Sujith Kumar Reddy <[email protected]>Cc Srinivasa Rao Mandadapu <[email protected]>Cc Tzung-Bi Shih <[email protected]>Cc Judy Hsiao <[email protected]>Signed-off-by Douglas Anderson <[email protected]>---
This should replace the patch ("Asoc: qcom: dts: Change MI2S GPIO configuration to pulldown") [1].
Quoted 5 lines
[1] https://lore.kernel.org/r/[email protected]
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 24 ++++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 18 --------------- 2 files changed, 24 insertions(+), 18 deletions(-)
PATCH 3/13 arm64: dts: qcom: Prep sc7180-trogdor trackpad IRQ for new boards
In reply to Douglas AndersonThe trackpad interrupt got renamed and also moved to a new GPIO on newer boards. Let's do the move in the "trogdor.dtsi" file and then undo it in the two old boards.
NOTE: since none of the new boards have device trees yet, this change looks silly on its own but it will make sense after more boards are supported.
---
.../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 14 ++++++++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 16 ++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 14 ++++++++------ 3 files changed, 38 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi +14 -0
@@ -58,8 +58,22 @@ ap_ts: touchscreen@10 { }; }; +&trackpad { + interrupts = <58 IRQ_TYPE_EDGE_FALLING>; +}; + /* PINCTRL - modifications to sc7180-trogdor.dtsi */ +&trackpad_int_1v8_odl { + pinmux { + pins = "gpio58"; + }; + + pinconf { + pins = "gpio58"; + }; +}; + &ts_reset_l { pinconf { /* This pin is not connected on -rev0, pull up to park. */
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts +16 -0
@@ -68,6 +68,22 @@ &sdhc_2 { status = "okay"; }; +&trackpad { + interrupts = <58 IRQ_TYPE_EDGE_FALLING>; +}; + +/* PINCTRL - modifications to sc7180-trogdor.dtsi */ + +&trackpad_int_1v8_odl { + pinmux { + pins = "gpio58"; + }; + + pinconf { + pins = "gpio58"; + }; +}; + /* PINCTRL - board-specific pinctrl */ &tlmm {
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +8 -6
@@ -642,14 +642,14 @@ ap_tp_i2c: &i2c7 { status = "okay"; clock-frequency = <400000>; - trackpad@15 { + trackpad: trackpad@15 { compatible = "elan,ekth3000"; reg = <0x15>; pinctrl-names = "default"; - pinctrl-0 = <&trackpad_int_1v8_odl>; + pinctrl-0 = <&tp_int_odl>; interrupt-parent = <&tlmm>; - interrupts = <58 IRQ_TYPE_EDGE_FALLING>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; vcc-supply = <&pp3300_fp_tp>;
@@ -1410,14 +1410,16 @@ pinconf-rx { }; }; - trackpad_int_1v8_odl: trackpad-int-1v8-odl { + /* Named trackpad_int_1v8_odl on earlier revision schematics */ + trackpad_int_1v8_odl: + tp_int_odl: tp-int-odl { pinmux { - pins = "gpio58"; + pins = "gpio0"; function = "gpio"; }; pinconf { - pins = "gpio58"; + pins = "gpio0"; /* Has external pullup */ bias-disable;
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 03/13] arm64: dts: qcom: Prep sc7180-trogdor trackpad IRQ for new boards
Quoted 9 lines · Douglas Anderson
The trackpad interrupt got renamed and also moved to a new GPIO on newer boards. Let's do the move in the "
trogdor.dtsi" file and then undo it in the two old boards.NOTE: since none of the new boards have device trees yet, this change looks silly on its own but it will make sense after more boards are supported.
Signed-off-by Douglas Anderson <[email protected]>
PATCH 4/13 arm64: dts: qcom: Unify the sc7180-trogdor panel nodes
In reply to Douglas AndersonLet's avoid a bit of duplication by pushing this up to the trogdor.dtsi file.
---
.../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 21 ++++--------------- .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 19 ++++------------- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 15 +++++++++++++ 3 files changed, 23 insertions(+), 32 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi +4 -17
@@ -12,23 +12,6 @@ #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 { semtech,cs0-ground; semtech,combined-sensors = <3>;
@@ -58,6 +41,10 @@ ap_ts: touchscreen@10 { }; }; +&panel { + compatible = "boe,nv133fhm-n62"; +}; + &trackpad { interrupts = <58 IRQ_TYPE_EDGE_FALLING>; };
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts +4 -15
@@ -17,21 +17,6 @@ / { model = "Google Trogdor (rev1+)"; compatible = "google,trogdor", "qcom,sc7180"; - - panel: panel { - compatible = "auo,b116xa01"; - 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_ts_pen_1v8: &i2c4 {
@@ -53,6 +38,10 @@ ap_ts: touchscreen@10 { }; }; +&panel { + compatible = "auo,b116xa01"; +}; + &pp3300_hub { /* pp3300_l7c is used to power the USB hub */ /delete-property/regulator-always-on;
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +15 -0
@@ -255,6 +255,21 @@ max98357a: audio-codec-0 { #sound-dai-cells = <0>; }; + panel: panel { + /* Compatible will be filled in per-board */ + 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>; + }; + }; + }; + }; + pwmleds { compatible = "pwm-leds"; keyboard_backlight: keyboard-backlight {
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 04/13] arm64: dts: qcom: Unify the sc7180-trogdor panel nodes
Quoted 4 lines · Douglas Anderson
Let's avoid a bit of duplication by pushing this up to the
trogdor.dtsifile.Signed-off-by Douglas Anderson <[email protected]>
PATCH 5/13 arm64: dts: qcom: trogdor: Only wakeup from pen eject
In reply to Douglas AndersonFrom: Stephen Boyd <[email protected]>
Configure the pen to be a wakeup source only when the pen is ejected instead of both when the pen is ejected and inserted. This corresponds to wake source requirements.
---
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +2 -0
@@ -6,6 +6,7 @@ */ #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/gpio-keys.h> #include <dt-bindings/input/input.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
@@ -243,6 +244,7 @@ pen_insert: pen-insert { gpios = <&tlmm 52 GPIO_ACTIVE_LOW>; linux,code = <SW_PEN_INSERTED>; linux,input-type = <EV_SW>; + wakeup-event-action = <EV_ACT_DEASSERTED>; wakeup-source; }; };
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 05/13] arm64: dts: qcom: trogdor: Only wakeup from pen eject
Quoted 8 lines · Douglas Anderson
From: Stephen Boyd <[email protected]>
Configure the pen to be a wakeup source only when the pen is ejected instead of both when the pen is ejected and inserted. This corresponds to wake source requirements.
Signed-off-by Stephen Boyd <[email protected]>Signed-off-by Douglas Anderson <[email protected]>
PATCH 6/13 arm64: dts: qcom: Disable camera clk on sc7180-trogdor devices by default
In reply to Douglas AndersonFrom: Stephen Boyd <[email protected]>
We only want to use this clk driver on CoachZ devices. Disable it for all other Trogdor boards. NOTE: CoachZ devices aren't yet supported upstream so until it is this is just disabled for all trogdor.
---
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +4 -0
@@ -568,6 +568,10 @@ cr50: tpm@0 { }; }; +&camcc { + status = "disabled"; +}; + &dsi0 { status = "okay"; vdda-supply = <&vdda_mipi_dsi0_1p2>;
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 06/13] arm64: dts: qcom: Disable camera clk on sc7180-trogdor devices by default
Quoted 10 lines · Douglas Anderson
From: Stephen Boyd <[email protected]>
We only want to use this clk driver on CoachZ devices. Disable it for all other Trogdor boards. NOTE: CoachZ devices aren't yet supported upstream so until it is this is just disabled for all trogdor.
Cc Tomasz Figa <[email protected]>Signed-off-by Stephen Boyd <[email protected]>[dianders:adjusted since no coachz upstream yet]Signed-off-by Douglas Anderson <[email protected]>
PATCH 7/13 arm64: dts: qcom: sc7180-trogdor: Remove fp control pins in prep for coachz
In reply to Douglas AndersonFrom: Alexandru M Stan <[email protected]>
Removed the pinctrl and pin{mux,conf} for the control pins because:
1. The only need for them is for userspace control via flash_fp_mcu
2. cros-ec doesn't know what to do with them, and even if it did, it would interfere with flash_fp_mcu at the most inopportune times
Since we're not using hogs, we rely on AP firmware to set all the control pins correctly.
---
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 45 +------------------- 1 file changed, 1 insertion(+), 44 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +1 -44
@@ -808,7 +808,7 @@ cros_ec_fp: ec@0 { interrupt-parent = <&tlmm>; interrupts = <4 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&fp_to_ap_irq_l>, <&fp_rst_l>, <&fpmcu_boot0>, <&fpmcu_sel>; + pinctrl-0 = <&fp_to_ap_irq_l>; spi-max-frequency = <3000000>; }; };
@@ -1233,48 +1233,6 @@ pinconf { }; }; - fpmcu_boot0: fpmcu-boot0 { - pinmux { - pins = "gpio10"; - function = "gpio"; - }; - - pinconf { - pins = "gpio10"; - bias-disable; - drive-strength = <2>; - output-low; - }; - }; - - fpmcu_sel: fpmcu-sel { - pinmux { - pins = "gpio22"; - function = "gpio"; - }; - - pinconf { - pins = "gpio22"; - bias-disable; - drive-strength = <2>; - output-high; - }; - }; - - fp_rst_l: fp-rst-l { - pinmux { - pins = "gpio5"; - function = "gpio"; - }; - - pinconf { - pins = "gpio5"; - bias-disable; - drive-strength = <2>; - output-high; - }; - }; - fp_to_ap_irq_l: fp-to-ap-irq-l { pinmux { pins = "gpio4";
@@ -1290,7 +1248,6 @@ pinconf { }; }; - h1_ap_int_odl: h1-ap-int-odl { pinmux { pins = "gpio42";
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 07/13] arm64: dts: qcom: sc7180-trogdor: Remove fp control pins in prep for coachz
Quoted 7 lines · Douglas Anderson
From: Alexandru M Stan <[email protected]>
Removed the pinctrl and pin{mux,conf} for the control pins because:
1. The only need for them is for userspace control viaflash_fp_mcu
2. cros-ec doesn't know what to do with them, and even if it did, it would interfere withflash_fp_mcuat the most inopportune times
Quoted 8 lines
Since we're not using hogs, we rely on AP firmware to set all the control pins correctly.
Cc Stephen Boyd <[email protected]>Cc Craig Hesling <[email protected]>Signed-off-by Alexandru M Stan <[email protected]>[dianders: adjusted since coachz isn't upstream yet]Signed-off-by Douglas Anderson <[email protected]>
We have essentially the same patch downstream, so I suppose the AP FW indeed takes care of configuring the FP pins as needed :)
Reviewed-by; Matthias Kaehlcke <[email protected]>
PATCH 8/13 arm64: dts: qcom: sc7180: Remove clock for bluetooth on Trogdor
In reply to Douglas AndersonFrom: Venkata Lakshmi Narayana Gubba <[email protected]>
Removed voting for RPMH_RF_CLK2 which is not required as it is getting managed by BT SoC through SW_CTRL line.
---
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +0 -1
@@ -833,7 +833,6 @@ bluetooth: bluetooth { vddrf-supply = <&pp1300_l2c>; vddch0-supply = <&pp3300_l10c>; max-speed = <3200000>; - clocks = <&rpmhcc RPMH_RF_CLK2>; }; };
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 08/13] arm64: dts: qcom: sc7180: Remove clock for bluetooth on Trogdor
Quoted 8 lines · Douglas Anderson
From: Venkata Lakshmi Narayana Gubba <[email protected]>
Removed voting for
RPMH_RF_CLK2which is not required as it is getting managed by BT SoC throughSW_CTRLline.Cc Matthias Kaehlcke <[email protected]>Signed-off-by Venkata Lakshmi Narayana Gubba <[email protected]>Signed-off-by Douglas Anderson <[email protected]>
PATCH 9/13 arm64: dts: qcom: sc7180: add GO_LAZOR variant property for lazor
In reply to Douglas AndersonFrom: Abhishek Kumar <[email protected]>
For trogdor, in the latest board-2.bin file, new BDF with variant name GO_LAZOR has been introduced, so we need this property set, for GO_LAZOR BDF to be picked.
---
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi +4 -0
@@ -49,6 +49,10 @@ &trackpad { interrupts = <58 IRQ_TYPE_EDGE_FALLING>; }; +&wifi { + qcom,ath10k-calibration-variant = "GO_LAZOR"; +}; + /* PINCTRL - modifications to sc7180-trogdor.dtsi */ &trackpad_int_1v8_odl {
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 09/13] arm64: dts: qcom: sc7180: add GO_LAZOR variant property for lazor
Quoted 10 lines · Douglas Anderson
From: Abhishek Kumar <[email protected]>
For trogdor, in the latest board-2.bin file, new BDF with variant name
GO_LAZORhas been introduced, so we need this property set, forGO_LAZORBDF to be picked.Cc Philip Chen <[email protected]>Signed-off-by Abhishek Kumar <[email protected]>[dianders: adjusted subject line and sort order]Signed-off-by Douglas Anderson <[email protected]>
I don't claim to be familiar with this part, but the same is done downstream and the corresponding downstream commit references a bug that talks about a 'GO_LAZOR' BDF variant, so this must be awesome!
PATCH 10/13 arm64: dts: qcom: sc7180: Set up lazor r3+ as sc7180-lite SKUs
In reply to Douglas AndersonFrom: Matthias Kaehlcke <[email protected]>
Lazor rev3 and later use the 'lite' version of the SC7180 SoC.
---
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-kb.dts | 5 ++++- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts | 4 +++- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3.dts | 1 + 3 files changed, 8 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-kb.dts +4 -1
@@ -5,7 +5,10 @@ * Copyright 2020 Google LLC. */ -#include "sc7180-trogdor-lazor-r3.dts" +/dts-v1/; + +#include "sc7180-trogdor-lazor.dtsi" +#include "sc7180-lite.dtsi" / { model = "Google Lazor (rev3+) with KB Backlight";
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts +3 -1
@@ -5,7 +5,9 @@ * Copyright 2020 Google LLC. */ -#include "sc7180-trogdor-lazor-r3.dts" +/dts-v1/; + +#include "sc7180-trogdor-lazor.dtsi" #include "sc7180-trogdor-lte-sku.dtsi" / {
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3.dts +1 -0
@@ -8,6 +8,7 @@ /dts-v1/; #include "sc7180-trogdor-lazor.dtsi" +#include "sc7180-lite.dtsi" / { model = "Google Lazor (rev3+)";
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
PATCH 11/13 arm64: dts: qcom: Add sc7180-lazor-limozeen skus
In reply to Douglas AndersonThis is a SKU variant of lazor. Add it. This squashes the downstream patches to support this hardware.
NOTES:
- The non-touch SKU actually has "innolux,n116bca" but that driver is still pending in simple-panel. The bindings have been Acked though. Things work well enough with the "innolux,n116bge" timings for now, though.
- The wonky special dts just for "-rev4" arguably doesn't need to go upstream since they weren't widely distributed, but since a few people have them we might as well. If it ever causes problems we can delete it.
---
arch/arm64/boot/dts/qcom/Makefile | 3 ++ .../sc7180-trogdor-lazor-limozeen-nots-r4.dts | 34 +++++++++++++++ .../sc7180-trogdor-lazor-limozeen-nots.dts | 26 ++++++++++++ .../qcom/sc7180-trogdor-lazor-limozeen.dts | 42 +++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r4.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen.dts
arch/arm64/boot/dts/qcom/Makefile +3 -0
@@ -38,6 +38,9 @@ dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r1-lte.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r3.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r3-kb.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r3-lte.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-limozeen.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-limozeen-nots.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-limozeen-nots-r4.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
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots-r4.dts new file +34 -0
@@ -0,0 +1,34 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Lazor Limozeen board device tree source + * + * Copyright 2020 Google LLC. + */ + +#include "sc7180-trogdor-lazor-limozeen-nots.dts" + +/ { + model = "Google Lazor Limozeen without Touchscreen (rev4)"; + compatible = "google,lazor-rev4-sku5", "qcom,sc7180"; +}; + +/* + * rev4-sku5 was built with a different trackpad. + */ +/delete-node/&trackpad; +&ap_tp_i2c { + trackpad: trackpad@2c { + compatible = "hid-over-i2c"; + reg = <0x2c>; + pinctrl-names = "default"; + pinctrl-0 = <&tp_int_odl>; + + interrupt-parent = <&tlmm>; + interrupts = <58 IRQ_TYPE_EDGE_FALLING>; + + vcc-supply = <&pp3300_fp_tp>; + hid-descr-addr = <0x20>; + + wakeup-source; + }; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen-nots.dts new file +26 -0
@@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Lazor Limozeen board device tree source + * + * Copyright 2020 Google LLC. + */ + +/dts-v1/; + +#include "sc7180-trogdor-lazor.dtsi" +#include "sc7180-trogdor-lte-sku.dtsi" + +/ { + model = "Google Lazor Limozeen without Touchscreen"; + compatible = "google,lazor-sku6", "google,lazor-sku5", "qcom,sc7180"; +}; + +/delete-node/&ap_ts; + +&panel { + compatible = "innolux,n116bca", "innolux,n116bge"; +}; + +&sdhc_2 { + status = "okay"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-limozeen.dts new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 11/13] arm64: dts: qcom: Add sc7180-lazor-limozeen skus
Quoted 13 lines · Douglas Anderson
This is a SKU variant of lazor. Add it. This squashes the downstream patches to support this hardware.
NOTES:
- The non-touch SKU actually has "innolux,n116bca" but that driver is still pending in simple-panel. The bindings have been Acked though. Things work well enough with the "innolux,n116bge" timings for now, though.
- The wonky special dts just for "-rev4" arguably doesn't need to go upstream since they weren't widely distributed, but since a few people have them we might as well. If it ever causes problems we can delete it.
Quoted 2 lines
Cc Stephen Boyd <[email protected]>Signed-off-by Douglas Anderson <[email protected]>
PATCH 12/13 arm64: dts: qcom: Add sc7180-lazor-pompom skus
In reply to Douglas AndersonThis is a trogdor variant. This is mostly a grab from the downstream tree with notable exceptions:
- I skip -rev0. This was a super early build and there's no advantage of long term support.
- In -rev1 I translate the handling of the USB hub like is done for similar boards. See the difference between the downstream and upstream 'sc7180-trogdor-lazor-r0.dts' for an example. This will need to be resolved when proper support for the USB hub is figured out upstream.
- I remove sound node since sound hasn't landed upstream yet.
- In incorporate the pending <https://crrev.com/c/2719075> for the keyboard.
---
arch/arm64/boot/dts/qcom/Makefile | 4 + .../dts/qcom/sc7180-trogdor-pompom-r1-lte.dts | 14 + .../dts/qcom/sc7180-trogdor-pompom-r1.dts | 26 ++ .../dts/qcom/sc7180-trogdor-pompom-r2-lte.dts | 14 + .../dts/qcom/sc7180-trogdor-pompom-r2.dts | 44 +++ .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 288 ++++++++++++++++++ 6 files changed, 390 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi
arch/arm64/boot/dts/qcom/Makefile +4 -0
@@ -41,6 +41,10 @@ dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-r3-lte.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-limozeen.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-limozeen-nots.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-lazor-limozeen-nots-r4.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-pompom-r1.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-pompom-r1-lte.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-pompom-r2.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-pompom-r2-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
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1-lte.dts new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Pompom board device tree source + * + * Copyright 2020 Google LLC. + */ + +#include "sc7180-trogdor-pompom-r1.dts" +#include "sc7180-trogdor-lte-sku.dtsi" + +/ { + model = "Google Pompom (rev1) with LTE"; + compatible = "google,pompom-rev1-sku0", "qcom,sc7180"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r1.dts new file +26 -0
@@ -0,0 +1,26 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Pompom board device tree source + * + * Copyright 2020 Google LLC. + */ + +/dts-v1/; + +#include "sc7180-trogdor-pompom.dtsi" + +/ { + model = "Google Pompom (rev1)"; + compatible = "google,pompom-rev1", "qcom,sc7180"; +}; + +&pp3300_hub { + /* pp3300_l7c is used to power the USB hub */ + /delete-property/regulator-always-on; + /delete-property/regulator-boot-on; +}; + +&pp3300_l7c { + regulator-always-on; + regulator-boot-on; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2-lte.dts new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Pompom board device tree source + * + * Copyright 2020 Google LLC. + */ + +#include "sc7180-trogdor-pompom-r2.dts" +#include "sc7180-trogdor-lte-sku.dtsi" + +/ { + model = "Google Pompom (rev2+) with LTE"; + compatible = "google,pompom-sku0", "qcom,sc7180"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r2.dts new file +44 -0
44 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi new file +288 -0
288 lines not on this page · raw message
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 12/13] arm64: dts: qcom: Add sc7180-lazor-pompom skus
Hi,
Quoted 22 lines · Douglas Anderson
This is a trogdor variant. This is mostly a grab from the downstream tree with notable exceptions:
- I skip -rev0. This was a super early build and there's no advantage of long term support.
- In -rev1 I translate the handling of the USB hub like is done for similar boards. See the difference between the downstream and upstream 'sc7180-trogdor-lazor-r0.dts' for an example. This will need to be resolved when proper support for the USB hub is figured out upstream.
- I remove sound node since sound hasn't landed upstream yet.
- In incorporate the pending <https://crrev.com/c/2719075> for the keyboard.Cc Philip Chen <[email protected]>Cc Matthias Kaehlcke <[email protected]>Cc Stephen Boyd <[email protected]>Cc Tzung-Bi Shih <[email protected]>Cc Judy Hsiao <[email protected]>Signed-off-by Douglas Anderson <[email protected]>---
Quoted 7 lines
arch/arm64/boot/dts/qcom/Makefile | 4 + .../dts/qcom/sc7180-trogdor-pompom-r1-lte.dts | 14 + .../dts/qcom/sc7180-trogdor-pompom-r1.dts | 26 ++ .../dts/qcom/sc7180-trogdor-pompom-r2-lte.dts | 14 + .../dts/qcom/sc7180-trogdor-pompom-r2.dts | 44 +++ .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 288 ++++++++++++++++++ 6 files changed, 390 insertions(+)
As always I see a typo right after I hit send. ${SUBJECT} should be "trogdor-pompom", not "lazor-pompom" for this and the next patch. I copy/pastad from the previous patch (limozeen _is_ actually a lazor) and didn't adjust properly.
I'm happy with any:
* to spin a -r2
* for Bjorn to fix when landing
* for this just to land since it's a harmless typo.
In any case I won't spin for now but I wanted to reply so if I do spin for another reason I'll won't forget. ;-)
-Doug
Re: [PATCH 12/13] arm64: dts: qcom: Add sc7180-lazor-pompom skus
In reply to Douglas AndersonQuoted 19 lines · Douglas Anderson
This is a trogdor variant. This is mostly a grab from the downstream tree with notable exceptions:
- I skip -rev0. This was a super early build and there's no advantage of long term support.
- In -rev1 I translate the handling of the USB hub like is done for similar boards. See the difference between the downstream and upstream 'sc7180-trogdor-lazor-r0.dts' for an example. This will need to be resolved when proper support for the USB hub is figured out upstream.
- I remove sound node since sound hasn't landed upstream yet.
- In incorporate the pending <https://crrev.com/c/2719075> for the keyboard.Cc Philip Chen <[email protected]>Cc Matthias Kaehlcke <[email protected]>Cc Stephen Boyd <[email protected]>Cc Tzung-Bi Shih <[email protected]>Cc Judy Hsiao <[email protected]>Signed-off-by Douglas Anderson <[email protected]>
<snip>
Quoted 17 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi new file +11
-0@@ -0,0 +1,288 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Pompom board device tree source + * + * Copyright 2020 Google LLC. + */ + +#include "sc7180.dtsi" + +ap_ec_spi: &spi6 {}; +ap_h1_spi: &spi0 {};
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi line 21
Quoted 10 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi new file +10
-0+ +#include "sc7180-trogdor.dtsi" + +/ { + thermal-zones { + 5v-choke-thermal { + polling-delay-passive = <0>; + polling-delay = <250>; + + thermal-sensors = <&pm6150_adc_tm 0>;
This is fine with how things are currently configured for trogdor, however be aware that in the ADC thermal monitor config your patch is racing with 'arm64:
dts: qcom: sc7180: trogdor: Use ADC TM channel 0 instead of 1 for charger temperature' (https://lore.kernel.org/patchwork/patch/1384514/). That patch changes the charger thermistor for all trogdor boards to ADC TM channel 0, so the 5v-choke thermistor would have to move to another channel (most likely 1).
<snip>
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi line 131
Quoted 5 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi new file +5
-0+&pm6150_adc_tm { + status = "okay"; + + 5v-choke-thermistor@0 { + reg = <0>;
s/0/1/ in the two lines above if 'arm64: dts: qcom: sc7180: trogdor: Use ADC TM channel 0 instead of 1 for charger temperature' lands before this patch.
The other deltas with downstream are mentioned in the commit message, as long as we keep the change of the ADC TM channel in mind this looks good to me.
PATCH 13/13 arm64: dts: qcom: Add sc7180-lazor-coachz skus
In reply to Douglas AndersonThis is a trogdor variant. This is mostly a grab from the downstream tree with notable exceptions:
- I skip -rev0. This was a super early build and there's no advantage of long term support.
- I remove sound node since sound hasn't landed upstream yet.
---
NOTE: technically the "google,cros-ec-mkbp-proximity" binding hasn't landed upstream yet. However it has a Reviewed-by from Rob and the series in general sounds about ready to land. If necessary it can be removed / readded later.
arch/arm64/boot/dts/qcom/Makefile | 4 + .../dts/qcom/sc7180-trogdor-coachz-r1-lte.dts | 18 ++ .../dts/qcom/sc7180-trogdor-coachz-r1.dts | 154 +++++++++++ .../dts/qcom/sc7180-trogdor-coachz-r2-lte.dts | 18 ++ .../dts/qcom/sc7180-trogdor-coachz-r2.dts | 15 ++ .../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 249 ++++++++++++++++++ 6 files changed, 458 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2-lte.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2.dts create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi
arch/arm64/boot/dts/qcom/Makefile +4 -0
@@ -31,6 +31,10 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb dtb-$(CONFIG_ARCH_QCOM) += qrb5165-rb5.dtb dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1-lte.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r2.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r2-lte.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-kb.dtb
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1-lte.dts new file +18 -0
@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google CoachZ board device tree source + * + * Copyright 2020 Google LLC. + */ + +#include "sc7180-trogdor-coachz-r1.dts" +#include "sc7180-trogdor-lte-sku.dtsi" + +/ { + model = "Google CoachZ (rev1) with LTE"; + compatible = "google,coachz-rev1-sku0", "qcom,sc7180"; +}; + +&cros_ec_proximity { + label = "proximity-wifi-lte"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r1.dts new file +154 -0
154 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2-lte.dts new file +18 -0
@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google CoachZ board device tree source + * + * Copyright 2020 Google LLC. + */ + +#include "sc7180-trogdor-coachz-r2.dts" +#include "sc7180-trogdor-lte-sku.dtsi" + +/ { + model = "Google CoachZ (rev2+) with LTE"; + compatible = "google,coachz-sku0", "qcom,sc7180"; +}; + +&cros_ec_proximity { + label = "proximity-wifi-lte"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz-r2.dts new file +15 -0
@@ -0,0 +1,15 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google CoachZ board device tree source + * + * Copyright 2020 Google LLC. + */ + +/dts-v1/; + +#include "sc7180-trogdor-coachz.dtsi" + +/ { + model = "Google CoachZ (rev2+)"; + compatible = "google,coachz", "qcom,sc7180"; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi new file +249 -0
249 lines not on this page · raw message
Signature · 1 line
2.30.1.766.gb4fecdf3b7-goog
Re: [PATCH 13/13] arm64: dts: qcom: Add sc7180-lazor-coachz skus
Quoted 6 lines · Douglas Anderson
This is a trogdor variant. This is mostly a grab from the downstream tree with notable exceptions:
- I skip -rev0. This was a super early build and there's no advantage of long term support.
- I remove sound node since sound hasn't landed upstream yet.
Quoted 7 lines
Cc Gwendal Grignou <[email protected]>Cc Matthias Kaehlcke <[email protected]>Cc Stephen Boyd <[email protected]>Cc Tzung-Bi Shih <[email protected]>Cc Judy Hsiao <[email protected]>Signed-off-by Douglas Anderson <[email protected]>---
Matches downstream except for the sound node and -rev0, which are mentioned in the commit message. Also looks sane to me otherwise from a high level inspection.
Re: [PATCH 13/13] arm64: dts: qcom: Add sc7180-lazor-coachz skus
In reply to Douglas AndersonQuoting Douglas Anderson (2021-02-25 14:13:10)
Quoted 6 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi new file +0
-0@@ -0,0 +1,249 @@
[...]
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi line 75
Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi new file +9
-0+ +/* + * There's no SAR sensor, so i2c5 is re-purposed. We leave the + * proximity@28 node under i2c5 (from trogdor.dtsi) since it's "disabled" + * and doesn't hurt. + */ +i2c_wlc: &i2c5 { + /* Currently not connected to anything; see b/168652326 */ +};
Can we remove this? As far as I know this will always be this way and thus doesn't provide anything meaningful to leave this bug comment here that doesn't work for people.
Quoted 4 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi new file +4
-0+ +&i2c7 { + status = "disabled"; +};
Re: [PATCH 13/13] arm64: dts: qcom: Add sc7180-lazor-coachz skus
Hi,
Quoted 9 lines · Stephen Boyd
Quoting Douglas Anderson (2021-02-25 14:13:10)
Quoted 6 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi new file +0
-0@@ -0,0 +1,249 @@[...]
Quoted 13 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi line 75
Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi new file +9
-0+ +/* + * There's no SAR sensor, so i2c5 is re-purposed. We leave the + * proximity@28 node under i2c5 (from trogdor.dtsi) since it's "disabled" + * and doesn't hurt. + */ +i2c_wlc: &i2c5 { + /* Currently not connected to anything; see b/168652326 */ +};Can we remove this? As far as I know this will always be this way and thus doesn't provide anything meaningful to leave this bug comment here that doesn't work for people.
Yeah, that sounds good. We just want to delete this whole comment and the node.
That seems like enough reason to repost the series. I'll plan to do it early next week. Of course, I wouldn't object to any of these things:
* This patch landing and having the node and I'll do a follow-up patch to remove it.
* Bjorn removing the comment and node as he applies.
-Doug