From patchwork Tue Dec 29 21:17:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 11992619 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 D125FC433E0 for ; Tue, 29 Dec 2020 21:19:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 9A34520727 for ; Tue, 29 Dec 2020 21:19:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A34520727 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=6uQpqaJtQZ9mjm6Ppe/3rt3Ou8OEBL4WiZFRHPS4l0w=; b=E87D0zUItUQmvmPLzsLBE3F8A FmKzZLAmbu+vIurRVg0ICs1GY+TDzcDD2Wk2QQwvaXYs6XjMgBoKNvyEyEZHMsKa4JXDREO2io8TH I8cQVLG6wO7rh/BwoGzojh8HCDkgIkaLtkmHkGJ5RzZBvkFHsfAg0D66XO/YJQ6fCJBvolKwtpvj4 jf9spB/cqZb4vFP6F/wFk76PpRPa0+eD3aQIrx4ZjdDbUCG9mwbtJLN5V+FBCoKiIbHHXGH93VssJ nJJ6DvUl+jHo0hb27aFns6fkIMNKznwxIM4AmY/z591Pnuy7HxPH8nRQLkGR95uZcHmKHRJmftRUq IY6gxB3rA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kuMNB-00008K-0p; Tue, 29 Dec 2020 21:17:41 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kuMN3-000061-UO; Tue, 29 Dec 2020 21:17:34 +0000 Received: by mail-ed1-x52a.google.com with SMTP id b73so13704513edf.13; Tue, 29 Dec 2020 13:17:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MCY+sEyyl2Oz9uQwE8NpC9+be8Ioq/uV7gHwSLiNbH0=; b=f+eyeRalfs43WfZhxzte0P9wdAJbqIrBdNFNwOlCDgkjW1m4kLLH+SoFGdSCL6OoEr ywoYandxbhdD14azgQVYgL1yya2IuVjaIGBk+CHttw7aYi8kqFKeQPgt7qvCcUPmejW+ JtzIIpIR59Hzg4kBlet2TkmDHXbGFKLW+JXT9UMWyKmTCFc2Oajm0IP6wpqCw/mMKZAG XsAxv7ioUMFo9+SPtxpeNcvXa89i8peBsGjrb0bj5W9MXrTaS8hlmgTYwWINrE/59c2t JMy1a9/9h+iIthPzlDKYb029qGIggCBTHQDBhnf/Ks8vGYigN8NVrZd0IuU4SJnUfjqW lzhw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=MCY+sEyyl2Oz9uQwE8NpC9+be8Ioq/uV7gHwSLiNbH0=; b=DfApLbww6LDi76q2Uu+l3bQH4iA9K3sYEOpz5kqMZcyMj8bucfRNZZLNqZGvt/WrLL Fs8U4eAMdE3HX8Loj8zkYDZHL349N96Awz2FkIQixt3/NOCg0YKRKcDjjzIV91/spL7v pzgU6+wDW4qu9sCiMxHFzDOBzL6oU8L3U5DrgyyIbE3jN/38ZNoAMkrWDZjxGNGJJyhc bJwV4qoAUNxmHXEJFF1ZRlFGGVgWralldbMKQwzvspWV1JIidRoZdV2fshPARzoQ+Wt0 XgyE3n7UKCNlYIP2w4KDavlpLIW5ID3+j8AQQol6pgQNFdLu5XhiIOFANcFCTyZZWOb+ yNqw== X-Gm-Message-State: AOAM53398gfVOSyHo7pgwR8FBuVdVG9eJ+GWj2JXpDixRgLZ7iPTAi+9 aHNGXZ5AzZ980Utle5V58Ag= X-Google-Smtp-Source: ABdhPJx5PQUATir9V+va+z/rawqMKGwQYY3cFZI+P49haleVVrctlZh1y5KmmRGz1g7wO3dH1RwnZg== X-Received: by 2002:a05:6402:b4d:: with SMTP id bx13mr48023724edb.93.1609276652699; Tue, 29 Dec 2020 13:17:32 -0800 (PST) Received: from localhost.localdomain ([188.24.159.61]) by smtp.gmail.com with ESMTPSA id u9sm37354553edd.54.2020.12.29.13.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Dec 2020 13:17:31 -0800 (PST) From: Cristian Ciocaltea To: Manivannan Sadhasivam , Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH v3 01/13] arm: dts: owl-s500: Add Clock Management Unit Date: Tue, 29 Dec 2020 23:17:16 +0200 Message-Id: X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201229_161733_989050_FFB0D7C9 X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add Clock Management Unit for Actions Semi S500 SoC. Signed-off-by: Cristian Ciocaltea Reviewed-by: Manivannan Sadhasivam Tested-by: Matheus Castello --- Changes in v3: - Added Reviewed-by from Mani arch/arm/boot/dts/owl-s500.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi index 1dbe4e8b38ac..5d5ad9db549b 100644 --- a/arch/arm/boot/dts/owl-s500.dtsi +++ b/arch/arm/boot/dts/owl-s500.dtsi @@ -5,6 +5,7 @@ * Copyright (c) 2016-2017 Andreas Färber */ +#include #include #include @@ -70,6 +71,12 @@ hosc: hosc { #clock-cells = <0>; }; + losc: losc { + compatible = "fixed-clock"; + clock-frequency = <32768>; + #clock-cells = <0>; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; @@ -169,6 +176,13 @@ uart6: serial@b012c000 { status = "disabled"; }; + cmu: clock-controller@b0160000 { + compatible = "actions,s500-cmu"; + reg = <0xb0160000 0x8000>; + clocks = <&hosc>, <&losc>; + #clock-cells = <1>; + }; + timer: timer@b0168000 { compatible = "actions,s500-timer"; reg = <0xb0168000 0x8000>;