From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v4 3/5] dt-bindings: watchdog: add Allwinner H6 r_watchdog Date: Thu, 23 May 2019 14:57:16 +0200 Message-ID: <20190523125716.g4euwplfsvw4vqzl@flea> References: <20190521160330.28402-1-peron.clem@gmail.com> <20190521160330.28402-4-peron.clem@gmail.com> <20190522103243.mmrfato5p2mhtf4j@flea> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wdtcxmlg6dhvhpqj" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Mark Rutland , Chen-Yu Tsai , linux-watchdog@vger.kernel.org, devicetree , linux-arm-kernel , linux-kernel List-Id: devicetree@vger.kernel.org --wdtcxmlg6dhvhpqj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 22, 2019 at 06:15:26PM +0200, Cl=E9ment P=E9ron wrote: > Hi Maxime, > > On Wed, 22 May 2019 at 12:32, Maxime Ripard w= rote: > > > > On Tue, May 21, 2019 at 06:03:28PM +0200, Cl=E9ment P=E9ron wrote: > > > Allwinner H6 has a second watchdog on the r-blocks which is > > > compatible with the A31. > > > > > > This commit add the H6 compatible for the r_watchdog. > > > > > > Signed-off-by: Cl=E9ment P=E9ron > > > > Unless you have some evidence that the two blocks are different, then > > you should just reuse the same one. > > I have no evidence it's different nor identical, it's not documented > in the user manual. > I thought it would better to have separate bindings in case there is a > difference. > Than don't have and find later that we have to introduce one. It's a tradeoff. Pushing your logic to the limit, we would have a compatible for each controller embedded in an SoC. This would be unmaintainable, and slightly useless since that case is very unlikely. However, having differences between SoCs is quite common, hence why we have different compatibles for each SoC. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --wdtcxmlg6dhvhpqj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXOaYrAAKCRDj7w1vZxhR xUPnAPsGJnjqxtkcj8BFHo1UbY6rBrhE114RafzPUtXuJD8o4QEAmWfFGwayxZZ0 63T2ZEyt/CbXZE9fTnSFpRsi3BkzQA4= =Frvc -----END PGP SIGNATURE----- --wdtcxmlg6dhvhpqj--