Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1372886ybg; Sat, 26 Oct 2019 19:06:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqznuUD8KgQhyIJiQu25y1rhMRyIIJ0OQYKnQLGDU1Rqelrl/V/k/Y+GYIfVGzQL71UM1RVe X-Received: by 2002:a17:906:4e82:: with SMTP id v2mr10515851eju.192.1572142017814; Sat, 26 Oct 2019 19:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572142017; cv=none; d=google.com; s=arc-20160816; b=uBUxnLKlluZjDQR+zXxsNrOjXqd8pji2dDnl2U/JmteTs0/1YPacCWQWZGlfUMJtUd mOamTtNhsS172eAGySNuTb4nV/puwMWU3JsCgdHCh+2WBWvAfWsqD9ioXl+vNLuc3Cqq MJifSO1re2jgzQf2QkMpV6k68YwiBM0pmbDdonjJs+Jjy3ZOkdMuOF4DGKC5ICoOJr/X fsYsWrJ48d399Qrz6Dj9hRyl9c5TVEw0rKMZqKOwDLcb9Qa7MgkQNwwkf8ApY4Dh55VD BKeO7xgIw1+Wd3tjWiHM00V2NaOJh4Ywrq9L6ZARGccuWn7dZesBZvWiEtl+n3W0oNDX eNMA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject; bh=VYXE/jPBsf0bu3o0Nxrq0DpfDNcxtBdcbmLbLKE5EBg=; b=i/9kFwNC/Q+os9YIRGhdpwFkGqTavyqwBcarx2eiP+oFnkg5TvqfZ9Yw4lL3wDlNmf V+vxbbdAjzFCYCHRRxqjZo2wOscNngvDEBUotOOls8M2oCev1SzpA9MJxswf7qqFBOyh 4elrVTxdovu45W1FSVsNk5KvulY3yfe7pniLJJxjvSI2yiL9bGjDFoZMjvGc0wldwWNf HAuSyYD7W9nnT4qoaCUpKMuvd0nMcMMRgfUV1144tMknDrf4zBgW8GnX88dPyXKsJtRv dsouc91tCeeKjuxYL/Y59bYGuv13rTFeethOKWHmj6jYJTuQgsMoyE4nYC4rpofJOdY3 3siA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10si3874035ejf.388.2019.10.26.19.05.54; Sat, 26 Oct 2019 19:06:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726592AbfJ0CEp (ORCPT + 99 others); Sat, 26 Oct 2019 22:04:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:51512 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726525AbfJ0CEo (ORCPT ); Sat, 26 Oct 2019 22:04:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 969B5ABA0; Sun, 27 Oct 2019 02:04:42 +0000 (UTC) Subject: Re: [PATCH v2 1/8] dt-bindings: watchdog: realtek: Convert RTD119x to schema From: =?UTF-8?Q?Andreas_F=c3=a4rber?= To: Rob Herring , Wim Van Sebroeck , Guenter Roeck Cc: Mark Rutland , devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-realtek-soc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20191020040817.16882-1-afaerber@suse.de> <20191020040817.16882-2-afaerber@suse.de> <20191025211638.GA28819@bogus> Organization: SUSE Software Solutions Germany GmbH Message-ID: <7fff9d25-e24a-c73e-b14f-12c66607fe3a@suse.de> Date: Sun, 27 Oct 2019 03:04:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 25.10.19 um 23:24 schrieb Andreas Färber: > Am 25.10.19 um 23:16 schrieb Rob Herring: >> On Sun, Oct 20, 2019 at 06:08:10AM +0200, Andreas Färber wrote: >>> +properties: >>> + compatible: >>> + oneOf: >>> + - const: realtek,rtd1295-watchdog >> >> You can drop the 'oneOf' here unless you're planning to add another >> entry with 2 compatible strings. > > It's a preparation for adding rtd1195-watchdog when needed, to make > future diffs smaller. There's also RTD1395 and RTD1619 to be tested. > >> With that, >> >> Reviewed-by: Rob Herring Self-NAK. The example doesn't pass dt_binding_check: It doesn't like the tabs retained from the original binding. Replacing them with four spaces makes it pass. Will post a v3. As for the compatibles, currently in the rtd1195.dtsi patch I'm reusing "realtek,rtd1295-watchdog", to avoid a dependency on the watchdog tree. Long-term that's kind of ugly as it uses a later model number. That leaves us with two alternatives: a) "realtek,rtd1195-watchdog", "realtek,rtd1295-watchdog" - this requires oneOf. Allows to distinguish between RTD1195 and RTD1295 while remaining compatible with the current driver. b) "realtek,rtd1195-watchdog" - requires the driver change now and requires the binding to be merged before I can use it in the DT but doesn't need oneOf here. Guenter, any preference here? Thanks, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)