From patchwork Tue Mar 7 13:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163601 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 882B8C678D4 for ; Tue, 7 Mar 2023 13:57:38 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NVdz8QFhWAHJuGo0uso2QKrBzMEdFTh2v2PHamTlozM=; b=Q8zG9LOXtm6t9W lXqsCRgdpJMkVBnVje0ZXpoDSpIWkS09qYyOQpNbzkOSrIQqJzbMDMGe59N9Vht4wRK4Utn7WOWh3 C0f0P7ih/Nr66tKgGPu+46orioMLc9RST2l1Eo4H8Svi0rhCAdHZEZm/CI+I+TAtUKdVbh6ZMJowc WvJa4MfVyRR3I1pCg4JRbQpPkufwgJvgEDYr24HA9aQPdlkpBADpXFZPW8DWT81FxC+Pmbk3rBYoD uBUCs6O+fAUhxZEqI30FkSzl0ag6BL31R64Q4uPxKekQjeVQbtrZcemKcjaAVFZW0hDLg8xQxQ3if 3n6fC+4KGZhTVluR0Etg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXnd-000YvV-FY; Tue, 07 Mar 2023 13:56:19 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXdD-000UZG-89 for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 13:45:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=nREQAJSdNkoyvj4wOgATgsxbgi jdI6CmCiUYZxNu903Qb5QKm/bVjzg1CEY90guNmzx8s8XtouoH6ib8Rr2iSGVYPP5yZuLIjgARwr9 2nV7NE18cF0IJEUC+ubOTlmz/wwiX8xPdchbxtkgP76Eqk9tcgSC7zmjsQ9XvI9vswqAbSb1gH3xx r5F9amirmjiD+UBqrMu3ndNguXwkTSQagD3KgWVLFxYbZeVqVhwy3GXSFuMCV4AxYrg1NQ0qDnU3G phlMr/RvRXPMlPHbnGz8LOo1yD7ee+fooGnGqwNDiuL2Ac5cOmBEvVtsT4PCa6+gOIhjLvuudDu2O QocWqxDw==; Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCv-00H3Dg-0Y for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:23 +0000 Received: by mail-wr1-x42f.google.com with SMTP id j2so12065944wrh.9 for ; Tue, 07 Mar 2023 05:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195099; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=e+X8X0Jsk0dqls3NMDn3fw9zUNxs/YgMK8bfjdJ7jyEvYcQbDTBQ4i5cPpRfRDrxY7 RX+dEMlZbo9uLbpYdNVajUpBfmKVrALP8e8Z1h5/clxNVXbNtf2/PlDVWN3dU5dKnBAe 139LXWmAOlv2d0G6EvVX731DYkeHYMK7IP1EEvDl4TDvR//Jvjvf2/TZzMlWLf84rRqa oQZ9b/enbGrF09dAhWrYRiB8+6zkWVaVkQICrWFcpJU8ryurGczzw/pd9+pmwDOH/oNh xAqOf3HEyG1RZV4AlbpDjtNGLawp/SjokH7iQLaK75z29ZAf1E72XB1c6R05GTG3UQB+ 4AoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195099; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=t8R34KHJLTSoory2cIlY2eNQxZZ5h5JXq7Ju1UWeyqPNPtqxVj1e1M2BGdkEa6mygP dLjAjaCdXOOTR/IBhTsFfepootWyjIllYVzw8lhpRNTPUCa5wy6w0S6eZjkrOusB07ze Uq8cK02GytyfIS+vftGaZBgznG/Gu8Sas1Czn4fjWK1LyccCc59SDn8/mfOwH1t/Dy8+ p1f/vsHu9641LscFRLawpjgmXpdKi/SEt//BmMKhKpmO3VMsUYjnCaU3UesPYHYyvA4H xP6HMKM3Imjv298hoP4kKL3W4mbnxwC/P/63jkLNhLf6uda1g0PxYIACqe2Yy6+hkk7c 8ykQ== X-Gm-Message-State: AO0yUKVhldq0dBj3LYgWHYywlCxNRd5RfxqOnUVjB7qFIbIYy7a3Yqfb +86SCzjXtHrPg0wQutP2d5URHQ== X-Google-Smtp-Source: AK7set+lz/CmJjmd5k5O2YqV5P10ZAu4CCpWuKjgWkEyawSRDfcsdbkTTVeJWMOckQoUNySBWyiXJg== X-Received: by 2002:adf:ee48:0:b0:2c9:b9bf:e21a with SMTP id w8-20020adfee48000000b002c9b9bfe21amr12804099wro.2.1678195098944; Tue, 07 Mar 2023 05:18:18 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:18 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:46 +0100 Subject: [PATCH v2 17/18] arm64: dts: mediatek: fix systimer properties MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-17-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1291; i=amergnat@baylibre.com; h=from:subject:message-id; bh=E0Rkd0GEdk/nHJRQV7wdWKOEfaqiyc4VUwtoIArZDWs=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmFO37mIpicQ7Ewsa6aUHcjrSr7sOFCTZQqXiVs GquIjR2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURT4XD/ 4/R7tjZdE7+Z/MhefTnf0HDdf4hPT2y9si0FcgfSJql9Pb/M50GDgqeSJRgo8f824+yCPeEMjB9quk b9ZnByxLJPCywhINCYqdD3OGtAClbKLIsHcxcvq2stjjuaQ9HNpmw+rnmkA1VMGS96ZQMKeByTd5Yy SJHVcAApoBLpc+cLHKL9sd2K8Un7pxTX8anvz3RLCXG01EegMmB4SM+hqjPZhntZoFTeV1GgD1x+w/ kw2RUMbcM8LwCW+ZFdWFsGUaa+8Blp+fghC48+Sv5MPze1qfnMlfJH/a1RWp5Dbv3CgunLGs4jkQ10 rpouVrXeE572TSN8+YKHiDM83dK/io3z7oakBJbb9CJy32SwG3oCbD5sMee5u155pOcQAupkgi9P5d II9+WqT3GvNKSzPAZtvM0O8iWNsyg7QI1v6N61UantDJfMoPRfM8AlEd6mRXtziDNY/1oQFg8Sz+nr eS5H6OO6tSD1tlmzKiqh+RcJBbTENZflL5GtJ0WDqIcN0/iuCe+eBGbpSp3jhmYnDiy2lJzZIihB2n K0zs9IwTMlVaWhYvRpqEwbQnA5PX9Lz8AmkwfSKCo2CgTOsGQB8VHtEw1UCmYHBRFK8Poa+v+VwTIU pHbvDP0Akr0NfRXg/NUnZ31ElAnlH9GUaKBikroX9+k21jLGmO4d0egmM++Q== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_131822_108241_D4E42F8B X-CRM114-Status: GOOD ( 12.53 ) 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 From: Amjad Ouled-Ameur MT8365 has a SYST timer (System Timer), therefore the compatible node should be "mediatek,mt6765-timer" instead of "mediatek,mt6795-systimer" (which corresponds to ARM/ARM64 System Timer). Plus, register range should be 0x100 instead of 0x10. Finally, interrupt polarity of systimer is LEVEL_HIGH. Fix the above properties accordingly. Signed-off-by: Amjad Ouled-Ameur Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index c3ea3cc97a47..959d8533c24c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -575,9 +575,9 @@ system_clk: dummy13m { }; systimer: timer@10017000 { - compatible = "mediatek,mt8365-systimer", "mediatek,mt6795-systimer"; - reg = <0 0x10017000 0 0x10>; - interrupts = ; + compatible = "mediatek,mt8365-systimer", "mediatek,mt6765-timer"; + reg = <0 0x10017000 0 0x100>; + interrupts = ; clocks = <&system_clk>; clock-names = "clk13m"; };