From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 509FAC43381 for ; Thu, 7 Mar 2019 14:15:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1566E20835 for ; Thu, 7 Mar 2019 14:15:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GLGI8f3s"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="MntE3LMd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1566E20835 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=JzLNtyy/30CsGIVPMzi3/TG1EYO8Lt9b9/cWZ6swrAc=; b=GLGI8f3sEfi5hd s3v6KYDTw7h+kvmdX/zrEzUfIOPRue/ardlmXDEAI6XhwYQPUV/RhcfQMbDC+pYjpIDuwhtSgdpTM xG+mMIoGnOATSKlsJvCiVN78k4qMkoYyO9eM8nTr1q5feeBixEbFEAB6m4s3M7gYG4l/MRf3yDUxD nK4xttLQQsbSdZBUH5S6rXlCj2BejGnGpwJOJG6ZKgw1eoJf8nQqlaDrJKYolKGzyYHn5AkoXePnf Jfcna/2lHJtjshxpPbiCa5pDpq2x2KMXhvc8pIdOx8zRqgx58fn4DqIQ2NPcPpvwv888fuwtuU/Vb 6sOo7KMla8dUb9yDEDmQ==; 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 1h1tnc-0001A1-TI; Thu, 07 Mar 2019 14:15:04 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1tnW-0000zR-H4 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 14:15:00 +0000 Received: by mail-wr1-x441.google.com with SMTP id w6so17605405wrs.4 for ; Thu, 07 Mar 2019 06:14:58 -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:mime-version :content-transfer-encoding; bh=102m7vigukY6b2r4HXlaV9za2FJR75yPTrUYx8MuDyg=; b=MntE3LMdL4WhEyeakqoEbbBDCZnuNWUqFQom72tuwIEjS8DppGHYQmct58TELWCtZT Y9OmEDJCTdEnb6M8bVpIsW1HNfbJNQwYBGrzpjzk5YMitJqAtQjg7MKwEfCtS9uANjvE oi+iaF15k8UY3mQ0vOlKYHEZAd7tKOr046UooTQdj0hHBuY7MlADQdoD1uNU2b1CwFgb VSVlstjyAp7uqIi5WaGWIX6q3nH8JdlZdtVbB4f5nplukWcHn6KL4UxJ2JEy+QA0d33J h55Aub59jR3p5VisbfBTG6QyExNutxND8gOKpiuD3qc22Gh12rqHbdug8j1JqRIvO7qK JrjQ== 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=102m7vigukY6b2r4HXlaV9za2FJR75yPTrUYx8MuDyg=; b=nsZNrTK5dfSfaNXz5Mg/uxMly4aBlF/UU9ljFOE8c9x1C19XvdNf72+lEKvR90Tg/w q/TvJgi9fMjcgfUtXJLJ/V0CoHNir7x36nn1T/+xE8a43xh8L77HFHlNkmqNTmNcj178 LEh+Usl3GlVzUQwGCAW4eyhy5fasdp+cP5NsB3iX29FE7ajqYV9pxUjV0gBQT8e4CkiX JhFNjkUI8ApGjss6gmU7VudQmw7pexctO1jHeZKRCr7zE3TtXGVhyleEAdzWNhE2hjk4 WBPa1e4I6rvqcpjQB1VWShqeifq3H6pq2AtlBfmCRcvpBRNSTlbPZ60xuQ0OqzPU14qD zh2w== X-Gm-Message-State: APjAAAVxNLfvfQ+1zTOGxustYsL92H9dXEvjdMB78dEK7c/EY9VQTo0z Yg028NgtVNGeKIu9Eel77WRLIg== X-Google-Smtp-Source: APXvYqxFIGkuc2l23hZhsQeS86bnCNmzSmXwrXIRW2MPpe+DTrSSQZmfekPLccn6gHd1+XuMZzVL+g== X-Received: by 2002:adf:f711:: with SMTP id r17mr6998984wrp.38.1551968096841; Thu, 07 Mar 2019 06:14:56 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id h9sm9679304wrv.11.2019.03.07.06.14.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 06:14:56 -0800 (PST) From: Neil Armstrong To: jbrunet@baylibre.com Subject: [PATCH 0/3] clk: meson: add support for PCIE PLL Date: Thu, 7 Mar 2019 15:14:52 +0100 Message-Id: <20190307141455.23879-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_061458_570338_0EAE7169 X-CRM114-Status: GOOD ( 10.65 ) 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Amlogic G12A SoCs embeds a dedicated PLL to feed the USB3+PCIE Combo PHY. This PLL needs a very specific and strict register sequence in order to correcly enable it and deliver the 100MHz reference clock to the Analog PHY. After lot of trials and errors, and since this PLL will ever feed 100MHz with a static configuration, it is simpler to setup a dedicated ops structure with a custom _enable() op applying the init register sequence. The rate calculation ops are kept in order to keep the nominal read ops as-in, but set_rate is removed. With this setup, the PLL can be enabled and disable safely and always have the recommended PLL setup to feed the USB3+PCIE Combo PHY. Neil Armstrong (3): clk: meson-pll: add reduced specific clk_ops for G12A PCIe PLL dt-bindings: clk: g12a-clkc: add PCIE PLL clock ID clk: meson-g12a: add PCIE PLL clocks drivers/clk/meson/clk-pll.c | 26 ++++++ drivers/clk/meson/clk-pll.h | 1 + drivers/clk/meson/g12a.c | 118 ++++++++++++++++++++++++++ drivers/clk/meson/g12a.h | 5 +- include/dt-bindings/clock/g12a-clkc.h | 1 + 5 files changed, 150 insertions(+), 1 deletion(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel