Skip to contentSkip to conversation

dt-bindings: Add vendor prefix for Catalyst Semiconductor

PATCH Superseded Martyn Welch 3 participants 5 messages Jan 18, 2019 – Jan 21, 2019

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 dt-bindings: Add vendor prefix for Catalyst Semiconductor

Add vendor prefix "catalyst" for Catalyst Semiconductor which is already in use but undocumented.

---

Changes in v2: None

 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 389508584f48..d80b23b7771f 100644
@@ -65,6 +65,7 @@ bticino Bticino International
 calxeda	Calxeda
 capella	Capella Microsystems, Inc
 cascoda	Cascoda, Ltd.
+catalyst	Catalyst Semiconductor, Inc
 cavium	Cavium, Inc.
 cdns	Cadence Design Systems Inc.
 cdtech	CDTech(H.K.) Electronics Limited
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 2/2 ARM: dts: imx6: Add support for Phytec phyBOARD i.MX6UL Segin

The Phytec phyBOARD Segin is i.MX6 based SBC, available with either an i.MX6UL or i.MX6ULL SOM and various add-on boards.

The following adds support for the "Full Featured" version of the Segin, which is provided with the i.MX6UL SOM and the PEB-EVAL-01 evaluation module.

Its hardware specifications are:

* 512MB DDR3 memory
* 512MB NAND flash
* Dual 10/100 Ethernet
* USB Host and USB OTG
* RS232
* MicroSD external storage
* Audio, RS232, I2C, SPI, CAN headers
* Further I/O options via A/V and Expansion headers

---

Changes in v2:
- Corrected spacing, ordering and naming
- Corrected ecspi3 chip selects
- Updated deprecated node
- Removed unneeded nodes

 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi   | 149 ++++++++
 .../boot/dts/imx6ul-phytec-peb-eval-01.dtsi   |  55 +++
 .../dts/imx6ul-phytec-phyboard-segin-full.dts |  96 +++++
 .../dts/imx6ul-phytec-phyboard-segin.dtsi     | 330 ++++++++++++++++++
 5 files changed, 631 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi
 create mode 100644 arch/arm/boot/dts/imx6ul-phytec-peb-eval-01.dtsi
 create mode 100644 arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts
 create mode 100644 arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi
arch/arm/boot/dts/Makefile +1 -0
index bd40148a15b2..d35a0bf7b8f8 100644
@@ -561,6 +561,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
 	imx6ul-opos6uldev.dtb \
 	imx6ul-pico-hobbit.dtb \
 	imx6ul-pico-pi.dtb \
+	imx6ul-phytec-phyboard-segin-full.dtb \
 	imx6ul-tx6ul-0010.dtb \
 	imx6ul-tx6ul-0011.dtb \
 	imx6ul-tx6ul-mainboard.dtb \
arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi new file +149 -0

149 lines not on this page · raw message

arch/arm/boot/dts/imx6ul-phytec-peb-eval-01.dtsi new file +55 -0

55 lines not on this page · raw message

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +96 -0

96 lines not on this page · raw message

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi new file +330 -0

330 lines not on this page · raw message

Signature · 1 line
2.20.1
reviewer
#2 lore raw

Re: [PATCH v2 2/2] ARM: dts: imx6: Add support for Phytec phyBOARD i.MX6UL Segin

Hi Martyn,

arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi line 24

Quoted 5 lines · Martyn Welch
arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi new file +5 -0
+       /*
+        * Set the minimum memory size here and
+        * let the bootloader set the real size.
+        */
+       memory {

Need to pass device_type = "memory";

arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi line 93

Quoted 10 lines
arch/arm/boot/dts/imx6ul-phytec-pcl063.dtsi new file +10 -0
+               reg = <0x80000000 0x8000000>;
+       };
+&uart1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart1>;
+       status = "okay";
+};
+
+&iomuxc {
+       pinctrl-names = "default";

Uneeded line.

Quoted 27 lines
arch/arm/boot/dts/imx6ul-phytec-peb-eval-01.dtsi new file +16 -0
+
+       pinctrl_enet1: enet1grp {
+&iomuxc {
+       pinctrl_gpio_keys: gpio_keysgrp {
+               fsl,pins = <
+                       MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00      0x79
+               >;
+       };
+
+       pinctrl_user_leds: user_ledsgrp {
+               fsl,pins = <
+                       MX6UL_PAD_JTAG_MOD__GPIO1_IO10          0x79
+                       MX6UL_PAD_GPIO1_IO01__GPIO1_IO01        0x79
+               >;
+       };
+};
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +5 -0
new file mode 100644
index 000000000000..83cdf4fa10c0
@@ -0,0 +1,96 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2016 PHYTEC Messtechnik GmbH
+ * Author: Christian Hemp <[email protected]>
+ */

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts line 15

Quoted 10 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +10 -0
+
+/dts-v1/;
+#include "imx6ul-phytec-pcl063.dtsi"
+#include "imx6ul-phytec-phyboard-segin.dtsi"
+#include "imx6ul-phytec-peb-eval-01.dtsi"
+
+/ {
+       model = "Phytec phyBOARD-Segin i.MX6 UltraLite Full Featured";
+       compatible = "phytec,imx6ul-pbacd10", "phytec,imx6ul-pcl063",
+                    "fsl,imx6ul";

Better keep it in a single line?

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts line 37

Quoted 8 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +8 -0
+&ecspi3 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_ecspi3>;
+       cs-gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
+       status = "okay";
+
+       spidev@0 {
+               compatible = "spidev";

Doesn't the kernel complain about spidev dts nodes?

Quoted 7 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +1 -0
+};
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi new file +0 -0
new file mode 100644
index 000000000000..bccabb84c9f6

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi line 10

Quoted 10 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi new file +10 -0
@@ -0,0 +1,330 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2016 PHYTEC Messtechnik GmbH
+ * Author: Christian Hemp <[email protected]>
+ */
+
+/ {
+       model = "Phytec phyBOARD-Segin i.MX6 UltraLite";
+       compatible = "phytec,imx6ul-pbacd-10", "phytec,imx6ul-pcl063",
+                    "fsl,imx6ul";

Single line?

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi line 116

Quoted 2 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi new file +2 -0
+&i2c1 {
+       codec: tlv320@18 {

Node names should be generic and label names specific, so:

tlv320: codec@18

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi line 127

Quoted 11 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin.dtsi new file +11 -0
+               compatible = "ti,tlv320aic3007";
+               #sound-dai-cells = <0>;
+               reg = <0x18>;
+               AVDD-supply = <&reg_sound_3v3>;
+               IOVDD-supply = <&reg_sound_3v3>;
+               DRVDD-supply = <&reg_sound_3v3>;
+               DVDD-supply = <&reg_sound_1v8>;
+               status = "disabled";
+       };
+
+       stmpe: stmpe@44 {

touchscreen@44

#4 lore raw
In reply to Martyn Welch

Hi Martyn,

Am 18.01.19 um 20:48 schrieb Martyn Welch:

Quoted 17 lines

Add vendor prefix "catalyst" for Catalyst Semiconductor which is already in use but undocumented.

---

Changes in v2: None

 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
index 389508584f48..d80b23b7771f 100644

Documentation/devicetree/bindings/vendor-prefixes.txt bticino Bticino International · line 68

Quoted 4 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -65,6 +65,7 @@ bticino Bticino International
 calxeda	Calxeda
 capella	Capella Microsystems, Inc
 cascoda	Cascoda, Ltd.
+catalyst	Catalyst Semiconductor, Inc

"Inc" surely is an abbreviation for "Incorporated", so can you please follow the below examples of writing "Inc." with trailing dot?

Documentation/devicetree/bindings/vendor-prefixes.txt bticino Bticino International · line 71

Quoted 3 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
 cavium	Cavium, Inc.
 cdns	Cadence Design Systems Inc.
 cdtech	CDTech(H.K.) Electronics Limited

Otherwise looks good. Thanks for fixing the undocumented use.

Regards,
Andreas

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
#3 lore raw

Re: [PATCH v2 2/2] ARM: dts: imx6: Add support for Phytec phyBOARD i.MX6UL Segin

In reply to Fabio Estevam

Hi Fabio,

Quoted 18 lines · Fabio Estevam
(quoted diff) +0 -0
Quoted 17 lines

full.dts b/arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file mode 100644
index 000000000000..83cdf4fa10c0

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +11 -0
@@ -0,0 +1,96 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2016 PHYTEC Messtechnik GmbH
+ * Author: Christian Hemp <[email protected]>
+ */
+
+/dts-v1/;
+#include "imx6ul-phytec-pcl063.dtsi"
+#include "imx6ul-phytec-phyboard-segin.dtsi"
+#include "imx6ul-phytec-peb-eval-01.dtsi"
+
Quoted 9 lines
Quoted 6 lines
arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +2 -0
+/ {
+       model = "Phytec phyBOARD-Segin i.MX6 UltraLite Full

Featured";
+ compatible = "phytec,imx6ul-pbacd10", "phytec,imx6ul-
pcl063",
+ "fsl,imx6ul";

Better keep it in a single line?

It makes it longer than 80 chars, but I'm not adverse to that.

Quoted 11 lines

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts line 37

Quoted 8 lines

+&ecspi3 {

arch/arm/boot/dts/imx6ul-phytec-phyboard-segin-full.dts new file +7 -0
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_ecspi3>;
+       cs-gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
+       status = "okay";
+
+       spidev@0 {
+               compatible = "spidev";

Doesn't the kernel complain about spidev dts nodes?

Oh, yes, it does when spidev is loaded...

Removing.

Martyn