From patchwork Tue Aug 29 20:37:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 718769 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D125C83F12 for ; Tue, 29 Aug 2023 20:39:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239005AbjH2Uic (ORCPT ); Tue, 29 Aug 2023 16:38:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240490AbjH2Ui1 (ORCPT ); Tue, 29 Aug 2023 16:38:27 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D69CC3; Tue, 29 Aug 2023 13:38:23 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99cdb0fd093so638513966b.1; Tue, 29 Aug 2023 13:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693341501; x=1693946301; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R9DunujICwW+FdyG9ifMFQMXRh/n/3eNMexEB6m+XBc=; b=KqdTmlRbTTDDMWiKdgApOgOI4Po/+Kk+Usnx42GjJrLg0XJM2pCr7vfqH4jvu7jT5x Sul8WIfCYJFwJ28oQK2kAxQP9TlfnBoFbjLBlLWiZSBCYb8bE+Bk63RrhV3gwAWn5jBw 1K398ttnewO+FvFQoFhVE6cLR4dbd2BnguoeDXaw9Nd0IW6S/CrZPyu50h+TQmRRoyhv 1nsAYCBGI1rHIueM5ReabF5U+jJpDU4Z4YSeeUkRoX1vwPKjK/x3O12rxPKi7mlAxIj6 +HKnLjyrkzMJuTiTISJScG1u+hjdhgP4VSmvPB0CF/qoO1eQ8gpNtjIwcIL5NDX3J9Uf DwVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693341501; x=1693946301; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R9DunujICwW+FdyG9ifMFQMXRh/n/3eNMexEB6m+XBc=; b=Gl0qDW+Td/Gepy5Tb+vrF0X2Nhm3r3S7us8vnNpNtOkjLLiQRGOHTKIp9njmHx08b0 tLZAIibmAlpO8KGLGdVwzEH0qSZGyUyeF4LsoNtwNWmKe/MeBKJoyWY8IzQkTywYpdsm 0aBRNzfE+Qa9oclw//1er2QZ29XQbSTQ/7TuxC8jpvKJ1tA0F8I7vQsrl5y0m6l3SrD1 ZK1beWnhzxbsrvzi6yDuzZga6b46XHx+DDGJvdEV2Eesb/8aXCcPRMhs4AlDTRe8cqu/ 3s5Oj6h1vJBmjBkSUaYVxO3I/eITnBBd+F9AO/0gvsZgFrpY56U5OSZV2OwmLLQtlKvH YuSg== X-Gm-Message-State: AOJu0YyJOIffyI9ZfAbptGQgntfKJOaCCGDNnRKShrmw5wX76Uucfx5o 3UiCYa4hs2LoGfIjmKVOvQ== X-Google-Smtp-Source: AGHT+IGzovbuvRi/NoA+BSlRDFpWfGddCHO/7MqVFe2h+n0fapdIraX3TlcPIRaGWebC8sszbwVGXQ== X-Received: by 2002:a17:907:8b8c:b0:99b:de31:6666 with SMTP id tb12-20020a1709078b8c00b0099bde316666mr96013ejc.22.1693341501628; Tue, 29 Aug 2023 13:38:21 -0700 (PDT) Received: from U4.lan ([2001:9e8:b958:3410:8e0c:ed68:cd6c:7cb8]) by smtp.gmail.com with ESMTPSA id f18-20020a170906825200b0099364d9f0e9sm6301908ejx.102.2023.08.29.13.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 13:38:21 -0700 (PDT) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Jonker , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 1/5] ARM: dts: rockchip: Fix i2c0 register address for RK3128 Date: Tue, 29 Aug 2023 22:37:21 +0200 Message-ID: <20230829203721.281455-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230829203721.281455-4-knaerzche@gmail.com> References: <20230829203721.281455-4-knaerzche@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The register address for i2c0 is missing a 0x to mark it as hex. Fixes: a0201bff6259 ("ARM: dts: rockchip: add rk3128 soc dtsi") Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index b63bd4ad3143..2e345097b9bd 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -426,7 +426,7 @@ saradc: saradc@2006c000 { i2c0: i2c@20072000 { compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; - reg = <20072000 0x1000>; + reg = <0x20072000 0x1000>; interrupts = ; clock-names = "i2c"; clocks = <&cru PCLK_I2C0>; From patchwork Tue Aug 29 20:37:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 718403 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2AFFC83F12 for ; Tue, 29 Aug 2023 20:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240483AbjH2UjF (ORCPT ); Tue, 29 Aug 2023 16:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240519AbjH2Uin (ORCPT ); Tue, 29 Aug 2023 16:38:43 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E54521BC; Tue, 29 Aug 2023 13:38:40 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bcb50e194dso74292261fa.3; Tue, 29 Aug 2023 13:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693341519; x=1693946319; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=v9WQxc48AN8oLpfzoyxvnK9hzzun80wFf5I/eOz65VI=; b=fvpkuEEC6IrLEgZdeBZK/YTkPvAvqGGJlURdWvPRpKF8BlcS0I1Vd6qgUE77n4yTgL xzGzE3Umt5MrTSZqvYQrfdsrQ2qmwR8bL5yZaO5v5Q8PVau1++TEn27WfOMOER95NE2j FCa6UYmHMvI+daeAzhrRKaHp5N6lUsVJ4PAYuDqZ8wtJ44VNSfB5id7ZIEbMGw6L75RX hdPBav7OZRZbNMy2/463yzJX1yRlQgTU4hcWykDc//uxsI0ruXEp2jK2UUEGkR70yAG3 ErhjKy6YWv3izeMto1hArhHMVHZE/F9fxAPSYiwrBvDvG3NgBZT60NKfSZBULtuHq4A4 ok+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693341519; x=1693946319; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v9WQxc48AN8oLpfzoyxvnK9hzzun80wFf5I/eOz65VI=; b=lJgJb9q7HaQz61JWvf2XhLuBaU6fL0iQtHxG3hlrGE17Znqlr6IvvSc1jM43nNyIeJ JzKY26gEDCRQbJHK7exFzDbdtH+YnVJLUiGeltQK3eS6nKUS2RA0nR7FbTEoplKbLqnZ V0uqqd2/9TZfkGTVZks0K38HwnsJWJcXSZmjbg0Ei+mDOWyXBB7V66C2U9Neu74NHBD2 DzKm2zqZGzKhpTpOjxsFq95ftIClY6QWXCGA9T0WHXcn6vaApqIDpsgw0XI35AuHqN2W j4XJSn8vjTib7Vlfel0AaSBBQG2NcNDDFQPrgUaoJvQxQSUyUJ7OKdyV5uAJfBfeWZhC iF0Q== X-Gm-Message-State: AOJu0YxbfVXZzMJUZ6k5xdy418lxOEgpbOp+jYn9kYoBJUd/p5DfBQd0 +5LcrpVWbT9xsUZGfczbdxKdRKpWxw== X-Google-Smtp-Source: AGHT+IFvHbLjZWO2QDfV4zRe3bFI0A7Ke57jlNuL4yav8b3ZtuWVmbXJa6D/bd6/rC9RRmbAKn1NjQ== X-Received: by 2002:a2e:960b:0:b0:2bc:c2cb:cd3f with SMTP id v11-20020a2e960b000000b002bcc2cbcd3fmr280387ljh.32.1693341518954; Tue, 29 Aug 2023 13:38:38 -0700 (PDT) Received: from U4.lan ([2001:9e8:b958:3410:8e0c:ed68:cd6c:7cb8]) by smtp.gmail.com with ESMTPSA id f18-20020a170906825200b0099364d9f0e9sm6301908ejx.102.2023.08.29.13.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 13:38:38 -0700 (PDT) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Jonker , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 2/5] ARM: dts: rockchip: Add missing arm timer interrupt for RK3128 Date: Tue, 29 Aug 2023 22:37:23 +0200 Message-ID: <20230829203721.281455-8-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230829203721.281455-4-knaerzche@gmail.com> References: <20230829203721.281455-4-knaerzche@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Cortex-A7 timer has 4 interrupts. Add the missing one. Fixes: a0201bff6259 ("ARM: dts: rockchip: add rk3128 soc dtsi") Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 2e345097b9bd..bf55d4575311 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -64,7 +64,8 @@ timer { compatible = "arm,armv7-timer"; interrupts = , , - ; + , + ; arm,cpu-registers-not-fw-configured; clock-frequency = <24000000>; }; From patchwork Tue Aug 29 20:37:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 718768 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08D88C83F18 for ; Tue, 29 Aug 2023 20:39:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240515AbjH2UjF (ORCPT ); Tue, 29 Aug 2023 16:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240540AbjH2Uiw (ORCPT ); Tue, 29 Aug 2023 16:38:52 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FD421BF; Tue, 29 Aug 2023 13:38:49 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99c3c8adb27so606216066b.1; Tue, 29 Aug 2023 13:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693341528; x=1693946328; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0OQ0uMxvObgSXiZXc7XOlyouI6S5o18+qbYKi7xXiJU=; b=XJmg5V4BwRQEoXbxjvkT5/6Kfeu1MwvdTQO5byA1fJvuJYJLn3vYqfEFIxm/ouajOr r+FDt2i2lxm/Zl+kMnLGiNEUt4lh/cIyCdHYo7iKUzzQrdlYcSXfJ7OECQui9KjqdSmr ng4gH7FWn4ECQA/8qUALll+nOJrMPazDasSebJYmzNG1kSNne39VAd8l9GFAZG8BaZYF RygZ2CGTDWCvcRP+yKA95oHCvjWzCiwpZjUGRXEsSyCjLjhhsyK79U9fXPwZsX56glje f8p4GC2kKVLe7IVRSFSrHOxSM0+oNzu+s/3JPBriyRDEvmdkfGxSDoa3QAOz5PakLmKC oQJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693341528; x=1693946328; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0OQ0uMxvObgSXiZXc7XOlyouI6S5o18+qbYKi7xXiJU=; b=ZrSbZjWfC3yRPDHXFUsrOJ4OiEKth5mllKW+Q1bYBIQC1WkVnChKa9uIn+NTpiwFcs t328/E6fkSVe5fHJNf5B/nE/g8W+zNvSLBdiGxDVVJZGE32fwiMmmY6N32KG+zBsn6Hh nJj/MezBxpR68m/sW5VifqS5jwzhabKwryfkCTtq/B7dZ2hcCtzB7HPaSXeL607nQRma WJRVwKX/S8WOCQx+jknPUlkzjtLu5C1GOr9FVEYWLqdqTdhB46vCwO9MaKt4PsWEYsf/ hkqN85KGMgt/PlvaryVtDXXubY2mblZrdXsqutOh2lkHdKzp0ggO4FK4PhSoLxU5GDpf ri2g== X-Gm-Message-State: AOJu0Yw+CtPEyHRa/5+8kMhIjFgodIjAFCHw0s/Wxg55VD8oCMTLUGrc NpThZNSbtaJcsJ/HiLqzfg== X-Google-Smtp-Source: AGHT+IEv8kBuJCMhIXwNVoQjMaCQf5mn5eJBOXA9wHc3xHSX+JITKzFIM/BaMQ9PjrNjxi2AgD6lEw== X-Received: by 2002:a17:907:a057:b0:99c:a23b:b4f4 with SMTP id gz23-20020a170907a05700b0099ca23bb4f4mr101556ejc.2.1693341528078; Tue, 29 Aug 2023 13:38:48 -0700 (PDT) Received: from U4.lan ([2001:9e8:b958:3410:8e0c:ed68:cd6c:7cb8]) by smtp.gmail.com with ESMTPSA id f18-20020a170906825200b0099364d9f0e9sm6301908ejx.102.2023.08.29.13.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 13:38:47 -0700 (PDT) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Jonker , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 3/5] ARM: dts: rockchip: Add missing quirk for RK3128's dma engine Date: Tue, 29 Aug 2023 22:37:25 +0200 Message-ID: <20230829203721.281455-10-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230829203721.281455-4-knaerzche@gmail.com> References: <20230829203721.281455-4-knaerzche@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Like most other Rockchip ARM SoCs, the PL330 needs the arm,pl330-periph-burst quirk in order to work as expected. Add it. Fixes: a0201bff6259 ("ARM: dts: rockchip: add rk3128 soc dtsi") Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index bf55d4575311..9125bf22e971 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -459,6 +459,7 @@ pdma: dma-controller@20078000 { interrupts = , ; arm,pl330-broken-no-flushp; + arm,pl330-periph-burst; clocks = <&cru ACLK_DMAC>; clock-names = "apb_pclk"; #dma-cells = <1>; From patchwork Tue Aug 29 20:37:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 718402 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B04DC83F17 for ; Tue, 29 Aug 2023 20:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234961AbjH2Ujg (ORCPT ); Tue, 29 Aug 2023 16:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240558AbjH2UjY (ORCPT ); Tue, 29 Aug 2023 16:39:24 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 574C01BB; Tue, 29 Aug 2023 13:39:22 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-52a250aa012so6354479a12.3; Tue, 29 Aug 2023 13:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693341561; x=1693946361; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4/S078uVn7am6W43PcbwitpWSJn3a9dUt4aJRXNiiV8=; b=qCv7/JiFsWP9GL4LlPjBs31n5LWTcm5kr2RKXQlXDV1rF3Vd88u/xxVFTDbzZoQPOg SEJ1v7uG0AX4d0sSjGgZiTjGnMfN1qVwM5BvUbhEFCOWQTNGNecXPbq92JSZPe/XIBF+ JfViVTM4DdQFkETXh2rt1h6dvHJZWnzBwPmm0BGtryRJ09YjZ1f4DBovSxbMDJChglGs yefU8f+deS6AfWkTuY8V+WEUkwMeIeR0aR8tiPFQPUui9t9WdV/O7716nmid2G32BeNq gyb+gEE9bUrgIm+Dw/KAg0xy5zfw0CoUwakJoGoML9gbZZ1urjFVc2VrW7JN0BBj2h1m lJfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693341561; x=1693946361; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4/S078uVn7am6W43PcbwitpWSJn3a9dUt4aJRXNiiV8=; b=GZbXX/+YeoapV8XdEfL35b+/Ih1owrMlVNhC2z2M3RnajJo5vL91GaCsVvScZWYPH9 LjDmWet4n7seHFa67ZmIau41lN40wLPwrsXcg+m2sjOASuvIiRtT/TSHkbweJ5g53wUg aaiXoA1VAa7WdCd1pt8et49DB4vuqFNxg0x3MbMWsZvDzV3YlqmeuJhF4zA3BemQt2Bw g0sVkOnBjXbLnD9Iupqqs0mloKgGYO5Kp8ReirRpAYFUW7WiHiiVtu0b0DkrwTDHbqv0 38ISFcZ5xsogH8188/ZkhzzaVnyBNUqOi1v8WXzWn/Sl4Mwi1G+FeZl2W7ylwP/MOwco 3FAA== X-Gm-Message-State: AOJu0YwU6OvtvyWDZKOY8bO2zi4y4fqEqpsIUy7VzsVa9ddRbCea9nsH 4YGdXpJ9OXLe6vJPbLh2pA== X-Google-Smtp-Source: AGHT+IH0JPsXYQ46Kp00OCfZE6ki6jFotggl9aujrYzmo9vKs9nW7bi7ETeXiVcS8/E2zZTgTVWerA== X-Received: by 2002:a17:907:7758:b0:992:3897:1985 with SMTP id kx24-20020a170907775800b0099238971985mr87579ejc.43.1693341560769; Tue, 29 Aug 2023 13:39:20 -0700 (PDT) Received: from U4.lan ([2001:9e8:b958:3410:8e0c:ed68:cd6c:7cb8]) by smtp.gmail.com with ESMTPSA id f18-20020a170906825200b0099364d9f0e9sm6301908ejx.102.2023.08.29.13.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 13:39:20 -0700 (PDT) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Jonker , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 4/5] ARM: dts: rockchip: Fix timer clocks for RK3128 Date: Tue, 29 Aug 2023 22:37:27 +0200 Message-ID: <20230829203721.281455-12-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230829203721.281455-4-knaerzche@gmail.com> References: <20230829203721.281455-4-knaerzche@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently the Rockchip timer source clocks are set to xin24 for no obvious reason and the actual timer clocks (SCLK_TIMER*) will get disabled during boot process as the have no user. That will make the SoC stuck as no timer source exists. Fixes: a0201bff6259 ("ARM: dts: rockchip: add rk3128 soc dtsi") Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 9125bf22e971..88a4b0d6d928 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -234,7 +234,7 @@ timer0: timer@20044000 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044000 0x20>; interrupts = ; - clocks = <&cru PCLK_TIMER>, <&xin24m>; + clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER0>; clock-names = "pclk", "timer"; }; @@ -242,7 +242,7 @@ timer1: timer@20044020 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044020 0x20>; interrupts = ; - clocks = <&cru PCLK_TIMER>, <&xin24m>; + clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER1>; clock-names = "pclk", "timer"; }; @@ -250,7 +250,7 @@ timer2: timer@20044040 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044040 0x20>; interrupts = ; - clocks = <&cru PCLK_TIMER>, <&xin24m>; + clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER2>; clock-names = "pclk", "timer"; }; @@ -258,7 +258,7 @@ timer3: timer@20044060 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044060 0x20>; interrupts = ; - clocks = <&cru PCLK_TIMER>, <&xin24m>; + clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER3>; clock-names = "pclk", "timer"; }; @@ -266,7 +266,7 @@ timer4: timer@20044080 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x20044080 0x20>; interrupts = ; - clocks = <&cru PCLK_TIMER>, <&xin24m>; + clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER4>; clock-names = "pclk", "timer"; }; @@ -274,7 +274,7 @@ timer5: timer@200440a0 { compatible = "rockchip,rk3128-timer", "rockchip,rk3288-timer"; reg = <0x200440a0 0x20>; interrupts = ; - clocks = <&cru PCLK_TIMER>, <&xin24m>; + clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER5>; clock-names = "pclk", "timer"; }; From patchwork Tue Aug 29 20:37:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 718767 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5B9DC71153 for ; Tue, 29 Aug 2023 20:40:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240534AbjH2UkJ (ORCPT ); Tue, 29 Aug 2023 16:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240586AbjH2Ujt (ORCPT ); Tue, 29 Aug 2023 16:39:49 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3A41BC; Tue, 29 Aug 2023 13:39:46 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99c1f6f3884so609414666b.0; Tue, 29 Aug 2023 13:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693341585; x=1693946385; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sorglNdzyV/pWO7YMPt4RJRiShdjAUubPesOLMeqaVk=; b=ScuSVOHA6ravgEoRv4p3uHrGtMGXKcgVAKZE3VsYDqgh23mrvDhaMRcngDcJ7N789o fYnDysJSvltkGLyp//ayxSn4cpcu/40F8UWjRr2OALFcmeUetnesON9K4n8qUXFnlWkI siutFLEzhdKiAy+82hjKIVAn7qoMasim3qCZwKL9nwho8tkHKiUnk/0invOtUdnVBXzT aqprdQ5cL8Mdsb6NSwS0jS/UYGpL1chdML+1S+xs6/WnGfH4BZG9bRSV7OOpWMwcmHmn rw9jjNDO2EDnNVtxh+AB0HcuE0GQnyVge2kp60+rax0odl688estv1JxP53WWbMRzdZx 6EIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693341585; x=1693946385; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sorglNdzyV/pWO7YMPt4RJRiShdjAUubPesOLMeqaVk=; b=IHRSjKblKLeJzCAbgDutbfHX/rVD4llbSH/iLxSFD2ehXIp+OK7RMTEfOXx3260vRZ 71T7eHlQm6oFcCuzYG6bkQD2ozCviZxA5+gQVjJOkEJ05oV653J5b2Weg8EX8UvKwuhf S7IhRlFss9FuWh9QshVA/4jNgtqsTIUA45rqwPPPtEceLA7x6Ev6tjdBR3c0pkBlrVAx mjAV1D0v/15a+yDTdyuLdUM5lVPP5n2KgWX+m4RYcPm2UnmUK5zUP70Ue/bisobNUIz8 46mYi65qOiytx40Ng+k86ePfmfektz/5VxzD8pwq6jl1314jHlNArzFg5+SmdT5igt+f ArxQ== X-Gm-Message-State: AOJu0YywHM0Gu/Apu+5ez4NMltZ1OTmzATF23fY1V3jqQ6R8Lqx4t6a5 PNFBx+CJb01qkwLBXGUmeA== X-Google-Smtp-Source: AGHT+IH31n7PDUa4uJw+PjCrd2GZUoofcWejfASdpqTgb8iHtMdCv2N8O7FuhMI55faF2RTxe1Mbuw== X-Received: by 2002:a17:906:cc5e:b0:9a1:c42e:5e5e with SMTP id mm30-20020a170906cc5e00b009a1c42e5e5emr96025ejb.42.1693341584582; Tue, 29 Aug 2023 13:39:44 -0700 (PDT) Received: from U4.lan ([2001:9e8:b958:3410:8e0c:ed68:cd6c:7cb8]) by smtp.gmail.com with ESMTPSA id f18-20020a170906825200b0099364d9f0e9sm6301908ejx.102.2023.08.29.13.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 13:39:44 -0700 (PDT) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Jonker , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 5/5] ARM: dts: rockchip: Disable non-required timers for RK3128 Date: Tue, 29 Aug 2023 22:37:29 +0200 Message-ID: <20230829203721.281455-14-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230829203721.281455-4-knaerzche@gmail.com> References: <20230829203721.281455-4-knaerzche@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Rockchip timer linux driver can handle a maximum of 2 timers and will get confused if more of them exist. RK3128 only needs timer0, timer1 and timer5. The latter is the source for the arm-timer and it's clock is prevented from being disabled in the clock driver so it can get disabled in the device tree, too. Fixes: a0201bff6259 ("ARM: dts: rockchip: add rk3128 soc dtsi") Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 88a4b0d6d928..f3f0788195d2 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -252,6 +252,7 @@ timer2: timer@20044040 { interrupts = ; clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER2>; clock-names = "pclk", "timer"; + status = "disabled"; }; timer3: timer@20044060 { @@ -260,6 +261,7 @@ timer3: timer@20044060 { interrupts = ; clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER3>; clock-names = "pclk", "timer"; + status = "disabled"; }; timer4: timer@20044080 { @@ -268,6 +270,7 @@ timer4: timer@20044080 { interrupts = ; clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER4>; clock-names = "pclk", "timer"; + status = "disabled"; }; timer5: timer@200440a0 { @@ -276,6 +279,7 @@ timer5: timer@200440a0 { interrupts = ; clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER5>; clock-names = "pclk", "timer"; + status = "disabled"; }; watchdog: watchdog@2004c000 {