From patchwork Fri Apr 23 17:24:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 12221173 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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 E24B9C433B4 for ; Fri, 23 Apr 2021 17:28:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AACFD61409 for ; Fri, 23 Apr 2021 17:28:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232168AbhDWR2r (ORCPT ); Fri, 23 Apr 2021 13:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbhDWR2r (ORCPT ); Fri, 23 Apr 2021 13:28:47 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7053BC061756 for ; Fri, 23 Apr 2021 10:28:10 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id a18so13173834qtj.10 for ; Fri, 23 Apr 2021 10:28:10 -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=AzW8gw/lChay/rLNwhgwlXkUklC1imdiRu5IZJc3UKs=; b=LRP8c9RoAsA+Ug0WokdedrbQa2U05MvwsRm0dqesAWlibw2QdTtvxcvQdUdPS4/R7k Dzzgk/NVhLr39A0/Y+c0E1oIpASUsgWoW44wkizulOIUdGTXJf1TxYOcaOZaGjLiltw5 RprsqwrB6ufVd6lQbc1PR4I1cP30CgXdaD1SMVUeTa+CWeuN8MVkcryjdYdsMhZSfvcW q/bEEWQp8ROwYU7YLpQPR3/29AuViizc0bR4USvz2GkjG5ENkcpzr+g9mFWjncMMjEdn cQ8BfK2rAUfr0wNUuQ6115cBIxw5mz2WlRL2LJkboEdvmPFdQjhkkvWM8XnePAToLPEi TZdg== 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=AzW8gw/lChay/rLNwhgwlXkUklC1imdiRu5IZJc3UKs=; b=E9ekv3IjLwk2RMpV58+HMzhxd3CZfQ3anrSg+O2BIijLd3zbWaoBrpoEiqVfwQcKS9 nR9vdI+At6qsHAGQjduaMyNXIxzRJYj/EO71cjVngTrKcV/kIRAmLHH+hyjTmwBOkNfV IJ4jygjHML9cvzoYtVo7ZfMBCuERR5Wy6TODCjmEbe4RVYAyIvlje8Gmu5CjIsAeamhk G9Dr6jiufh/yrLOTiy6jealt1qnD/twhH2N3YvTpaocDQg2pgpdM/wI5jf1LdxUXYzNS KIq65qn2St3z2IVvsOx8sMn2nlYdp/NhgilcNyU3gtj1TVYBNEemgc7pYvoyqA3rwfRP 8m2A== X-Gm-Message-State: AOAM531Sn/gk3EtcAjNKHZ+BjH9Pc30FSsQk+XmHEO4dv0KtRvmKdWXg LuxzV+4jGNcnIaRHfnh8oVPhtQ== X-Google-Smtp-Source: ABdhPJxdsCxGFuhVZIOZpCiAsDpeoN9/VhBAMMWbtJ2u0oxLiMSQyFyiBW+kjeIGADoDSII06RkhTw== X-Received: by 2002:ac8:4d43:: with SMTP id x3mr4954636qtv.326.1619198889461; Fri, 23 Apr 2021 10:28:09 -0700 (PDT) Received: from localhost.localdomain (modemcable068.184-131-66.mc.videotron.ca. [66.131.184.68]) by smtp.gmail.com with ESMTPSA id y23sm4782627qkb.47.2021.04.23.10.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 10:28:09 -0700 (PDT) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Abhinav Kumar , Daniel Vetter , David Airlie , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), Dmitry Baryshkov , dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), Emil Velikov , Jordan Crouse , Konrad Dybcio , linux-arm-msm@vger.kernel.org (open list:DRM DRIVER FOR MSM ADRENO GPU), linux-kernel@vger.kernel.org (open list), Rajendra Nayak , Rob Clark , Rob Herring , Sean Paul , Thomas Zimmermann , Viresh Kumar Subject: [PATCH v2 0/2] drm/msm/dsi: support CPHY mode for 7nm pll/phy Date: Fri, 23 Apr 2021 13:24:38 -0400 Message-Id: <20210423172450.4885-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Jonathan Marek (2): drm/msm/dsi: support CPHY mode for 7nm pll/phy dt-bindings: display: msm/dsi: add qcom,dsi-phy-cphy-mode option .../devicetree/bindings/display/msm/dsi.txt | 1 + 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 | 47 ++++++ drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 3 + drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 147 ++++++++++++------ 6 files changed, 186 insertions(+), 48 deletions(-)