[PATCH 2/4] imx51-babbage: Import devicetree files from Linux

2021-03-01 Thread sbabic
> Import the imx51-babbage devicetree files from Linux kernel
> version 5.11-rc7.
> This is in preparation for converting the mx51evk_defconfig
> target to driver model.
> Signed-off-by: Fabio Estevam 
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=


[PATCH 2/4] imx51-babbage: Import devicetree files from Linux

2021-02-15 Thread Fabio Estevam
Import the imx51-babbage devicetree files from Linux kernel
version 5.11-rc7.

This is in preparation for converting the mx51evk_defconfig
target to driver model.

Signed-off-by: Fabio Estevam 
---
 arch/arm/dts/imx51-babbage.dts | 726 +++
 arch/arm/dts/imx51-pinfunc.h   | 768 +
 arch/arm/dts/imx51.dtsi| 654 
 3 files changed, 2148 insertions(+)
 create mode 100644 arch/arm/dts/imx51-babbage.dts
 create mode 100644 arch/arm/dts/imx51-pinfunc.h
 create mode 100644 arch/arm/dts/imx51.dtsi

diff --git a/arch/arm/dts/imx51-babbage.dts b/arch/arm/dts/imx51-babbage.dts
new file mode 100644
index ..552196d8a60a
--- /dev/null
+++ b/arch/arm/dts/imx51-babbage.dts
@@ -0,0 +1,726 @@
+// SPDX-License-Identifier: GPL-2.0+
+//
+// Copyright 2011 Freescale Semiconductor, Inc.
+// Copyright 2011 Linaro Ltd.
+
+/dts-v1/;
+#include "imx51.dtsi"
+
+/ {
+   model = "Freescale i.MX51 Babbage Board";
+   compatible = "fsl,imx51-babbage", "fsl,imx51";
+
+   chosen {
+   stdout-path = 
+   };
+
+   memory@9000 {
+   device_type = "memory";
+   reg = <0x9000 0x2000>;
+   };
+
+   ckih1 {
+   clock-frequency = <22579200>;
+   };
+
+   clk_osc: clk-osc {
+   compatible = "fixed-clock";
+   #clock-cells = <0>;
+   clock-frequency = <2600>;
+   };
+
+   clk_osc_gate: clk-osc-gate {
+   compatible = "gpio-gate-clock";
+   pinctrl-names = "default";
+   pinctrl-0 = <_clk26mhz_osc>;
+   clocks = <_osc>;
+   #clock-cells = <0>;
+   enable-gpios = < 1 GPIO_ACTIVE_HIGH>;
+   };
+
+   clk_audio: clk-audio {
+   compatible = "gpio-gate-clock";
+   pinctrl-names = "default";
+   pinctrl-0 = <_clk26mhz_audio>;
+   clocks = <_osc_gate>;
+   #clock-cells = <0>;
+   enable-gpios = < 26 GPIO_ACTIVE_LOW>;
+   };
+
+   clk_usb: clk-usb {
+   compatible = "gpio-gate-clock";
+   pinctrl-names = "default";
+   pinctrl-0 = <_clk26mhz_usb>;
+   clocks = <_osc_gate>;
+   #clock-cells = <0>;
+   enable-gpios = < 1 GPIO_ACTIVE_LOW>;
+   };
+
+   display1: disp1 {
+   compatible = "fsl,imx-parallel-display";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   interface-pix-fmt = "rgb24";
+   pinctrl-names = "default";
+   pinctrl-0 = <_ipu_disp1>;
+
+   port@0 {
+   reg = <0>;
+
+   display0_in: endpoint {
+   remote-endpoint = <_di0_disp1>;
+   };
+   };
+
+   port@1 {
+   reg = <1>;
+
+   parallel_display_out: endpoint {
+   remote-endpoint = <_in>;
+   };
+   };
+   };
+
+   display2: disp2 {
+   compatible = "fsl,imx-parallel-display";
+   interface-pix-fmt = "rgb565";
+   pinctrl-names = "default";
+   pinctrl-0 = <_ipu_disp2>;
+   status = "disabled";
+   display-timings {
+   native-mode = <>;
+   timing1: claawvga {
+   clock-frequency = <2700>;
+   hactive = <800>;
+   vactive = <480>;
+   hback-porch = <40>;
+   hfront-porch = <60>;
+   vback-porch = <10>;
+   vfront-porch = <10>;
+   hsync-len = <20>;
+   vsync-len = <10>;
+   hsync-active = <0>;
+   vsync-active = <0>;
+   de-active = <1>;
+   pixelclk-active = <0>;
+   };
+   };
+
+   port {
+   display1_in: endpoint {
+   remote-endpoint = <_di1_disp2>;
+   };
+   };
+   };
+
+   dvi-connector {
+   compatible = "dvi-connector";
+   digital;
+
+   port {
+   dvi_connector_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
+
+   dvi-encoder {
+   compatible = "ti,tfp410";
+
+   ports {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   port@0 {
+   reg = <0>;
+
+