Initial Samsung Galaxy Tab 4 10.1 (SM-T530) support
Subsystems (4)
v3 cover Initial Samsung Galaxy Tab 4 10.1 (SM-T530) support
Add device tree node for pm8226 GPIOs and support for the Samsung Galaxy Tab 4 10.1 (SM-T530) tablet which is based on apq8026.
Changes in v3:
- Fix sdhc_2 bus width
- Reorder includes
Changes in v2:
- Change codename to matisse-wifi
- Remove msm-id from device dts
- Rename pm8226 gpio node
Matti Lehtimäki (3):
ARM: dts: qcom: pm8226: Add node for the GPIOs
dt-bindings: arm: qcom: Document samsung,matisse-wifi device
ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530)
.../devicetree/bindings/arm/qcom.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 469 ++++++++++++++++++ arch/arm/boot/dts/qcom-pm8226.dtsi | 10 + 4 files changed, 481 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
Signature · 1 line
2.34.1
PATCH v3 1/3 ARM: dts: qcom: pm8226: Add node for the GPIOs
The PM8226 provides 8 GPIOs. Add a node to support them.
---
(no changes since v2)
Changes in v2:
- Rename pm8226 gpio node
--- arch/arm/boot/dts/qcom-pm8226.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/qcom-pm8226.dtsi +10 -0
@@ -90,6 +90,16 @@ pm8226_mpps: mpps@a000 { interrupt-controller; #interrupt-cells = <2>; }; + + pm8226_gpios: gpio@c000 { + compatible = "qcom,pm8226-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pm8226_gpios 0 0 8>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pm8226_1: pm8226@1 {
Signature · 1 line
2.34.1
Re: [PATCH v3 1/3] ARM: dts: qcom: pm8226: Add node for the GPIOs
Quoted 4 lines · Matti Lehtimäki
The PM8226 provides 8 GPIOs. Add a node to support them.
Signed-off-by Matti Lehtimäki <[email protected]>
Quoted 2 lines
---
(no changes since v2)
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 1/3] ARM: dts: qcom: pm8226: Add node for the GPIOs
In reply to Matti LehtimäkiQuoted 5 lines · Matti Lehtimäki
The PM8226 provides 8 GPIOs. Add a node to support them.
Signed-off-by Matti Lehtimäki <[email protected]>---
(no changes since v2)
Best regards,
Krzysztof
PATCH v3 2/3 dt-bindings: arm: qcom: Document samsung,matisse-wifi device
In reply to Matti LehtimäkiAdd binding documentation for Samsung Galaxy Tab 4 10.1 (2014) wifi tablet which is based on Snapdragon 400 (apq8026) SoC.
---
(no changes since v2)
Changes in v2:
- Change codename to matisse-wifi
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -104,6 +104,7 @@ properties: - enum: - asus,sparrow - lg,lenok + - samsung,matisse-wifi - const: qcom,apq8026 - items:
Signature · 1 line
2.34.1
PATCH v3 3/3 ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530)
In reply to Matti LehtimäkiAdd a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T530) wifi tablet based on the apq8026 platform.
Currently supported are accelerometer sensor, hall sensor, internal storage, physical buttons (power & volume), screen (based on simple-framebuffer set up by the bootloader), sdcard, touchscreen and USB.
---
Changes in v3:
- Fix sdhc_2 bus width
- Reorder includes
Changes in v2:
- Change codename to matisse-wifi
- Remove msm-id, not needed when lk2nd is used
- Remove unused labels from reserved memory regions
- Rename muic node
--- arch/arm/boot/dts/Makefile | 1 + .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 469 ++++++++++++++++++ 2 files changed, 470 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1010,6 +1010,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8016-sbc.dtb \ qcom-apq8026-asus-sparrow.dtb \ qcom-apq8026-lg-lenok.dtb \ + qcom-apq8026-samsung-matisse-wifi.dtb \ qcom-apq8060-dragonboard.dtb \ qcom-apq8064-cm-qs600.dtb \ qcom-apq8064-ifc6410.dtb \
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +469 -0
469 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH v3 3/3] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530)
Quoted 46 lines · Matti Lehtimäki
Add a device tree for the Samsung Galaxy Tab 4 10.1 (SM-T530) wifi tablet based on the apq8026 platform.
Currently supported are accelerometer sensor, hall sensor, internal storage, physical buttons (power & volume), screen (based on simple-framebuffer set up by the bootloader), sdcard, touchscreen and USB.
Signed-off-by Matti Lehtimäki <[email protected]>---
Changes in v3:
- Fixsdhc_2bus width
- Reorder includesChanges in v2:
- Change codename to matisse-wifi
- Remove msm-id, not needed when lk2nd is used
- Remove unused labels from reserved memory regions
- Rename muic node--- arch/arm/boot/dts/Makefile | 1 + .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 469 ++++++++++++++++++ 2 files changed, 470 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dtsarch/arm/boot/dts/Makefile +1
-0@@ -1010,6 +1010,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8016-sbc.dtb \ qcom-apq8026-asus-sparrow.dtb \ qcom-apq8026-lg-lenok.dtb \ + qcom-apq8026-samsung-matisse-wifi.dtb \ qcom-apq8060-dragonboard.dtb \ qcom-apq8064-cm-qs600.dtb \ qcom-apq8064-ifc6410.dtb \arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +2
-0@@ -0,0 +1,469 @@ +// SPDX-License-Identifier: BSD-3-Clause +/*
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts line 12
Quoted 10 lines
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +10
-0+ * Copyright (c) 2022, Matti Lehtimäki <[email protected]> + */ + +/dts-v1/; + +#include <dt-bindings/input/input.h> +#include "qcom-msm8226.dtsi" +#include "qcom-pm8226.dtsi" + +/delete-node/ &smem_region;
Please move this to the /reserved-memory node. having it there would help understanding that we are just changing the address.
Quoted 6 lines
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +6
-0+ +/ { + model = "Samsung Galaxy Tab 4 10.1"; + compatible = "samsung,matisse-wifi", "qcom,apq8026"; + chassis-type = "tablet"; +
[skipped]
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts line 83
Quoted 2 lines
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +2
-0+ i2c-muic { + compatible = "i2c-gpio";
Is there any reason for using i2c-gpio rather than blsp_i2c4? According to the pinctrl-msm8226, gpio14/15 can be mapped to the blsp.
Quoted 20 lines
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +20
-0+ sda-gpios = <&tlmm 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&tlmm 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + + pinctrl-names = "default"; + pinctrl-0 = <&muic_i2c_default_state>; + + #address-cells = <1>; + #size-cells = <0>; + + muic: usb-switch@25 { + compatible = "siliconmitus,sm5502-muic"; + reg = <0x25>; + + interrupt-parent = <&tlmm>; + interrupts = <67 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&muic_int_default_state>; + }; + };
[skipped]
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 3/3] ARM: dts: qcom: Add support for Samsung Galaxy Tab 4 10.1 (SM-T530)
Quoted 5 lines · Dmitry Baryshkov
Quoted 1 line · Matti Lehtimäki
+/delete-node/
&smem_region;Please move this to the /reserved-memory node. having it there would help understanding that we are just changing the address.
I can move this to /reserved-memory node in next version. Other option would be to have a comment here, it seems both ways are used.
Quoted 5 lines
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts line 83
Quoted 2 lines
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts new file +2
-0+ i2c-muic { + compatible = "i2c-gpio";Is there any reason for using i2c-gpio rather than
blsp_i2c4? According to the pinctrl-msm8226, gpio14/15 can be mapped to the blsp.
The reason to use i2c-gpio for this was using the other devices with similar node as an example. I tested and having the muic node in blsp_i2c4 worked the same.
-Matti