2021-10-28 21:19:53

by Jarrett Schultz

[permalink] [raw]
Subject: [PATCH 0/3] platform: surface: Introduce Surface XBL Driver

Introduce the Surface Extensible Boot Loader driver for the Surface Duo.
Exposes information about the driver to user space via sysfs.

Jarrett Schultz (3):
dt-bindings: platform: microsoft: Document surface xbl
platform: surface: Add surface xbl
arm64: dts: qcom: surface-duo: Add surface xbl

.../ABI/testing/sysfs-platform-surface-xbl | 78 ++++++
.../platform/microsoft/surface-xbl.yaml | 37 +++
MAINTAINERS | 9 +
.../dts/qcom/sm8150-microsoft-surface-duo.dts | 6 +
drivers/platform/surface/Kconfig | 10 +
drivers/platform/surface/Makefile | 1 +
drivers/platform/surface/surface-xbl.c | 223 ++++++++++++++++++
7 files changed, 364 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-platform-surface-xbl
create mode 100644 Documentation/devicetree/bindings/platform/microsoft/surface-xbl.yaml
create mode 100644 drivers/platform/surface/surface-xbl.c

--
2.25.1


2021-10-28 21:20:52

by Jarrett Schultz

[permalink] [raw]
Subject: [PATCH 3/3] arm64: dts: qcom: surface-duo: Add surface xbl

Introduce device tree source for the surface xbl driver.

Signed-off-by: Jarrett Schultz <[email protected]>
---
arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts b/arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts
index 736da9af44e0..9fd9f733a791 100644
--- a/arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts
+++ b/arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts
@@ -57,6 +57,12 @@ vol_up {
linux,code = <KEY_VOLUMEUP>;
};
};
+
+ xbl@146bfa94 {
+ compatible = "microsoft,sm8150-surface-duo-xbl";
+ reg = <0x00 0x146bfa94 0x00 0x100>;
+ status = "okay";
+ };
};

&apps_rsc {
--
2.25.1