Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "imx8mm.dtsi"
- / {
- backlight: backlight {
- compatible = "pwm-backlight";
- pwms = <&pwm3 0 500000>; /* COM pin 149 tx8m */
- turn-on-delay-ms = <35>;
- power-supply = <®_3v3>;
- 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 = <50>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lcd_en>;
- enable-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; /* Enable onboard backlight chip DIM_ENABLE COM pin 154 */
- //status = "okay";
- };
- /* if the standard linux sn65 driver is used the screen should be defined something like this.
- av123z7m_n17: lvds_panel {
- compatible = "boe,av123z7m-n17","panel-lvds";
- //backlight = <&backlight>;
- power-supply = <®_3v3>;
- width-mm = <292>;
- height-mm = <109>;
- data-mapping = "vesa-24"; /* linux/documentation/devicetree/bindings/display/panel/lvds.yaml and spec sheet *
- status = "okay";
- reset-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
- enable-gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
- panel-timing {
- clock-frequency = <44100000>;
- hactive = <1920>;
- vactive = <720>;
- hback-porch = <6>;
- hfront-porch = <5>;
- vback-porch = <2>;
- vfront-porch = <3>;
- hsync-len = <2>;
- vsync-len = <1>;
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- dual-lvds-odd-pixels;
- panel_lvds_in_A: endpoint {
- remote-endpoint = <&dsi_lvds_bridge_out_A>;
- };
- };
- port@1 {
- reg = <1>;
- dual-lvds-even-pixels;
- panel_lvds_in_B: endpoint {
- remote-endpoint = <&dsi_lvds_bridge_out_B>;
- };
- };
- };
- };
- */
- };
- &i2c4 {
- pinctrl-names = "default", "gpio";
- pinctrl-0 = <&pinctrl_i2c4>;
- pinctrl-1 = <&pinctrl_i2c4_gpio>;
- scl-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>;
- sda-gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>;
- clock-frequency = <400000>;
- status = "okay";
- #address-cells = <1>;
- #size-cells = <0>;
- dsi_lvds_bridge: sn65dsi83@2d {
- compatible = "ti,sn65dsi83";
- reg = <0x2d>;
- enable-gpio = <&gpio3 10 GPIO_ACTIVE_HIGH>; /* SN65_EN COM pin 96 */
- enable-panel-gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>; /* screen enable COM pin 157 */
- ti,lvds-channels= <2>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lvds>;
- /* panel initialisation like this is only done with the driver present on the variscite kernel. */
- display-timings {
- lvds {
- clock-frequency = <62500000>;
- hactive = <1920>;
- vactive = <720>;
- hback-porch = <6>;
- hfront-porch = <5>;
- vback-porch = <2>;
- vfront-porch = <3>;
- hsync-len = <2>;
- vsync-len = <1>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <1>;
- pixelclk-active = <0>;
- };
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- dsi_lvds_bridge_in: endpoint {
- remote-endpoint = <&mipi_dsi_out>;
- data-lanes = <0 1 2 3>;
- };
- };
- // /* if the standard kernel driver is used this block should be present with these remote-endpoints linking to a screen definition. https://github.com/varigit/linux-imx/tree/lf-5.10.y_var04/drivers/gpu/drm/bridge/sn65dsi83
- // port@2 {
- // reg = <2>;
- // dual-lvds-odd-pixels;
- // dsi_lvds_bridge_out_A: endpoint {
- // remote-endpoint = <&panel_lvds_in_A>;
- // };
- // };
- // port@3 {
- // reg = <3>;
- // dual-lvds-even-pixels;
- // dsi_lvds_bridge_out_B: endpoint {
- // remote-endpoint = <&panel_lvds_in_B>;
- // };
- // };
- // */
- };
- };
- };
- &lcdif {
- status = "okay";
- };
- &mipi_dsi {
- status = "okay";
- port@1 {
- mipi_dsi_out: endpoint {
- remote-endpoint = <&dsi_lvds_bridge_in>;
- data-lanes = <0 1 2 3>;
- attach-bridge;
- };
- };
- };
- &iomuxc {
- pinctrl_i2c4: i2c4grp {
- fsl,pins = <
- MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001d6 /* I2C3 SCL on 150 of COM */
- MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001d6 /* I2C3 SDA on 151 of COM */
- >;
- };
- pinctrl_i2c4_gpio: i2c4-gpiogrp {
- fsl,pins = <
- MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20 0x400001d6 /* I2C3 SCL on 150 of COM */
- MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21 0x400001d6 /* I2C3 SDA on 151 of COM */
- >;
- };
- pinctrl_lvds: lvdsgrp {
- fsl,pins = <
- MX8MM_IOMUXC_SAI1_TXD7_GPIO4_IO19 0x156
- >;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement