Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp18552pxk; Tue, 15 Sep 2020 18:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjNMjAs3OBywal4ZrKB60N+/ykQaVhKU4/l9Q15s+6KBaxIOsTxFQUeX4G/mAxwJL3wgGN X-Received: by 2002:a17:906:7fcc:: with SMTP id r12mr23629496ejs.360.1600220915190; Tue, 15 Sep 2020 18:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600220915; cv=none; d=google.com; s=arc-20160816; b=yIVpZg1yyQNdfMTqyIwPN6ikmTutOPDA9yFygJI5RudYSDFHUlpfqpXslqj8ia6CM+ +76z0oiMEamapZXznof+nGfhlMcw9IKy6vsypqNa1oriVNSpsinYN0jQSKdYpf6MCD3b 76p73OUSxQ7xzTdnXpISrWITVAmRDe4gh+1jETyElw45FHnq+RN741hM2PiE921+1TRQ RSo2hRzjciLTCDpsorlQ2MKRKhOmgcKaAqzzsHmPabqjfzZQu6ZllfdVNki4zEKdD+ra ubuY3JXzTxui+3xx7M2J5dKm15voWe+U/RGqeKx1/G/ncKwEqaUvB/wEw6wZRJalr0jV eh7w== 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=AiPr2qlTE2YluvIKmQLt8StuChChPIS2RV0WqAHKmG0=; b=nf+IRQk1wkw7StGASqjWJ6tdhcU46Hb+sjGkzBiQOw2ym9vkRqryu+dwmOcnVHCIdM RNKb6qNlbxDHoWTOdXWARNZJ9EtPUQpqqw/9Khm23uEw1TzMgehRuy2dsOQ8nWsMXD2p 5PKmVQ6/gTi6/zHQ394qa4mlZ5jWNAjylZrpnJUdwU2CbUKIhnoegLq2E5pjU3VtkMfI xrnjtI/Ygbz0qCagjIXmwDTfK2LAfqUHeMDScJsIEI1C5mkqdmK/ZTfKuMQ5fVArqhjC /nDWpop10/g/Gv7JkciWMz4M7UaT/WY0aVRr0XxIXxsuLr+YWsmvHa3maucUGGUCn55g GK9w== 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 d17si8460356edp.500.2020.09.15.18.48.12; Tue, 15 Sep 2020 18:48:35 -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 S1726306AbgIPBpY (ORCPT + 99 others); Tue, 15 Sep 2020 21:45:24 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12277 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726023AbgIPBpY (ORCPT ); Tue, 15 Sep 2020 21:45:24 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BBF4DC145AD14191E557; Wed, 16 Sep 2020 09:45:21 +0800 (CST) Received: from [10.57.101.250] (10.57.101.250) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 09:45:20 +0800 Subject: Re: [PATCH v3 4/6] arm64: dts: hisilicon: Fix SP805 clocks To: Andre Przywara , References: <20200907121831.242281-1-andre.przywara@arm.com> <20200907121831.242281-5-andre.przywara@arm.com> CC: Rob Herring , , Chanho Min , , From: Wei Xu Message-ID: <5F616E30.3090705@hisilicon.com> Date: Wed, 16 Sep 2020 09:45:20 +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-5-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 Hi Andre, 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 arm64 dt tree. Best Regards, Wei > --- > arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 10 ++++++---- > arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 5 +++-- > 2 files changed, 9 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi > index d25aac5e0bf8..994140fbc916 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi > +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi > @@ -1089,16 +1089,18 @@ > compatible = "arm,sp805-wdt", "arm,primecell"; > reg = <0x0 0xe8a06000 0x0 0x1000>; > interrupts = ; > - clocks = <&crg_ctrl HI3660_OSC32K>; > - clock-names = "apb_pclk"; > + clocks = <&crg_ctrl HI3660_OSC32K>, > + <&crg_ctrl HI3660_OSC32K>; > + clock-names = "wdog_clk", "apb_pclk"; > }; > > watchdog1: watchdog@e8a07000 { > compatible = "arm,sp805-wdt", "arm,primecell"; > reg = <0x0 0xe8a07000 0x0 0x1000>; > interrupts = ; > - clocks = <&crg_ctrl HI3660_OSC32K>; > - clock-names = "apb_pclk"; > + clocks = <&crg_ctrl HI3660_OSC32K>, > + <&crg_ctrl HI3660_OSC32K>; > + clock-names = "wdog_clk", "apb_pclk"; > }; > > tsensor: tsensor@fff30000 { > diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > index 3d189d9f0d24..6578f8191d71 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > @@ -843,8 +843,9 @@ > compatible = "arm,sp805-wdt", "arm,primecell"; > reg = <0x0 0xf8005000 0x0 0x1000>; > interrupts = ; > - clocks = <&ao_ctrl HI6220_WDT0_PCLK>; > - clock-names = "apb_pclk"; > + clocks = <&ao_ctrl HI6220_WDT0_PCLK>, > + <&ao_ctrl HI6220_WDT0_PCLK>; > + clock-names = "wdog_clk", "apb_pclk"; > }; > > tsensor: tsensor@0,f7030700 { >