From patchwork Fri Dec 17 19:57:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12696728 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 28EECC433EF for ; Fri, 17 Dec 2021 20:00:06 +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=a+H5/d+QmXY+n8a+bfkObqC3bu6YuawwjCYRr/CVEVk=; b=XzRaHEilsh+56G Z9oz6YmFLdKxjRS6OeWuF+0r9yuAJe6/n1efZsOkALJZ7geqDedWyFq1M8ehCNa1epOuQNoAvq5EA halp2ODSfuK8wwpvOUKR0smBVEIBvw1oIP/RG178tHifV9yeIlkdypE9zGZIMkMeLlxyCWUvX0Nne RGQ7o+SATMMGH/rE2ii4Q3f9+LbuhF0jX1xTGo34y3bnWH8OKogxvUswtF0tMBXftJ4Y2lsXkqX+t 5S6i1u+gNQLRnyWL9GlOrsQN/TUHAMurPQH4EUSqz1BhHi1kUOSjSWvW4OMJhn3ZRbZvk/NWRCLFr pa6chQkY0f+/Mg/4P8vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myJNN-00CByv-Rm; Fri, 17 Dec 2021 19:58:46 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myJMQ-00CBhT-QZ for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 19:57:48 +0000 Received: by mail-wr1-x42c.google.com with SMTP id t18so6039314wrg.11 for ; Fri, 17 Dec 2021 11:57:46 -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=pdysGXdTy+3TZBw7R9cw+LisV1Ndm6W0415d+TGMhCY=; b=pxeagsDGNrQVitn44DRzQfGy8d+GGjGuKOTiIAMdIHeOrYgHIcpNBQg4F0wK5FTdL8 3Ae6wxj6PfDehFJrQ6kzOxVYC/0PIoUeRPU8QpCUGND7FawfV7/oxPwUVHBvgnUwLn+q d3CC0s6Jmp0k0ndPYoosFWXklvQIDUeaW0T7ZPHSiTEl3Nm2ANK/+emk+yqjuHoB6kHK VBGx8bw4g+ROTudwT2OKxuQ4Iv6+wDvJSIepjlNRc9Mp9sF5pnPJ/L66ob7ZL7Cz5VP/ BsPBXD6MCQ2DBjeX/AytWi3Iu/qdijQVBZlZouMAVx0/oMdPVyXFfawugm+JJGV2wDJz YynA== 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=pdysGXdTy+3TZBw7R9cw+LisV1Ndm6W0415d+TGMhCY=; b=DLydyDxeYtDfd3npU8C3zH6Xz5mjlsSsBjCXal3u6myrisorGqF9Sy9+3XuH9bAXs1 HG2ip2JF7recBym7iCbYJykDW3uvfLxmC7AgM7jPhXvluaecc5aJG2o8XJcmYSSESvJX kQqLFVscGtnO7BzalP0/KhXNB1jhSYDFpr+Wsylg523GV/oIGZloGr/FkNc0j/VnDp6K Dnk64DWwLev1bE+JvFBYmtFd1HpWigMnh/odzIFLZ7F9xiwfA9sZuSoIosvlarIHZbRp Hin5muay5jcLr5oAj6rewNY0th0IsxrWO+epEPqmHN2qJYVmJipuY9gKjQ0ycK44TJqj HyTg== X-Gm-Message-State: AOAM532i26H1eQtYPf1l3zmOyrnZPDL2hjfrpyykAO70UWeY97nUR6mn 0dRcWQmOrK+v5PgAUkuimU8= X-Google-Smtp-Source: ABdhPJwYyBxcJ045RgxyVdQRDDQgg/UGebYXwCxLP6/MWl/YtWWo/VehH1bzR3fhgk0gmpvCasNKUw== X-Received: by 2002:adf:efc6:: with SMTP id i6mr3689981wrp.428.1639771065406; Fri, 17 Dec 2021 11:57:45 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id y15sm11667631wry.72.2021.12.17.11.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 11:57:45 -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 v3 6/6] ARM: dts: mstar: Switch to compatible "sstar, ssd20xd-timer" on infinity2m Date: Fri, 17 Dec 2021 20:57:27 +0100 Message-Id: <20211217195727.8955-7-romain.perier@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211217195727.8955-1-romain.perier@gmail.com> References: <20211217195727.8955-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-20211217_115746_895931_C0DB657D X-CRM114-Status: GOOD ( 11.25 ) 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>; +};