Loading Documentation/devicetree/bindings/drm/msm/sde-dsi.txt +1 −0 Original line number Diff line number Diff line Loading @@ -100,3 +100,4 @@ Optional properties: controller. This must be enabled for debugging purpose only with simulator panel. It should not be enabled for normal DSI panels. - - qcom,null-insertion-enabled: A boolean to enable NULL packet insertion feature for DSI controller. drivers/gpu/drm/msm/dsi-staging/dsi_catalog.c +3 −1 Original line number Diff line number Diff line Loading @@ -120,6 +120,7 @@ static void dsi_catalog_cmn_init(struct dsi_ctrl_hw *ctrl, * @version: DSI controller version. * @index: DSI controller instance ID. * @phy_isolation_enabled: DSI controller works isolated from phy. * @null_insertion_enabled: DSI controller inserts null packet. * * This function setups the catalog information in the dsi_ctrl_hw object. * Loading @@ -127,7 +128,7 @@ static void dsi_catalog_cmn_init(struct dsi_ctrl_hw *ctrl, */ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, enum dsi_ctrl_version version, u32 index, bool phy_isolation_enabled) bool phy_isolation_enabled, bool null_insertion_enabled) { int rc = 0; Loading @@ -138,6 +139,7 @@ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, } ctrl->index = index; ctrl->null_insertion_enabled = null_insertion_enabled; set_bit(DSI_CTRL_VIDEO_TPG, ctrl->feature_map); set_bit(DSI_CTRL_CMD_TPG, ctrl->feature_map); set_bit(DSI_CTRL_VARIABLE_REFRESH_RATE, ctrl->feature_map); Loading drivers/gpu/drm/msm/dsi-staging/dsi_catalog.h +2 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ * @version: DSI controller version. * @index: DSI controller instance ID. * @phy_isolation_enabled: DSI controller works isolated from phy. * @null_insertion_enabled: DSI controller inserts null packet. * * This function setups the catalog information in the dsi_ctrl_hw object. * Loading @@ -31,7 +32,7 @@ */ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, enum dsi_ctrl_version version, u32 index, bool phy_isolation_enabled); bool phy_isolation_enabled, bool null_insertion_enabled); /** * dsi_catalog_phy_setup() - return catalog info for dsi phy hardware Loading drivers/gpu/drm/msm/dsi-staging/dsi_ctrl.c +5 −1 Original line number Diff line number Diff line Loading @@ -1469,6 +1469,9 @@ static int dsi_ctrl_dts_parse(struct dsi_ctrl *dsi_ctrl, dsi_ctrl->phy_isolation_enabled = of_property_read_bool(of_node, "qcom,dsi-phy-isolation-enabled"); dsi_ctrl->null_insertion_enabled = of_property_read_bool(of_node, "qcom,null-insertion-enabled"); return 0; } Loading Loading @@ -1526,7 +1529,8 @@ static int dsi_ctrl_dev_probe(struct platform_device *pdev) } rc = dsi_catalog_ctrl_setup(&dsi_ctrl->hw, dsi_ctrl->version, dsi_ctrl->cell_index, dsi_ctrl->phy_isolation_enabled); dsi_ctrl->cell_index, dsi_ctrl->phy_isolation_enabled, dsi_ctrl->null_insertion_enabled); if (rc) { pr_err("Catalog does not support version (%d)\n", dsi_ctrl->version); Loading drivers/gpu/drm/msm/dsi-staging/dsi_ctrl.h +3 −0 Original line number Diff line number Diff line Loading @@ -195,6 +195,8 @@ struct dsi_ctrl_interrupts { * @misr_cache: Cached Frame MISR value * @phy_isolation_enabled: A boolean property allows to isolate the phy from * dsi controller and run only dsi controller. * @null_insertion_enabled: A boolean property to allow dsi controller to * insert null packet. */ struct dsi_ctrl { struct platform_device *pdev; Loading Loading @@ -239,6 +241,7 @@ struct dsi_ctrl { u32 misr_cache; bool phy_isolation_enabled; bool null_insertion_enabled; }; /** Loading Loading
Documentation/devicetree/bindings/drm/msm/sde-dsi.txt +1 −0 Original line number Diff line number Diff line Loading @@ -100,3 +100,4 @@ Optional properties: controller. This must be enabled for debugging purpose only with simulator panel. It should not be enabled for normal DSI panels. - - qcom,null-insertion-enabled: A boolean to enable NULL packet insertion feature for DSI controller.
drivers/gpu/drm/msm/dsi-staging/dsi_catalog.c +3 −1 Original line number Diff line number Diff line Loading @@ -120,6 +120,7 @@ static void dsi_catalog_cmn_init(struct dsi_ctrl_hw *ctrl, * @version: DSI controller version. * @index: DSI controller instance ID. * @phy_isolation_enabled: DSI controller works isolated from phy. * @null_insertion_enabled: DSI controller inserts null packet. * * This function setups the catalog information in the dsi_ctrl_hw object. * Loading @@ -127,7 +128,7 @@ static void dsi_catalog_cmn_init(struct dsi_ctrl_hw *ctrl, */ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, enum dsi_ctrl_version version, u32 index, bool phy_isolation_enabled) bool phy_isolation_enabled, bool null_insertion_enabled) { int rc = 0; Loading @@ -138,6 +139,7 @@ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, } ctrl->index = index; ctrl->null_insertion_enabled = null_insertion_enabled; set_bit(DSI_CTRL_VIDEO_TPG, ctrl->feature_map); set_bit(DSI_CTRL_CMD_TPG, ctrl->feature_map); set_bit(DSI_CTRL_VARIABLE_REFRESH_RATE, ctrl->feature_map); Loading
drivers/gpu/drm/msm/dsi-staging/dsi_catalog.h +2 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ * @version: DSI controller version. * @index: DSI controller instance ID. * @phy_isolation_enabled: DSI controller works isolated from phy. * @null_insertion_enabled: DSI controller inserts null packet. * * This function setups the catalog information in the dsi_ctrl_hw object. * Loading @@ -31,7 +32,7 @@ */ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl, enum dsi_ctrl_version version, u32 index, bool phy_isolation_enabled); bool phy_isolation_enabled, bool null_insertion_enabled); /** * dsi_catalog_phy_setup() - return catalog info for dsi phy hardware Loading
drivers/gpu/drm/msm/dsi-staging/dsi_ctrl.c +5 −1 Original line number Diff line number Diff line Loading @@ -1469,6 +1469,9 @@ static int dsi_ctrl_dts_parse(struct dsi_ctrl *dsi_ctrl, dsi_ctrl->phy_isolation_enabled = of_property_read_bool(of_node, "qcom,dsi-phy-isolation-enabled"); dsi_ctrl->null_insertion_enabled = of_property_read_bool(of_node, "qcom,null-insertion-enabled"); return 0; } Loading Loading @@ -1526,7 +1529,8 @@ static int dsi_ctrl_dev_probe(struct platform_device *pdev) } rc = dsi_catalog_ctrl_setup(&dsi_ctrl->hw, dsi_ctrl->version, dsi_ctrl->cell_index, dsi_ctrl->phy_isolation_enabled); dsi_ctrl->cell_index, dsi_ctrl->phy_isolation_enabled, dsi_ctrl->null_insertion_enabled); if (rc) { pr_err("Catalog does not support version (%d)\n", dsi_ctrl->version); Loading
drivers/gpu/drm/msm/dsi-staging/dsi_ctrl.h +3 −0 Original line number Diff line number Diff line Loading @@ -195,6 +195,8 @@ struct dsi_ctrl_interrupts { * @misr_cache: Cached Frame MISR value * @phy_isolation_enabled: A boolean property allows to isolate the phy from * dsi controller and run only dsi controller. * @null_insertion_enabled: A boolean property to allow dsi controller to * insert null packet. */ struct dsi_ctrl { struct platform_device *pdev; Loading Loading @@ -239,6 +241,7 @@ struct dsi_ctrl { u32 misr_cache; bool phy_isolation_enabled; bool null_insertion_enabled; }; /** Loading