Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3188890imu; Fri, 23 Nov 2018 23:41:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/X8B7eQr23OdME6FV0TaKXRmXyxAqBPhE9akwBGr6hKda9fPHt7rsp8/yiCtYm0htDTlcAn X-Received: by 2002:a63:62c3:: with SMTP id w186mr17214797pgb.345.1543045265708; Fri, 23 Nov 2018 23:41:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543045265; cv=none; d=google.com; s=arc-20160816; b=UTIMKFneWKz7olPdFyStssin1atFoOwILjwIjDw2pHCzxQir9chSzpHqhdGu9SPOLP qK8ul2WGdxauaN32PXbtF6544xh8zqdgsYRBxoQQo0Z27qwkjWq+C2rnl+GeJn7oUMzE mBRVF1Bsuxo6uC/dvu9LN2tJsjBADACYbosE5+V/ZrP02e/g43FaQuHdKYhol1MWBKY7 iL9z9/QK2uTQkIVg8LW+B/pc/p6IeW+s4Fv6FsI9q8mGHzCO3wacaDCOtd5nzyNMhCbA r9eRL8uq74IsDGUVDPLqFP0NLFCVVtQ6k7A+8PVZs7KnrsNAwMtwwycHXt+odjc7+Ev3 HdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lEf8ew0Ss4HaxFBLQGgMBaQ8orjd3JGzoZQYwrnpOho=; b=nnG+GRbOjGDn9Pn8a/H9XBM04AuVuD3S8CCUZKI1yNzt9tBA6vgmf6IwKq6xXnxtwr kTb1XK9RZWs4whDIyRhmKbTkjC6nfQmtgjWHq8EnlJ/X6r8PXgLwLHxZ7do8QpjwVpwe aIHnZmkkWlWuwIpOWU58l+lY/ps+z1Zr8MNTw60YUJpFh9N2qrG4OoCPXomIL8mgq9RC Jcu+iZHz/L+9A1L0h+MUMjJwIF5YWfrAoB+hEw+FAbZLZPDYNfD0k66/u2Lr45RfBtE9 73e0x7hy6iOYsc2rwWUnQ+wX+Ikbz3bKAzYha6yCEX7efjvtC5UZ8DL9egaJ02jOgP8M m5MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=c+0FW+Us; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si40476754pls.348.2018.11.23.23.40.51; Fri, 23 Nov 2018 23:41:05 -0800 (PST) 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=pass header.i=@googlemail.com header.s=20161025 header.b=c+0FW+Us; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404910AbeKWIVl (ORCPT + 99 others); Fri, 23 Nov 2018 03:21:41 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40048 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392303AbeKWIVk (ORCPT ); Fri, 23 Nov 2018 03:21:40 -0500 Received: by mail-wm1-f67.google.com with SMTP id q26so10283420wmf.5; Thu, 22 Nov 2018 13:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lEf8ew0Ss4HaxFBLQGgMBaQ8orjd3JGzoZQYwrnpOho=; b=c+0FW+UsFQsYAXLL+CBALS5Zo99mFTdv/eaOWmTVmpZ/pybf+1wawSeZSY9tkNwe1y Q01BoMR9EoM/oVOlQKrdLnvRdCz/k0YiQlxY3eN/jXeKMLQZrI20FM0e0B35o+Ib0xgm OKh2yV0oC88h3+YPPZ8Hp4pIjPH1nKtdHrFluDOd90Txgqm1/TXY/bAlgqm3WtKS7L5x EJDAPeBDUSumtXKBLRLRFkAdYoT8da3RxK1ZBxIis23EL3HCQ7z2vI0FRMcJMgCoNSC/ D5BtVV9/m1F8v7490+B2SkMytpFlySd7/5aEMGYBbs41RKdT4bEvUhDtRqRsrwCLm8Rt hHwQ== 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=lEf8ew0Ss4HaxFBLQGgMBaQ8orjd3JGzoZQYwrnpOho=; b=TxFPF4LQAywO/TTvuMnW3oaay5vd5yooGuHciIvYsQlQevFJt+abDDJzauNfU4xEXJ G974k6JIXFNrQyQGbiNEAIvpRw2yAFvGw51mNvKEZFJfGugynvOfsYetizxOYjTyoVwg baDJG6+xb0KdgbbtpHljTm4nFG7EDajnOHiTUD6Q/bBfacKZUwZ43xC9Fd5Ig4GOvx46 JqN557V2/S5QLbxx5Rd3ZiPdH6WjO8HVQ1iS82UXARM9F3vsvzLn/esODtD9ONqLpDgu f4lCAthfA3w7CbHgvUcvVaKplakB5DxgwH/7ZJyb7EO8hhNczVOJ19wH6gRTmnoLHEF8 +oUg== X-Gm-Message-State: AA+aEWbpARnvbBToByJy0bonoDW6QgD9Pfelx59v4RZNvlhDCn+GIklY MUybiDPXSwZ2poz9ZIjDJZU= X-Received: by 2002:a1c:bb42:: with SMTP id l63mr9652709wmf.47.1542922824760; Thu, 22 Nov 2018 13:40:24 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD732F5007DE18DA1F72FF8D9.dip0.t-ipconnect.de. [2003:dc:d732:f500:7de1:8da1:f72f:f8d9]) by smtp.googlemail.com with ESMTPSA id x14sm29755554wrm.65.2018.11.22.13.40.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 13:40:24 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, narmstrong@baylibre.com, jbrunet@baylibre.com Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH v2 0/4] Meson8b: add the CPU clock post-dividers Date: Thu, 22 Nov 2018 22:40:13 +0100 Message-Id: <20181122214017.25643-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the successor to my previous series "meson8b: add the CPU_DIV16 clock for the ARM TWD" from [0]. I decided to not send this as v2 of the original series because the PERIPH clock is not the CPU_DIV16 clock. It's not clear whether a CPU_DIV16 clock exists. With this series we get all the CPU_CLK post-dividers as listed in the public S805 datasheet [1] on pages 31 and 32: - ABP - PERIPH (used as input for the ARM global timer and ARM TWD timer) - AXI - L2 DRAM Each of these clocks has a register called "..._CLK_DIS" which is documented as a "just in case" bit: "Set to 1 to manually disable the [...] clock when changing the mux selection. Typically this bit is set to 0 since the clock muxes can switch without glitches." Since we're not supposed to touch that register we're using the new read-only gate clk_ops to ensure that nothing accidentally modifies these bits. The result of this is that we can use the PERIPH clock which clocks the ARM TWD timer. I will send a separate series to add the TWD timer. changes since v1 at [2]: - added new patch 2 "clk: meson: clk-regmap: add read-only gate ops" - switched from CLK_IS_CRITICAL to the new clk_regmap_gate_ro_ops so we're consistent with all other read-only clocks - collected Jerome's Acked-by tags (thanks!) [0] http://lists.infradead.org/pipermail/linux-amlogic/2018-July/007890.html [1] https://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf [2] https://patchwork.kernel.org/cover/10687023/ Martin Blumenstingl (4): dt-bindings: clock: meson8b: export the CPU post dividers clk: meson: clk-regmap: add read-only gate ops clk: meson: meson8b: rename cpu_div2/cpu_div3 to cpu_in_div2/cpu_in_div3 clk: meson: meson8b: add the CPU clock post divider clocks drivers/clk/meson/clk-regmap.c | 5 + drivers/clk/meson/clk-regmap.h | 1 + drivers/clk/meson/meson8b.c | 264 ++++++++++++++++++++++- drivers/clk/meson/meson8b.h | 17 +- include/dt-bindings/clock/meson8b-clkc.h | 4 + 5 files changed, 278 insertions(+), 13 deletions(-) -- 2.19.1