Message ID | 20230419181309.338354-1-cristian.ciocaltea@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp599708vqo; Wed, 19 Apr 2023 11:55:39 -0700 (PDT) X-Google-Smtp-Source: AKy350a+uoUay3JZbltFyVX0TCKt3Ac81LWhk3S8KCjlbNqx9QAdMfEb6gNOuldk/1TnC9GEXPqR X-Received: by 2002:a05:6a20:e194:b0:de:526b:f292 with SMTP id ks20-20020a056a20e19400b000de526bf292mr4430548pzb.19.1681930539410; Wed, 19 Apr 2023 11:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681930539; cv=none; d=google.com; s=arc-20160816; b=0bmYo5MOhYvzd+yo0o/ItPrk8cMtmIk67q3F1YqisOniGjER3wJqU6Q9IddGKCQv+U UqjzxyLzEmmvDawZd/WdI78CJ9LDst2VNgpbTG6SFZhPfmZ4tA1EoOo/Yp5qQvhxRCdv baY9EPCkZTRsjkXsdj8U/iTbsEii3KFU8PZ9Eo0+qWKlca3GnHKkPPxGBMVWM+qJ0AyL undG45zDlYyMJikVpqutbUmnwu8KtnZqjM7uK1cqIPybXhyoxlUr9SckW8onyLo9JSn7 P9gjiZZlByvUkt3O1mNTOW+0qbuGizOEbWc9L53XBJP2d/Ks70g+a2SAVBmHf7CJF1QZ PIlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nVmQtgZEVTVOhZ65Uhf1hOBQRfZxmXVLShEW9BKr6U4=; b=rHiPhxsTOatveG74/5bfg0e5jqipzwjZO0bTZNAr1ubuHAHwpVhn5gYFp5mpD6evER yPNXFgVNnlBym+ua9Gpyam3BhsOJzrVivoicXa1P0UXhKb/laE91x3kzLpkwr7LDZu4j o6ez2EUPrJg8y6sidi/H+3AS7X0EZMcGI0ujDH6FVNc4tID9WHd7exv+gQpH+Nt/wMc1 qqJBt4TJYAtnHNh4jVnvp8Ply4VHfMoHUFthfMCDO4vc5xd3ThQTI6eXv0NQwNPsU37M 7w3onogCOtmkwFlRQHNms8ox1oIfSOBCtHtlmjr4GMksahaa7A2jlGGXAeLLRoZbZoUG vgww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="f4q/WG/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a620406000000b0063d28eb37a8si6181123pfe.402.2023.04.19.11.55.26; Wed, 19 Apr 2023 11:55:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="f4q/WG/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233518AbjDSSNU (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Wed, 19 Apr 2023 14:13:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjDSSNS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Apr 2023 14:13:18 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C12CE53; Wed, 19 Apr 2023 11:13:15 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id C03436603252; Wed, 19 Apr 2023 19:13:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681927993; bh=5wpEqApFj1eBs4XebojD3UFFhW8LqZtfNsukti4eYVw=; h=From:To:Cc:Subject:Date:From; b=f4q/WG/Xw2/G/I+j2N7iQoS3HKjpqf7X1jlqefn7/IXVL6bnt30k0+o9D8gN/CW0w xSTD9XtpZ2G1vE2Jdyh+5H2KXEE5e2yfEF+3VGnEyP+sH3CR5gzdGaYFLBK+hMDZCP KkCGSw5L8qSy00WRUCahRTGilVjBs2XqjXKox7S/D87TXxFttXwWqS8bxv1uYkmAQx ys9+r+Q8CUVXa8pEZWuroYPIifiIGwbQFx5OUfhXcKb99UtvpUEUkbzjS0+cdYmlj/ xQWBmlVMg500CETIe3uF1ufZqD+nXkU4tB95pLJUYwpyRcny95cT2uTLZ7rHzyYJg1 +v1wWqAvTHeOQ== From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Heiko Stuebner <heiko@sntech.de>, Sebastian Reichel <sebastian.reichel@collabora.com>, Sugar Zhang <sugar.zhang@rock-chips.com>, Shreeya Patel <shreeya.patel@collabora.com>, Kever Yang <kever.yang@rock-chips.com>, Johan Jonker <jbx6244@gmail.com> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, kernel@collabora.com Subject: [PATCH v3 0/3] Enable rk3588 timer support Date: Wed, 19 Apr 2023 21:13:06 +0300 Message-Id: <20230419181309.338354-1-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763631997284593942?= X-GMAIL-MSGID: =?utf-8?q?1763631997284593942?= |
Series | Enable rk3588 timer support | |
Message
Cristian Ciocaltea
April 19, 2023, 6:13 p.m. UTC
This patchset enables Rockchip RK3588/RK3588S SoC timer support. While here, it also handles a minor DT binding issue related to RK3288. Changes in v3: - Updated commit description in patch 1, per Krzysztof's review - Added Acked-by tag from Krzysztof in patch 2 - v2: https://lore.kernel.org/lkml/20230418120624.284551-1-cristian.ciocaltea@collabora.com/ Changes in v2: - Added Reviewed-by tag from Heiko in patches 1 & 2 - Update patch 3 according to Johan's review - v1: https://lore.kernel.org/lkml/20230418095344.274025-1-cristian.ciocaltea@collabora.com/ Cristian Ciocaltea (3): dt-bindings: timer: rockchip: Drop superfluous rk3288 compatible dt-bindings: timer: rockchip: Add rk3588 compatible arm64: dts: rockchip: Add rk3588 timer .../devicetree/bindings/timer/rockchip,rk-timer.yaml | 2 +- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
Comments
Hello, On Wed, Apr 19, 2023 at 6:13 PM Cristian Ciocaltea <cristian.ciocaltea@collabora.com> wrote: > This patchset enables Rockchip RK3588/RK3588S SoC timer support. > While here, it also handles a minor DT binding issue related to RK3288. I tested this on a QuartzPro64 dev board, I applied your series top of my tree: Collabora's rk3588 + some DT patches to add support for the qp64 board. Here is the output from the commands you told me to try: bash-5.1# grep rk_timer /sys/bus/clockevents/devices/*/current_device /sys/bus/clockevents/devices/broadcast/current_device:rk_timer bash-5.1# grep -B3 -A14 'Device: rk_timer' /proc/timer_list Tick Device: mode: 1 Broadcast device Clock Event Device: rk_timer max_delta_ns: 178956969070 min_delta_ns: 1000 mult: 51539608 shift: 31 mode: 3 next_event: 150944000000 nsecs set_next_event: rk_timer_set_next_event shutdown: rk_timer_shutdown periodic: rk_timer_set_periodic event_handler: tick_handle_oneshot_broadcast retries: 0 tick_broadcast_mask: ff bash-5.1# head -1 /proc/interrupts ; grep rk_timer /proc/interrupts; sleep 10; grep rk_timer /proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 25: 742 210 52 49 2197 1640 1089 2341 GICv3 321 Level rk_timer 25: 754 222 52 49 2252 1727 1146 2404 GICv3 321 Level rk_timer So it looks like this is working. Thanks for your work. You can add my: Tested-by: Vincent Legoll <vincent.legoll@gmail.com> Regards
On 4/22/23 16:17, Vincent Legoll wrote: > Hello, > > On Wed, Apr 19, 2023 at 6:13 PM Cristian Ciocaltea > <cristian.ciocaltea@collabora.com> wrote: >> This patchset enables Rockchip RK3588/RK3588S SoC timer support. >> While here, it also handles a minor DT binding issue related to RK3288. > > I tested this on a QuartzPro64 dev board, I applied your series top of my tree: > Collabora's rk3588 + some DT patches to add support for the qp64 board. > > Here is the output from the commands you told me to try: > > bash-5.1# grep rk_timer /sys/bus/clockevents/devices/*/current_device > /sys/bus/clockevents/devices/broadcast/current_device:rk_timer > > bash-5.1# grep -B3 -A14 'Device: rk_timer' /proc/timer_list > > Tick Device: mode: 1 > Broadcast device > Clock Event Device: rk_timer > max_delta_ns: 178956969070 > min_delta_ns: 1000 > mult: 51539608 > shift: 31 > mode: 3 > next_event: 150944000000 nsecs > set_next_event: rk_timer_set_next_event > shutdown: rk_timer_shutdown > periodic: rk_timer_set_periodic > event_handler: tick_handle_oneshot_broadcast > > retries: 0 > > tick_broadcast_mask: ff > > bash-5.1# head -1 /proc/interrupts ; grep rk_timer /proc/interrupts; > sleep 10; grep rk_timer /proc/interrupts > CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 > CPU6 CPU7 > 25: 742 210 52 49 2197 1640 > 1089 2341 GICv3 321 Level rk_timer > 25: 754 222 52 49 2252 1727 > 1146 2404 GICv3 321 Level rk_timer > > So it looks like this is working. > > Thanks for your work. > > You can add my: > > Tested-by: Vincent Legoll <vincent.legoll@gmail.com> Thanks for taking the time to test this! Regards, Cristian
Hi,
On Sat, Apr 22, 2023 at 3:15 PM Cristian Ciocaltea
<cristian.ciocaltea@collabora.com> wrote:
> Thanks for taking the time to test this!
You did the work, I try to help...
BTW, I'll test the PWM fan patch (ported to QP64 board) iff I can find
a fan with the same connector...
Regards
On Wed, 19 Apr 2023 21:13:06 +0300, Cristian Ciocaltea wrote: > This patchset enables Rockchip RK3588/RK3588S SoC timer support. > While here, it also handles a minor DT binding issue related to RK3288. > > Changes in v3: > - Updated commit description in patch 1, per Krzysztof's review > - Added Acked-by tag from Krzysztof in patch 2 > - v2: https://lore.kernel.org/lkml/20230418120624.284551-1-cristian.ciocaltea@collabora.com/ > > [...] Applied, thanks! [3/3] arm64: dts: rockchip: Add rk3588 timer commit: 9558529472d72a79ee6cd02da6c4439ec12a63e9 [will be rebased on top of 6.4-rc1] Best regards,