From patchwork Fri Nov 26 20:21:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12693775 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 645CCC433FE for ; Fri, 26 Nov 2021 20:24:01 +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: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:In-Reply-To:References: List-Owner; bh=KZlm0I8Ua2M/ygZsa9nzIkh8ABD42bqQlHgjUY74Aag=; b=T4OgKtXn2SjVsi W5cu5HesgceBNFRHq3pgH/KBlKpN7Syk8QhQlA4Vv+7n0+wuypkqP9nUV0v2bOcuro3HQTVwsdxze I2QrBWYUfB7zENf4t9TtZa3rReuxZT552beJtcozyfOuUYs07FhOa+SCSm2GI8MOUBS35jlAQrqcW +qUA8x+8aWHk6pzyIJDwmt6BJ6wTO49NPPuZFmZv6VSGnvjIITCJlB1iOp1+ipK+r9Zhc2KUwqfAx nwjRKD1lEf6/Iar6wLAD2CCaFtAUi/EcNNs0liyyJa70z3VOV/MzkhMWAku+2yZFNxLNnoMm43jNM mSH3959S4LobZkrDusqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqhjR-00BhDx-W9; Fri, 26 Nov 2021 20:22:06 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqhjO-00BhD3-I4 for linux-arm-kernel@lists.infradead.org; Fri, 26 Nov 2021 20:22:03 +0000 Received: by mail-wm1-x330.google.com with SMTP id p27-20020a05600c1d9b00b0033bf8532855so7511605wms.3 for ; Fri, 26 Nov 2021 12:22:01 -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:mime-version :content-transfer-encoding; bh=myHy6GLiOK3ibzQLkLpcI8h/6EY48s1TeorO1MCwIX4=; b=c4k3bRxnQpMARzx+IZLBccZsBgrqtmPRdRyKGaZen4az311dDPDxXzkto7esYUPQlM VgKP+nVfJpU9K+y+J7uMKpfzjSCMjJkoGnPX+F8gQ+iCTFbBt1GPoe22OyihK8JPssEi D/USbvUjFJEQNXHENhA8Q3pCViJcyPZ6bsDE+gN+p6TozhCvBCHJRweIFqDq1BP+jPp1 jbp5gfLBzaUgrEAgjB6Nu/O/eBcI/s70HVjA3UwBFgG0+PISZZs/dhcCRIHjpY90VqGi Dqp12hYAbFt+DcbtTQk+t04DQdh60nTHPn6wtqBbYdgiEW9eHU3kOQRgARcZdSwtM0R8 Uugg== 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:mime-version :content-transfer-encoding; bh=myHy6GLiOK3ibzQLkLpcI8h/6EY48s1TeorO1MCwIX4=; b=YURU1II8ZcfLDDol+Zi9AaD0Md784nqw7t18G3N02memGjDwFI4xR8Rfj+yubZcz/7 nxuvvecgM1HpByXOiUcxm3kXeAk9iFCCFVdM9NnzyVsS4idlD6dAQHJPICNmUZm62js6 FQZboDQugLiWtSl3DyPvjn6Oh64DwXtW3SmXAk4mKieq91Pzj/6xquv+OhWC36jsu+m+ j1iqGAxoQmG2Nk5Q5k10sI2P83CJ2dJ5ZjnRw7eRu8+aYnpcvmvh91adAKR7ldrbapJe +SeU58W0oJKGS5H7AbNJxp9FQ+lNWQdnq7j9iVr7EbZPnDo3lqrwIOlIPBbKZtPggQ3+ GGkQ== X-Gm-Message-State: AOAM5311tGY/UHb+WKDHA+F75Id10aqSIQpglFv77RQjZW8Or+D21GbN XHJ/6wicEcvQTxRLggD8qp0= X-Google-Smtp-Source: ABdhPJxXtG16uT6Js4XqYueslPcGYisW3DO1kwAsafgLw0RUODk+SqvwbGEgJg0ikAe615oY7HT2Jg== X-Received: by 2002:a05:600c:2052:: with SMTP id p18mr18782406wmg.3.1637958120861; Fri, 26 Nov 2021 12:22:00 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id l7sm8118383wry.86.2021.11.26.12.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 12:22:00 -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 0/5] Add timers for Mstar SoCs Date: Fri, 26 Nov 2021 21:21:38 +0100 Message-Id: <20211126202144.72936-1-romain.perier@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_122202_639736_4CD1AD0B X-CRM114-Status: GOOD ( 12.80 ) 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 patches series adds a new driver for the timers found in the Mstar MSC313e SoCs and newer. It adds a basic clocksource driver, the corresponding devicetree bindings and its documentation. Romain Perier (5): clocksource: Add MStar MSC313e timer support clocksource: msc313e: Add support for ssd20xd-based platforms dt-bindings: timer: Add Mstar MSC313e timer devicetree bindings documentation ARM: dts: mstar: Add timers device nodes ARM: dts: mstar: Switch to compatible "mstar,ssd20xd-timer" on ssd20xd .../bindings/timer/mstar,msc313e-timer.yaml | 48 ++++ MAINTAINERS | 1 + .../boot/dts/mstar-infinity2m-ssd20xd.dtsi | 18 ++ arch/arm/boot/dts/mstar-v7.dtsi | 20 ++ drivers/clocksource/Kconfig | 10 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-msc313e.c | 237 ++++++++++++++++++ 7 files changed, 335 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/mstar,msc313e-timer.yaml create mode 100644 drivers/clocksource/timer-msc313e.c