Mipi dsi not able to attach the sn65dsi bridge. The driver is loading fine but it gives an error like this [ 7.223851] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/bus@32c00000/mipi_dsi@32e60000 to encoder DSI-40: -19
[ 7.240955] imx_sec_dsim_drv 32e60000.mipi_dsi: Failed to attach bridge: 32e60000.mipi_dsi
[ 7.249236] DSIM_DEBUG: sec_mipi_dsim_bind() returned -19
[ 7.261771] imx_sec_dsim_drv 32e60000.mipi_dsi: failed to bind sec dsim bridge: -19
[ 7.269436] imx-drm display-subsystem: bound 32e60000.mipi_dsi (ops imx_sec_dsim_ops)
vcc_1v2: regulator-vcc-1v2 {
compatible = "regulator-fixed";
regulator-name = "vcc_1v2";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
regulator-always-on;
regulator-boot-on;
};
vcc_1v8: regulator-vcc-1v8 {
compatible = "regulator-fixed";
regulator-name = "vcc_1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
};
panel_edp: panel {
compatible = "lg,lp079qx1-sp0v";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mipi_dsi_en>;
status = "okay";
port {
panel_in: endpoint {
remote-endpoint = <&edp_bridge_out>;
};
};
display-timings {
native-mode = <&timing_1280x800>;
timing_1280x800: 1280x800 {
clock-frequency = <77000000>; /* 77.00 MHz */
hactive = <1280>;
vactive = <800>;
hfront-porch = <160>;
hsync-len = <32>;
hback-porch = <40>; /* Calculated: 232 - 160 - 32 */
vfront-porch = <20>;
vsync-len = <6>;
vback-porch = <30>; /* Calculated: 56 - 20 - 6 */
};
};
};
refclk: input_refclk{
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <19200000>;
clock-output-names = "refclk";
};
};
&lcdif1 {
status = "okay";
lcdif1_disp: port@0 {
reg = <0>;
lcdif_to_dsim_1: endpoint {
remote-endpoint = <&dsim_from_lcdif_2>;
};
};
};
&mipi_dsi {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
dsim_from_lcdif_2: endpoint {
remote-endpoint = <&lcdif_to_dsim_1>;
};
};
port@1 {
reg = <1>;
dsim_to_edpbridge: endpoint {
remote-endpoint = <&edp_bridge_in>;
};
};
};
};
&i2c3{
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
sn65dsi86_bridge: sn65dsi86@2c{
compatible = "ti,sn65dsi86";
reg = <0x2c>;
status ="okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dp>;
enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
vccio-supply = <&vcc_1v8>;
vpll-supply = <&vcc_1v8>;
vcca-supply = <&vcc_1v2>;
vcc-supply = <&vcc_1v2>;
clock-names = "refclk";
clocks = <&refclk>;
ports{
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
edp_bridge_in: endpoint {
remote-endpoint = <&dsim_to_edpbridge>;
data-lanes = <0 1 2 3>;
};
};
port@1 {
reg = <1>;
edp_bridge_out: endpoint {
remote-endpoint = <&panel_in>;
data-lanes = <0 1 2 3>;
};
};
};
};
Does it work with i2c when i tried i2cdump its giving xx values for every register and also
cat /sys/kernel/debug/regmap/2-002c/registers giving xx values is this the cause for the mipi dsi to bind