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: 13206196 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 76526C77B71 for ; Mon, 10 Apr 2023 08:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WgwSHb0T3OaDMIsTzRqJwO8M3rn+3KcW5hg33wMyhAM=; b=aPdRFx3QUeCMp2 tq230WGASFT+8ULzmP5Wlm+nToqPg28zNiSby8CcSi0/h2PfghqzNhhR/hjHBfglunIJ9oGS1Zn5O RW87lLASRu9Ax5F6BkLouiyhPEKL08Hf3koejbO/xwzkBMcadrVrE55H8KY+/iNf5b4i4iItWCiKH YfQTxMHp35QFsgMizxvGdFVHkNU0pX8lBWB99TE96qOC+lfYbUeWJv1WYR3Nd/mcSUbAT/QdV704M +Ak7pyu4daHZ3mwDynHuFhNPcMBp/4LKqW+Q5lJ1+EiVhzJrzf61sDJsdT4W4lTZ9ILaDb2UPilos D+AY7E3dqny1z9/sZzhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1plnDc-00EpWx-14; Mon, 10 Apr 2023 08:49:44 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1plnDZ-00EpWH-0T for linux-arm-kernel@lists.infradead.org; Mon, 10 Apr 2023 08:49:42 +0000 Received: by mail-ej1-x631.google.com with SMTP id j17so1284623ejs.5 for ; Mon, 10 Apr 2023 01:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681116579; x=1683708579; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=y5ePFxjbLBzvierh0vPmoX2AJ6odjU/okQNVSYo6+J0=; b=RCJpuhAmaiEhyX7miTtpDm2B6aHyY7G7AUvRlRukNsyjL70ZJsCQAtaj3OQvh5OYPV TFriUULQnUDlx2HjEsI/Kw2Ah9VIJ9ZIeDYYBye3hexNLts3plMTPCJjFWrxMbIu6Eag XjqvoXa1xSsAljafdAreM72uC7lUHl6yPkaAmYZuhufCOwNvWRRWHj1YBOsWfhdoFgnF kSBopPrfEZ28my/Fa41Qr6TJNH9JpbaOPigMEYVU/B8HSmVqjIqBmV8qS+8UuhdK0dRL nxO6iYDY4vXdt8A9z2+h74Uj92wooKBV/Qh70Eg4GbRrknLo9F3pWeHJHPTVX9UIkidz CSUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681116579; x=1683708579; 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=y5ePFxjbLBzvierh0vPmoX2AJ6odjU/okQNVSYo6+J0=; b=Tp5wOy4QZ+CGcvnr9n0st9ExbMXf0hNBXJ1Z9bvpCbjyvxm1XUiimOh+rsCrTauJn1 /kd++LDgQdVn+0rbNUnrZy+M4XYt+CbDG8Sfm2fg5izyXR7EI0RBZx/njdVroSZjnIa7 ME9dLrYeyNr3SEJB/KSlLGlJEcdEeLGpY2Hxor5SWYCIG1G3zyzBmZi1KqMMMacZ27m8 plBKvLt4o6pyj6Gr0B+PDLpCr5uh2AkrE7XsHz6LN2HVASNcZsJ1u8y8lm+b8HiECbh1 vPhU0nts3zqJCzSGgBbVu3J066D7uBJ5xE+sC9QKb0cZY19i+selqDc0x5XMKreVgZ7t Kszw== X-Gm-Message-State: AAQBX9cgRx6HKCK4heNQ2oJGFN63bhdFdnv1iGj22BtYQ4vms162dSK/ JAvF1vYjKoDeHwjbThwy4ak= X-Google-Smtp-Source: AKy350bKbp2C72vty5skdGElAcpoLwKvITKzpR2b0BLRFPeIA6nODgwcXIjQGRg4GNgULAPUQS2ugA== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230410_014941_221625_FF404A1D X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(-)