From patchwork Fri Nov 26 20:21:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12693780 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 EDD8CC433FE for ; Fri, 26 Nov 2021 20:24:52 +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=04E2K0tyaI4xlFgkFebUr4COYz1dfG9PqGOAVjbWuNg=; b=G2xAQFK9Z17QjF s7M/N96J5atwb6TXhQfKgajmkCqzFPQPF9x7KQ8yZAatMF1jB0e8pZGKTVHohJ3vwQv+RPYa9pwGJ JdstlB/Ansaqrri8PBR2SiJ86s3iiODbkeolH102t53hCNE8YKotxu7ZP3iCMb2lO8TzbOgYhr5Yf 6lLEMYHHs8ucELruBnp8x1NbRqdz+1xcSLuK5NrgMD38YF/fUbvXi+jgMzfA2kfF3vEJ6Cs6chQDS 9ORJXoApXLqUmxawjfTJhaidObdtzwb9NMK/Xcdx1hGHNhViCamjzjr4X0cXZddB8l9S40SJg7f8m WQ8GmG22kqM2U/KNoiGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqhkg-00Bhaa-Ri; Fri, 26 Nov 2021 20:23:23 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqhjV-00BhEg-NI for linux-arm-kernel@lists.infradead.org; Fri, 26 Nov 2021 20:22:10 +0000 Received: by mail-wr1-x42e.google.com with SMTP id a9so20971482wrr.8 for ; Fri, 26 Nov 2021 12:22:07 -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=/bjLeLE8NisM6I6x1ix9MSyRmnprV2Uww+hlJ5LbrFk=; b=jAea0yatGm2kjrF5pO/TRDoDEIdz9mmVwiuKkzv5K1FHSXMraphJ2xs3Zk9umxV6tY 7oTuIH/SkGA69zCglBihqdSrdmEb+X83lcl/g2edGvCidp0ryd/Sdxfysk/Yu4GdvMbY etkaRn2JvNAszHS6/myD4fDxFtgm3MAhWyLxa0Wf0NDTxqNba4enQfvsoPONclR2tcEo Vegs403IjyZhp1nO6bO0G1J7Re4eB0q17RjckEKzaSzwMgM2rMmLCIzpPu4fYnfJXofY sp6KKcDHa/TgOxr5NCXVPiiAVZYxryv+qsyP5UxKQ++nKcI0xmOXVt0cXWNfH1KlGsZD pzzg== 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=/bjLeLE8NisM6I6x1ix9MSyRmnprV2Uww+hlJ5LbrFk=; b=r+EZxTGyGw5ReOK324mIZLIWVZtW1Qua3lsBzUIX1ZPPoj6Mpue69TxQpeVvwowMmW 1FCvL7r43o0hZoeSgtQImgMlCU9YD/+b1sHF9jIttrgaMo4Mlcg/U//VfdsJZEjyr/qF 5hcX7SgORibzLvs8wFKqVG/YuZlYo711RpgFMauLnZsw8ddot2GHk6KrOfB6/zr7K5Zu vIWkw55+AtByDuEH8o77jQz6AZXU6ki0OkJqJMe3TgCUcitnnqPuRt/1PMkMpHafZTBj 6PFWWnmxYSJH70n31BT9UKvNZeKUhF4BXcU5CGGCeYr9ZL37J1UPxrt9LkOuEzLinh3u ISew== X-Gm-Message-State: AOAM531DGN5P1m94JDz9x/h63i611bxNwJT4Ja1wJbk11j7bp3cFOQL2 F/NpYt14EwrHt9Tp5epivVA= X-Google-Smtp-Source: ABdhPJwkMeFhdNvv6zrQBQAJpIm1bhwUMJDtlNZjSQHYx7AO6OXvKEqLvLWtoZ+ZErqWeVYTr8bBWA== X-Received: by 2002:adf:b34f:: with SMTP id k15mr17056010wrd.125.1637958126248; Fri, 26 Nov 2021 12:22:06 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id u23sm6980262wru.21.2021.11.26.12.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 12:22:05 -0800 (PST) From: Romain Perier To: Daniel Lezcano , Thomas Gleixner , Daniel Palmer , Romain Perier , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ARM: dts: mstar: Switch to compatible "mstar, ssd20xd-timer" on ssd20xd Date: Fri, 26 Nov 2021 21:21:44 +0100 Message-Id: <20211126202144.72936-7-romain.perier@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211126202144.72936-1-romain.perier@gmail.com> References: <20211126202144.72936-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-20211126_122209_787972_9DC62C8A X-CRM114-Status: GOOD ( 11.57 ) 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 "mstar,ssd20xd-timer". Signed-off-by: Romain Perier --- .../arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi index 6f067da61ba3..6ff1f02e00a0 100644 --- a/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi +++ b/arch/arm/boot/dts/mstar-infinity2m-ssd20xd.dtsi @@ -6,6 +6,14 @@ #include "mstar-infinity2m.dtsi" +/ { + xtal_timer: timer_xtal { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <432000000>; + }; +}; + &gpio { compatible = "sstar,ssd20xd-gpio"; status = "okay"; @@ -15,3 +23,13 @@ &smpctrl { compatible = "sstar,ssd201-smpctrl", "mstar,smpctrl"; status = "okay"; }; + +&timer1 { + compatible = "mstar,ssd20xd-timer"; + clocks = <&xtal_timer>; +}; + +&timer2 { + compatible = "mstar,ssd20xd-timer"; + clocks = <&xtal_timer>; +};