diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-11-24 18:23:09 +0200 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-11-24 17:29:37 +0000 |
commit | d1875185ba63b1586bf11a4eaac4212af25adbe2 (patch) | |
tree | 8c2ecdc474cc311123d4be916610952ba8d9afdd | |
parent | 664411bde9c033778f85f9ae3a74351406642f6a (diff) |
ARM: dts: apalis-imx6: move parallel rgb interface
Now the Parallel RGB interface is driven with an overlay, so that it is
not needed to keep this stuff on a board level.
Move all Parallel RGB-related devices to the module level and disable it by
default.
Related-to: ELB-3240
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r-- | arch/arm/boot/dts/imx6q-apalis-eval.dts | 53 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 51 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts | 71 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6q-apalis-ixora.dts | 51 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6qdl-apalis.dtsi | 40 |
5 files changed, 39 insertions, 227 deletions
diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/arm/boot/dts/imx6q-apalis-eval.dts index 173521681688..5e44a4e6eeea 100644 --- a/arch/arm/boot/dts/imx6q-apalis-eval.dts +++ b/arch/arm/boot/dts/imx6q-apalis-eval.dts @@ -80,52 +80,6 @@ }; }; - lcd_display: disp0 { - port@1 { - reg = <1>; - - lcd_display_out: endpoint { - remote-endpoint = <&lcd_panel_in>; - }; - }; - }; - - panel_dpi: panel-dpi { - compatible = "panel-dpi"; - - backlight = <&backlight>; - - width-mm = <115>; - height-mm = <86>; - - /* - * Due to pinout, only 24-bit mode is compatible with 16-bit or - * 18-bit displays. Specifying data-mapping in the panel node - * allows to use bus flags such as pixel clock polarity. - */ - data-mapping = "rgb24"; - status = "disabled"; - - /* VESA DMT v1.13 mode VGA 640x480 60Hz */ - panel-timing { - clock-frequency = <25175000>; - hactive = <640>; - vactive = <480>; - hsync-len = <96>; - hfront-porch = <16>; - hback-porch = <48>; - vsync-len = <2>; - vfront-porch = <10>; - vback-porch = <33>; - }; - - port { - lcd_panel_in: endpoint { - remote-endpoint = <&lcd_display_out>; - }; - }; - }; - panel_lvds: panel-lvds { compatible = "panel-lvds"; @@ -189,13 +143,6 @@ }; }; -&backlight { - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - power-supply = <®_3v3_sw>; - status = "okay"; -}; - &can1 { xceiver-supply = <®_3v3_sw>; status = "okay"; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts index 6582f8ef8f45..e22649482eb6 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts @@ -81,47 +81,6 @@ }; }; - lcd_display: disp0 { - compatible = "fsl,imx-parallel-display"; - #address-cells = <1>; - #size-cells = <0>; - interface-pix-fmt = "rgb24"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu1_lcdif>; - status = "okay"; - - port@0 { - reg = <0>; - - lcd_display_in: endpoint { - remote-endpoint = <&ipu1_di1_disp1>; - }; - }; - - port@1 { - reg = <1>; - - lcd_display_out: endpoint { - remote-endpoint = <&lcd_panel_in>; - }; - }; - }; - - panel: panel { - /* - * edt,et057090dhu: EDT 5.7" LCD TFT - * edt,et070080dh6: EDT 7.0" LCD TFT - */ - compatible = "edt,et057090dhu"; - backlight = <&backlight>; - - port { - lcd_panel_in: endpoint { - remote-endpoint = <&lcd_display_out>; - }; - }; - }; - leds { compatible = "gpio-leds"; @@ -150,12 +109,6 @@ }; }; -&backlight { - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - status = "okay"; -}; - &can1 { status = "okay"; }; @@ -209,10 +162,6 @@ status = "okay"; }; -&ipu1_di1_disp1 { - remote-endpoint = <&lcd_display_in>; -}; - &ldb { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts index b269a9d91777..75bab0b56d04 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts @@ -45,67 +45,6 @@ }; }; - lcd_display: disp0 { - compatible = "fsl,imx-parallel-display"; - #address-cells = <1>; - #size-cells = <0>; - interface-pix-fmt = "rgb24"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu1_lcdif>; - status = "okay"; - - port@0 { - reg = <0>; - - lcd_display_in: endpoint { - remote-endpoint = <&ipu1_di1_disp1>; - }; - }; - - port@1 { - reg = <1>; - - lcd_display_out: endpoint { - remote-endpoint = <&lcd_panel_in>; - }; - }; - }; - - panel_dpi: panel-dpi { - compatible = "panel-dpi"; - - backlight = <&backlight>; - - width-mm = <115>; - height-mm = <86>; - - /* - * Due to pinout, only 24-bit mode is compatible with 16-bit or - * 18-bit displays. Specifying data-mapping in the panel node - * allows to use bus flags such as pixel clock polarity. - */ - data-mapping = "rgb24"; - - /* VESA DMT v1.13 mode VGA 640x480 60Hz */ - panel-timing { - clock-frequency = <25175000>; - hactive = <640>; - vactive = <480>; - hsync-len = <96>; - hfront-porch = <16>; - hback-porch = <48>; - vsync-len = <2>; - vfront-porch = <10>; - vback-porch = <33>; - }; - - port { - lcd_panel_in: endpoint { - remote-endpoint = <&lcd_display_out>; - }; - }; - }; - leds { compatible = "gpio-leds"; @@ -180,12 +119,6 @@ }; }; -&backlight { - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - status = "okay"; -}; - &can1 { status = "okay"; xceiver-supply = <®_can1_supply>; @@ -257,10 +190,6 @@ status = "okay"; }; -&ipu1_di1_disp1 { - remote-endpoint = <&lcd_display_in>; -}; - &ldb { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/imx6q-apalis-ixora.dts index 4b6bb29b0d0d..03677a9783bf 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts @@ -80,47 +80,6 @@ }; }; - lcd_display: disp0 { - compatible = "fsl,imx-parallel-display"; - #address-cells = <1>; - #size-cells = <0>; - interface-pix-fmt = "rgb24"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu1_lcdif>; - status = "okay"; - - port@0 { - reg = <0>; - - lcd_display_in: endpoint { - remote-endpoint = <&ipu1_di1_disp1>; - }; - }; - - port@1 { - reg = <1>; - - lcd_display_out: endpoint { - remote-endpoint = <&lcd_panel_in>; - }; - }; - }; - - panel: panel { - /* - * edt,et057090dhu: EDT 5.7" LCD TFT - * edt,et070080dh6: EDT 7.0" LCD TFT - */ - compatible = "edt,et057090dhu"; - backlight = <&backlight>; - - port { - lcd_panel_in: endpoint { - remote-endpoint = <&lcd_display_out>; - }; - }; - }; - leds { compatible = "gpio-leds"; @@ -149,12 +108,6 @@ }; }; -&backlight { - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - status = "okay"; -}; - &can1 { status = "okay"; }; @@ -213,10 +166,6 @@ status = "okay"; }; -&ipu1_di1_disp1 { - remote-endpoint = <&lcd_display_in>; -}; - &ldb { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 226b32fccd84..e51fbc5bf069 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -57,8 +57,11 @@ compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; - pwms = <&pwm4 0 5000000>; + brightness-levels = <0 127 191 223 239 247 251 255>; + default-brightness-level = <1>; enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; + power-supply = <®_module_3v3>; + pwms = <&pwm4 0 5000000>; status = "disabled"; }; @@ -77,6 +80,37 @@ remote-endpoint = <&ipu1_di1_disp1>; }; }; + + port@1 { + reg = <1>; + + lcd_display_out: endpoint { + remote-endpoint = <&lcd_panel_in>; + }; + }; + }; + + panel_dpi: panel-dpi { + compatible = "panel-dpi"; + + backlight = <&backlight>; + + width-mm = <115>; + height-mm = <86>; + + /* + * Due to pinout, only 24-bit mode is compatible with 16-bit or + * 18-bit displays. Specifying data-mapping in the panel node + * allows to use bus flags such as pixel clock polarity. + */ + data-mapping = "rgb24"; + status = "disabled"; + + port { + lcd_panel_in: endpoint { + remote-endpoint = <&lcd_display_out>; + }; + }; }; reg_module_3v3: regulator-module-3v3 { @@ -638,6 +672,10 @@ status = "disabled"; }; +&ipu1_di1_disp1 { + remote-endpoint = <&lcd_display_in>; +}; + &ipu2_di0_disp0 { remote-endpoint = <&vga_display_in>; }; |