Skip to contentSkip to conversation

ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards

PATCH Applied Artur Weber 2 participants 2 messages Jul 14, 2023 – Jul 19, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards

Introduce support for the Galaxy Tab 3 8.0 series of boards:

- Samsung Galaxy Tab 3 8.0 WiFi (SM-T310/lt01wifi)
- Samsung Galaxy Tab 3 8.0 3G (SM-T311/lt013g)
- Samsung Galaxy Tab 3 8.0 LTE (SM-T315/lt01lte)

What works:

- Display and backlight
- Touchscreen
- GPIO buttons, hall sensor
- WiFi and Bluetooth
- USB, fuel gauge, charging
- Accelerometer and magnetometer
- Audio: speaker, microphone, headset
- WiFi model only: light sensor

---
This is an updated version of "[PATCH v3 13/13] ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards"[1].

Changed in v6:
- Rebased to adapt to DTS move

Changed in v5:
- Re-added disabled RTC node instead of deleting it with delete-node

Changed in v4:
- Added touchkey keycodes
- Added audio nodes
- Added MMC aliases
- Fixed dtbs_check warnings
- Fixed indentation in pinctrl sleep state overrides

Changed in v3:
- Addressed review comments
- Removed rtc node (RTC is provided by PMIC)
- Added CPU thermal node
- Fixed dtbs_check warnings
- Added common changes from next/dt

Should pass dtbs_check with no errors, provided that the following patches are present:

Touchkey keycode property is added by "[PATCH 1/2] dt-bindings: mms114: Add linux,keycodes property for touch keys"[2]. So far only the bindings part of the patch has been acked, otherwise everything is awaiting review.

[1] https://lore.kernel.org/linux-devicetree/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

---
 arch/arm/boot/dts/samsung/Makefile            |    3 +
 .../boot/dts/samsung/exynos4212-tab3-3g8.dts  |   29 +
 .../boot/dts/samsung/exynos4212-tab3-lte8.dts |   44 +
 .../dts/samsung/exynos4212-tab3-wifi8.dts     |   26 +
 .../arm/boot/dts/samsung/exynos4212-tab3.dtsi | 1310 +++++++++++++++++
 5 files changed, 1412 insertions(+)
 create mode 100644 arch/arm/boot/dts/samsung/exynos4212-tab3-3g8.dts
 create mode 100644 arch/arm/boot/dts/samsung/exynos4212-tab3-lte8.dts
 create mode 100644 arch/arm/boot/dts/samsung/exynos4212-tab3-wifi8.dts
 create mode 100644 arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi
arch/arm/boot/dts/samsung/Makefile +3 -0
index c8d067abdd59..4469ec147ca3 100644
@@ -9,6 +9,9 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \
 	exynos4210-smdkv310.dtb \
 	exynos4210-trats.dtb \
 	exynos4210-universal_c210.dtb \
+	exynos4212-tab3-3g8.dts \
+	exynos4212-tab3-lte8.dts \
+	exynos4212-tab3-wifi8.dts \
 	exynos4412-i9300.dtb \
 	exynos4412-i9305.dtb \
 	exynos4412-itop-elite.dtb \
arch/arm/boot/dts/samsung/exynos4212-tab3-3g8.dts new file +29 -0
new file mode 100644
index 000000000000..d96b2dd44608
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Samsung's Exynos4212 based Galaxy Tab 3 8.0 3G board device tree
+ * source
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd.
+ *		http://www.samsung.com
+ */
+
+/dts-v1/;
+#include "exynos4212-tab3.dtsi"
+
+/ {
+	model = "Samsung Galaxy Tab 3 8.0 3G (SM-T311) based on Exynos4212";
+	compatible = "samsung,t311", "samsung,tab3", "samsung,exynos4212", "samsung,exynos4";
+	chassis-type = "tablet";
+};
+
+/* Pin control sleep state overrides */
+&sleep0 {
+	PIN_SLP(gpb-5, INPUT, UP);
+};
+
+&sleep1 {
+	PIN_SLP(gpl0-0, OUT0, NONE);
+	PIN_SLP(gpl1-0, OUT0, NONE);
+	PIN_SLP(gpl2-4, OUT0, NONE);
+	PIN_SLP(gpm3-3, OUT1, NONE);
+};
arch/arm/boot/dts/samsung/exynos4212-tab3-lte8.dts new file +44 -0

44 lines not on this page · raw message

arch/arm/boot/dts/samsung/exynos4212-tab3-wifi8.dts new file +26 -0
new file mode 100644
index 000000000000..54cb01703b60
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Samsung's Exynos4212 based Galaxy Tab 3 8.0 WiFi board device tree
+ * source
+ *
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd.
+ *		http://www.samsung.com
+ */
+
+/dts-v1/;
+#include "exynos4212-tab3.dtsi"
+
+/ {
+	model = "Samsung Galaxy Tab 3 8.0 WiFi (SM-T310) based on Exynos4212";
+	compatible = "samsung,t310", "samsung,tab3", "samsung,exynos4212", "samsung,exynos4";
+	chassis-type = "tablet";
+};
+
+&i2c_lightsensor {
+	status = "okay";
+
+	lightsensor@10 {
+		compatible = "capella,cm3323";
+		reg = <0x10>;
+	};
+};
arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi new file +1310 -0

1,310 lines not on this page · raw message

base-commit: f822ca9191811f991af0256d709942a721f6aff0

Signature · 1 line
2.41.0
#1 lore raw
Quoted 9 lines · Artur Weber

Introduce support for the Galaxy Tab 3 8.0 series of boards:

- Samsung Galaxy Tab 3 8.0 WiFi (SM-T310/lt01wifi)
- Samsung Galaxy Tab 3 8.0 3G (SM-T311/lt013g)
- Samsung Galaxy Tab 3 8.0 LTE (SM-T315/lt01lte)

What works:

[...]

Applied, thanks!

[1/1] ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards

      https://git.kernel.org/krzk/linux/c/ee37a457af1d166f090ec68de26f94447d899c8a

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>