From patchwork Tue Aug 30 12:12:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 74976 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2116204qga; Tue, 30 Aug 2016 05:14:38 -0700 (PDT) X-Received: by 10.98.50.2 with SMTP id y2mr5665824pfy.138.1472559278925; Tue, 30 Aug 2016 05:14:38 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id q75si45048590pfi.216.2016.08.30.05.14.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2016 05:14:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1behvD-0004C3-3e; Tue, 30 Aug 2016 12:13:43 +0000 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1behuf-0003zK-Q6 for linux-arm-kernel@lists.infradead.org; Tue, 30 Aug 2016 12:13:11 +0000 Received: by mail-lf0-x229.google.com with SMTP id b199so12171029lfe.0 for ; Tue, 30 Aug 2016 05:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EnP/1IvHmMFADxOw1A//O6Iz8qMjeyjyfpBQyoOEDqY=; b=PO99qMUXEglHOY37rfHQ2ZSoB9yMVD/TY6l3Uxw46a/31xeC8K2sicnjNQOsXUYihv ZQVuHbZ9TYQso0FcGs/5+VvuubQ7jJq9pVluzfiq/oGAUWAuBz60iWPO/lC0muvjV0hB luVv3t4akhw4JwrY7cGS3jBa/YB2GvUprHpog= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EnP/1IvHmMFADxOw1A//O6Iz8qMjeyjyfpBQyoOEDqY=; b=e6g7QUn4ESbYVmyGKGLniWrSsaqVDyKOS+Im6SUHR6iWhA/T1c0pP44tA4TMC4Mbvd rQ9GTjeRmLmJ9dten7UOne9Y2vtmzfRuB7YevZbl7aEaSwg0hRbVOU9Zyio31+0CoT9O 6FpmD5wU0vRrQP0yF1jM47pmYXMda30fLpRDruEZl1ASJPvU2kb0LZ6sCjUM8hr/g7ms tsEA/fnmwKF2rHuIu31JvLTzcboWPco5PAJWgddews/9VkcgfMPJTVLwB/SBoRt7r163 dqpd7pNjswiOSoUNRY8VWgbKmabwvy4nNtkd/gLRqX821pe336ReESwkVIQMU5nAr+/w eU9w== X-Gm-Message-State: AE9vXwM776L1gpU4TLGnDj8peF2C+3ZqPfxd+YT7kNe8d5xN64286VlLti/3KuJIPO1AAq6v X-Received: by 10.25.38.207 with SMTP id m198mr1006726lfm.201.1472559166987; Tue, 30 Aug 2016 05:12:46 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id j198sm7504267lfg.18.2016.08.30.05.12.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2016 05:12:46 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: dts: Add the core module clocks to Integrator/AP Date: Tue, 30 Aug 2016 14:12:35 +0200 Message-Id: <1472559156-32148-3-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472559156-32148-1-git-send-email-linus.walleij@linaro.org> References: <1472559156-32148-1-git-send-email-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160830_051310_094193_3591075F X-CRM114-Status: GOOD ( 14.09 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:229 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Russell King , Arnd Bergmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org This adds the clocks on the core module to the Integrator/AP board: a 24MHz chrystal, and two special-purpose ICST525 dividers, one used to clock the CPU core and another auxilary oscillator. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/integratorap.dts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts index 726a3ac486e0..6f16d09dc5a4 100644 --- a/arch/arm/boot/dts/integratorap.dts +++ b/arch/arm/boot/dts/integratorap.dts @@ -19,7 +19,7 @@ bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk"; }; - /* 24 MHz chrystal on the core module */ + /* 24 MHz chrystal on the Integrator/AP development board */ xtal24mhz: xtal24mhz@24M { #clock-cells = <0>; compatible = "fixed-clock"; @@ -42,6 +42,33 @@ clocks = <&xtal24mhz>; }; + core-module@10000000 { + /* 24 MHz chrystal on the core module */ + cm24mhz: cm24mhz@24M { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <24000000>; + }; + + /* Oscillator on the core module, clocks the CPU core */ + cmosc: cmosc@24M { + compatible = "arm,syscon-icst525-integratorap-cm"; + #clock-cells = <0>; + lock-offset = <0x14>; + vco-offset = <0x08>; + clocks = <&cm24mhz>; + }; + + /* Auxilary oscillator on the core module, 32.369MHz at boot */ + auxosc: auxosc@24M { + compatible = "arm,syscon-icst525"; + #clock-cells = <0>; + lock-offset = <0x14>; + vco-offset = <0x1c>; + clocks = <&cm24mhz>; + }; + }; + syscon { compatible = "arm,integrator-ap-syscon", "syscon"; reg = <0x11000000 0x100>;