Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp268193lql; Mon, 11 Mar 2024 01:58:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5M8H1TAHTB3/5GiXDNfWaaK1OEA/9Y9/Ix3GIHh0KoHIoiVYi4XoW6+vBd66l+y+CfhqcqZmZHBjsebogaLUBN66C+ii1xNhJUsLz1Q== X-Google-Smtp-Source: AGHT+IFDn4eg7GOTV3Bpy9siVDAjgXlGx6TAqXSEutLm8vAFfiHtKcrtGZ69JmBOtdoeVUp7vt2S X-Received: by 2002:a17:903:2442:b0:1dd:7d64:90ce with SMTP id l2-20020a170903244200b001dd7d6490cemr6823134pls.19.1710147501145; Mon, 11 Mar 2024 01:58:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710147501; cv=pass; d=google.com; s=arc-20160816; b=G1z/vqshobEv4S/FXq1PUg2W9VWz/EY3XSasLmOmCkAP+yd9x2BLayHYt5H38vfZdN KQR4KwUi5VUuW14d7KZgmYP/egJ8H/+W/hzv1m10pSs6NFLHKk9pfw1f6wVXgzBdecKl ckc82hVQPOH0C/gAnugeDxJ3CNQrpMGgaYM0gbkcGn1i5XPwdBjcuPp3QozA6CDhex9a d+BBc8pyk1ZX/LNFBwq3H4eE3KQPFjXsqKnfjODPz9mHHVWzA6FdadIez7KRl8jDLsRn q3zU00Rs2aTsVvEa+CLgRKnVRtxOZXy0gmDj+k7m4wJCfj7b5Icap/yealCh2a/tsIzd +GZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=xbTltqoLlmFssK6yUo+EQC4DqOFHNmiIvuznM++ubag=; fh=YAAtToetpfsnHAm1J9NBTCrSPftQvWIsfHfENZcC/ck=; b=0OCeLkUF+T+Cilmsze399NSMi8cs+4pYfUUu5KiVs90n9hvMF/0BXR6Me3oFKq4VPg gHkp+98s0qpl9jjRA1cNWzrMz6P8J0jifLFpZWtm3UYX0E3F/leLNByQi7UvlnV7crC3 yVwpTgjitMfO6I5h9ivNbXvXFlhitFLv0OKSRbueGmioyBj0h0hsgWo09f2gMUSUuJ1p 3HSo3Tn1EakR9rgUqyTe6JOy9QZ9Qk/K3TxEw4iyCb9nnhQ1jqGN9iRp5FrDl3pf6KdD 4L0jDyB5KhActS34C2+XZeg+YUww+ecZb1ulGi/Mez21/SkfzvtxxnZvBRho3J8mQ4fs hvsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ELkA1rAv; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-98561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y23-20020a17090264d700b001db81819d15si4294099pli.264.2024.03.11.01.58.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 01:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ELkA1rAv; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-98561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C94672816C6 for ; Mon, 11 Mar 2024 08:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7774C134AB; Mon, 11 Mar 2024 08:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ELkA1rAv" Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAE111118B for ; Mon, 11 Mar 2024 08:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710147495; cv=none; b=B0hbKTQOS8XhZHc9+OikEg1c05w7PayN59GdGCQluTWyy1q5biTVxI7gJ1m+fc7Q/Xx4AsVZB7IuU8UMFpzTOOQXYKq1J+DjfeIKAfNB6LMAoHJH7K5azoihGbj5k11HfAeej9IlP6okcVrAch8cl1C0sx1Lf4+7jcWN/DahGg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710147495; c=relaxed/simple; bh=kxvb1tdP7nfGStb8b1yMELo+9+ELVU80EZYYWaRZGx4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=AcV9+LanVwBbwlZgiVWJ9KYeRIDDJpWFuiosRSjxlo0UIMpCfDI02slTKNKyEWSkRgLN6BR7xo6gDhw7YDt96fyQ1272fOHptaYV67Zsh612u6JwiQmR6E+o01B66WCVRcKL2Llkqj6CdbJMP8QSemSG22m8fP8HVMyMZu2ub9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ELkA1rAv; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710147490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xbTltqoLlmFssK6yUo+EQC4DqOFHNmiIvuznM++ubag=; b=ELkA1rAvL8X3fhBwm/BggL/K/gCJmwY/bRxMmagZI8Q/f2bxox3Ki7/+UXRyHWXDCzmpaw 7r33pZoipgUM/mx8Rz45cc60eNt8nr5zbjvamrB6ESw2932aEIQ0TSo23IkuVsZR1qPh8A /8pL3PYukDW+tfc5iKKVCEb8geXxaAA= From: Sui Jingfeng To: Andrzej Hajda Cc: Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Phong LE , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sui Jingfeng Subject: [PATCH v3 0/5] drm/bridge: Allow using fwnode API to get the next bridge Date: Mon, 11 Mar 2024 16:56:54 +0800 Message-Id: <20240311085659.244043-1-sui.jingfeng@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Currently, the various drm bridge drivers relay on OF infrastructures to works very well. Yet there are platforms and/or devices absence of OF support. Such as virtual display drivers, USB display apapters and ACPI based systems etc. Add fwnode based helpers to fill the niche, this allows part of the drm display bridge drivers to work across systems. As the fwnode based API has wider coverage than DT and the fwnode graphs are compatible with the OF graph, so the provided helpers can be used on all systems in theory. Assumed that the system has valid fwnode graphs established before the drm bridge driver is probed, and there is a fwnode assigned to the instance of specific drm bridge driver. Tested on TI BeaglePlay board and other platforms. v1 -> v2: * Modify it66121 to switch togather * Drop the 'side-by-side' implement * Add drm_bridge_find_next_bridge_by_fwnode() helper * Add drm_bridge_set_node() helper v2 -> v3: * Read kernel-doc and improve function comments * Drop the 'port' argument of it66121_read_bus_width() (Dmitry) * Do more by covertering the sii902x drm bridge drviers Sui Jingfeng (5): drm/bridge: Add fwnode based helpers to get the next bridge drm/bridge: simple-bridge: Use fwnode API to acquire device properties drm-bridge: display-connector: Use fwnode API to acquire device properties drm-bridge: it66121: Use fwnode API to acquire device properties drm-bridge: sii902x: Use fwnode API to acquire device properties drivers/gpu/drm/bridge/display-connector.c | 24 ++++---- drivers/gpu/drm/bridge/ite-it66121.c | 63 ++++++++++--------- drivers/gpu/drm/bridge/sii902x.c | 43 +++++-------- drivers/gpu/drm/bridge/simple-bridge.c | 22 +++---- drivers/gpu/drm/drm_bridge.c | 72 ++++++++++++++++++++++ include/drm/drm_bridge.h | 16 +++++ 6 files changed, 159 insertions(+), 81 deletions(-) base-commit: 3fde6df89bac97416ce1c82b14237a1a67ce3285 -- 2.34.1