From patchwork Tue Jun 8 19:53:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 12308027 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F884C4743F for ; Tue, 8 Jun 2021 19:55:34 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1E50C613AC for ; Tue, 8 Jun 2021 19:55:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E50C613AC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CFE96E5B6; Tue, 8 Jun 2021 19:55:33 +0000 (UTC) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by gabe.freedesktop.org (Postfix) with ESMTPS id C74016E5B6 for ; Tue, 8 Jun 2021 19:55:32 +0000 (UTC) Received: by mail-qk1-x734.google.com with SMTP id i68so17874789qke.3 for ; Tue, 08 Jun 2021 12:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HN/dADQ65ljJkOdLNlsYJNf64TdCy5snXLeJXI/fSws=; b=tl6qBfeR1ctMdKOjD5T7yqHao2tzBYPwBZ6V7bhuPFKO/eH0NCRXEHAZNCBXm21vh6 y+Jo6Lh2RnmrDGBcqsjKAkzFJkxr7aCjm19n/+UXJWae4U8zd3GMNLBODNvdGNIICjan Wk01zjyEh80E5jQGbtt4eSMWfBMj5BCcLPr4/vsqVc0SFWUjvYYTR9eqwatQ4qyUsDYL sxqIeBRVaLxnIVC4Ae/NGANFJ25uT7q1kEcFs/0s6XMesfA4z/g4NGVZz7hBQ3g+TxFz vHekfmbcapwt4zasp8IASP5xmqq0xOkziXoyPB9saT/TMxZVUKM94a6nnAJqepFv06za AT0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HN/dADQ65ljJkOdLNlsYJNf64TdCy5snXLeJXI/fSws=; b=pkIMH0kJqYheEWZAmQRtMlDUvaEswnsl1wNbB+RzJweLYjyd3iOWMGU1324+REWEY9 vyc7XsasCRCRade1TV9fmtilp9zH4K3pUolsWKPqREzxFrkOBaDbP1XQB0fix4cdq6r9 cewb8d1WXU+NoaQvYONNAG0/TvhXh1Ya1E9ewkleRANMCBiWQgW4E4RxqzKyDUW35WXB dcIs/toAj0wvZenDTehTNFFZUo3fu0ykzIwxkdgXPgAmHKQEA+E/pt24HyHliIfs/XBA 3IYofIu/FWyg1rErCtPsMz3e91W2X7lt1ifQmthVxaTk9HE6TROhnCJ11rN1nMpjhZXe X3YQ== X-Gm-Message-State: AOAM530A5ZOQ72CaM5Vknvppbv+1MQB13GPgID//mpI0ztt2rG+sl752 zfCXeJgCh9d7PJlnIaEgGiD1Ig== X-Google-Smtp-Source: ABdhPJxCiMcEk4rEfSFxoc9MLYPAFpeFQHE1XQnjKYvFYU9dDovhkcdD8gGzWd5X3y+DjjX9qqPZtw== X-Received: by 2002:a37:d58:: with SMTP id 85mr20317382qkn.414.1623182131919; Tue, 08 Jun 2021 12:55:31 -0700 (PDT) Received: from localhost.localdomain (modemcable068.184-131-66.mc.videotron.ca. [66.131.184.68]) by smtp.gmail.com with ESMTPSA id l141sm643687qke.48.2021.06.08.12.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 12:55:31 -0700 (PDT) From: Jonathan Marek To: freedreno@lists.freedesktop.org Subject: [PATCH v3 0/3] drm/msm/dsi: support CPHY mode for 7nm pll/phy Date: Tue, 8 Jun 2021 15:53:26 -0400 Message-Id: <20210608195342.18269-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.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: , Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Anurag Kumar Vulisha , Vinod Koul , David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Konrad Dybcio , Abhinav Kumar , Jordan Crouse , Rikard Falkeborn , Rob Herring , Viresh Kumar , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Swapnil Jakhade , Dmitry Baryshkov , Rajendra Nayak , Sean Paul , open list , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the required changes to support 7nm pll/phy in CPHY mode. This adds a "qcom,dsi-phy-cphy-mode" property for the PHY node to enable the CPHY mode. v2: - rebased on DSI PHY reworks - reworked getting cphy_mode in dsi_host.c - documentation change in separate patch v3: - yaml bindings - changed binding to "phy-mode = ;" Jonathan Marek (3): dt-bindings: msm: dsi: add missing 7nm bindings dt-bindings: msm: dsi: document phy-type property for 7nm dsi phy drm/msm/dsi: support CPHY mode for 7nm pll/phy .../bindings/display/msm/dsi-phy-7nm.yaml | 70 +++++++++ drivers/gpu/drm/msm/dsi/dsi.xml.h | 2 + drivers/gpu/drm/msm/dsi/dsi_host.c | 34 +++- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 49 ++++++ drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 3 + drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 145 ++++++++++++------ include/dt-bindings/phy/phy.h | 2 + 7 files changed, 258 insertions(+), 47 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml