From patchwork Wed Jun 16 14:10:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 461399 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp680000jae; Wed, 16 Jun 2021 07:11:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSy7k8cZuz/Cl28XSYTlWGA6p8f56Gb3D7cXL2yEc74r2Y0Pvq5mCT2R28wKl49knmeP4F X-Received: by 2002:a92:c087:: with SMTP id h7mr3592236ile.293.1623852685808; Wed, 16 Jun 2021 07:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623852685; cv=none; d=google.com; s=arc-20160816; b=PFGOj8XtID6IABILscLq490argiBwHvZugn3ic7dWHTeid6jEx3rlbgydLlCTc+JgV ARQkN2d1/dRNg9tvG2dbJifjVybn85Fi+oCm97wYwZTgevPGz7PZhJh0xdWa6gQfOj9s gJ0W5uAPCfVl37kc9KRVLPVhjpCgoYK/QyxCxcBkS33nZZdlF5IJTdsOapqtmyM+juwL Zelyw5lX2xALD3P6OIhZJp15Q+Dm6qg3aiFLsi1lxih7Fd7rYfMzu0t+LWbLuVjRR5BK yOU+0R2DiA0xXuMqYnlnEblfvtrp//vBMe8EqEe1TTc5UlRjUmgSGp4bGKZmS8CT6Imj 3mUA== 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=aE0w1uO3QVDTTrk8Nc8bPJabv5EcddLgbrDTqRajB2A=; b=dSvb5CC5R++5leqj3wfZVEbP0Fw9Mb+opV+9nS0RIz/cqcUwe6k0WDY9SwcmK/XUvT fPCJfZ0qZLzJg8ltPo9VIJ2rXKBUGn3qtL2sBGLpXBv6/0NClNAknB5Bpnsf1W4LLWaq nsuy8QV/sfewu/s6KcLvaOpxSwSdkCOwpoETjRP9f64GYm5fMO3udCv2Lx96POBhlhsM YGlIr/rexBVxJV+31LyP4qymMtiaIs4tQGofyuSpfXEes6skzgbZBuOXx4SG6o5gDLxO lo04FN0inpS9982wJbxZ4+VQgxopYXsRzwixu+H+yJAv8TlmSWLA7qr5uJcYPezXB8PH 5vYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eMDInb1B; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si2744800jaq.63.2021.06.16.07.11.25; Wed, 16 Jun 2021 07:11:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=eMDInb1B; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233616AbhFPON3 (ORCPT + 17 others); Wed, 16 Jun 2021 10:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233398AbhFPON3 (ORCPT ); Wed, 16 Jun 2021 10:13:29 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8E02C061767 for ; Wed, 16 Jun 2021 07:11:22 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id i94so2864690wri.4 for ; Wed, 16 Jun 2021 07:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aE0w1uO3QVDTTrk8Nc8bPJabv5EcddLgbrDTqRajB2A=; b=eMDInb1B5qVL0q8lgoCc7i8Cnh36v23UeL2sMjwtaKmgVyxASSfueEMjruLjEiT691 a4mZ6tYL0QcwSOSkQCTKcgFqW0gbRNdecH4C5ONBr+9SopRkjm8ZjZw8vIiUJi8ardVb Ln1Ibgn4S8BIOQN/gXnqt9Jj9tN+5GYWIGF/CKFJd+VkVw7njLDSA+/dwIZx1fc7+eKe BEsHef+QFC1YX5VxYxmXbFAAUQN8pe/PWUVrAoO/+5TLE8Eri8zlpoDggqpFl2Yw2t2s QYkpmxJO7ptB80iA+ghtyVDbnAXEYF/AwEjNGuNy8YY3tAjwkL1PH32Bj41wbIDLWlqD GknQ== 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=aE0w1uO3QVDTTrk8Nc8bPJabv5EcddLgbrDTqRajB2A=; b=bLwRpI8Xj51EBoy794uwbq0vM+us++DqySE1ZtqjMuUmFaxzW6urCO2zzewNSoElMi PVQ0lFKMBE5dMPkpvrQZJcNTrOBNk+TyLnWfx/nKWrfeH/RcLf/3fYp2NzD5AMKukQ8n NswLWF1Ugve3nchcxd6p6DN9EiYp8Ktnuj2pAdPd+IVwagh5whEdGYB3/+tTNsad/Nqz Hb2JZlqxW5OTF9aBBTniZ1JDdGy5xvLYck7CepqUoPeQVxWowehKeBj2eYG0WKlz0Rli yReZbYsHqih87lmvJfo3kF1kzG0qPdfFReHXthk1QZik/r6ZDilSPRNTayQ3gkOYydi9 J1Xw== X-Gm-Message-State: AOAM530FpbPJ5Iwc0tpu0u2H6ae2wXvIEZSYO7H9eliVed9G6Ok/QykA ZvpuemCbnoDI6e11wSn3CyCU2Q== X-Received: by 2002:adf:b64a:: with SMTP id i10mr5677516wre.169.1623852681204; Wed, 16 Jun 2021 07:11:21 -0700 (PDT) Received: from xps7590.fritz.box ([2a02:2454:3e5:b700:9df7:76e5:7e94:bf1e]) by smtp.gmail.com with ESMTPSA id g83sm1968375wma.10.2021.06.16.07.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 07:11:20 -0700 (PDT) From: Robert Foss To: agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, jonathan@marek.ca, tdas@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Cc: Robert Foss Subject: [RFC v1 00/11] Qcom SM8350 DispCC & VideoCC Date: Wed, 16 Jun 2021 16:10:56 +0200 Message-Id: <20210616141107.291430-1-robert.foss@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Do not merge, this series has yet to be properly tested. Work is in progress for sm8350 display driver support, which will test this series properly. This series implements display clock controller (dispcc) & video clock controller (videocc) support for the Qcom SM8350 SOC. In order to support these new clock controllers, some changes to the alpha plls are required. These changes add support to the Lucid 5LPE PLLs. Robert Foss (11): clk: qcom: common: Add runtime init/suspend/resume clk: qcom: rcg2: Add support for flags clk: qcom: clk-alpha-pll: Fix typo in comment clk: qcom: clk-alpha-pll: Add configuration support for LUCID 5LPE dt-bindings: clock: Add QCOM SM8350 display clock bindings clk: qcom: Add display clock controller driver for SM8350 dt-bindings: clock: Add SM8350 QCOM video clock bindings clk: qcom: Add video clock controller driver for SM8350 arm64: dts: qcom: sm8350: Power up dispcc & videocc on sm8350 by MMCX regulator arm64: dts: qcom: sm8350: Add videocc DT node arm64: dts: qcom: sm8350: Add dispcc DT node .../bindings/clock/qcom,dispcc-sm8x50.yaml | 6 +- .../bindings/clock/qcom,videocc.yaml | 2 + arch/arm64/boot/dts/qcom/sm8350.dtsi | 46 + drivers/clk/qcom/Kconfig | 18 + drivers/clk/qcom/Makefile | 2 + drivers/clk/qcom/clk-alpha-pll.c | 5 +- drivers/clk/qcom/clk-alpha-pll.h | 5 + drivers/clk/qcom/clk-rcg.h | 4 + drivers/clk/qcom/clk-rcg2.c | 3 + drivers/clk/qcom/common.c | 92 ++ drivers/clk/qcom/common.h | 6 + drivers/clk/qcom/dispcc-sm8350.c | 1402 +++++++++++++++++ drivers/clk/qcom/videocc-sm8350.c | 593 +++++++ .../dt-bindings/clock/qcom,dispcc-sm8350.h | 77 + .../dt-bindings/clock/qcom,videocc-sm8350.h | 44 + 15 files changed, 2302 insertions(+), 3 deletions(-) create mode 100644 drivers/clk/qcom/dispcc-sm8350.c create mode 100644 drivers/clk/qcom/videocc-sm8350.c create mode 100644 include/dt-bindings/clock/qcom,dispcc-sm8350.h create mode 100644 include/dt-bindings/clock/qcom,videocc-sm8350.h -- 2.30.2