From patchwork Mon May 23 08:46:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 12858598 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F7C2C433EF for ; Mon, 23 May 2022 08:46:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD20010F04E; Mon, 23 May 2022 08:46:36 +0000 (UTC) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 13AA910F04E for ; Mon, 23 May 2022 08:46:35 +0000 (UTC) Received: by mail-ej1-x62c.google.com with SMTP id n10so27229570ejk.5 for ; Mon, 23 May 2022 01:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=8KZ9e+aFywu8cob9B7lyv8cw/GG4lY7xYjZnUL2c5Po=; b=x6a0/a59LPzK/XbjLygNZX+iuxxHylNyyOs3r109raURIjnZdsiY/qUM3RzicmAgRL g0Nd5CRWwWwTy/qomFzYeX3g/CjTeg2mI7yEXg0HQhnb90sMlip0m/Ew6N+3nNvXE6gg 9d6FbvhKtkLNXd2qpA354YSaJhzZ6YGKFn+L22TnIUZ23k2hlEo1EFe8LMk6lNiViNpp /X2reVm7Zce6S8CAWolYqpb/uizlg/dfwAU1vjiPCCPvPXlrV2wxK3PwFSC2tMnga59d ZwxJqzZutwdSpR1Ku3+rfFSeqBer6+OuTmQK+ZjCTgRJS/1k9W2ZQS7pp8ag13X7jC1m hyZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=8KZ9e+aFywu8cob9B7lyv8cw/GG4lY7xYjZnUL2c5Po=; b=mM3RGlzNirXJHG4sz+3u5Sr1r8XqMFk+fz6Qjd+aVbwAJDQGKsWI8RZ7lrPVBsO7bE wLdIGgY/oaW/r7hSC+VcOIXdR9tOmONRj4OZH0qa5lZSGYSUwzXU/NuEmh/l6xaQvXDX uWILqjImQPBCqPcsPHntp5YQ/TPSo0hWJrvtl7Ea+e0bxjezrrMSajW0YuN3LdwYJ+7D /WfH3znZEZAmAlQbT2pvNot11F+cwWVNyec2Ee+CGZtxPPI6DcSRv9PFWyyc6BpEDWLt 5IltN8yc+vgvo+H1s0DFm1qGf/s+7q/+N1eNDK9f0xC98jj4tUGouWIyzFjfpfSXx58z +IJA== X-Gm-Message-State: AOAM5306EY1Yhu8XHuus1DWJ5qOmIwgDROwl+xNld/ujqYEKldkOYkHO As4Yf11zfNxrAJeizKXcxrHA6w== X-Google-Smtp-Source: ABdhPJwDRYBw80yFFSMqilCh6Rwe3b3/Gwjq4XKqz2jH2FgXaRVvRV2qPJPfLQhSkrW6CBKtFhnKdw== X-Received: by 2002:a17:907:78cb:b0:6fe:9ca3:2a9b with SMTP id kv11-20020a17090778cb00b006fe9ca32a9bmr17175623ejc.727.1653295593558; Mon, 23 May 2022 01:46:33 -0700 (PDT) Received: from prec5560.. ([176.74.57.19]) by smtp.gmail.com with ESMTPSA id s17-20020a1709060c1100b006fee27d471csm905706ejf.150.2022.05.23.01.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:46:32 -0700 (PDT) From: Robert Foss To: andrzej.hajda@intel.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, xji@analogixsemi.com, hsinyi@chromium.org, sam@ravnborg.org, tzimmermann@suse.de, maxime@cerno.tech, jose.exposito89@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] Revert "drm/bridge: anx7625: Use DPI bus type" Date: Mon, 23 May 2022 10:46:14 +0200 Message-Id: <20220523084615.13510-1-robert.foss@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This reverts commit a77c2af0994e24ee36c7ffb6dc852770bdf06fb1. Signed-off-by: Robert Foss Acked-by: Daniel Vetter Acked-by: Daniel Vetter --- drivers/gpu/drm/bridge/analogix/anx7625.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 01f46d9189c1..53a5da6c49dd 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -1623,14 +1623,14 @@ static int anx7625_parse_dt(struct device *dev, anx7625_get_swing_setting(dev, pdata); - pdata->is_dpi = 0; /* default dsi mode */ + pdata->is_dpi = 1; /* default dpi mode */ pdata->mipi_host_node = of_graph_get_remote_node(np, 0, 0); if (!pdata->mipi_host_node) { DRM_DEV_ERROR(dev, "fail to get internal panel.\n"); return -ENODEV; } - bus_type = 0; + bus_type = V4L2_FWNODE_BUS_TYPE_PARALLEL; mipi_lanes = MAX_LANES_SUPPORT; ep0 = of_graph_get_endpoint_by_regs(np, 0, 0); if (ep0) { @@ -1640,8 +1640,8 @@ static int anx7625_parse_dt(struct device *dev, mipi_lanes = of_property_count_u32_elems(ep0, "data-lanes"); } - if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ - pdata->is_dpi = 1; + if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */ + pdata->is_dpi = 0; pdata->mipi_lanes = mipi_lanes; if (pdata->mipi_lanes > MAX_LANES_SUPPORT || pdata->mipi_lanes <= 0) From patchwork Mon May 23 08:46:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 12858599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73957C433FE for ; Mon, 23 May 2022 08:46:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7484910F073; Mon, 23 May 2022 08:46:40 +0000 (UTC) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9026B10F04E for ; Mon, 23 May 2022 08:46:36 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id rs12so15495803ejb.13 for ; Mon, 23 May 2022 01:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=/UJVNFJlnsJgNgDCoE5ZckFUTQDcqZNSRJVFlxfYlxA=; b=b11+npovOhBjUUHd+nEfFfMTBvFoZw1H3W9282L6Tp3WbVlZ8IxSFZZXZ6q9xJDxGY EW1ov0cjxrepoUt/z3W4HjL9LUbatrctpSRC9iqEJjw3GHGmgLB/YBL6gMlhBU+bwOZ8 9Q2yb9CKp+1U5D6U/Ay9/RB3nGyutYaPD6KW+N8ur1Y3+YOycQMBbYZ20dED3cD7g3IE 1eRqCVYrsLEw/YykEeamjI/JjXWvLR6UnboQs41oXXwp/9AvIOAFrk5x7TtPgSCjsgZx z7YJ+Pnkd+JFJx4ABoXMvPZqVjTOru2Gq7bWp7ETR5OctRJG6RLNwJpra4oFp7l28h6m FG5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/UJVNFJlnsJgNgDCoE5ZckFUTQDcqZNSRJVFlxfYlxA=; b=rLhC03Bq29ziYHz+OBIguvy30RRdfxSe/5a4aUK447KR3pj9nKKKaZLLRUvmiRvVKE PiX2rsC4IAH2HXzNEI/19s4wacNLEV2elOWdNkpGdqy6lluY+W8Sqs2t2mVSlPvn2uQC cDnK4yNsiz0niCWTMu0Y2mW664xGauHbV1yUbDhwW4Z6pgnJKLqkWef83iqIY5Zr2xcu 3bUWkw1euDNl3jPevyTHeH33otT5ypARjZ0OvRUzD5LAxtxYphJ6SdQFrEL8cAkaNsLi tNh20gPFL4xjAbjXZ6r1ymiI5CdBv92FLO+oNHwqj7V9+951Cbrfjj3I3TKYuI+5VsmN kCpQ== X-Gm-Message-State: AOAM532s5ifAN1VkqzOKLKZ9Jn/eiPtcSNFKCSsU/4AgY56mAHLlG+2b ciO2FrtpjEtXUI3m3Ztr3FNC5w== X-Google-Smtp-Source: ABdhPJy/yZ/lyLvwTyt4cXG/A5E5S0zgmqqcWtG9q9FfqLebYY41G/XptN11JbgOUzqxswfr2um6MA== X-Received: by 2002:a17:906:dc89:b0:6f4:d3a9:34ed with SMTP id cs9-20020a170906dc8900b006f4d3a934edmr18924201ejc.459.1653295595105; Mon, 23 May 2022 01:46:35 -0700 (PDT) Received: from prec5560.. ([176.74.57.19]) by smtp.gmail.com with ESMTPSA id s17-20020a1709060c1100b006fee27d471csm905706ejf.150.2022.05.23.01.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:46:34 -0700 (PDT) From: Robert Foss To: andrzej.hajda@intel.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, xji@analogixsemi.com, hsinyi@chromium.org, sam@ravnborg.org, tzimmermann@suse.de, maxime@cerno.tech, jose.exposito89@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] Revert "dt-bindings:drm/bridge:anx7625: add port@0 property" Date: Mon, 23 May 2022 10:46:15 +0200 Message-Id: <20220523084615.13510-2-robert.foss@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220523084615.13510-1-robert.foss@linaro.org> References: <20220523084615.13510-1-robert.foss@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This reverts commit 7328736d270aa4fa6fcd033ade02acc2874a2db5. Signed-off-by: Robert Foss --- .../display/bridge/analogix,anx7625.yaml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml index 4590186c4a0b..35a48515836e 100644 --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml @@ -94,22 +94,7 @@ properties: $ref: /schemas/graph.yaml#/$defs/port-base unevaluatedProperties: false description: - MIPI DSI/DPI input. - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - type: object - additionalProperties: false - - properties: - remote-endpoint: true - - bus-type: - enum: [7] - default: 1 - - data-lanes: true + Video port for MIPI DSI input. port@1: $ref: /schemas/graph.yaml#/properties/port @@ -158,8 +143,6 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; - bus-type = <7>; - data-lanes = <0 1 2 3>; }; };