Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2673168ybj; Mon, 23 Sep 2019 07:36:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNJh56g5anFrtinfX5AjXGoBqGkbn/kh1o/+zFrXZGkynChtR/zxktD5b3D/OhKdcmyfxi X-Received: by 2002:a17:906:7cc4:: with SMTP id h4mr191233ejp.75.1569249398839; Mon, 23 Sep 2019 07:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569249398; cv=none; d=google.com; s=arc-20160816; b=iFVU/T5E4KkEi6BnM/cxtPNJlSc3YGLsuzN/L1IfqlQVkYTlkizcO62HAJPEaL9CiP O+4BV26u2XUCazbEVFiO82VdGA+456z6KyeYkWPXR/l2x0R6XJc1tmzDpdMZXFTtVKb2 Vr+CKohF6RmZD4AAez3RXwohepAXRaBmmcCS8wgzsj4fFYxuS2OtxDEDNOXmTYa+hjpU UFpS98WIj+NT7fXAXfo0vHDly6KdE1/lBmOEq825QwhmFqLOtoWiwAvXavtYfx4wDbJX JIRGPDFOYFxcKGcwobBa1GAOJZ1TQ9SfXS3q2ZI+Psuglgtjh97WGcpZHhqqdL6E4YHJ g92g== 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=cy8BeFSyyxwCJlrN4qHH8AR4EXYnev9cLyrShu/UrkQ=; b=v4lDLsr/HTyrlgdCgRkjG+utU+kXtX+JEI1hZn2RBEvUMV/vQn8s4xXw6+7lzZT3OG q2mCEzZsxCPqgf4yiu8JNiwoy8FDVm7I+QG2gwEgSkWIToA0neR2BnST/IBMyqPqKRcm 3Z34ftO4isBKPozk0EPPsEZDtsSlbHby9vZckbfXoi1nQTsXowR77vwfcfpsihAkliU3 DPO42BogOQ8tIcMe2UG2G4byM6NIif5oq0pXRejf5K+zunkYqvDe/kbAWNPO037pt7Sh EPGnqlLhuOdKGnBnDh+Bu+8JDxmkDlDTArWN41g0KlYkc02qcl4mNGLlZmP9Linh1xPq LesQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=k3ebWKuh; 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 g20si4930466eje.364.2019.09.23.07.36.15; Mon, 23 Sep 2019 07:36:38 -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=pass header.i=@googlemail.com header.s=20161025 header.b=k3ebWKuh; 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 S2438045AbfIUPMr (ORCPT + 99 others); Sat, 21 Sep 2019 11:12:47 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43715 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438000AbfIUPMq (ORCPT ); Sat, 21 Sep 2019 11:12:46 -0400 Received: by mail-wr1-f66.google.com with SMTP id q17so9584768wrx.10; Sat, 21 Sep 2019 08:12:44 -0700 (PDT) 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=cy8BeFSyyxwCJlrN4qHH8AR4EXYnev9cLyrShu/UrkQ=; b=k3ebWKuhTvDBaawmONRTOFMM7lDUOFLxEasIcVIStcSneASkrQBwEuItFSSDjr6B6Y FKWFRvcEQPXg2Dd19GWK2TKxBjMZ2hVNlD5X/F6Rx4Xt8+yaPHAeD8mCowQMYBOEY3an ga1FPmCX/J4lWpGGJnSkWSNVzkTK2D3vDe3nAX7+TK++LbxiHMyJOXWufs8ACJx7iXH4 s5Tgf9j1diNERktWhqYDIExnwrcf4tumXTylzW1J5jBZz1F2lOkWJDBbIIuoSWy44C16 CYG8kbsWaJmtwZikJBokiia/zDpwyZr7khG+xqZGkk7ImZD9UM1tqlS8tPraGmEnIamM WHyA== 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=cy8BeFSyyxwCJlrN4qHH8AR4EXYnev9cLyrShu/UrkQ=; b=W9ihDxjV/nDgXfjm+Kbaaf4tq2hUhPXqRy7GdmcfUeq8JlHOOJHWin5MxE52iIPEjW 9PJ3hR6qZNPGA4+oWrmsn+V5f0+zeePQCeKHlRGa+TVhq8IGGn3joqI7xR9RFyGrskke c+zekes6gPnXH8QYcqMh4gfD5MttzyBWVwpvwWG+nWCZZNPb0y6JSDcRAkSpGmRLT+Io Lg7FWi2ZGjJAeTQyPyxIBZv9FMN0n3ZFcvWitgSHaeRlaiWl3zv6reK0Fgm6aWzf+qBS wvHguyO4zPlJh2kvi/oUhwKx+iBvluxO0OyVzZpa5+8XwMtl8MACB9idBhpFScT/HPhj VuMQ== X-Gm-Message-State: APjAAAXPYW1AZlFKYRFMgCb40paAMYxGAGycBtn9iqlATBTNbkDIBLjZ Gj+5jwfV/M7a+L9xN6zjzso= X-Received: by 2002:adf:ec44:: with SMTP id w4mr14678602wrn.251.1569078763876; Sat, 21 Sep 2019 08:12:43 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133CE0B0028BAA8C744A6F562.dip0.t-ipconnect.de. [2003:f1:33ce:b00:28ba:a8c7:44a6:f562]) by smtp.googlemail.com with ESMTPSA id y186sm10712491wmb.41.2019.09.21.08.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2019 08:12:43 -0700 (PDT) From: Martin Blumenstingl To: narmstrong@baylibre.com, jbrunet@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, khilman@baylibre.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Martin Blumenstingl Subject: [PATCH 0/5] provide the XTAL clock via OF on Meson8/8b/8m2 Date: Sat, 21 Sep 2019 17:12:18 +0200 Message-Id: <20190921151223.768842-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.23.0 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 So far the HHI clock controller has been providing the XTAL clock on Amlogic Meson8/Meson8b/Meson8m2 SoCs. This is not correct because the XTAL is actually a crystal on the boards and the SoC has a dedicated input for it. This updates the dt-bindings of the HHI clock controller and defines a fixed-clock in meson.dtsi (along with switching everything over to use this clock). The clock driver needs three updates to use this: - patch #2 uses clk_hw_set_parent in the CPU clock notifier. This drops the explicit reference to CLKID_XTAL while at the same time making the code much easier (thanks to Neil for providing this new method as part of the G12A CPU clock bringup!) - patch #3 ensures that the clock driver doesn't rely on it's internal XTAL clock while not losing support for older .dtbs that don't have the XTAL clock input yet - with patch #4 the clock controller's own XTAL clock is not registered anymore when a clock input is provided via OF This series is a functional no-op. It's main goal is to better represent how the actual hardware looks like. Martin Blumenstingl (5): dt-bindings: clock: meson8b: add the clock inputs clk: meson: meson8b: use clk_hw_set_parent in the CPU clock notifier clk: meson: meson8b: change references to the XTAL clock to use the name clk: meson: meson8b: don't register the XTAL clock when provided via OF ARM: dts: meson: provide the XTAL clock using a fixed-clock .../bindings/clock/amlogic,meson8b-clkc.txt | 5 + arch/arm/boot/dts/meson.dtsi | 7 ++ arch/arm/boot/dts/meson6.dtsi | 7 -- arch/arm/boot/dts/meson8.dtsi | 15 +-- arch/arm/boot/dts/meson8b-ec100.dts | 2 +- arch/arm/boot/dts/meson8b-mxq.dts | 2 +- arch/arm/boot/dts/meson8b-odroidc1.dts | 2 +- arch/arm/boot/dts/meson8b.dtsi | 15 +-- drivers/clk/meson/meson8b.c | 106 +++++++++--------- 9 files changed, 87 insertions(+), 74 deletions(-) -- 2.23.0