From patchwork Thu Oct 3 13:39:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13821049 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 CCD67CF34AD for ; Thu, 3 Oct 2024 13:39:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BC2910E839; Thu, 3 Oct 2024 13:39:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="beZSA5GA"; dkim-atps=neutral Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6387A10E35E for ; Thu, 3 Oct 2024 13:39:09 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42cb0d0311fso1272125e9.1 for ; Thu, 03 Oct 2024 06:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727962748; x=1728567548; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vhlVBKUdIP9ICp6zlxH3C4G3zUM+gAWbktY0hHBXtCs=; b=beZSA5GAgYCxCqgL080LRRkN5F/LTxvlyNvkFg1bi/0til9C4fQWBbVEA4mUfaHUn6 4Jg/JrxFdYisl46OwkYs2VZpcgGr0reayGN32l1JtFjEq2fiFt49z/bddg8avx98PGOu HlKygE0IGhkL56ELRc5+JTQI3msg5aH9TbI3Or25Gt4esVI3VHd82Ce+EnfSF0hXjzAj t1/a8o4ZZroi/8p2qKe3+tGjcZ/aLldzMmAv0qHa0p1fP0kh2DSQWws1a+MmJbp2skJ/ L56BQik/bbgibtd/ROgyEmzFP4JsOjx32CF2pHHNUTUGVxTOh4bboVoi6GX17tEhQeNo qdRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727962748; x=1728567548; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vhlVBKUdIP9ICp6zlxH3C4G3zUM+gAWbktY0hHBXtCs=; b=rkwIZDnN1s886gKVg5FP60P43m5PbtIKLgpEChdjgqoLY/x4MdYXbgYkNb6e/ty8xr eViJ9VUTfOhg/bJ9kgZZjpCBt3UJwCcRt96KYIYmiNx2AdO2SJW0t1gM4s69pmmNOupx /3Fo+u4RIQbx/XR2/vc+7xhkoyIaVP8V2WvoVtNEjBu8X9m7GUn4/AldikFDcQW9U5z4 q2+2UOUNKP9xQp7oEzEx6kfKKJQlsrjx8BXjg6HhJQGy6zfzsbr2jh5QcUQja9bMos8x VdXLd7kLEUVqygSC7Z3UiDVhlAYTTbQaHOvZD2ErCU3fTVoiOvMnpaSvoWwPP6aAoG5f Q3Hw== X-Forwarded-Encrypted: i=1; AJvYcCXt4VVhtKidzDyIsToHYQAk6paQLu+5RduVbdPiaGYVyGAcUbSx5alyDjOQEDMCajf6p5KhQ8nqF7U=@lists.freedesktop.org X-Gm-Message-State: AOJu0YxGMhFeADkzbbe0F5SJY5E01rfM4QpouBUv0Qfxh4vqtDdDOhqb SpUF5kO+HQMId1GqD3oJQkoM9/u7mJRUx6Spy0UV/x+uBU7sAjbkdj2ZemHLPLI= X-Google-Smtp-Source: AGHT+IGAi9GFf0ajjL2VRkR+8z2/+wjuWbQka9q8tmXJJBQqwW2SfzfdMkNW5bz+Pq96QWct/VT+nA== X-Received: by 2002:a05:600c:35d6:b0:42c:b55f:f4f with SMTP id 5b1f17b1804b1-42f778f336cmr25665035e9.6.1727962747636; Thu, 03 Oct 2024 06:39:07 -0700 (PDT) Received: from krzk-bin.. ([178.197.211.167]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f8025b583sm15906875e9.12.2024.10.03.06.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 06:39:07 -0700 (PDT) From: Krzysztof Kozlowski To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Ujfalusi , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: display: bridge: tc358768: switch to bus-width Date: Thu, 3 Oct 2024 15:39:03 +0200 Message-ID: <20241003133904.69244-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 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" "data-lines" property is way too similar to "data-lanes". It is also duplicating "bus-width" from video-interfaces.yaml schema. Deprecate "data-lines" and use the common property. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/display/bridge/toshiba,tc358768.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml index 779d8c57f854..bb5d3b543800 100644 --- a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml +++ b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml @@ -60,6 +60,10 @@ properties: data-lines: $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 16, 18, 24 ] + deprecated: true + + bus-width: + enum: [ 16, 18, 24 ] port@1: $ref: /schemas/graph.yaml#/properties/port From patchwork Thu Oct 3 13:39:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13821050 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 8DDF2CF34A9 for ; Thu, 3 Oct 2024 13:39:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1EACB10E35E; Thu, 3 Oct 2024 13:39:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="mJH6eAaA"; dkim-atps=neutral Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3FF9410E35E for ; Thu, 3 Oct 2024 13:39:11 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-42cddc969daso1439325e9.1 for ; Thu, 03 Oct 2024 06:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727962749; x=1728567549; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LpHq/J3IDjcJ8gOiWjTgx9yKmnZmG2Gq7uWBdxkjTTQ=; b=mJH6eAaABCjHrwtdRIZTpUv43uuIOlGM+Xsi/6IUYCevPPSE4H3e3tvDnwRiL/uA9T HUDf3BDohKH/78+IqpegEmJFqXVbFdRctgk+XKycN0fE+TLYxvYkzy+MUU3uShfJmCUX 9kMRxIE2GZ1yH5H1QZ0qAHxFtIH8PzFLE/X/HdPHQmwcCttPbAhnbs6AF8XYzpBPwuHB OGcFJCjY+2/q28Ta2Y1WmVFdi3CH8hTdy+9xPFidu+ovug+yEhmmmiHGfGGfSZXsUk3e zZWgi++Ird1xbDA27YfaUuhPwuVyMWnRejCqJmODXLvCiGDZgHFsdqeCEK/bbFqZy0rS GJ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727962749; x=1728567549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LpHq/J3IDjcJ8gOiWjTgx9yKmnZmG2Gq7uWBdxkjTTQ=; b=xRS/Rw3VDfQ4g5ou1sdbeI0D6OMPv9rB8dEhNNr2zdP/w3q5EOrtEAlKZ8ry1ynFHt t4HJMEC7xDGEXhgD7uoSz9SFeD5MtBpc6kTdBi6cl+sCur1ntQ7B3WSv0BTDGDCRJdsW 4n9ODEPsqE32tlox/TRj4/e1m9gu1egWngnLFdhj+7eGpM1a+bMEmzBHeHNfSYJ23+Kx R6LOVaNXpn3MMMJ1F2kyRfJQICmm2mkp7xCTFILXQLgRrI4xfXuRFxnHU6S2RywuhKEA XnDeqhYmqQPijZypqE40E6bNN0E008pLyHw79eHTQz9i8FpLfDsdBmSB/3Xs4GJQqOEI dsRA== X-Forwarded-Encrypted: i=1; AJvYcCV3Zb5wMjtIL2mucUi6/HgOxagWnbt9L3PToM2gV2Z5dRate/KcC/tamRRkPGIL1LeEz8f2x9XnqPQ=@lists.freedesktop.org X-Gm-Message-State: AOJu0YzEF8+u3JBlG9qUmIrRyEVLSLue/jn15aTgEdieKRIYKxZPtXkS WruBJrg0H2BQo8F1zdktW1da0EMOG+LXKjqf3e1mpCpnElgUhVL0UCTqx0m+fJQ= X-Google-Smtp-Source: AGHT+IFWTXK0ViIYWsLrZXvGf6PeZh68dHrkAm4tox/WVbjEwPOH8BVhinIYArqYc8wFTmujgq+B0Q== X-Received: by 2002:a05:600c:4f06:b0:42c:aeee:e603 with SMTP id 5b1f17b1804b1-42f778f3858mr24685985e9.7.1727962749567; Thu, 03 Oct 2024 06:39:09 -0700 (PDT) Received: from krzk-bin.. ([178.197.211.167]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f8025b583sm15906875e9.12.2024.10.03.06.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 06:39:09 -0700 (PDT) From: Krzysztof Kozlowski To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Ujfalusi , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] drm/bridge: tc358768: switch to bus-width Date: Thu, 3 Oct 2024 15:39:04 +0200 Message-ID: <20241003133904.69244-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241003133904.69244-1-krzysztof.kozlowski@linaro.org> References: <20241003133904.69244-1-krzysztof.kozlowski@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" "data-lines" property is way too similar to "data-lanes". It is also duplicating "bus-width" from video-interfaces.yaml schema. "data-lines" was deprecated in the bindings and "bus-width" is preferred, so parse it instead while keeping things backwards compatible. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong --- drivers/gpu/drm/bridge/tc358768.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358768.c b/drivers/gpu/drm/bridge/tc358768.c index 0e8813278a2f..fc96fa5aab54 100644 --- a/drivers/gpu/drm/bridge/tc358768.c +++ b/drivers/gpu/drm/bridge/tc358768.c @@ -443,7 +443,9 @@ static int tc358768_dsi_host_attach(struct mipi_dsi_host *host, ret = -EINVAL; ep = of_graph_get_endpoint_by_regs(host->dev->of_node, 0, 0); if (ep) { - ret = of_property_read_u32(ep, "data-lines", &priv->pd_lines); + ret = of_property_read_u32(ep, "bus-width", &priv->pd_lines); + if (ret) + ret = of_property_read_u32(ep, "data-lines", &priv->pd_lines); of_node_put(ep); }