arm64: dts: qcom: sc7180-trogdor: Make clamshell/detachable fragments
At a high-level, detachable Trogdors (sometimes known as Strongbads) don't have a cros_ec keyboard, while all clamshell Trogdors (only known as Trogdors) always have a cros_ec keyboard. Looking closer though, all clamshells have a USB type-A connector and a hardwired USB camera. And all detachables replace the USB camera with a MIPI based one and swap the USB type-a connector for the detachable keyboard pogo pins. Split the detachable and clamshell bits into different files so we can describe these differences in one place instead of in each board that includes sc7180-trogdor.dtsi. For now this is just the keyboard part, but eventually this will include the type-a port and the pogo pins. Cc: cros-qcom-dts-watchers@chromium.org Cc: Bjorn Andersson <andersson@kernel.org> Cc: Konrad Dybcio <konrad.dybcio@linaro.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: Pin-yen Lin <treapking@chromium.org> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20240604214233.3551692-4-swboyd@chromium.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
5abfd51398
commit
38b68e62c0
@@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Google Trogdor dts fragment for clamshells
|
||||
*
|
||||
* Copyright 2024 Google LLC.
|
||||
*/
|
||||
|
||||
/* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */
|
||||
#include <arm/cros-ec-keyboard.dtsi>
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "sc7180-trogdor.dtsi"
|
||||
#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
|
||||
#include "sc7180-trogdor-detachable.dtsi"
|
||||
|
||||
/* Deleted nodes from sc7180-trogdor.dtsi */
|
||||
|
||||
@@ -80,10 +81,6 @@
|
||||
};
|
||||
|
||||
&cros_ec {
|
||||
keyboard-controller {
|
||||
compatible = "google,cros-ec-keyb-switches";
|
||||
};
|
||||
|
||||
cros_ec_proximity: proximity {
|
||||
compatible = "google,cros-ec-mkbp-proximity";
|
||||
label = "proximity-wifi";
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Google Trogdor dts fragment for detachables
|
||||
*
|
||||
* Copyright 2024 Google LLC.
|
||||
*/
|
||||
|
||||
/* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */
|
||||
&cros_ec {
|
||||
keyboard-controller {
|
||||
compatible = "google,cros-ec-keyb-switches";
|
||||
};
|
||||
};
|
||||
@@ -5,9 +5,8 @@
|
||||
* Copyright 2021 Google LLC.
|
||||
*/
|
||||
|
||||
/* This file must be included after sc7180-trogdor.dtsi */
|
||||
|
||||
#include "sc7180-trogdor-rt5682i-sku.dtsi"
|
||||
#include "sc7180-trogdor-detachable.dtsi"
|
||||
|
||||
/ {
|
||||
/* BOARD-SPECIFIC TOP LEVEL NODES */
|
||||
@@ -135,12 +134,6 @@ ap_ts_pen_1v8: &i2c4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cros_ec {
|
||||
keyboard-controller {
|
||||
compatible = "google,cros-ec-keyb-switches";
|
||||
};
|
||||
};
|
||||
|
||||
&panel {
|
||||
compatible = "samsung,atna33xc20";
|
||||
enable-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "sc7180-trogdor.dtsi"
|
||||
#include "sc7180-trogdor-parade-ps8640.dtsi"
|
||||
#include <arm/cros-ec-keyboard.dtsi>
|
||||
#include "sc7180-trogdor-clamshell.dtsi"
|
||||
#include "sc7180-trogdor-lte-sku.dtsi"
|
||||
#include "sc7180-trogdor-rt5682s-sku.dtsi"
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* Copyright 2020 Google LLC.
|
||||
*/
|
||||
|
||||
/* This file must be included after sc7180-trogdor.dtsi */
|
||||
#include <arm/cros-ec-keyboard.dtsi>
|
||||
#include "sc7180-trogdor-clamshell.dtsi"
|
||||
|
||||
&ap_sar_sensor {
|
||||
semtech,cs0-ground;
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* Copyright 2021 Google LLC.
|
||||
*/
|
||||
|
||||
/* This file must be included after sc7180-trogdor.dtsi */
|
||||
#include <arm/cros-ec-keyboard.dtsi>
|
||||
#include "sc7180-trogdor-clamshell.dtsi"
|
||||
|
||||
&ap_sar_sensor {
|
||||
compatible = "semtech,sx9324";
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "sc7180-trogdor.dtsi"
|
||||
/* Must come after sc7180-trogdor.dtsi to modify cros_ec */
|
||||
#include <arm/cros-ec-keyboard.dtsi>
|
||||
#include "sc7180-trogdor-clamshell.dtsi"
|
||||
#include "sc7180-trogdor-rt5682i-sku.dtsi"
|
||||
#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "sc7180-trogdor.dtsi"
|
||||
#include "sc7180-trogdor-rt5682i-sku.dtsi"
|
||||
#include "sc7180-trogdor-detachable.dtsi"
|
||||
|
||||
/ {
|
||||
ppvar_lcd: ppvar-lcd-regulator {
|
||||
@@ -44,12 +45,6 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cros_ec {
|
||||
keyboard-controller {
|
||||
compatible = "google,cros-ec-keyb-switches";
|
||||
};
|
||||
};
|
||||
|
||||
&gpio_keys {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "sc7180-trogdor.dtsi"
|
||||
/* Must come after sc7180-trogdor.dtsi to modify cros_ec */
|
||||
#include <arm/cros-ec-keyboard.dtsi>
|
||||
#include "sc7180-trogdor-clamshell.dtsi"
|
||||
#include "sc7180-trogdor-rt5682i-sku.dtsi"
|
||||
#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "sc7180-trogdor.dtsi"
|
||||
#include "sc7180-trogdor-detachable.dtsi"
|
||||
|
||||
/ {
|
||||
avdd_lcd: avdd-lcd-regulator {
|
||||
@@ -104,10 +105,6 @@
|
||||
base_detection: cbas {
|
||||
compatible = "google,cros-cbas";
|
||||
};
|
||||
|
||||
keyboard-controller {
|
||||
compatible = "google,cros-ec-keyb-switches";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
|
||||
Reference in New Issue
Block a user