Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1232385pxa; Fri, 28 Aug 2020 07:21:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0eUgqKzxV4n2kFig+bRN9hGBJJ9fF+q3TV9I3vHsEyLu5pUgu0u0yrjk+rZTB0y50C9Fi X-Received: by 2002:aa7:c70c:: with SMTP id i12mr2030970edq.279.1598624507603; Fri, 28 Aug 2020 07:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598624507; cv=none; d=google.com; s=arc-20160816; b=SNhFo6d70g5GhKxD5pKGUg0xlclzT9XRUEngXtzQwn2vErNa1/mk+X747W1zwYcBX6 tHXFiP+FF+sFGKc+jUoKVraOMFqRp3iukJcXRlRzoG1WTHfdED2NBKHRr+GC/XmIX4yO c0XKlJyQlrn3qjeMW33awQ+AKP/h/iWteeIaogwoLZfQpcicajHlduw2Ytcez5QznO/X 8E/unjBj2F53fh0Iy5ABn9+ZCDMaom4yud2UYMaprLFWzucaJwcMVpRElC8S0iUDimrA bgj8HNxeQYXdX10IBHWgFsjBIIMp5o+x2vYI8G/wgzUi4q/RW82XDttlfCPawATJIfsO ztSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=dBmgCGAlTd9vhlVHk8EHMZPrZeiKBMU1zVBVXj1IX/E=; b=KlKnOcek/7xqaY+Mn3QjWVY3rVTZxk8EygHhtlZ4zBeHsHrUM7D/zvmX3FWIvTxpRw DyuiEMibLJpuvOpxvSG6HUZSR1vcZV55aAPaCWZt6MlYXuPXwHr321qjtkD1/9GMuEWq A1TsBlE7YKVC5YOQ7r2aasPcyTbX99njEH7gXCALh1JgH8XUj+5d565aUjgj9jHIFELP 7ShSVgf+W+C9TC9R1fmxmXHILmiJFcijHc/ribXg+/7c9BLHlK9YSkmK1O1fM83CXHwE mywdUAAmtJV7KmR3vStbH1KpZRWOGZ0yY/eDU20iPUxeuwPtG96MTD7c7r5JeBLxxmSR EKGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd8si722640ejb.421.2020.08.28.07.21.25; Fri, 28 Aug 2020 07:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbgH1OUg (ORCPT + 99 others); Fri, 28 Aug 2020 10:20:36 -0400 Received: from foss.arm.com ([217.140.110.172]:50362 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbgH1OUc (ORCPT ); Fri, 28 Aug 2020 10:20:32 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 511BB11B3; Fri, 28 Aug 2020 07:20:32 -0700 (PDT) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.195.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C0F6A3F71F; Fri, 28 Aug 2020 07:20:30 -0700 (PDT) From: Andre Przywara To: Rob Herring , devicetree@vger.kernel.org Cc: Thomas Gleixner , Daniel Lezcano , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Liviu Dudau , Lorenzo Pieralisi , Sudeep Holla Subject: [PATCH v2 2/6] ARM: dts: arm: Fix SP804 users Date: Fri, 28 Aug 2020 15:20:14 +0100 Message-Id: <20200828142018.43298-3-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200828142018.43298-1-andre.przywara@arm.com> References: <20200828142018.43298-1-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SP804 DT nodes for Realview, MPS2 and VExpress were not complying with the binding: it requires either one or three clocks, but does not allow exactly two clocks. Simply duplicate the first clock to satisfy the binding requirement. For MPS2, we triple the clock, and add the clock-names property, as this is required by the Linux primecell driver. Try to make the clock-names more consistent on the way. Signed-off-by: Andre Przywara Acked-by: Linus Walleij --- arch/arm/boot/dts/arm-realview-pb11mp.dts | 16 ++++++++-------- arch/arm/boot/dts/mps2.dtsi | 6 ++++-- arch/arm/boot/dts/vexpress-v2p-ca9.dts | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/arm-realview-pb11mp.dts b/arch/arm/boot/dts/arm-realview-pb11mp.dts index 9748e0fe800f..564e2eee2c24 100644 --- a/arch/arm/boot/dts/arm-realview-pb11mp.dts +++ b/arch/arm/boot/dts/arm-realview-pb11mp.dts @@ -568,8 +568,8 @@ clocks = <&sp810_syscon 0>, <&sp810_syscon 1>, <&pclk>; - clock-names = "timerclk0", - "timerclk1", + clock-names = "timer0clk", + "timer1clk", "apb_pclk"; }; @@ -582,8 +582,8 @@ clocks = <&sp810_syscon 2>, <&sp810_syscon 3>, <&pclk>; - clock-names = "timerclk2", - "timerclk3", + clock-names = "timer0clk", + "timer1clk", "apb_pclk"; }; @@ -645,16 +645,16 @@ timer45: timer@10018000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x10018000 0x1000>; - clocks = <&timclk>, <&pclk>; - clock-names = "timer", "apb_pclk"; + clocks = <&timclk>, <&timclk>, <&pclk>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; timer67: timer@10019000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x10019000 0x1000>; - clocks = <&timclk>, <&pclk>; - clock-names = "timer", "apb_pclk"; + clocks = <&timclk>, <&timclk>, <&pclk>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; diff --git a/arch/arm/boot/dts/mps2.dtsi b/arch/arm/boot/dts/mps2.dtsi index 96fb5a5cf4d3..48c34fa282af 100644 --- a/arch/arm/boot/dts/mps2.dtsi +++ b/arch/arm/boot/dts/mps2.dtsi @@ -161,9 +161,11 @@ }; timer2: dual-timer@2000 { - compatible = "arm,sp804"; + compatible = "arm,sp804", "arm,primecell"; reg = <0x2000 0x1000>; - clocks = <&sysclk>; + clocks = <&sysclk>, <&sysclk>, <&sysclk>; + clock-names = "timer0clk", "timer1clk", + "apb_pclk"; interrupts = <10>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/vexpress-v2p-ca9.dts b/arch/arm/boot/dts/vexpress-v2p-ca9.dts index 623246f37448..6cddea25a292 100644 --- a/arch/arm/boot/dts/vexpress-v2p-ca9.dts +++ b/arch/arm/boot/dts/vexpress-v2p-ca9.dts @@ -122,8 +122,8 @@ reg = <0x100e4000 0x1000>; interrupts = <0 48 4>, <0 49 4>; - clocks = <&oscclk2>, <&oscclk2>; - clock-names = "timclk", "apb_pclk"; + clocks = <&oscclk2>, <&oscclk2>, <&oscclk2>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; -- 2.17.1