From patchwork Tue Nov 6 14:57:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10670657 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 ED24315E9 for ; Tue, 6 Nov 2018 14:58:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA47E29ADF for ; Tue, 6 Nov 2018 14:58:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE96129AFA; Tue, 6 Nov 2018 14:58:39 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BFB129ADF for ; Tue, 6 Nov 2018 14:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=HTF5N8VYAnOGYTUMkF1TS3E654JdQr3NW0n2PVGXI8E=; b=HRd gl+34qEqcu60MoIfH5yMcnnSLsIPQn7u9bjBaliPuNl0oTgKlZQLCu9ZtYX6xEAyfbtjgc+sRH1qe aM05j6wPODQ/cu3UycW9AX2wiVChNeVcJWaSFfR7pKHW3Cl3nQKKqcgU86nJD+ru5TqtbAq8AnNpC PurOTbKb5+R1cHJ46NIUqELr+iBpKNzsje3klCuL9CA6lSrdiJDe5FHdx+KjmFZkT1FqfqVa44NKP N0+vtfky75PfW4Dosh7VCCauhYrxJjSN5hy19jqIEsZyfSAwjARGhb0QhkJcdiLtzV7dKc3pRN+R9 XYI5/LI6lwIaCDEvOUGxCWUMbVaY6Bg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK2oF-00069E-NZ; Tue, 06 Nov 2018 14:58:27 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK2nf-0005VV-VJ for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2018 14:57:55 +0000 Received: by mail-wm1-x333.google.com with SMTP id b203-v6so12271406wme.5 for ; Tue, 06 Nov 2018 06:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=JJNL3Neu3SfVjw1khgrCqtvFkSG2b/5akHq7tkxYu/8=; b=RGqN01SsHX12NyLzsgTiQz0n59uDG3TzYmAINMThRPQ85AQOwMsn48Ar9elt1j87b8 N1Z3huYbtjsJYq6A57dT4WxfnCvmH6V1FvExgCWniNvoFymv3NVs6m4oUshbxyfaHA/f ampTCzRomRtHFN/BCG2nFVNODBVD4+Yj/z/iwWAX/AS2DfcEtlDEUQpV0Jxso95IP1V6 v9mrcRsRPgdzO2zUbdZJMR6XTruTt7CNhxlbbo2XyiTth7k2U1qrhFUEU77dUo2Z19pD ohTgq6yTD7mtqhhPAuvekbdOdY8kz36ubMJkGjQhKZs/avgLQYnoGT0LCbvejnFNiF8t fhcA== 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; bh=JJNL3Neu3SfVjw1khgrCqtvFkSG2b/5akHq7tkxYu/8=; b=GcSRR/QY0sSEH299QTcN7ycwavxXNyDa9fDXr5kKleVd9baaVcR7BogpQ5RPTVrsMc yOnE2WbWbrhlNdsksCJeE9RMAv2vFfB4zt7JmxpgnPEiMxmLDZnMa8XbTW9kiK/s4iAd wVuVtZnu5vG7cdCUl2OTwro2vHQKXlNHu7xoRK5q1ApCKnT5R0cqGBQVIyPjxTEjDMjk 905zZ/bRk9+GFODWKD0TaMwZcSZyWcdQb7k8+0/MIkCZ5hKByqtu7Xbqibljz+HPDpNx 6Qn2e/TfY4w2gwhF9GhuDrnDOEKbiENzrwHY5J9+Fl6GBZY+/W6l2/Jz43LGdd2PgYLw tcSg== X-Gm-Message-State: AGRZ1gJVQ0CaalMqIGD4X/1n2rF+uwBW0n60fVq+cNJ27ENTVoWuTFHN UTuU3JsKPTmc0Onz5QqO3MTUtQ== X-Google-Smtp-Source: AJdET5fg0C3uvA9xcG2U7/++bq8gkj06T3bjJaWh7jcyu6FjorilvxtZEMAK45xi+n35DiFOtGVHQg== X-Received: by 2002:a1c:6c0f:: with SMTP id h15-v6mr2170552wmc.123.1541516259858; Tue, 06 Nov 2018 06:57:39 -0800 (PST) Received: from bender.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id y131-v6sm1825375wmc.16.2018.11.06.06.57.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Nov 2018 06:57:39 -0800 (PST) From: Neil Armstrong To: jbrunet@baylibre.com Subject: [PATCH v2 0/4] clk: meson: Add video clocks path Date: Tue, 6 Nov 2018 15:57:33 +0100 Message-Id: <1541516257-16157-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181106_065752_017822_C148AA04 X-CRM114-Status: GOOD ( 13.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset is an attempt to handle the Amlogic Meson GX Video clock in the Common Clock Framework in order to move the video pipeline and HDMI controller clock management out of the Meson DRM Driver. In order : - Add support the VID_PLL fully programmable divider used right after the HDMI PLL clock source. - Fix the GXL HDMI PLL DCO - Add the video clock bindings covering all the video graphics pipeline and the HDMI controller. - Add the clocks entries used in the video clock path The vid_pll programmable divider is introduced in its R/O form right now, but will be extended to be R/W in a next iteration. All dividers are flagged with CLK_GET_RATE_NOCACHE, and all gates are flagged with CLK_IGNORE_UNUSED since they are currently directly handled by the Meson DRM Driver. Once the DRM Driver is fully migrated to using the Common Clock Framework to handle the video clock tree, the CLK_GET_RATE_NOCACHE and CLK_IGNORE_UNUSED will be dropped. Changes since v1 at [1]: - Fixed comments from Martin - Fixed GXL HDMI PLL DCO - Added the missing HDMI controller clock - Moved bindings to a separate patch - Updated the commit logs [1] https://lkml.kernel.org/r/1532079581-978-1-git-send-email-narmstrong@baylibre.com Neil Armstrong (4): clk: meson: Add vid_pll divider driver clk: meson-gxbb: Fix HDMI PLL for GXL SoCs dt-bindings: clk: meson-gxbb: Add Video clock bindings clk: meson-gxbb: Add video clocks drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clkc.h | 6 + drivers/clk/meson/gxbb.c | 773 +++++++++++++++++++++++++++++++++- drivers/clk/meson/gxbb.h | 26 +- drivers/clk/meson/vid-pll-div.c | 91 ++++ include/dt-bindings/clock/gxbb-clkc.h | 18 + 6 files changed, 911 insertions(+), 5 deletions(-) create mode 100644 drivers/clk/meson/vid-pll-div.c Acked-by: Jerome Brunet