tc358767.c (f83d9396d1f63048c423efa00e4e244da10a35fd) | tc358767.c (14e7157afb055248ed34901fcd6fbf54201cfea1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * TC358767/TC358867/TC9595 DSI/DPI-to-DPI/(e)DP bridge driver 4 * 5 * The TC358767/TC358867/TC9595 can operate in multiple modes. 6 * All modes are supported -- DPI->(e)DP / DSI->DPI / DSI->(e)DP . 7 * 8 * Copyright (C) 2016 CogentEmbedded Inc --- 1996 unchanged lines hidden (view full) --- 2005 * Possible connections: 2006 * DPI -> port@1 -> port@2 -> eDP :: [port@0 is not connected] 2007 * DSI -> port@0 -> port@2 -> eDP :: [port@1 is not connected] 2008 * DSI -> port@0 -> port@1 -> DPI :: [port@2 is not connected] 2009 */ 2010 2011 for_each_endpoint_of_node(dev->of_node, node) { 2012 of_graph_parse_endpoint(node, &endpoint); | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * TC358767/TC358867/TC9595 DSI/DPI-to-DPI/(e)DP bridge driver 4 * 5 * The TC358767/TC358867/TC9595 can operate in multiple modes. 6 * All modes are supported -- DPI->(e)DP / DSI->DPI / DSI->(e)DP . 7 * 8 * Copyright (C) 2016 CogentEmbedded Inc --- 1996 unchanged lines hidden (view full) --- 2005 * Possible connections: 2006 * DPI -> port@1 -> port@2 -> eDP :: [port@0 is not connected] 2007 * DSI -> port@0 -> port@2 -> eDP :: [port@1 is not connected] 2008 * DSI -> port@0 -> port@1 -> DPI :: [port@2 is not connected] 2009 */ 2010 2011 for_each_endpoint_of_node(dev->of_node, node) { 2012 of_graph_parse_endpoint(node, &endpoint); |
2013 if (endpoint.port > 2) | 2013 if (endpoint.port > 2) { 2014 of_node_put(node); |
2014 return -EINVAL; | 2015 return -EINVAL; |
2015 | 2016 } |
2016 mode |= BIT(endpoint.port); 2017 } 2018 2019 if (mode == mode_dpi_to_edp || mode == mode_dpi_to_dp) { 2020 tc->input_connector_dsi = false; 2021 return tc_probe_edp_bridge_endpoint(tc); 2022 } else if (mode == mode_dsi_to_dpi) { 2023 tc->input_connector_dsi = true; --- 208 unchanged lines hidden --- | 2017 mode |= BIT(endpoint.port); 2018 } 2019 2020 if (mode == mode_dpi_to_edp || mode == mode_dpi_to_dp) { 2021 tc->input_connector_dsi = false; 2022 return tc_probe_edp_bridge_endpoint(tc); 2023 } else if (mode == mode_dsi_to_dpi) { 2024 tc->input_connector_dsi = true; --- 208 unchanged lines hidden --- |