From patchwork Mon Apr 10 08:47:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 2851 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 728F53F25A for ; Mon, 10 Apr 2023 10:49:41 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id m21-20020a509315000000b00504adece24bsf785121eda.10 for ; Mon, 10 Apr 2023 01:49:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681116581; cv=pass; d=google.com; s=arc-20160816; b=MxmifADyvvwrVo1MujQ4ov6RyppDcL6PRTG1w5RscUI1ikgR1h/OqiX3QVT2Wrp/+0 u5ZXqDsVz4Z0UE+rE5kBY14kzDbTlh1ZvYTCFcOwCWxfQMWhHkLiw+S7iiJneC3cjxV8 IKjqKqBaXWwKgOZBBEkl9sNU+LpN5mmwHiwKkS+yDkovrlUNzfeIpBDdnKdvS9rFlzkV abaIUvIvcxHbi3dQCiaBJ/IV6JtGaPv9D1LdOp6WlxJZkEApO0v8PFG8WmSM64XFd5Bx ttbuuYq177z6IZeoFFjJPdQM185WT8FcStPRm3tutIA31Eljl5MHnNpLs29r7VdROhRi EUog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:sender:dkim-signature; bh=W2m4I9IYfmur2+YJvrXiJv7Wf2rT+6WdGk0zuAhOvF4=; b=wOL++XiFRECJQbbrnVD6z03Pl+msBhzQAEYOnc456GdNBdmSr3lHqHaiQfEQCHvhly UhfVm5HPAzcN4cxSLB/qEDUccPtRlVohxCuJGBcX7dx4uxZd89siFm+MtKeBau6hg/fr EofaI2UMCndA66/OXOipiI3ZYPh2Iw2H2St6yQOXmGgcPyg1ufqePslCd+ITbDAe1T9M KpjZq44LPW3x3xhYI5ipIM6K+cLerGwbY4iA+J72yaS+8sFCvGf3vdZve7z/MgNe463R TXiRAzW9oNobC6iBNaP3YoQPeMxOauhYex6azf7iT/n2F4PiOTAA0rzdGbl8FJOjwchO RYYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RCJpuhAm; spf=pass (google.com: domain of fusibrandon13@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=fusibrandon13@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1681116581; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=W2m4I9IYfmur2+YJvrXiJv7Wf2rT+6WdGk0zuAhOvF4=; b=K9iEspAuNJqEjhlXtDSIh6hcxNgzbUOPZP1gQPnTrjCAs+T3qq9RYLG6EgLsGAHUg6 Rfuk0MKuf+hsgJMRHm44zz7X3Q9BlpnDfVSSiTt1asIQ5MtXSKM4P6aTutpDpvBk5hzE zLiuSGPU20uBkKZ6a2XPWqPTPvZmdbXgvJhwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681116581; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=W2m4I9IYfmur2+YJvrXiJv7Wf2rT+6WdGk0zuAhOvF4=; b=7YUvxszR96GVk1gQGGj8FkPWN927r9fjKUINu1NA+yIWhL2Xy4U5e1a1tY76/9AKNx zNaq2y9+iIlY0MYXtu1JcmmCW6Xnv/WgygUup+CqKwCL70xWiz4/V2Z8skQL5a88p+1C UteXKD5CPsVEO25rHnBPOswx7WPDZHFkIyF3yiH4Oghaz4SJf+sUtQzdlm4f6a3En6b7 L300neNMYTI67eiVCsGoeL3e/dqG3w+Mnka0aWg76qmpj1PNgsLSMwW88ulMkr5ij9Hl OV2J6nPvNpY74DZrk4plJHSKlZXQxzkP/gPrl6IkJFnP+hUT/MqnXbg0np3LisM5DgyN tvNg== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AAQBX9dXFOmJxQQCauKHyE1KgIXC1h8KR0D/MNenEDaa/0LFx6e/NKei xGc1O/XowiRonABhKDwvtm6IWpQJ X-Google-Smtp-Source: AKy350YirVEWmGjDIHLZc+AHOrjlsahc7MoJ/2cuexZt3pXsaDrIc/LCSjfZ0KzXMQVtFtGcdg5+gA== X-Received: by 2002:a17:907:9605:b0:8b1:38d6:9853 with SMTP id gb5-20020a170907960500b008b138d69853mr2543103ejc.2.1681116580916; Mon, 10 Apr 2023 01:49:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:51d4:b0:504:9a87:717e with SMTP id r20-20020a05640251d400b005049a87717els153368edd.0.-pod-prod-gmail; Mon, 10 Apr 2023 01:49:39 -0700 (PDT) X-Received: by 2002:a05:6402:1acb:b0:504:7b5e:1d88 with SMTP id ba11-20020a0564021acb00b005047b5e1d88mr7539902edb.17.1681116579159; Mon, 10 Apr 2023 01:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681116579; cv=none; d=google.com; s=arc-20160816; b=y/+k01bRQXAvbUATmxMSK2u6rCfkNY37Mof9Twp1ctUvGfsfyiHj3L13Q0WXN2Jd5D wxTkXsYmCzu/jy+nNVJtymGiQpHvCM5maEvtUZKx45DMBn4wjVlcfUSMrBtX6cF105YL 8nbgPX4tZGTF2gh95aF/GSQsm3AS+CHwgL3pue0hPzfO0GeXSGuYWUUSw6uo06Ud4RvU MlpTSQuOIQQ+OzLbo3hDo8XWJFJFjlJYGgIl4WR5+EJwoTtF0L40ZKq2PaqMqwpXak0G hPx62Z0DxR5iz6jCqQfMnO6YbolVjy4hLbUnravGEGZw1u2QpWgO/dDd7cWFKGyhs+Am JBfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=y5ePFxjbLBzvierh0vPmoX2AJ6odjU/okQNVSYo6+J0=; b=ELNLnoxgSPHLBjbvm/JIcT0jGQh6eAgXy35ga3UvPg1MQ3w2JT252XlD999NOFonyE CLdMuZ2MGbqQk86H3cYiveAIPX/Y5M2NU+Dy+wUylWvf20j6LFFx66oBuajOIDN4/+lY VyujOXZ6SZ+jkekBx97pnIj/8vsWxFNJ/9odtFCMG53fSVSmgJy0NB1dyyP25jbA8u8E zuIpvOrPVcTp8eDp8u6LelGjiAR38SqeDoAyz6hXYYswWl65xaMe3YP8VnKEJjJ7QGeP WT71ErYANXqjrV3Ek4rebPzA5wek6mYmbxxddoEwoO+qN9vME/PFWqnofQQ1AOiqZ9oy MdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RCJpuhAm; spf=pass (google.com: domain of fusibrandon13@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=fusibrandon13@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id s20-20020a170906455400b00933407f272bsor4978334ejq.32.2023.04.10.01.49.39 (Google Transport Security); Mon, 10 Apr 2023 01:49:39 -0700 (PDT) Received-SPF: pass (google.com: domain of fusibrandon13@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:8585:b0:94a:7a2f:d6e8 with SMTP id v5-20020a170906858500b0094a7a2fd6e8mr2904492ejx.61.1681116578666; Mon, 10 Apr 2023 01:49:38 -0700 (PDT) Received: from localhost.localdomain ([154.72.161.184]) by smtp.gmail.com with ESMTPSA id v13-20020a50954d000000b004fc649481basm4709962eda.58.2023.04.10.01.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 01:49:38 -0700 (PDT) From: Brandon Cheo Fusi To: maxime@cerno.tech Cc: airlied@gmail.com, andrzej.hajda@intel.com, daniel@ffwll.ch, dave.stevenson@raspberrypi.com, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, jagan@amarulasolutions.com, jernej.skrabec@gmail.com, krzysztof.kozlowski+dt@linaro.org, linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, maarten.lankhorst@linux.intel.com, marex@denx.de, neil.armstrong@linaro.org, rfoss@kernel.org, robh+dt@kernel.org, sam@ravnborg.org, samuel@sholland.org, tzimmermann@suse.de, wens@csie.org, Brandon Cheo Fusi Subject: [PATCH 0/2] drm: sun4i/dsi: allow modeset helpers to manage display Date: Mon, 10 Apr 2023 09:47:48 +0100 Message-Id: <20230410084750.164016-1-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Original-Sender: fusibrandon13@gmail.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RCJpuhAm; spf=pass (google.com: domain of fusibrandon13@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=fusibrandon13@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This change moves DSI PHY poweron/off from the encoder to the TCON. As a consequence enabling or disabling the DSI sink can be left to the modeset helpers, and bridge support easily introduced without touching the drm_encoder.bridge_chain or converting the encoder to a drm_bridge. Brandon Cheo Fusi (2): drm: sun4i/dsi: factor out DSI PHY poweron and poweroff drm: sun4i: tie DSI PHY Poweron/off to crtc enable/disable drivers/gpu/drm/sun4i/sun4i_tcon.c | 10 +++- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 64 ++++++++++++-------------- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 4 ++ 3 files changed, 43 insertions(+), 35 deletions(-)