Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp17076pxk; Tue, 15 Sep 2020 18:44:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvxK0PbzsJeixYcVq8fTBGl5oC5YUd8mZ+TB3jmWHYtvbuyj8Uwgiiqf/VJEKvR7ER8TCc X-Received: by 2002:a17:906:9a1:: with SMTP id q1mr22341409eje.30.1600220668123; Tue, 15 Sep 2020 18:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600220668; cv=none; d=google.com; s=arc-20160816; b=gykZnmTx6mdYaFO97wtzjduqQbAi18PIk6n/NzHV1ElUDmitPfgRq4CLhe0f6jcRNH 3EU3YVQD/tK0m/98Ou9C7MwIMLcdTaQ81QzwaFo52OR0+XMq/0O+kahXPm/qcMChN7Ea VNM0EIqL7RnT8Tf3Szdx8cUVjcxd0Yt9EsjbRaqc9IZRy5TFowfNj04tFmIonjLzUmbH f7tLHGCzhils09CwRbm8HoIeUmqyyPnf+r8Rcm072r/X3fPX/ZSC7KsVhGcg5LhZOnlJ O/OywKwwomBKwPAV1G3p8uZXeOHgeJ+gzg5FbG2+4zRhVCA6eKvv24AwuCGYcrD4ihMx BG8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=uEXGFU9SCemVaFqhpKvYeOZE3NKS9xGNJNrXM9xRqWg=; b=g/4/MywJ3M9Ztrzmpt2JnyPXl1/TAPulvVBppGpy/S3N6eGFThbyoBp8+2Bqt8603N 0risfWSbDhtBlrFNz71P8NhgHpfMkC2wRwGWp33UC4kogXZv8IDSZzTXLW27biSeZuyc RIE4GUxSrWkunHrvqFvz/FNLibL3WGnsvRq4+k9YfV8cthQvdhGxGcHkKWa/Zlq8HxAn RBiNNuyiajxk+YuU/EYtY+mQT7p9G4ZjEXo51lfHcmBh4t3GZfy6EnMXs/elrhtVELIu ejXDVLjjElTdpftJZ6wxl+rO0as3ge2Uy4nnLFmw4to5DW9LgjbtHLCJVjriTLZZLvPF wU4g== 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 t1si4791129edc.421.2020.09.15.18.44.05; Tue, 15 Sep 2020 18:44:28 -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 S1726174AbgIPBms (ORCPT + 99 others); Tue, 15 Sep 2020 21:42:48 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:36294 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726023AbgIPBmr (ORCPT ); Tue, 15 Sep 2020 21:42:47 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EFEAF68F0E45DF751A7D; Wed, 16 Sep 2020 09:42:45 +0800 (CST) Received: from [10.57.101.250] (10.57.101.250) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 09:42:42 +0800 Subject: Re: [PATCH v3 6/6] ARM: dts: hisilicon: Fix SP805 clocks To: Andre Przywara , References: <20200907121831.242281-1-andre.przywara@arm.com> <20200907121831.242281-7-andre.przywara@arm.com> CC: Rob Herring , , Chanho Min , , From: Wei Xu Message-ID: <5F616D92.3070201@hisilicon.com> Date: Wed, 16 Sep 2020 09:42:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20200907121831.242281-7-andre.przywara@arm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.57.101.250] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/9/7 20:18, Andre Przywara wrote: > The SP805 DT binding requires two clocks to be specified, but > Hisilicon platform DTs currently only specify one clock. > > In practice, Linux would pick a clock named "apb_pclk" for the bus > clock, and the Linux and U-Boot SP805 driver would use the first clock > to derive the actual watchdog counter frequency. > > Since currently both are the very same clock, we can just double the > clock reference, and add the correct clock-names, to match the binding. > > Signed-off-by: Andre Przywara Thanks! Applied to the hisilicon arm32 dt tree. Best Regards, Wei > --- > arch/arm/boot/dts/hisi-x5hd2.dtsi | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/hisi-x5hd2.dtsi b/arch/arm/boot/dts/hisi-x5hd2.dtsi > index 3ee7967c202d..e2dbf1d8a67b 100644 > --- a/arch/arm/boot/dts/hisi-x5hd2.dtsi > +++ b/arch/arm/boot/dts/hisi-x5hd2.dtsi > @@ -370,8 +370,9 @@ > arm,primecell-periphid = <0x00141805>; > reg = <0xa2c000 0x1000>; > interrupts = <0 29 4>; > - clocks = <&clock HIX5HD2_WDG0_RST>; > - clock-names = "apb_pclk"; > + clocks = <&clock HIX5HD2_WDG0_RST>, > + <&clock HIX5HD2_WDG0_RST>; > + clock-names = "wdog_clk", "apb_pclk"; > }; > }; > >