diff --git a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1024x600-overlay.dts b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1024x600-overlay.dts index eeeb22113755b9de5d445f085952e3eaaa12b231..26d9e45b67fd15103b1cf27a41c0dd65944f9bc9 100644 --- a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1024x600-overlay.dts +++ b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1024x600-overlay.dts @@ -38,6 +38,29 @@ regulator-max-microvolt = <3300000>; gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 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 @@ fragment@1 { target-path = "/"; __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 = <®_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 = <®_backlight_vcc_bkl_sw>; + }; + lvds_panel { compatible = "seco-hannstar,hsd090jfw1", "panel-dpi"; #address-cells = <1>; #size-cells = <0>; no-hpd; + backlight = <&backlight0>; + power-supply = <®_en_vcc_lcd_sw>; + enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; width-mm = <196>; height-mm = <114>; - prepare-ms = <100>; enable-ms = <100>; disable-ms = <100>; unprepare-ms = <100>; - bpc = <8>; bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X24>; - status = "okay"; panel-timing { diff --git a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1280x800-overlay.dts b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1280x800-overlay.dts index c2e6ea74f58f37008ebf23fa7857ef54258d9a3d..d697112efad8b849177aea57655b2a5cf348e368 100644 --- a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1280x800-overlay.dts +++ b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-1280x800-overlay.dts @@ -39,6 +39,29 @@ gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 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 @@ fragment@1 { target-path = "/"; __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 = <®_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 = <®_backlight_vcc_bkl_sw>; + }; + lvds_panel { compatible = "panel-lvds"; status = "okay"; data-mapping = "vesa-24"; width-mm = <217>; height-mm = <136>; + backlight = <&backlight0>; + power-supply = <®_en_vcc_lcd_sw>; + enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; panel-timing { clock-frequency = <66100000>; diff --git a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts index e6185fe4cd3668c2b5c4db1493eb50e02eb8a64b..d61a812159f7b6cf63ddf862709a9b47499244bc 100644 --- a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts +++ b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts @@ -39,6 +39,29 @@ gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 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 @@ fragment@1 { target-path = "/"; __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 = <®_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 = <®_backlight_vcc_bkl_sw>; + }; + lvds_panel { compatible = "seco-innolux,ne070nb-04f", "panel-dpi"; status = "okay"; #address-cells = <1>; #size-cells = <0>; no-hpd; + backlight = <&backlight0>; + power-supply = <®_en_vcc_lcd_sw>; + enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; bpc = <8>; width-mm = <154>; diff --git a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-dual-1920x1080-overlay.dts b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-dual-1920x1080-overlay.dts index 4456dd65e4f4ba9c1d05fca5d4eaca20d388b4a6..490a3b686c69549498d8d6f9d252d9eab194a6be 100644 --- a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-dual-1920x1080-overlay.dts +++ b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-dual-1920x1080-overlay.dts @@ -39,6 +39,29 @@ gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 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 @@ fragment@1 { target-path = "/"; __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 = <®_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 = <®_backlight_vcc_bkl_sw>; + }; + lvds_panel { compatible = "seco-innolux,g156hce_l01", "panel-dpi"; #address-cells = <1>; #size-cells = <0>; - + backlight = <&backlight0>; + power-supply = <®_en_vcc_lcd_sw>; + enable-gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; + width-mm = <344>; height-mm = <194>; - prepare-ms = <1>; enable-ms = <450>; disable-ms = <200>; unprepare-ms = <10>; - bpc = <8>; bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X24>; - status = "okay"; panel-timing { diff --git a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-sn65dsi86-edp-overlay.dts b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-sn65dsi86-edp-overlay.dts index be77a1e6495eb30476415e051a031798bd246d75..7bd4883906ad98d50c8451889edbfd576859bccb 100644 --- a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-sn65dsi86-edp-overlay.dts +++ b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-sn65dsi86-edp-overlay.dts @@ -13,6 +13,8 @@ */ #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/drm_mipi_dsi.h> /dts-v1/; /plugin/; @@ -30,8 +32,8 @@ fragment@0 { target-path = "/"; __overlay__ { - regulators { - mux_sel: mux_sel { + regulators { + mux_sel: mux_sel { compatible = "regulator-fixed"; regulator-name = "MUX_SEL"; regulator-min-microvolt = <3300000>; @@ -40,23 +42,151 @@ enable-active-high; 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 = <®_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 = <®_backlight_vcc_bkl_sw>; }; }; }; fragment@1 { - target = <&panel>; + target-path = "/"; __overlay__ { - status = "okay"; + edp_panel { + status = "okay"; + compatible = "boe,ev156fhm", "panel-dpi"; + #address-cells = <1>; + #size-cells = <0>; + backlight = <&backlight0>; + power-supply = <®_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 { target = <&i2c0_mipi_lvds0>; __overlay__ { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + edp_bridge: sn65dsi86@2c { 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 @@ target = <&mipi0_dsi_host>; __overlay__ { 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 diff --git a/arch/arm64/boot/dts/seco/seco-imx8qxp-c57.dts b/arch/arm64/boot/dts/seco/seco-imx8qxp-c57.dts index a5b53091d02f39f8f4e6bad18dfa4ba972ae05d2..04fe8b3a56e588be5450e8365fd558c39da097d1 100644 --- a/arch/arm64/boot/dts/seco/seco-imx8qxp-c57.dts +++ b/arch/arm64/boot/dts/seco/seco-imx8qxp-c57.dts @@ -107,20 +107,6 @@ 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 { compatible = "regulator-fixed"; regulator-name = "WIFI_AC_EN"; @@ -141,49 +127,6 @@ 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 { compatible = "regulator-fixed"; regulator-name = "MUX_SEL"; @@ -228,59 +171,6 @@ 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 { @@ -1129,60 +1019,10 @@ gpio5: &lsio_gpio5 { /* DSI/LVDS port 0 */ &i2c0_mipi_lvds0 { - #address-cells = <1>; - #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c0_mipi_lvds0>; clock-frequency = <100000>; 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 { @@ -1191,15 +1031,6 @@ gpio5: &lsio_gpio5 { &mipi0_dsi_host { status = "disabled"; - pwr-delay = <10>; - ports{ - port@1 { - reg = <1>; - mipi_to_bridge: endpoint { - remote-endpoint = <&bridge_to_mipi>; - }; - }; - }; }; &mipi1_dphy {