Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3239787imu; Sat, 24 Nov 2018 00:51:00 -0800 (PST) X-Google-Smtp-Source: AJdET5dntl70T0yT70HfIWm7T+pc3kr9OKm9BHTQngI8LGg9pwb7WOSmc7ktz3yH8K5Ak5UWJr1k X-Received: by 2002:aa7:804e:: with SMTP id y14-v6mr19035536pfm.73.1543049460846; Sat, 24 Nov 2018 00:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049460; cv=none; d=google.com; s=arc-20160816; b=lGmly1U+ABtSm1vuby/7FwZ50sn5yKH3MyHPWj0OCDWbfdb8jZAfKZ7n0+toFH/0Xw 4GpIVP9nCWNl5zrh2QN2yoKIHs90Eb5m85ytmfl2HMH92W5zJD0WH0VR3x/5MdqxaqBj mc75/o4Lju8xgXvsMFKtX1uIdC5fCpXNVQdE3hB3Okqr3XwW/CBJi9E1BsKru4fFYZbf lGM71NrFsxSo6gNJxBppS1qq4yZUgeaxA2V+YZt3EFz/a9D78eR2RDdjtoen9wqLHWwx Tya2dpr1ZDkruLe7zCAuB4squ+x3UDusIAeQekaWnPhE73we81md2ezdeUO8HzgdcKeR Sw3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VnQH26rRZD7vhICcFXLasHpY+1RYNS+iVT/vBdvo2Fo=; b=Tcygu4n03ECxR/FQ9IY5eGiqNp+sqjRKqBjdjcNLt3LnTAPePscOm+fAWUHtBVazgL ormMBdcJ4he9WefCZ7pJLiY4LDeCZpVlE5du5QDtsktNt84biVNPyBbz8iUHSXpSpYmP eUgJuKuDX0EkaVoj/FhLycAr7V1Glwsq+EqUsV5ZtUpOj6OUmcve4cgvwB5FUPKB+McV JvPs3wmbkgozkM33lvEnC4pS+apc+nob0GpGQxichsPY+ZNsAC/hphD6nKobY3WG/R18 y/M7y+OmxDkZqTtDOvB3HARa1AICrbrWmsVmCt5ZnqD+IyRuABNuxjiGeZb4i6XGaMgU RT+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=ocw0Uu1q; 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 m8si14811672pgd.555.2018.11.24.00.50.46; Sat, 24 Nov 2018 00:51:00 -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=ocw0Uu1q; 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 S2441427AbeKXGZ5 (ORCPT + 99 others); Sat, 24 Nov 2018 01:25:57 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:40994 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729872AbeKXGZ5 (ORCPT ); Sat, 24 Nov 2018 01:25:57 -0500 Received: by mail-oi1-f196.google.com with SMTP id j21so10761456oii.8; Fri, 23 Nov 2018 11:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VnQH26rRZD7vhICcFXLasHpY+1RYNS+iVT/vBdvo2Fo=; b=ocw0Uu1qAVhwQ6GOWc+96V5MADv/Ai17Opf99rIiOSATAzr1eDKvPCp0MHwUavawF9 VZDilzpp6gx3fGU71Q11K7pMt+UKWLVqNsBCTxOKnCWVzgixoW9a4HSt+ZRYd/F2SCxF FJ8NPTGYsFk2Sk/FGwsvYxyUMNDCW0SGqAM0dMGdmhIFGJGDQfbysGjCYYfr2/Sg2kS0 rFKuYrRaeL9aihUMgr5WLsjFTx9LWEmctm+wdAMMTvLT1sP0/Wr2w8MApqZ6suxw45W6 LDs/dPlbLbr4ShkwrZWpiT7O3T4U746qDzqRWehbYKecCPIRxeRGuNjpSptXgMNlU1vr vW8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VnQH26rRZD7vhICcFXLasHpY+1RYNS+iVT/vBdvo2Fo=; b=aiLOA3KuGZRh4Ih6fQVDESUwYnwrZlnLDE8QYOfjPFihia42+u+vvu9mJb7qhQ0UJq OpWkWN5N7qmQMMC6GBEnF60rmP0PWQUrJSZvRuxXzabOTHJj+A3Y8XmauA2kCOvNNRZy eyPUhIw/tO1EzlP/NuTYjruKxarHglnt/JISxdHFsg71jf7z/308fR7nbtKVESEFKZFi HrTNcgoJS2ExGPERlEo9suvA/AKBHxPHnLscDI4YHPBjMEXgBY0arDM84UNiKrwrpX7c JcGftEMX2BhRpMlx9bmTwXGkBdiswLFNQmJwwG84lsJJGULmV71r/yB1yyXLhNjA5Vio +Pkg== X-Gm-Message-State: AGRZ1gIL+izypFNZ4jaJq0SUsIfOquOY1TpSqNHWQuxL6GZG2wvTU6Ht WBZD4FBWUnGe732Of10++DNg3IxT1KOnDtLTSgc= X-Received: by 2002:aca:5e85:: with SMTP id s127mr9640736oib.181.1543002017387; Fri, 23 Nov 2018 11:40:17 -0800 (PST) MIME-Version: 1.0 References: <20181122214017.25643-1-martin.blumenstingl@googlemail.com> <4859b354-ade4-8172-eeb5-7a4a42045589@baylibre.com> In-Reply-To: <4859b354-ade4-8172-eeb5-7a4a42045589@baylibre.com> From: Martin Blumenstingl Date: Fri, 23 Nov 2018 20:40:06 +0100 Message-ID: Subject: Re: [PATCH v2 0/4] Meson8b: add the CPU clock post-dividers To: Neil Armstrong Cc: linux-amlogic@lists.infradead.org, jbrunet@baylibre.com, mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 23, 2018 at 3:40 PM Neil Armstrong wrote: > > On 22/11/2018 22:40, Martin Blumenstingl wrote: > > 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(-) > > > Applied, with the bindings on next/headers awesome, thank you Neil! you even gave Kevin a tag with only the headers included - good for me since I can sent the corresponding .dts patches now. Regards Martin