Skip to content
Snippets Groups Projects
Commit e96e864f authored by Nicola Sparnacci's avatar Nicola Sparnacci
Browse files

[C57] Rework LVDS and eDP to remove always-on regulators

The regulators related to `vcc_blk_sw` and `vcc_lcd_sw` have been
modified removing the `regulator-always-on` entry. This change requires
that:
- the backlight node has the `enable-gpio` and the `power-supply`
correctly set (now added);
- the panel node has the `backlight`, `power-supply` and `enable-gpio`
correctly set (now added).

The regulator enabling the backlight has been removed because it has the
same function of `enable-gpio` in the backlight node.

Additionally, all the display-related nodes have been refactored to
move all the related nodes into their overlays.
parent ee348b9b
No related branches found
No related tags found
1 merge request!150[iMX8QXP][C57] Add support to iMX8QXP SoC and SECO C57 board
...@@ -38,6 +38,29 @@ ...@@ -38,6 +38,29 @@
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
regulator-always-on; regulator-always-on;
};
reg_backlight_vcc_bkl_sw: backlight_vcc_bkl_sw {
compatible = "regulator-fixed";
regulator-name = "backlight_vcc_bkl_sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
/* The gpio field is configured by u-boot depending on
the revision of the board. The gpio declared here is
related to the latest hardware revision. */
gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
reg_en_vcc_lcd_sw: en_vcc_lcd {
compatible = "regulator-fixed";
regulator-name = "EN_VCC_LCD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
}; };
}; };
}; };
...@@ -46,23 +69,67 @@ ...@@ -46,23 +69,67 @@
fragment@1 { fragment@1 {
target-path = "/"; target-path = "/";
__overlay__ { __overlay__ {
/* Both Panels backlight + MP3385AGR */
backlight0: lvds_backlight0 {
compatible = "mp3385-backlight";
pwms = <&pwm_mipi_lvds0 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
client-device = <&mp3385_led_driver>;
enable-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
/* Backlight on CN25 (pin30) */
lvds_backlight1 {
compatible = "pwm-backlight";
pwms = <&pwm_mipi_lvds1 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
enable-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
lvds_panel { lvds_panel {
compatible = "seco-hannstar,hsd090jfw1", "panel-dpi"; compatible = "seco-hannstar,hsd090jfw1", "panel-dpi";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
no-hpd; no-hpd;
backlight = <&backlight0>;
power-supply = <&reg_en_vcc_lcd_sw>;
enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
width-mm = <196>; width-mm = <196>;
height-mm = <114>; height-mm = <114>;
prepare-ms = <100>; prepare-ms = <100>;
enable-ms = <100>; enable-ms = <100>;
disable-ms = <100>; disable-ms = <100>;
unprepare-ms = <100>; unprepare-ms = <100>;
bpc = <8>; bpc = <8>;
bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X24>; bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X24>;
status = "okay"; status = "okay";
panel-timing { panel-timing {
......
...@@ -39,6 +39,29 @@ ...@@ -39,6 +39,29 @@
gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
regulator-always-on; regulator-always-on;
}; };
reg_backlight_vcc_bkl_sw: backlight_vcc_bkl_sw {
compatible = "regulator-fixed";
regulator-name = "backlight_vcc_bkl_sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
/* The gpio field is configured by u-boot depending on
the revision of the board. The gpio declared here is
related to the latest hardware revision. */
gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
reg_en_vcc_lcd_sw: en_vcc_lcd {
compatible = "regulator-fixed";
regulator-name = "EN_VCC_LCD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
}; };
}; };
}; };
...@@ -46,12 +69,58 @@ ...@@ -46,12 +69,58 @@
fragment@1 { fragment@1 {
target-path = "/"; target-path = "/";
__overlay__ { __overlay__ {
/* Both Panels backlight + MP3385AGR */
backlight0: lvds_backlight0 {
compatible = "mp3385-backlight";
pwms = <&pwm_mipi_lvds0 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
client-device = <&mp3385_led_driver>;
enable-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
/* Backlight on CN25 (pin30) */
lvds_backlight1 {
compatible = "pwm-backlight";
pwms = <&pwm_mipi_lvds1 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
enable-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
lvds_panel { lvds_panel {
compatible = "panel-lvds"; compatible = "panel-lvds";
status = "okay"; status = "okay";
data-mapping = "vesa-24"; data-mapping = "vesa-24";
width-mm = <217>; width-mm = <217>;
height-mm = <136>; height-mm = <136>;
backlight = <&backlight0>;
power-supply = <&reg_en_vcc_lcd_sw>;
enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
panel-timing { panel-timing {
clock-frequency = <66100000>; clock-frequency = <66100000>;
......
...@@ -39,6 +39,29 @@ ...@@ -39,6 +39,29 @@
gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
regulator-always-on; regulator-always-on;
}; };
reg_backlight_vcc_bkl_sw: backlight_vcc_bkl_sw {
compatible = "regulator-fixed";
regulator-name = "backlight_vcc_bkl_sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
/* The gpio field is configured by u-boot depending on
the revision of the board. The gpio declared here is
related to the latest hardware revision. */
gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
reg_en_vcc_lcd_sw: en_vcc_lcd {
compatible = "regulator-fixed";
regulator-name = "EN_VCC_LCD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
}; };
}; };
}; };
...@@ -46,12 +69,58 @@ ...@@ -46,12 +69,58 @@
fragment@1 { fragment@1 {
target-path = "/"; target-path = "/";
__overlay__ { __overlay__ {
/* Both Panels backlight + MP3385AGR */
backlight0: lvds_backlight0 {
compatible = "mp3385-backlight";
pwms = <&pwm_mipi_lvds0 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
client-device = <&mp3385_led_driver>;
enable-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
/* Backlight on CN25 (pin30) */
lvds_backlight1 {
compatible = "pwm-backlight";
pwms = <&pwm_mipi_lvds1 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
enable-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
lvds_panel { lvds_panel {
compatible = "seco-innolux,ne070nb-04f", "panel-dpi"; compatible = "seco-innolux,ne070nb-04f", "panel-dpi";
status = "okay"; status = "okay";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
no-hpd; no-hpd;
backlight = <&backlight0>;
power-supply = <&reg_en_vcc_lcd_sw>;
enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
bpc = <8>; bpc = <8>;
width-mm = <154>; width-mm = <154>;
......
...@@ -39,6 +39,29 @@ ...@@ -39,6 +39,29 @@
gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
regulator-always-on; regulator-always-on;
}; };
reg_backlight_vcc_bkl_sw: backlight_vcc_bkl_sw {
compatible = "regulator-fixed";
regulator-name = "backlight_vcc_bkl_sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
/* The gpio field is configured by u-boot depending on
the revision of the board. The gpio declared here is
related to the latest hardware revision. */
gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
reg_en_vcc_lcd_sw: en_vcc_lcd {
compatible = "regulator-fixed";
regulator-name = "EN_VCC_LCD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
}; };
}; };
}; };
...@@ -46,22 +69,65 @@ ...@@ -46,22 +69,65 @@
fragment@1 { fragment@1 {
target-path = "/"; target-path = "/";
__overlay__ { __overlay__ {
/* Both Panels backlight + MP3385AGR */
backlight0: lvds_backlight0 {
compatible = "mp3385-backlight";
pwms = <&pwm_mipi_lvds0 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
client-device = <&mp3385_led_driver>;
enable-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
/* Backlight on CN25 (pin30) */
lvds_backlight1 {
compatible = "pwm-backlight";
pwms = <&pwm_mipi_lvds1 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
enable-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
lvds_panel { lvds_panel {
compatible = "seco-innolux,g156hce_l01", "panel-dpi"; compatible = "seco-innolux,g156hce_l01", "panel-dpi";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
backlight = <&backlight0>;
power-supply = <&reg_en_vcc_lcd_sw>;
enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
width-mm = <344>; width-mm = <344>;
height-mm = <194>; height-mm = <194>;
prepare-ms = <1>; prepare-ms = <1>;
enable-ms = <450>; enable-ms = <450>;
disable-ms = <200>; disable-ms = <200>;
unprepare-ms = <10>; unprepare-ms = <10>;
bpc = <8>; bpc = <8>;
bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X24>; bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X24>;
status = "okay"; status = "okay";
panel-timing { panel-timing {
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
*/ */
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/drm_mipi_dsi.h>
/dts-v1/; /dts-v1/;
/plugin/; /plugin/;
...@@ -30,8 +32,8 @@ ...@@ -30,8 +32,8 @@
fragment@0 { fragment@0 {
target-path = "/"; target-path = "/";
__overlay__ { __overlay__ {
regulators { regulators {
mux_sel: mux_sel { mux_sel: mux_sel {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "MUX_SEL"; regulator-name = "MUX_SEL";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
...@@ -40,23 +42,151 @@ ...@@ -40,23 +42,151 @@
enable-active-high; enable-active-high;
regulator-always-on; regulator-always-on;
}; };
reg_backlight_vcc_bkl_sw: backlight_vcc_bkl_sw {
compatible = "regulator-fixed";
regulator-name = "backlight_vcc_bkl_sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
/* The gpio field is configured by u-boot depending on
the revision of the board. The gpio declared here is
related to the latest hardware revision. */
gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
reg_en_vcc_lcd_sw: en_vcc_lcd {
compatible = "regulator-fixed";
regulator-name = "EN_VCC_LCD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
};
};
/* Both Panels backlight + MP3385AGR */
backlight0: lvds_backlight0 {
compatible = "mp3385-backlight";
pwms = <&pwm_mipi_lvds0 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
client-device = <&mp3385_led_driver>;
enable-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
};
/* Backlight on CN25 (pin30) */
lvds_backlight1 {
compatible = "pwm-backlight";
pwms = <&pwm_mipi_lvds1 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
enable-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
power-supply = <&reg_backlight_vcc_bkl_sw>;
}; };
}; };
}; };
fragment@1 { fragment@1 {
target = <&panel>; target-path = "/";
__overlay__ { __overlay__ {
status = "okay"; edp_panel {
status = "okay";
compatible = "boe,ev156fhm", "panel-dpi";
#address-cells = <1>;
#size-cells = <0>;
backlight = <&backlight0>;
power-supply = <&reg_en_vcc_lcd_sw>;
enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
port@0 {
reg = <0>;
panel_in: endpoint {
remote-endpoint = <&bridge_to_panel>;
};
};
};
}; };
}; };
fragment@2 { fragment@2 {
target = <&i2c0_mipi_lvds0>; target = <&i2c0_mipi_lvds0>;
__overlay__ { __overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
edp_bridge: sn65dsi86@2c { edp_bridge: sn65dsi86@2c {
status = "okay"; status = "okay";
compatible = "seco,sn65dsi86";
adi,dsi-lanes = <4>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2c>;
dsi,max-lanes = <2>;
dsi,max-rate = <1500>;
pd-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>, <&gpio3 22 GPIO_ACTIVE_HIGH>;
edp_irq-gpios = <&gpio1 1 IRQ_TYPE_EDGE_FALLING>;
clocks = <&osc_27m>;
enable-hpd;
read-dp-rate-from-panel;
dsi,mode-flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | MIPI_DSI_MODE_LPM)>;
bkl_on_off_delay_range_us = <0 6000>;
lcd_on_off_delay_range_us = <0 200000>;
si-result = <0xb0 0x41>,
<0xb1 0x72>,
<0xb2 0xa4>,
<0xb3 0xc6>,
<0xb4 0xc6>,
<0xb5 0x32>,
<0xb6 0x74>,
<0xb8 0x33>,
<0xb9 0x75>,
<0xbc 0x34>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
bridge_to_mipi: endpoint {
remote-endpoint = <&mipi_to_bridge>;
};
};
port@1 {
reg = <1>;
bridge_to_panel: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
}; };
}; };
}; };
...@@ -72,7 +202,17 @@ ...@@ -72,7 +202,17 @@
target = <&mipi0_dsi_host>; target = <&mipi0_dsi_host>;
__overlay__ { __overlay__ {
status = "okay"; status = "okay";
pwr-delay = <10>;
ports{
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
mipi_to_bridge: endpoint {
remote-endpoint = <&bridge_to_mipi>;
};
};
};
}; };
}; };
}; };
\ No newline at end of file
...@@ -107,20 +107,6 @@ ...@@ -107,20 +107,6 @@
regulator-max-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
}; };
/*cn15 connector*/
reg_en_bckl1_drv: en_bckl_drv {
status = "disabled";
compatible = "regulator-fixed";
regulator-name = "EN_BCKL_DRV";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio3 1 GPIO_ACTIVE_HIGH>;
enable-active-high;
// startup-delay-us = <40000>;\
regulator-boot-on;
regulator-always-on;
};
reg_wifi_ac_en: reg_wifiacen { reg_wifi_ac_en: reg_wifiacen {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "WIFI_AC_EN"; regulator-name = "WIFI_AC_EN";
...@@ -141,49 +127,6 @@ ...@@ -141,49 +127,6 @@
regulator-always-on; regulator-always-on;
}; };
reg_backlight_vcc_bkl_sw: backlight_vcc_bkl_sw {
compatible = "regulator-fixed";
regulator-name = "backlight_vcc_bkl_sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
//gpio = <&gpio0 19 GPIO_ACTIVE_HIGH>; /* This is configured by u-boot */
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
reg_en_vcc_lcd: en_vcc_lcd {
compatible = "regulator-fixed";
regulator-name = "EN_VCC_LCD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
reg_backlight_on: reg_backlight_on {
compatible = "regulator-fixed";
regulator-name = "BACKLIGHT_ON";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
reg_lvds_panel_on: lvds_panel_on {
compatible = "regulator-fixed";
regulator-name = "LVDS_PANEL_ON";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};
mux_sel: mux_sel { mux_sel: mux_sel {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
regulator-name = "MUX_SEL"; regulator-name = "MUX_SEL";
...@@ -228,59 +171,6 @@ ...@@ -228,59 +171,6 @@
sound-dai = <&tlvcodec 0>; sound-dai = <&tlvcodec 0>;
}; };
}; };
/* Both Panels backlight + MP3385AGR */
lvds_backlight0 {
compatible = "mp3385-backlight";
pwms = <&pwm_mipi_lvds0 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
client-device = <&mp3385_led_driver>;
};
/* Backlight on CN25 (pin30) */
lvds_backlight1 {
compatible = "pwm-backlight";
pwms = <&pwm_mipi_lvds1 0 100000 0>;
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <90>;
};
panel: edp_panel {
status = "disabled";
compatible = "boe,ev156fhm", "panel-dpi";
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in: endpoint {
remote-endpoint = <&bridge_to_panel>;
};
};
};
}; };
&acm { &acm {
...@@ -1129,60 +1019,10 @@ gpio5: &lsio_gpio5 { ...@@ -1129,60 +1019,10 @@ gpio5: &lsio_gpio5 {
/* DSI/LVDS port 0 */ /* DSI/LVDS port 0 */
&i2c0_mipi_lvds0 { &i2c0_mipi_lvds0 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c0_mipi_lvds0>; pinctrl-0 = <&pinctrl_i2c0_mipi_lvds0>;
clock-frequency = <100000>; clock-frequency = <100000>;
status = "disabled"; status = "disabled";
edp_bridge: sn65dsi86@2c {
status = "disabled";
compatible = "seco,sn65dsi86";
adi,dsi-lanes = <4>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2c>;
dsi,max-lanes = <2>;
dsi,max-rate = <1500>;
pd-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>, <&gpio3 22 GPIO_ACTIVE_HIGH>;
edp_irq-gpios = <&gpio1 1 IRQ_TYPE_EDGE_FALLING>;
clocks = <&osc_27m>;
enable-hpd;
read-dp-rate-from-panel;
dsi,mode-flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | MIPI_DSI_MODE_LPM)>;
bkl_on_off_delay_range_us = <0 6000>;
lcd_on_off_delay_range_us = <0 200000>;
si-result = <0xb0 0x41>,
<0xb1 0x72>,
<0xb2 0xa4>,
<0xb3 0xc6>,
<0xb4 0xc6>,
<0xb5 0x32>,
<0xb6 0x74>,
<0xb8 0x33>,
<0xb9 0x75>,
<0xbc 0x34>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
bridge_to_mipi: endpoint {
remote-endpoint = <&mipi_to_bridge>;
};
};
port@1 {
reg = <1>;
bridge_to_panel: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
};
}; };
&mipi0_dphy { &mipi0_dphy {
...@@ -1191,15 +1031,6 @@ gpio5: &lsio_gpio5 { ...@@ -1191,15 +1031,6 @@ gpio5: &lsio_gpio5 {
&mipi0_dsi_host { &mipi0_dsi_host {
status = "disabled"; status = "disabled";
pwr-delay = <10>;
ports{
port@1 {
reg = <1>;
mipi_to_bridge: endpoint {
remote-endpoint = <&bridge_to_mipi>;
};
};
};
}; };
&mipi1_dphy { &mipi1_dphy {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment