Skip to contentSkip to conversation

add initial support for TBS2910 Matrix ARM mini PC

PATCH Superseded Soeren Moch 3 participants 5 messages Oct 26, 2014 – Oct 27, 2014

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

- add device tree vendor prefix for TBS
- add dts for TBS2910

#1 lore raw

PATCH v3 1/2 devicetree: bindings: Add vendor prefix for TBS Technologies

TBS Technologies is a company which specializes in developing, producing and marketing of digital TV tuner cards for PCs.

for additional details refer to http://www.tbsdtv.com/about-us.html

---
Cc: Rob Herring <[email protected]>
Cc: Pawel Moll <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Kumar Gala <[email protected]>
Cc: devicetree at vger.kernel.org
Cc: Sebastian Hesselbarth <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Sascha Hauer <[email protected]>

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index ac7269f..cdc29d4 100644
@@ -133,6 +133,7 @@ st	STMicroelectronics
 ste	ST-Ericsson
 stericsson	ST-Ericsson
 synology	Synology, Inc.
+tbs	TBS Technologies
 ti	Texas Instruments
 tlm	Trusted Logic Mobility
 toradex	Toradex AG
Signature · 1 line
1.9.1
#3 lore raw

PATCH v3 2/2 ARM: dts: add initial support for TBS2910 Matrix ARM mini PC

In reply to Soeren Moch

TBS2910 is a i.MX6Q based board. For additional details refer to
http://www.tbsdtv.com/products/tbs2910-matrix-arm-mini-pc.html

---
Cc: Sebastian Hesselbarth <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Sascha Hauer <[email protected]>

Changes in v2:
- add tbs vendor prefix to vendor-prefixes.txt
- use GPIO_ACTIVE_{HIGH,LOW}
- add led label and default-state="keep"
- whitespace cleanup

Changes in v3:
- split vendor prefix addition into separate patch
- dual-licensed: GPL or X11
- move iomuxc node to the bottom to improve readability
- remove snvs_poweroff node, not in mainline yet
- whitespace cleanup, hope I got it right now

---
 arch/arm/boot/dts/Makefile          |   1 +
 arch/arm/boot/dts/imx6q-tbs2910.dts | 445 ++++++++++++++++++++++++++++++++++++
 2 files changed, 446 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6q-tbs2910.dts
arch/arm/boot/dts/Makefile +1 -0
index b8c5cd3..f6ad478 100644
@@ -230,6 +230,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx6q-sabrelite.dtb \
 	imx6q-sabresd.dtb \
 	imx6q-sbc6x.dtb \
+	imx6q-tbs2910.dtb \
 	imx6q-udoo.dtb \
 	imx6q-wandboard.dtb \
 	imx6q-wandboard-revb1.dtb \
arch/arm/boot/dts/imx6q-tbs2910.dts new file +445 -0

445 lines not on this page · raw message

Signature · 1 line
1.9.1
reviewer
#4 lore raw

PATCH v3 2/2 ARM: dts: add initial support for TBS2910 Matrix ARM mini PC

arch/arm/boot/dts/imx6q-tbs2910.dts line 105

Quoted 12 lines · Soeren Moch
arch/arm/boot/dts/imx6q-tbs2910.dts new file +12 -0
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg_2p5v: regulator at 0 {
+                       compatible = "regulator-fixed";
+                       reg = <0>;
+                       regulator-name = "2P5V";
+                       regulator-min-microvolt = <2500000>;
+                       regulator-max-microvolt = <2500000>;
+                       regulator-always-on;

You can drop the 'regulator-always-on' property as this not controlled by a GPIO.

arch/arm/boot/dts/imx6q-tbs2910.dts line 114

Quoted 9 lines
arch/arm/boot/dts/imx6q-tbs2910.dts new file +9 -0
+               };
+
+               reg_3p3v: regulator at 1 {
+                       compatible = "regulator-fixed";
+                       reg = <1>;
+                       regulator-name = "3P3V";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-always-on;

Same here.

arch/arm/boot/dts/imx6q-tbs2910.dts line 123

Quoted 9 lines
arch/arm/boot/dts/imx6q-tbs2910.dts new file +9 -0
+               };
+
+               reg_5p0v: regulator at 2 {
+                       compatible = "regulator-fixed";
+                       reg = <2>;
+                       regulator-name = "5P0V";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       regulator-always-on;

Same here.

arch/arm/boot/dts/imx6q-tbs2910.dts line 284

Quoted 6 lines

+&iomuxc {

arch/arm/boot/dts/imx6q-tbs2910.dts new file +5 -0
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_hog>;
+
+       imx6q-tbs2910 {
+               pinctrl_hog: hoggrp {

Is this hog group really needed? We prefer to add the IOMUX into the respective peripheral nodes.

arch/arm/boot/dts/imx6q-tbs2910.dts line 286

Quoted 2 lines
arch/arm/boot/dts/imx6q-tbs2910.dts new file +2 -0
+                       fsl,pins = <
+                               MX6QDL_PAD_NANDF_D0__GPIO2_IO00       0x80000000

For example: gpio2 0 is the card detection pin for usdhc3. You could add its definition into the pinctrl_usdhc3 node instead of putting it into the hog group.

Quoted 1 line

+ MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000

Also, about the 0x80000000: this means that the pad settings come from the bootloader. It is usually safer not to rely in the bootloader and configure it in the kernel.

You can read the pad settings value for each pin and replace the 0x80000000 with the real value instead.

#2 lore raw

PATCH v3 1/2 devicetree: bindings: Add vendor prefix for TBS Technologies

In reply to Soeren Moch
Quoted 6 lines · Soeren Moch

TBS Technologies is a company which specializes in developing, producing and marketing of digital TV tuner cards for PCs.

for additional details refer to http://www.tbsdtv.com/about-us.html

Quoted 33 lines

---
Cc: Rob Herring <[email protected]>
Cc: Pawel Moll <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Kumar Gala <[email protected]>
Cc: devicetree at vger.kernel.org
Cc: Sebastian Hesselbarth <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Sascha Hauer <[email protected]>

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -1
index ac7269f..cdc29d4 100644
@@ -133,6 +133,7 @@ st  STMicroelectronics
 ste    ST-Ericsson
 stericsson     ST-Ericsson
 synology       Synology, Inc.
+tbs    TBS Technologies
 ti     Texas Instruments
 tlm    Trusted Logic Mobility
 toradex        Toradex AG
--

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html