Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6ul: phytec: Add support for optional PEB-AV-02 LCD adapter

The PHYTEC PEB-AV-02 adapter adds the capability to connect a parallel
LCD display to the phyBOARD-Segin full featured, either with capacitive
or resistive touch.

Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Stefan Riedmueller and committed by
Shawn Guo
6d4e1ff5 f4d0fea1

+180 -50
+1
arch/arm/boot/dts/imx6ul-phytec-segin-ff-rdk-emmc.dts
··· 9 9 #include "imx6ul-phytec-phycore-som.dtsi" 10 10 #include "imx6ul-phytec-segin.dtsi" 11 11 #include "imx6ul-phytec-segin-peb-eval-01.dtsi" 12 + #include "imx6ul-phytec-segin-peb-av-02.dtsi" 12 13 13 14 / { 14 15 model = "PHYTEC phyBOARD-Segin i.MX6 UltraLite Full Featured with eMMC";
+1
arch/arm/boot/dts/imx6ul-phytec-segin-ff-rdk-nand.dts
··· 9 9 #include "imx6ul-phytec-phycore-som.dtsi" 10 10 #include "imx6ul-phytec-segin.dtsi" 11 11 #include "imx6ul-phytec-segin-peb-eval-01.dtsi" 12 + #include "imx6ul-phytec-segin-peb-av-02.dtsi" 12 13 13 14 / { 14 15 model = "PHYTEC phyBOARD-Segin i.MX6 UltraLite Full Featured with NAND";
+150
arch/arm/boot/dts/imx6ul-phytec-segin-peb-av-02.dtsi
··· 1 + // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 2 + /* 3 + * Copyright (C) 2016, 2020 PHYTEC Messtechnik 4 + * Author: Christian Hemp <c.hemp@phytec.de> 5 + * Author: Stefan Riedmueller <s.riedmueller@phytec.de> 6 + */ 7 + 8 + / { 9 + backlight_lcd: backlight-lcd { 10 + compatible = "pwm-backlight"; 11 + brightness-levels = <0 4 8 16 32 64 128 255>; 12 + default-brightness-level = <5>; 13 + power-supply = <&reg_backlight_en>; 14 + pwms = <&pwm3 0 5000000>; 15 + status = "disabled"; 16 + }; 17 + 18 + lcd_panel: lcd-panel { 19 + compatible = "edt,etm0700g0edh6"; 20 + backlight = <&backlight_lcd>; 21 + status = "disabled"; 22 + 23 + port { 24 + lcd_panel_in: endpoint { 25 + remote-endpoint = <&lcdif_parallel_out>; 26 + }; 27 + }; 28 + }; 29 + 30 + reg_backlight_en: regulator-backlight-en { 31 + compatible = "regulator-fixed"; 32 + pinctrl-names = "default"; 33 + pinctrl-0 = <&pinctrl_backlight_en>; 34 + regulator-name = "backlight-lcd"; 35 + regulator-min-microvolt = <3300000>; 36 + regulator-max-microvolt = <3300000>; 37 + gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; 38 + enable-active-high; 39 + }; 40 + }; 41 + 42 + &i2c1 { 43 + edt_ft5406: touchscreen@38 { 44 + compatible = "edt,edt-ft5406"; 45 + reg = <0x38>; 46 + pinctrl-names = "default"; 47 + pinctrl-0 = <&pinctrl_edt_ft5406>; 48 + interrupt-parent = <&gpio5>; 49 + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 50 + wakeup-source; 51 + status = "disabled"; 52 + }; 53 + 54 + stmpe: touchscreen@44 { 55 + compatible = "st,stmpe811"; 56 + reg = <0x44>; 57 + pinctrl-names = "default"; 58 + pinctrl-0 = <&pinctrl_stmpe>; 59 + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 60 + interrupt-parent = <&gpio5>; 61 + status = "disabled"; 62 + 63 + stmpe_touchscreen { 64 + compatible = "st,stmpe-ts"; 65 + st,sample-time = <4>; 66 + st,mod-12b = <1>; 67 + st,ref-sel = <0>; 68 + st,adc-freq = <1>; 69 + st,ave-ctrl = <1>; 70 + st,touch-det-delay = <2>; 71 + st,settling = <2>; 72 + st,fraction-z = <7>; 73 + st,i-drive = <1>; 74 + touchscreen-inverted-x = <1>; 75 + touchscreen-inverted-y = <1>; 76 + }; 77 + }; 78 + }; 79 + 80 + &lcdif { 81 + pinctrl-names = "default"; 82 + pinctrl-0 = <&pinctrl_lcdif_dat>; 83 + status = "disabled"; 84 + 85 + port { 86 + lcdif_parallel_out: endpoint { 87 + remote-endpoint = <&lcd_panel_in>; 88 + }; 89 + }; 90 + }; 91 + 92 + &pwm3 { 93 + #pwm-cells = <2>; 94 + pinctrl-names = "default"; 95 + pinctrl-0 = <&pinctrl_pwm3>; 96 + status = "disabled"; 97 + }; 98 + 99 + &iomuxc { 100 + pinctrl_edt_ft5406: edtft5406grp { 101 + fsl,pins = < 102 + MX6UL_PAD_SNVS_TAMPER5__GPIO5_IO05 0x1b0b0 103 + >; 104 + }; 105 + 106 + pinctrl_backlight_en: bachlightengrp { 107 + fsl,pins = < 108 + MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x1b0b0 109 + >; 110 + }; 111 + 112 + pinctrl_lcdif_dat: lcdifdatgrp { 113 + fsl,pins = < 114 + MX6UL_PAD_LCD_DATA00__LCDIF_DATA00 0x59 115 + MX6UL_PAD_LCD_DATA01__LCDIF_DATA01 0x59 116 + MX6UL_PAD_LCD_DATA02__LCDIF_DATA02 0x59 117 + MX6UL_PAD_LCD_DATA03__LCDIF_DATA03 0x59 118 + MX6UL_PAD_LCD_DATA04__LCDIF_DATA04 0x59 119 + MX6UL_PAD_LCD_DATA05__LCDIF_DATA05 0x59 120 + MX6UL_PAD_LCD_DATA06__LCDIF_DATA06 0x59 121 + MX6UL_PAD_LCD_DATA07__LCDIF_DATA07 0x59 122 + MX6UL_PAD_LCD_DATA08__LCDIF_DATA08 0x59 123 + MX6UL_PAD_LCD_DATA09__LCDIF_DATA09 0x59 124 + MX6UL_PAD_LCD_DATA10__LCDIF_DATA10 0x59 125 + MX6UL_PAD_LCD_DATA11__LCDIF_DATA11 0x59 126 + MX6UL_PAD_LCD_DATA12__LCDIF_DATA12 0x59 127 + MX6UL_PAD_LCD_DATA13__LCDIF_DATA13 0x59 128 + MX6UL_PAD_LCD_DATA14__LCDIF_DATA14 0x59 129 + MX6UL_PAD_LCD_DATA15__LCDIF_DATA15 0x59 130 + MX6UL_PAD_LCD_DATA16__LCDIF_DATA16 0x59 131 + MX6UL_PAD_LCD_DATA17__LCDIF_DATA17 0x59 132 + MX6UL_PAD_LCD_CLK__LCDIF_CLK 0x59 133 + MX6UL_PAD_LCD_ENABLE__LCDIF_ENABLE 0x59 134 + MX6UL_PAD_LCD_HSYNC__LCDIF_HSYNC 0x59 135 + MX6UL_PAD_LCD_VSYNC__LCDIF_VSYNC 0x59 136 + >; 137 + }; 138 + 139 + pinctrl_pwm3: pwm3grp { 140 + fsl,pins = < 141 + MX6UL_PAD_GPIO1_IO04__PWM3_OUT 0x0b0b0 142 + >; 143 + }; 144 + 145 + pinctrl_stmpe: stmpegrp { 146 + fsl,pins = < 147 + MX6UL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x17059 148 + >; 149 + }; 150 + };
-43
arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
··· 130 130 status = "disabled"; 131 131 }; 132 132 133 - stmpe: touchscreen@44 { 134 - compatible = "st,stmpe811"; 135 - reg = <0x44>; 136 - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 137 - interrupt-parent = <&gpio5>; 138 - pinctrl-names = "default"; 139 - pinctrl-0 = <&pinctrl_stmpe>; 140 - status = "disabled"; 141 - 142 - stmpe_touchscreen { 143 - compatible = "st,stmpe-ts"; 144 - st,sample-time = <4>; 145 - st,mod-12b = <1>; 146 - st,ref-sel = <0>; 147 - st,adc-freq = <1>; 148 - st,ave-ctrl = <1>; 149 - st,touch-det-delay = <2>; 150 - st,settling = <2>; 151 - st,fraction-z = <7>; 152 - st,i-drive = <1>; 153 - touchscreen-inverted-x = <1>; 154 - touchscreen-inverted-y = <1>; 155 - }; 156 - }; 157 - 158 133 i2c_rtc: rtc@68 { 159 134 pinctrl-names = "default"; 160 135 pinctrl-0 = <&pinctrl_rtc_int>; ··· 149 174 clock-names = "rmii-ref"; 150 175 status = "disabled"; 151 176 }; 152 - }; 153 - 154 - &pwm3 { 155 - pinctrl-names = "default"; 156 - pinctrl-0 = <&pinctrl_pwm3>; 157 - status = "disabled"; 158 177 }; 159 178 160 179 &sai2 { ··· 236 267 >; 237 268 }; 238 269 239 - pinctrl_pwm3: pwm3grp { 240 - fsl,pins = < 241 - MX6UL_PAD_GPIO1_IO04__PWM3_OUT 0x0b0b0 242 - >; 243 - }; 244 - 245 270 pinctrl_rtc_int: rtcintgrp { 246 271 fsl,pins = < 247 272 MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x17059 ··· 249 286 MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA 0x11088 250 287 MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA 0x11088 251 288 MX6UL_PAD_JTAG_TMS__SAI2_MCLK 0x17088 252 - >; 253 - }; 254 - 255 - pinctrl_stmpe: stmpegrp { 256 - fsl,pins = < 257 - MX6UL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x17059 258 289 >; 259 290 }; 260 291
+1
arch/arm/boot/dts/imx6ull-phytec-segin-ff-rdk-emmc.dts
··· 9 9 #include "imx6ull-phytec-phycore-som.dtsi" 10 10 #include "imx6ull-phytec-segin.dtsi" 11 11 #include "imx6ull-phytec-segin-peb-eval-01.dtsi" 12 + #include "imx6ull-phytec-segin-peb-av-02.dtsi" 12 13 13 14 / { 14 15 model = "PHYTEC phyBOARD-Segin i.MX6 ULL Full Featured with eMMC";
+1
arch/arm/boot/dts/imx6ull-phytec-segin-ff-rdk-nand.dts
··· 9 9 #include "imx6ull-phytec-phycore-som.dtsi" 10 10 #include "imx6ull-phytec-segin.dtsi" 11 11 #include "imx6ull-phytec-segin-peb-eval-01.dtsi" 12 + #include "imx6ull-phytec-segin-peb-av-02.dtsi" 12 13 13 14 / { 14 15 model = "PHYTEC phyBOARD-Segin i.MX6 ULL Full Featured with NAND";
+26
arch/arm/boot/dts/imx6ull-phytec-segin-peb-av-02.dtsi
··· 1 + // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 2 + /* 3 + * Copyright (C) 2018 PHYTEC Messtechnik GmbH 4 + * Author: Stefan Riedmueller <s.riedmueller@phytec.de> 5 + */ 6 + 7 + #include "imx6ul-phytec-segin-peb-av-02.dtsi" 8 + 9 + &iomuxc { 10 + /delete-node/ edtft5406grp; 11 + /delete-node/ stmpegrp; 12 + }; 13 + 14 + &iomuxc_snvs { 15 + pinctrl_edt_ft5406: edtft5406grp { 16 + fsl,pins = < 17 + MX6ULL_PAD_SNVS_TAMPER5__GPIO5_IO05 0x1b0b0 18 + >; 19 + }; 20 + 21 + pinctrl_stmpe: stmpegrp { 22 + fsl,pins = < 23 + MX6ULL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x17059 24 + >; 25 + }; 26 + };
-7
arch/arm/boot/dts/imx6ull-phytec-segin.dtsi
··· 14 14 &iomuxc { 15 15 /delete-node/ flexcan1engrp; 16 16 /delete-node/ rtcintgrp; 17 - /delete-node/ stmpegrp; 18 17 }; 19 18 20 19 &iomuxc_snvs { ··· 26 27 pinctrl_rtc_int: rtcintgrp { 27 28 fsl,pins = < 28 29 MX6ULL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x17059 29 - >; 30 - }; 31 - 32 - pinctrl_stmpe: stmpegrp { 33 - fsl,pins = < 34 - MX6ULL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x17059 35 30 >; 36 31 }; 37 32 };