From patchwork Sun Dec 12 18:19:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12695810 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 274B3C433EF for ; Sun, 12 Dec 2021 18:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GsB/dZInZKvVCpEoJ0z2/m6Yy/GqkZ8r1JTeP2zQapQ=; b=zY973U+XvP+94w h009pJZKal1FTTz7kbJkCasvamgweNYQ+qzCE6Jrx6Mf2/vsuFnKq0AS2rXX8l2gob/1RyJ1xz+l5 ta6CUtI8iUqZITSQaVg+MErV8U7X/LOMVsCNZRPL18S3epv4aeHnaifVvxUWvQ2e6T30omFZJz1SJ AmeffhqIH8yv/WemGMOhmKrFyrddN5mYswSG+As6J9n1nOTduh9xgYHF2ANO5ITwXbO7MjXZwCdyl 2WoRHBXWkc2dFDuEVFhkPcmyUu5DWLj86KkncPl7o+X7fnEHBUrlHPBS5XuBHITXWvTQna9Rv45Bn T/eDwyuXErtTVsvTsqyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwTSV-006vyo-13; Sun, 12 Dec 2021 18:20:27 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwTRM-006vZU-CG for linux-arm-kernel@lists.infradead.org; Sun, 12 Dec 2021 18:19:17 +0000 Received: by mail-wr1-x42b.google.com with SMTP id a18so23549937wrn.6 for ; Sun, 12 Dec 2021 10:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nGnrWr0NF5OLbuEiP1aIoxLo7fEMlnWLFbea+5BaBr8=; b=eaVe1QK1XhzqumJqDuFZ34lO907+y5E4M/gufqJPI6YkEOMlQ+WBbDVkbrbTxzeXej g9rZ5L6qM/eXeV9/gG9kg57h8yoW0CxKWoARMmXg4Bkvl85/cVBDL7vbw97YU2M1n2mL X427RMVcvHrSTqgFptMbqbGjynR3CQQwl5EuiBWspLGH4G2/Z8gqs2a2oVrEYCJR46OG FZIO1Uks/Vqz5Moe89hwGfppUBh3yP8ljOwi+yLILgn76gGkr6WX2e6uoFHtf+PiWLyj 1IFxX/Y08yvXJ4tmXmo60cE8JJKUX4xlHVl6mUoGWZB/Yv1THgYv3TpPm/WXC5qdCEM7 Pugg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nGnrWr0NF5OLbuEiP1aIoxLo7fEMlnWLFbea+5BaBr8=; b=O2mskNucSGFmKe9rmjma9dQbnl27fVjHkl5gHh2+eDNUpfLH7wxUivvfY9GGQg9zCo KqHLuFG/d4crZ4gL7zMuCxD3Fcqpf0R6dwNj8hT4rFwvx36QZzCjAAFzfgA07+W/WepR Y6BUns9yn7ORSAc+x05+hnhdUxiKotkWMk8Q/djUg8MykjnRtxFQsXCKoW8qjf+IoFOr yJMSlgyidxqmM73tUKs1cruPY6nyLvUacQBia33R+2D/16FTxcHSn8aCVCzhnwGg3aWy 08bhTe3hRCySTr8SBoSOYGrjpdNuHln/WIU4BLfNvAgc9Lsa3Cu0X//q2+sw0MbFXZA+ PhYA== X-Gm-Message-State: AOAM530kSajwPOlsiKmNwNfgtiFkMYw7iLaLcXxmWxx6vhj8x3iXSKKv 0xpmZ92t4fyvWkPrL3zx4XQ= X-Google-Smtp-Source: ABdhPJyn8pA8sPgkLFSoPF9DUCjBtKTIOpXF3rhgdgPJFGZl5kYFWa6rYmv/W+xv3ZFgjZS+DGP4hA== X-Received: by 2002:a05:6000:120a:: with SMTP id e10mr27009896wrx.156.1639333154821; Sun, 12 Dec 2021 10:19:14 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id m20sm4933803wmq.11.2021.12.12.10.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Dec 2021 10:19:14 -0800 (PST) From: Romain Perier To: Daniel Lezcano , Thomas Gleixner , Daniel Palmer , Romain Perier , Rob Herring , Russell King Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] ARM: dts: mstar: Switch to compatible "sstar, ssd20xd-timer" on infinity2m Date: Sun, 12 Dec 2021 19:19:06 +0100 Message-Id: <20211212181906.94062-7-romain.perier@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211212181906.94062-1-romain.perier@gmail.com> References: <20211212181906.94062-1-romain.perier@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211212_101916_445137_8882660F X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This defines the real oscillators as input of timer1 and timer2 and switch to "sstar,ssd20xd-timer". Signed-off-by: Romain Perier --- arch/arm/boot/dts/mstar-infinity2m.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity2m.dtsi b/arch/arm/boot/dts/mstar-infinity2m.dtsi index 6d4d1d224e96..080a18b9effb 100644 --- a/arch/arm/boot/dts/mstar-infinity2m.dtsi +++ b/arch/arm/boot/dts/mstar-infinity2m.dtsi @@ -6,6 +6,14 @@ #include "mstar-infinity.dtsi" +/ { + clk_timer: timer_clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <432000000>; + }; +}; + &cpus { cpu1: cpu@1 { device_type = "cpu"; @@ -20,3 +28,13 @@ smpctrl: smpctrl@204000 { status = "disabled"; }; }; + +&timer1 { + compatible = "sstar,ssd20xd-timer"; + clocks = <&clk_timer>; +}; + +&timer2 { + compatible = "sstar,ssd20xd-timer"; + clocks = <&clk_timer>; +};