Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp326119pxa; Wed, 26 Aug 2020 11:39:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVZWdFsCc8hyKD/i+EO6nfM6RZpmo17HecQEc7ERVfuYS+nLUzKuwoM25nRUrpK6FVwobc X-Received: by 2002:aa7:d88b:: with SMTP id u11mr15525964edq.21.1598467199312; Wed, 26 Aug 2020 11:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598467199; cv=none; d=google.com; s=arc-20160816; b=T0E761gAW6LkcnsLfUuQtLo1EoOTTa/az8y2Wvt/Uiv6ybZbyLnZQUT+Cok6MtHOPH Cy+7AJQS17DclJh3Hp1YA6D7qQeAH8fatD8Af2dgMYZpoQkutsL7qRpMOzwuZFxKkpNt smph4L2rdc5ASASX/mq630Prt1ubKwQWzmxRy/hjkXQtU/1mfMrBdgm7/YJ6cMxWexJz QAKiS7hOn+f4+ncaGk/WNL2VohVYcM1pz+Q+JxeudJZgW7FnbUcngXdbck0peh95QQw2 RdjPnQ6JrLkghr4t253wWjzggf3TjTJ+Bzlqcucv7AFcJHYrYSonKmMkYQCN+dZaQTCP p3Tw== 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=zjXopK0Ksj0EB1QE8glLrN2tNbtProKblM/judso2BU=; b=YBTR2x9p0/vhMCiRLi7FN5BCDe0b85g2Fe+xtjnzZX93D85+BzA8rSL0bdxpJ15c+3 BMCayt+dZGnRI+5Hy3OCntI14cUu6rhZKtfqMRCNGpbdZhhFZtS7Klaz97fhu+UMJpeZ tKAII+L3PCkoyyk3u/wq4B6CTIsoAV04A1GIU/IqARHGGLNK6/mt2QEXWnqJX8HB2K3h OwZbTujYEsCax9/X2DVN89lLQQK5U+WxEHo2cGQ4mFIPUcZMfGIqTd2hvsD86Yg3NBUo 5vIzrIg2lsWOhfr/FPpoxtNyysMucOUQ4aPAemxFBvOj5BR2iQG/fVSSiTsThda+xNwp J0fQ== 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 bh25si2094851ejb.468.2020.08.26.11.39.36; Wed, 26 Aug 2020 11:39:59 -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 S1727000AbgHZSia (ORCPT + 99 others); Wed, 26 Aug 2020 14:38:30 -0400 Received: from foss.arm.com ([217.140.110.172]:50144 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbgHZSiV (ORCPT ); Wed, 26 Aug 2020 14:38:21 -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 AEC9811B3; Wed, 26 Aug 2020 11:38:20 -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 7AF273F71F; Wed, 26 Aug 2020 11:38:19 -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, Wei Xu Subject: [PATCH 4/6] ARM: dts: hisilicon: Fix SP804 users Date: Wed, 26 Aug 2020 19:38:02 +0100 Message-Id: <20200826183805.19369-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200826183805.19369-1-andre.przywara@arm.com> References: <20200826183805.19369-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 binding only specifies one or three clocks, but does not allow just two clocks. The HiSi 3620 .dtsi specified two clocks for the two timers, plus gave one "apb_pclk" clock-name to appease the primecell bus driver. Extend the clocks by duplicating the first clock to the end of the clock list, and add two dummy clock-names to make the primecell driver happy. I don't know what the real APB clock for the IP is, but with the current DT the first timer clock was used for that, so this change keeps the current status. Signed-off-by: Andre Przywara --- arch/arm/boot/dts/hi3620.dtsi | 30 ++++++++++++++++++++---------- arch/arm/boot/dts/hip04.dtsi | 4 ++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/hi3620.dtsi b/arch/arm/boot/dts/hi3620.dtsi index f0af1bf2b4d8..355175b25fd6 100644 --- a/arch/arm/boot/dts/hi3620.dtsi +++ b/arch/arm/boot/dts/hi3620.dtsi @@ -111,8 +111,10 @@ reg = <0x800000 0x1000>; /* timer00 & timer01 */ interrupts = <0 0 4>, <0 1 4>; - clocks = <&clock HI3620_TIMER0_MUX>, <&clock HI3620_TIMER1_MUX>; - clock-names = "apb_pclk"; + clocks = <&clock HI3620_TIMER0_MUX>, + <&clock HI3620_TIMER1_MUX>, + <&clock HI3620_TIMER0_MUX>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; @@ -121,8 +123,10 @@ reg = <0x801000 0x1000>; /* timer10 & timer11 */ interrupts = <0 2 4>, <0 3 4>; - clocks = <&clock HI3620_TIMER2_MUX>, <&clock HI3620_TIMER3_MUX>; - clock-names = "apb_pclk"; + clocks = <&clock HI3620_TIMER2_MUX>, + <&clock HI3620_TIMER3_MUX>, + <&clock HI3620_TIMER2_MUX>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; @@ -131,8 +135,10 @@ reg = <0xa01000 0x1000>; /* timer20 & timer21 */ interrupts = <0 4 4>, <0 5 4>; - clocks = <&clock HI3620_TIMER4_MUX>, <&clock HI3620_TIMER5_MUX>; - clock-names = "apb_pclk"; + clocks = <&clock HI3620_TIMER4_MUX>, + <&clock HI3620_TIMER5_MUX>, + <&clock HI3620_TIMER4_MUX>; + clock-names = "timer0lck", "timer1clk", "apb_pclk"; status = "disabled"; }; @@ -141,8 +147,10 @@ reg = <0xa02000 0x1000>; /* timer30 & timer31 */ interrupts = <0 6 4>, <0 7 4>; - clocks = <&clock HI3620_TIMER6_MUX>, <&clock HI3620_TIMER7_MUX>; - clock-names = "apb_pclk"; + clocks = <&clock HI3620_TIMER6_MUX>, + <&clock HI3620_TIMER7_MUX>, + <&clock HI3620_TIMER6_MUX>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; @@ -151,8 +159,10 @@ reg = <0xa03000 0x1000>; /* timer40 & timer41 */ interrupts = <0 96 4>, <0 97 4>; - clocks = <&clock HI3620_TIMER8_MUX>, <&clock HI3620_TIMER9_MUX>; - clock-names = "apb_pclk"; + clocks = <&clock HI3620_TIMER8_MUX>, + <&clock HI3620_TIMER9_MUX>, + <&clock HI3620_TIMER8_MUX>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; status = "disabled"; }; diff --git a/arch/arm/boot/dts/hip04.dtsi b/arch/arm/boot/dts/hip04.dtsi index 4263a9339c2e..f5871b1d1ec4 100644 --- a/arch/arm/boot/dts/hip04.dtsi +++ b/arch/arm/boot/dts/hip04.dtsi @@ -226,8 +226,8 @@ compatible = "arm,sp804", "arm,primecell"; reg = <0x3000000 0x1000>; interrupts = <0 224 4>; - clocks = <&clk_50m>, <&clk_50m>; - clock-names = "apb_pclk"; + clocks = <&clk_50m>, <&clk_50m>, <&clk_50m>; + clock-names = "timer0clk", "timer1clk", "apb_pclk"; }; arm-pmu { -- 2.17.1