arm: dts: am335x: add 'u-boot, dm-pre-reloc' to panel
authorDario Binacchi <dariobin@libero.it>
Sat, 22 Feb 2020 13:05:46 +0000 (14:05 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 3 Mar 2020 07:38:14 +0000 (13:08 +0530)
Add the "u-boot,dm-pre-reloc" property to the "ti,tilcdc,panel"
compatible node. In this way the video-uclass module can allocate the
amount of memory needed to be assigned to the frame buffer.
For boards that support Linux the property is added to the *-u-boot.dtsi
file since it is a u-boot specific dt flag.

Ran building tests with CONFIG_AM335X_LCD enabled and disabled for the
following configurations:
 - brxre1_defconfig           --> success
 - am335x_guardian_defconfig  --> success
 - am335x_evm_defconfig       --> success
 - da850evm_defconfig         --> failure with CONFIG_AM335X_LCD enabled

Enabling CONFIG_AM335X_LCD in da850evm_defconfig causes building errors
even without applying the patch. The driver has never been enabled on the
da850 and must be adapted for this platform.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Tested-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Felix Brack <fb@ltec.ch>
12 files changed:
arch/arm/dts/am335x-brppt1-mmc.dts
arch/arm/dts/am335x-brppt1-nand.dts
arch/arm/dts/am335x-brppt1-spi.dts
arch/arm/dts/am335x-brsmarc1.dts
arch/arm/dts/am335x-brxre1.dts
arch/arm/dts/am335x-evm-u-boot.dtsi
arch/arm/dts/am335x-evmsk-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/am335x-guardian-u-boot.dtsi
arch/arm/dts/am335x-pdu001-u-boot.dtsi
arch/arm/dts/am335x-pxm50-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/am335x-rut-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/da850-evm-u-boot.dtsi

index 9be34d9da0c09a5c5e5fd05b4014f7ff68731a14..6f919711f0a0676cfe66cffbd8e4930c74e70958 100644 (file)
@@ -53,6 +53,8 @@
                bkl-pwm = <&pwmbacklight>;
                bkl-tps = <&tps_bl>;
 
+               u-boot,dm-pre-reloc;
+
                panel-info {
                        ac-bias         = <255>;
                        ac-bias-intrpt  = <0>;
index 11bd5c551c2c0f999f87ebd4d6b970233eff203a..9d4340f5914189f1d347dc9a731019887e57e3ab 100644 (file)
@@ -53,6 +53,8 @@
                bkl-pwm = <&pwmbacklight>;
                bkl-tps = <&tps_bl>;
 
+               u-boot,dm-pre-reloc;
+
                panel-info {
                        ac-bias         = <255>;
                        ac-bias-intrpt  = <0>;
index 01ab74be5edb1bb5b0669bd4631c9928a654134c..c078af8fbae97af657b8f367314f69f47df7ccc6 100644 (file)
@@ -54,6 +54,8 @@
                bkl-pwm = <&pwmbacklight>;
                bkl-tps = <&tps_bl>;
 
+               u-boot,dm-pre-reloc;
+
                panel-info {
                        ac-bias         = <255>;
                        ac-bias-intrpt  = <0>;
index a63fc2da22b8d1d089fb93c902aea54e4bcd3135..7e9516e8f885ac9e3a2fea2811cb8edc5aea3b27 100644 (file)
@@ -59,6 +59,7 @@
                /*backlight = <&tps_bl>; */
                compatible = "ti,tilcdc,panel";
                status = "okay";
+               u-boot,dm-pre-reloc;
 
                panel-info {
                        ac-bias         = <255>;
index 33d8ab78d8e7218b789fb1474ccd4cbc323ca8b2..6091a12fb7077d4582c4a7a63842b9efd57f34d2 100644 (file)
@@ -79,6 +79,8 @@
 
                backlight = <&tps_bl>;
 
+               u-boot,dm-pre-reloc;
+
                panel-info {
                        ac-bias         = <255>;
                        ac-bias-intrpt  = <0>;
index b6b97ed16d91d83b95b3593cbc8ef3f6bfc78fb3..d7b049ef20cdf48a176a6ee161ade9be332e8a45 100644 (file)
@@ -3,6 +3,12 @@
  * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+/ {
+       panel {
+               u-boot,dm-pre-reloc;
+       };
+};
+
 
 &mmc3 {
        status = "disabled";
diff --git a/arch/arm/dts/am335x-evmsk-u-boot.dtsi b/arch/arm/dts/am335x-evmsk-u-boot.dtsi
new file mode 100644 (file)
index 0000000..599fb37
--- /dev/null
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * am335x-evmsk U-Boot Additions
+ *
+ * Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
+ */
+
+/ {
+       panel {
+               u-boot,dm-pre-reloc;
+       };
+};
index 156b9b0e83a7b7e9635d8e11d4276c9bb30ae685..705ef335bf3968453e86e4453423c6ae8a4e7c4c 100644 (file)
@@ -8,6 +8,10 @@
        ocp {
                u-boot,dm-pre-reloc;
        };
+
+       panel {
+               u-boot,dm-pre-reloc;
+       };
 };
 
 &l4_wkup {
index 84a07bdef46db0e43d85c936089ff891c7f52890..a799fe9bc3c600e1a0b993af6d049a6edd679ce0 100644 (file)
@@ -7,6 +7,10 @@
        ocp {
                u-boot,dm-pre-reloc;
        };
+
+       panel {
+               u-boot,dm-pre-reloc;
+       };
 };
 
 &l4_wkup {
diff --git a/arch/arm/dts/am335x-pxm50-u-boot.dtsi b/arch/arm/dts/am335x-pxm50-u-boot.dtsi
new file mode 100644 (file)
index 0000000..77dfe6e
--- /dev/null
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * am335x-pxm50 U-Boot Additions
+ *
+ * Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
+ */
+
+/ {
+       panel {
+               u-boot,dm-pre-reloc;
+       };
+};
diff --git a/arch/arm/dts/am335x-rut-u-boot.dtsi b/arch/arm/dts/am335x-rut-u-boot.dtsi
new file mode 100644 (file)
index 0000000..b2b4aa5
--- /dev/null
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * am335x-rut U-Boot Additions
+ *
+ * Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
+ */
+
+/ {
+       panel {
+               u-boot,dm-pre-reloc;
+       };
+};
index aa42d30c720a30695d0a62aeb3b0b95aad81285b..d9afc5edf45a5385b0a107432b2a71dbab89b449 100644 (file)
        nand {
                compatible = "ti,davinci-nand";
        };
+
+       panel {
+               u-boot,dm-pre-reloc;
+       };
 };
 
 &eth0 {