Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1559801yba; Thu, 25 Apr 2019 01:43:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeuGyL3BClOz7vtcItCsnT2GSugRHXC6cUGKs0euoZ4yrq7fLeMBoJY7e/hmkNZkQPFsvM X-Received: by 2002:a65:448b:: with SMTP id l11mr35546267pgq.185.1556181783186; Thu, 25 Apr 2019 01:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556181783; cv=none; d=google.com; s=arc-20160816; b=x1RaFxKfPdT2yvuHN6VWrCnTqn92rCv6PSYdY7W0OyjXnGzoK01Bq3OjLkO6UiZWSg hDO78aUJHs6OvtCE7N9Tq0gcoEJIlg8XI9vjEvQTW2KUsNW6sGn7bgeJH4JFctL8TttD jY3cmc+Fl8QYqLgtETuXVuTcQOF3SRmOoFKvauAMqYswbPOneIaksJ+UUqylrD8flwxq VNx2lB2xRUq3Jq+RasuF/0acwhwhn8KrMxn4Z8qYqgmZ3iYDU05abcfU0Czx/nOJ8nfM Fma4FTMetpyZYr/v+4I9tSmb7VKOVIwKn+kF+1ipV083tElYTpM0rn+WN3UBwj3lTFtD s3Kg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jync8zT3pYBQlUFkiBZNXqfiHjID5+lBGeoKEA5uWfI=; b=vkvtXucbF5KlGly49UF+ObfCqdQC+HBoOPAWRbUz9P5oNTzTcOSOT20ke4KUFXO5uw 7fJ2QvMxXErIBJd4ewnjc9y8Z7bvbIvc9YcmE6ORziLGP+67bGuflaru9rQmcuarTFyv A2L6xXSH6r6zlipHqL6buiYYJxijsR9os1xMKoLZdhbU56D1Fz+bmlTzmrKXqe6HePnl MjGjSUv3DubPk3Hrcto/2mmRjGOMHugid9bNAdFlbMS5PlVHPAqjXAkWJP04KxDXR5J5 TGxdHzvSASRGV8YybTtq1UY0EQPHdSAadVnvwZGnLLh/xhtT2YT2AYXx7qugHiR2UYBC hEaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P+04xdjl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn14si21247926plb.7.2019.04.25.01.42.47; Thu, 25 Apr 2019 01:43:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P+04xdjl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727231AbfDYHeu (ORCPT + 99 others); Thu, 25 Apr 2019 03:34:50 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:37794 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726184AbfDYHet (ORCPT ); Thu, 25 Apr 2019 03:34:49 -0400 Received: by mail-yb1-f193.google.com with SMTP id p134so8091534ybc.4; Thu, 25 Apr 2019 00:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jync8zT3pYBQlUFkiBZNXqfiHjID5+lBGeoKEA5uWfI=; b=P+04xdjlbqoPGTzo5FzfMh0+S6grgnpxLsoaONtUmmHj8RrK0LgzY82reoG1bJ8AnZ tTLaWStqXtJ30RMVMAs5cw5OOSWwvkyoNJsMbBE1NjM4+bDD0p9h916C1HnxolvBEzAA x9+tkDxJLOe3yAbvzHQOfhmdfhXRQ7NKfq/yPkdAD1xEeDD99Fka/hSxZjd6nAF7le4c x8wW0XRshBrFH7nQevMcVCoirZSHIxyXi2saS+HzB9dS6xiU833Sq2i4lvIn3L/eaKFj jIrZkN5qJNlUC11IOGQmp/s47LFfuF40tvXwGaL7YS4OD/KiuBMeRJuo1Z5oUSweA4GU LZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jync8zT3pYBQlUFkiBZNXqfiHjID5+lBGeoKEA5uWfI=; b=na8s/Yawpata+5Jbb2tHhJgRO6BzUL7AItb9f9v3piKX6JT35tutWwW/jVJXyhstJh BzrtlptV+GywMjMqAXngTWpacO7hMJwtpJ9DTK8/3Q0AfGgadR/rKuwQKPZNcw+le6ja AEv83MnQpnnQPZSupNKQL/ZB1Au4SYlsx5gkKC8KzcOJb5vhtrgHXLbuXyKKMbj3h83U NnPEgDEs657n7FqN695XMB801QhuuV+JnG3mlZR/uzp527cCeaoZ8XTj676P+XMuY9bz i+lxRV9ONxchckV7O1O+CRU+H1tSCU7vMy8c8lB6zl378f8EJ65izTuYkVAonrSMo8/z sS6w== X-Gm-Message-State: APjAAAWndokScijQ98yLYeLMpsL5cAS0PsH02CnY5hlHXY+ehMWlaQ3U cfwcE/tBiDCKSFzUg6fEYXQhd2nQcypE1Bhgow2gmulKHcs= X-Received: by 2002:a25:d7c1:: with SMTP id o184mr30575996ybg.147.1556177688563; Thu, 25 Apr 2019 00:34:48 -0700 (PDT) MIME-Version: 1.0 References: <20190411154534.25563-1-peron.clem@gmail.com> <20190411154534.25563-3-peron.clem@gmail.com> <20190423160545.muolantrdppz35rz@flea> In-Reply-To: <20190423160545.muolantrdppz35rz@flea> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Thu, 25 Apr 2019 09:34:36 +0200 Message-ID: Subject: Re: [PATCH v2 2/3] arm64: dts: allwinner: h6: add r_watchog node To: Maxime Ripard Cc: Rob Herring , Chen-Yu Tsai , Icenowy Zheng , devicetree , linux-kernel , linux-arm-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Apr 2019 at 18:05, Maxime Ripard wro= te: > > On Fri, Apr 19, 2019 at 09:00:42PM +0200, Cl=C3=A9ment P=C3=A9ron wrote: > > Hi, > > > > On Thu, 11 Apr 2019 at 17:34, Cl=C3=A9ment P=C3=A9ron wrote: > > > > > > Allwinner H6 has a r_watchdog similar to A64. > > > > > > Declare it in the device-tree. > > > > > > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > > > --- > > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm6= 4/boot/dts/allwinner/sun50i-h6.dtsi > > > index 5c2f5451227b..66dc684a378e 100644 > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > @@ -622,6 +622,13 @@ > > > #reset-cells =3D <1>; > > > }; > > > > > > + r_watchdog: watchdog@7020400 { > > > + compatible =3D "allwinner,sun50i-a64-wdt", > > > + "allwinner,sun6i-a31-wdt"; > > > + reg =3D <0x07020400 0x20>; > > > + interrupts =3D ; > > > + }; > > > > I have set the same compatible as A64 because regarding the User > > Manual they have exactly the same memory mapping. > > However we don't know really if it's the same IP version, maybe there > > will be an errata one day. > > So I would like to know if it's better to define the h6-wdt also > > compatible =3D "allwinner,sun50i-h6-wdt", "allwinner,sun50i-a64-wdt"= , > > "allwinner,sun6i-a31-wdt"; > > > > I would say Yes, but with this logic we would have to had a new > > compatible each time there is a new SoC. > Hi, > Why not just having the A31 compatible? H6 has a lightly differences in registers with A31 but it's the same as 64 (WDOG_KEY_FIELD) As the A64 is already introduced if think it's a good solution to reuse it. Cl=C3=A9ment > > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com