From patchwork Wed Dec 19 23:55:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10738311 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E94DD1399 for ; Wed, 19 Dec 2018 23:55:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9D1428895 for ; Wed, 19 Dec 2018 23:55:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDC8C288AC; Wed, 19 Dec 2018 23:55:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1356628897 for ; Wed, 19 Dec 2018 23:55:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730113AbeLSXzn (ORCPT ); Wed, 19 Dec 2018 18:55:43 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46256 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730100AbeLSXzn (ORCPT ); Wed, 19 Dec 2018 18:55:43 -0500 Received: by mail-pf1-f195.google.com with SMTP id c73so10570961pfe.13 for ; Wed, 19 Dec 2018 15:55:41 -0800 (PST) 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=XyIMYAL5qBnmvWOCPA7vcQI2SfJsc96HrX1N6dGqLOs=; b=mIDDomKN8yMGEB+8NLEpiyRNQgJGz42Y4d1jbIodxFEIaNSKQs9n2aAO9AYJbWyN9+ W72JciPgZ77KzoerqjwuVjsheH5BGAvWuHq/LX2uMCcDWktn8vfhfUJon2Ur9aWgZcd2 qmFG3O4w2K0KYxNH1g6/uehlI9t/ZaHHoQZQYzs+eHzM6bxFb4zhv7uEeIpG1arK0kde Bo11umDV+zz0qwafOaZ9c2+dnm+ZXRga38ISSlBxxp+8Ojr4pslPDFhAzF9rhPEdxmLh /02Jl0naecmye0f0Xpg8B1aM29WrOt+m7G51oGWU00VseiNYRQOY6gXRJPBWW29gtUbE z72Q== X-Gm-Message-State: AA+aEWaaIKoocZBK6EMgv6g/ih90N+ETIv3mK7sOE1702lWcUnG7NfdQ /B0KYoOpx4Y6midZC2usmi6JPQ== X-Google-Smtp-Source: AFSGD/VjxWZjGtpglJs4TWeaHZHEP8v/rEMIDMx+k0M8YWsuPuAaRzBXbgN6Wkm7JXO4CFTZcWgDWA== X-Received: by 2002:a63:b24a:: with SMTP id t10mr19772542pgo.223.1545263740904; Wed, 19 Dec 2018 15:55:40 -0800 (PST) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id t67sm37045048pfd.90.2018.12.19.15.55.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 15:55:39 -0800 (PST) From: Matthias Kaehlcke To: Rob Clark , David Airlie , Rob Herring , Mark Rutland , Andy Gross , David Brown Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Archit Taneja , Sean Paul , Rajesh Yadav , Douglas Anderson , Stephen Boyd , Jeykumar Sankaran , Matthias Kaehlcke Subject: [PATCH v5 0/8] drm/msm/dsi: Get PHY ref clocks from the DT Date: Wed, 19 Dec 2018 15:55:20 -0800 Message-Id: <20181219235528.114830-1-mka@chromium.org> X-Mailer: git-send-email 2.20.1.415.g653613c723-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The MSM DSI PHY drivers currently hardcode the name and the rate of the PHY ref clock. Get the ref clock from the device tree instead. Note: testing of this series was limited to SDM845 and the 10nm PHY Major changes in v5: - none (see per-patch change log for minor changes) Major changes in v4: - always use parent rate for 28nm and 28nm 8960 PHYs Major changes in v3: - keep supporting DTs without ref clock for the 28nm and the 28nm 8960 PHYs - added patch to add ref clock to qcom-apq8064.dtsi Major changes in v2: - apply to all MSM DSI PHY drivers, not only 10nm Matthias Kaehlcke (8): dt-bindings: msm/dsi: Add ref clock for PHYs drm/msm/dsi: 28nm 8960 PHY: Get ref clock from the DT drm/msm/dsi: 28nm PHY: Get ref clock from the DT drm/msm/dsi: 14nm PHY: Get ref clock from the DT drm/msm/dsi: 10nm PHY: Get ref clock from the DT arm64: dts: qcom: msm8916: Set 'xo_board' as ref clock of the DSI PHY arm64: dts: sdm845: Set 'bi_tcxo' as ref clock of the DSI PHYs ARM: dts: qcom-apq8064: Set 'xo_board' as ref clock of the DSI PHY .../devicetree/bindings/display/msm/dsi.txt | 1 + arch/arm/boot/dts/qcom-apq8064.dtsi | 5 +-- arch/arm64/boot/dts/qcom/msm8916.dtsi | 5 +-- arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 +++--- drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 20 +++++++++-- drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c | 23 +++++++++--- drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.c | 36 +++++++++++++------ .../gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c | 24 ++++++++++--- 8 files changed, 92 insertions(+), 32 deletions(-)