Instead of having them all available, mark them all as "fail-needs-probe-*"
and have the implementation try to probe which one is present.
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
index bdcd35cecad9..052109b0fa3b 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
@@ -15,6 +15,7 @@ touchscreen2: touchscreen@34 {
reg = <0x34>;
interrupt-parent = <&pio>;
interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
+ status = "fail-needs-probe-touchscreen";
};
/*
@@ -28,6 +29,7 @@ touchscreen3: touchscreen@20 {
hid-descr-addr = <0x0020>;
interrupt-parent = <&pio>;
interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
+ status = "fail-needs-probe-touchscreen";
};
};
@@ -44,6 +46,7 @@ trackpad2: trackpad@2c {
reg = <0x2c>;
hid-descr-addr = <0x0020>;
wakeup-source;
+ status = "fail-needs-probe-trackpad";
};
};
@@ -68,3 +71,11 @@ pins_wp {
};
};
};
+
+&touchscreen {
+ status = "fail-needs-probe-touchscreen";
+};
+
+&trackpad {
+ status = "fail-needs-probe-trackpad";
+};
--
2.42.0.869.gea05f2083d-goog