Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2556774pxk; Sun, 27 Sep 2020 12:10:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwUskJe30/RlSNe7K8EAN2xFa3I3YpyvTb9RVBg+bJtOQLclF+lKsowptG4Gv3Gf1tFedA X-Received: by 2002:aa7:d606:: with SMTP id c6mr12566368edr.370.1601233825175; Sun, 27 Sep 2020 12:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601233825; cv=none; d=google.com; s=arc-20160816; b=ywN71usX/NEMMard/YDFz5xZQNzzVKa2BlAT0k0Tn79E3JDID7PJCnbG6jbbE4zu/u 0nDpZecX1I0rDPCeG6fIdPLLbYQHzID+StlarXx7+EdjWL37mST6qQ0rMNCeyzy3tubW o4oci/RgjBzONjAzb6I73xrEFU9wwqEtDkHBCjsHLRjHX7iqKl95/UWXV0xPz3ayvIr+ AN8VUeoagUr+ljglD1zkwIH7LdgmP3WdPTtUFBlrcAdvlVEx0AOQwSKIVch2p+IX5Dj3 +/GL8nFn/+rnoUzf2DnyT8VICHxYLR8Mhp8Kv6YQmO8ReLq1yp5QRF+FT6XrrLA2TTNU OudA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ox4kkZQ5jmnWvNP9rua6aQzsp4HEmvu06n20ZhRYnc8=; b=lhhW3AQpo4cuGVxFb9IRayVi4IJpAEmFSk/PkK2+gu4aGV6Ym8mNZFZfuXBi4OFQNo WQ0kSHjwRrq8U3nDlrUGWGgX6CP+3fUwTBEwob2VAPnkW40d+yF131QbsD23olRtDHzy DiXU7ucTUmaQfk+bx0htLmRv1STRSg+3xLxlbzvd+8lggGenHTVJ0RN5kQkhX+BPJ1Zs D4N1lUP/wxkZm82QkhSbiOWSJdIU3Xl3zV5L5ZEP+p/Hv3GpEh5rsDpj/PgV/PSBUVwf 81NAIZQN8IsGrX9/UaUnCm5Exn5K275NqgmojC4S1dS6I6ONjSkURPM58S8Lq06EzWOJ HqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=LC727mUV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si7460156edj.369.2020.09.27.12.09.50; Sun, 27 Sep 2020 12:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=LC727mUV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726440AbgI0TIc (ORCPT + 99 others); Sun, 27 Sep 2020 15:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbgI0TIc (ORCPT ); Sun, 27 Sep 2020 15:08:32 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C8FDC0613D3 for ; Sun, 27 Sep 2020 12:08:31 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id r8so6534154qtp.13 for ; Sun, 27 Sep 2020 12:08:31 -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=Ox4kkZQ5jmnWvNP9rua6aQzsp4HEmvu06n20ZhRYnc8=; b=LC727mUVU6gUK92EQxAMouDA2cLkCRhMrE4TnGSOnb0eApwvIwVb1zyNV1mrlcNHQD QmoKSuq4OpNmB+/dXOe8P7XRF9RHSKDJG57YAcj2RHWwE8muOKzco8nCYg+MS9g/yEdq DstFwLZV+v0zln1beecwV4Oa+UkSKfDBRnzIjaubYfyN1JqcKVtKPONVt8+q/tVse/44 Zjkp3um0qnHh/Sn0yoQZMDWjvmQ6/Z5fOEMasEKwqTNT/5ZkJ9znVW+4+pI/Er8j8PVZ 0ia+MFmcpTQ7uOkXbzGKYFLLlswFqF/0NX0snNIl04tI1a0f2JIbHgI75e6xPFFa/4Ep 371g== 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=Ox4kkZQ5jmnWvNP9rua6aQzsp4HEmvu06n20ZhRYnc8=; b=CIjDEByW++m4d6XOUaDgY6u+P4ZONmU97sBkTSTAxiJR3x4y2EpWxoeA9a02xN6Nir GEYobC2yru1XCtcUt2Uk3Kv78AKFwvZbEJNsvpsFSTr6ZEgEJwe7KM0ovknjN6hP+nKr kgwXLgddDE4c/V2sRjRm0Qjr03AYD6/M1dLj+uH8JoPfw9498l83ZNXwkTn1I47W9qXh ssrg3C/f412mR/3OyuOhdmx2QQqM9YyVzMptE/lfMCmNJLavkCoIzzXmniFKojHxsXeS QHB/IgZT7rxM66VY892BtBn9tHtt9N2acn15/wdgL1tUz0C1APaXdUB0Zggd+LIT0wE5 eGZQ== X-Gm-Message-State: AOAM530hD50x6CbcZ2M6qoV7swnkVJM20kc4nFA5rnP14akOfzAq7f0H Nu+LIXvKSuiR/4HgYa360AOVoA== X-Received: by 2002:ac8:6d32:: with SMTP id r18mr6780937qtu.246.1601233710672; Sun, 27 Sep 2020 12:08:30 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id s25sm7973827qtc.90.2020.09.27.12.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 12:08:29 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list), Michael Turquette , Rob Herring , Stephen Boyd Subject: [PATCH v4 0/2] SM8150 and SM8250 dispcc drivers Date: Sun, 27 Sep 2020 15:06:49 -0400 Message-Id: <20200927190653.13876-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add display clock drivers required to get DSI and DP displays working on SM8150 and SM8250 SoCs. Derived from downstream drivers. Notable changes compared to downstream: - EDP clks removed (nothing uses these even in downstream it seems) - freq_tbl values for dp_link clk is in Hz and not kHz v2: - updated dts example to reflect the change (first patch) - updated config_ctl_hi1_val in sm8250 dispcc to latest downstream v3: - combined dt-binding: "gcc_disp_gpll0_clk_src" is needed by sc7180 too - use the right order in drivers/clk/qcom/Kconfig v4: - Dropped combining yaml with sdm845/sc7180 dispcc - Combined drivers into one (sm8250 driver + patched pll config for sm8150) - Dropped uses of CLK_GET_RATE_NOCACHE (which was copied from downstream) - Dropped CLK_SET_RATE_PARENT from some DP clocks (upstream phy design) Jonathan Marek (2): dt-bindings: clock: add QCOM SM8150 and SM8250 display clock bindings clk: qcom: Add display clock controller driver for SM8150 and SM8250 .../bindings/clock/qcom,dispcc-sm8x50.yaml | 93 ++ drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/dispcc-sm8250.c | 1107 +++++++++++++++++ .../dt-bindings/clock/qcom,dispcc-sm8150.h | 1 + .../dt-bindings/clock/qcom,dispcc-sm8250.h | 66 + 6 files changed, 1277 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml create mode 100644 drivers/clk/qcom/dispcc-sm8250.c create mode 120000 include/dt-bindings/clock/qcom,dispcc-sm8150.h create mode 100644 include/dt-bindings/clock/qcom,dispcc-sm8250.h -- 2.26.1