Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8789562ybn; Tue, 1 Oct 2019 12:55:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBdaF4wMHWGx4VYZ82s3SY96NDfEX9BtdrlX/UDN7dVn7rWonmGjD2AFfjpxd4Uw7xxdWY X-Received: by 2002:a17:906:1f12:: with SMTP id w18mr12150286ejj.224.1569959743636; Tue, 01 Oct 2019 12:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569959743; cv=none; d=google.com; s=arc-20160816; b=nuxZcujCMuUi3HjBl03ldre8NSL8hTXO9HC7JOELprp5PxqgZQZEIWMYTXMOByLtp7 RmeICxP6O5+NQY0nCItWZRs3WR4H+ukfOohzwog6pEVv8G5zuAM50ZmqzZuiGdMKbE1S Atdm+bz5LkcBW0wAAmkjn6W5KjGCtpwECnISR46DxfE9Nykx7M854gGbzhaVBTBeK9Hk aycM37Zuyf2gcDLapojjjalwBQTAyA3OZGvqPleKOAl0wPRUjDzAp5+klWFn4xgnc42M 6Qme1RTo59GGBAPV/x2LPu1wgaZNfsX15Nk90WL0aJygUyyP9tkswvdJ8/5YE2TOYxHI VK/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dmarc-filter:dkim-signature:dkim-signature; bh=L6FEYVXNstqAH7gMlidZkrBWgmtzCbYFrkAxHLYQysc=; b=yQgBv2WwEx3Pf2s4v2Yr6P6+vzO8n1syx6sGzhDQAKHbgj+IKOtrdxv5ny14/rYFZe bkWJeNP5p5/z1Km4TcbDea/8eCGY62IZ2R6CdVYMd9g6FR82KhRrXMkMBEZiTkUM74/q 4xSoFPT3l+cpDWRMVocQvbfwjvhbW2tESXRFMmy5IKqepTjd8FikQJfAvER6a66sOJ0x bBjYtMA+RPPHRK2PbsRrmxbkAucAr7Hc9zWTtU7fq8ZzgbZ5NwGKBofqZFbswDx4TsHI z2Qn8pB9JS38WZRjYqQwg9hOE0MrflgM8fXkJuX4zp/QADmN051MfgEVyYayNByGFoYd xNyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@codeaurora.org header.s=default header.b=eToC+j3w; dkim=fail header.i=@codeaurora.org header.s=default header.b=XXezaJqn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si8843981ejd.314.2019.10.01.12.55.15; Tue, 01 Oct 2019 12:55:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@codeaurora.org header.s=default header.b=eToC+j3w; dkim=fail header.i=@codeaurora.org header.s=default header.b=XXezaJqn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbfJATyt (ORCPT + 99 others); Tue, 1 Oct 2019 15:54:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56796 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfJATys (ORCPT ); Tue, 1 Oct 2019 15:54:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 22DBC6119F; Tue, 1 Oct 2019 19:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1569959687; bh=ITDIlgvxse6MjpjysafSlSfp4MuhJO6HNe8oCAYxjUg=; h=From:To:Cc:Subject:Date:From; b=eToC+j3wx1Xok76D0DVTygPL+tLjCUmndmggXUGgqYCuNvR5TTiSZz2AC1PwyAr7h WV2LIEpK2/aynfJDDY8eXIMIl2wdpDGTUXq7p0JpyzyJnVY+UIlBFpu9+SqOJdFbhr LE/e8OCLzXtuFe8JAskCAycCq9NmtTU93wqRMH6k= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from jhugo-perf-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 50233608CC; Tue, 1 Oct 2019 19:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1569959686; bh=ITDIlgvxse6MjpjysafSlSfp4MuhJO6HNe8oCAYxjUg=; h=From:To:Cc:Subject:Date:From; b=XXezaJqnq1avK95vQS5d0ZSzs/77++FRLSFSrvd+/teqqVpQ2HdkwL+G7fIPTn6th MljabknS4pe2XOtFMThl6ctBkTPQg/8Mw3egX+P3aBIqMO4lekL1LTSR7sfkllpX7P AuAvUT6zh3Qe2MrM7pps6QxjC4dKxhUDpt8ePGCM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 50233608CC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org From: Jeffrey Hugo Cc: agross@kernel.org, bjorn.andersson@linaro.org, marc.w.gonzalez@free.fr, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jeffrey Hugo Subject: [PATCH v6 0/6] MSM8998 Multimedia Clock Controller Date: Tue, 1 Oct 2019 13:54:16 -0600 Message-Id: <1569959656-5202-1-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The multimedia clock controller (mmcc) is the main clock controller for the multimedia subsystem and is required to enable things like display and camera. v6: -drop clk_get from mmcc clock provider v5: -handle the case where gcc uses rpmcc for xo, but the link is not specified in dt -have gcc select rpmcc v4: -fix makefile to use correct config item -pick up tags -fix ordering of clocks and clock-names in dt -drop MODULE_ALIAS -wait for xo in mmcc since that was found to be useful in some debug configs v3: -Rebase onto linux-next to get the final version of the clk parent rewrite series -Moved the bindings header to the bindings patch per Rob -Made xo manditory for GCC to work around the lack of clk orphan probe defer to avoid the uart console glitch v2: -Rebased on the "Rewrite clk parent handling" series and updated to the clk init mechanisms introduced there. -Marked XO clk as CLK_IGNORE_UNUSED to avoid the concern about the XO going away "incorrectly" during late init -Corrected the name of the XO clock to "xo" -Dropped the fake XO clock in GCC to prevent a namespace conflict -Fully enumerated the external clocks (DSI PLLs, etc) in the DT binding -Cleaned up the weird newlines in the added DT node -Added DT header file to msm8998 DT for future clients Jeffrey Hugo (6): dt-bindings: clock: Document external clocks for MSM8998 gcc arm64: dts: msm8998: Add xo clock to gcc node clk: qcom: smd: Add XO clock for MSM8998 dt-bindings: clock: Add support for the MSM8998 mmcc clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver arm64: dts: qcom: msm8998: Add mmcc node .../devicetree/bindings/clock/qcom,gcc.txt | 10 + .../devicetree/bindings/clock/qcom,mmcc.txt | 21 + arch/arm64/boot/dts/qcom/msm8998.dtsi | 16 + drivers/clk/qcom/Kconfig | 10 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-smd-rpm.c | 24 +- drivers/clk/qcom/gcc-msm8998.c | 29 +- drivers/clk/qcom/mmcc-msm8998.c | 2914 +++++++++++++++++ include/dt-bindings/clock/qcom,mmcc-msm8998.h | 210 ++ 9 files changed, 3214 insertions(+), 21 deletions(-) create mode 100644 drivers/clk/qcom/mmcc-msm8998.c create mode 100644 include/dt-bindings/clock/qcom,mmcc-msm8998.h -- 2.17.1