Skip to content

Commit

Permalink
ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards
Browse files Browse the repository at this point in the history
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

Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Link: https://lore.kernel.org/r/20230714101229.30641-1-aweber.kernel@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
  • Loading branch information
Artur Weber authored and Krzysztof Kozlowski committed Jul 19, 2023
1 parent 982655c commit ee37a45
Show file tree
Hide file tree
Showing 5 changed files with 1,412 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/samsung/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
29 changes: 29 additions & 0 deletions arch/arm/boot/dts/samsung/exynos4212-tab3-3g8.dts
Original file line number Diff line number Diff line change
@@ -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);
};
44 changes: 44 additions & 0 deletions arch/arm/boot/dts/samsung/exynos4212-tab3-lte8.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Samsung's Exynos4212 based Galaxy Tab 3 8.0 LTE 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 LTE (SM-T315) based on Exynos4212";
compatible = "samsung,t315", "samsung,tab3", "samsung,exynos4212", "samsung,exynos4";
chassis-type = "tablet";
};

/* Pin control sleep state overrides */
&sleep0 {
PIN_SLP(gpa0-4, INPUT, UP);
PIN_SLP(gpa0-5, INPUT, UP);

PIN_SLP(gpb-5, INPUT, UP);

PIN_SLP(gpc0-0, PREV, NONE);
PIN_SLP(gpc1-3, INPUT, NONE);

PIN_SLP(gpf1-6, INPUT, NONE);
PIN_SLP(gpf2-2, PREV, NONE);
};

&sleep1 {
PIN_SLP(gpl0-0, PREV, NONE);

PIN_SLP(gpl1-0, PREV, NONE);

PIN_SLP(gpl2-1, INPUT, DOWN);
PIN_SLP(gpl2-2, INPUT, DOWN);
PIN_SLP(gpl2-4, OUT0, NONE);
PIN_SLP(gpl2-5, PREV, NONE);

PIN_SLP(gpm3-3, OUT1, NONE);
};
26 changes: 26 additions & 0 deletions arch/arm/boot/dts/samsung/exynos4212-tab3-wifi8.dts
Original file line number Diff line number Diff line change
@@ -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>;
};
};
Loading

0 comments on commit ee37a45

Please sign in to comment.