Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3104146rwd; Mon, 29 May 2023 05:55:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fODgken/tXTDhBdPiOgyxFz77D6AYwh2iU48t/cP1twCkIOvogSx7sCm60HXloq8VJI2/ X-Received: by 2002:a17:90a:1b81:b0:24e:3b69:a87f with SMTP id w1-20020a17090a1b8100b0024e3b69a87fmr10837217pjc.25.1685364938698; Mon, 29 May 2023 05:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685364938; cv=none; d=google.com; s=arc-20160816; b=QE/n0xdwlYclE5fMaVLW8RWNb2qFslHZUY0a8mz1hMp7gUhgW3ce38m2SjtFeW4TDp wdl2+RPgQxv5PtgRtFARIbNl7eNoKnrEhAMyzRRd5sGXKi3j4fmz+PW9x93suyASL1C3 yEEjuSej7CCwT+zEthia8Q4xoCoEAiB+mgUc9Ayu4MWLDJ++mBurSwV159zTcNkuL0Vf SOkVa1TVRH8qZ3axkWlS3HQwMlKjwIAcePdk9ps3InCWf91/HIzv/Ci/5k0AGxpnw8ZY oyXdcHtt75i7UJVRNjihaOWnYL8V0BHnw+DGqyrK4Lbd+mMl7HRO/W3wYvrELXfxPJzQ tj4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5KPivjtn9RvVUaICBia49Bo0NKChUCROrgpKRCrVMP8=; b=nnQC4OekQdwRkkRVdNq2IpwSnbfiqNly9Xl5YjlR1Oxbn0pOUK2nfzEHl3vg3VD2YQ U7rpdZbE4Njr1KkDZpRyT100g3uPaokHsYPfa4DPVoyc0w5w64ZslPxtAHcH6jgGRv72 XC9TnTbPsUvl9MpyppPRHdiXwyF7vcozb4BGLefhRrR+nl0BbpLXGrhPzYOFUAANJWVh +7b/dadzSP/mtod7yExzZ0GFHg5JYyFpSHmzFDpx0QVQ708ieiBIzilbEu+x7An88kbJ RowJDx8guX0ma2EnU6TVErNzYfX81LXVaee4arK41YGDgTuzS41NPhlkJjhbkQeiPWd3 +DTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hExlsBTg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj12-20020a17090b344c00b0024df8757367si9653647pjb.87.2023.05.29.05.55.25; Mon, 29 May 2023 05:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hExlsBTg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231788AbjE2Mel (ORCPT + 99 others); Mon, 29 May 2023 08:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231772AbjE2Mei (ORCPT ); Mon, 29 May 2023 08:34:38 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BB7B1; Mon, 29 May 2023 05:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685363677; x=1716899677; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4pmOlNa7lnhyf/SMcDgOZ3LHEEg6eRD1aYLUUYNr8Ek=; b=hExlsBTgdId86OHOizx6I8PcF+OfgoQg7fgIkMJfFqwZwlVrBr6SmgPK qdzSNV2n+otNxvHII0H7ezXPg04ym15WXhK/+eluFxKFYMUCDucigeUSm 7N12zB5AX1J+o+WzadOW1jTAc6RVz4gvF7QKglKZ1AX4oKxJHy2Hoj/nY YW0qRnYUgPwYMAgAD7IXsUklioFSnqeIFuaA5EQM993NmkuX/5W1nIFrB AFP0qyn+lpKqaPiBiRazEq45/A9dfXa1Eq0aoJjZX5NMs0r/RA2/3HdCJ ETk2x6AU9Ce9LsQ4TTt3O+rmQkrBL9DxraZaWwmKUoM/EtXDnOybuDZPR A==; X-IronPort-AV: E=Sophos;i="6.00,201,1681196400"; d="asc'?scan'208";a="227438102" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 29 May 2023 05:34:27 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 29 May 2023 05:34:27 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 29 May 2023 05:34:25 -0700 Date: Mon, 29 May 2023 13:34:02 +0100 From: Conor Dooley To: Bharat Bhushan CC: Conor Dooley , "wim@linux-watchdog.org" , "linux@roeck-us.net" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "linux-watchdog@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham Subject: Re: [EXT] Re: [PATCH 1/2 v8] dt-bindings: watchdog: marvell GTI system watchdog driver Message-ID: <20230529-unwanted-chewer-b3f6ab8bcb86@wendy> References: <20230526062626.1180-1-bbhushan2@marvell.com> <20230526-bondless-slather-5de0a5659353@spud> <20230527-wiring-coping-88eba4d91f3f@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ywTPy+AUgC8z/xRs" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ywTPy+AUgC8z/xRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Bharat, On Mon, May 29, 2023 at 06:14:07AM +0000, Bharat Bhushan wrote: > Fallback you mentioned make code look simple. Is below representation cor= rect for above mentioned fallback?=20 >=20 > properties: > compatible: > oneOf: > - const: marvell,cn9670-wdt > - items: > - enum: > - marvell,cn9880-wdt > - marvell,cnf9535-wdt > - const: marvell,cn9670-wdt > - const: marvell,cn10624-wdt > - items: > - enum: > - marvell,cn10308-wdt > - marvell,cnf10518-wdt > - const: marvell,cn10624-wdt Instead of having const: bits for each of the single-compatible ones, if you are not going to add descriptions, I'd probably do: properties: compatible: oneOf: - enum: - marvell,cn9670-wdt - marvell,cn10624-wdt - items: - enum: - marvell,cn9880-wdt - marvell,cnf9535-wdt - const: marvell,cn9670-wdt - items: - enum: - marvell,cn10308-wdt - marvell,cnf10518-wdt - const: marvell,cn10624-wdt > And driver will have > { .compatible =3D "marvell,cn9670-wdt", .data =3D &match_data_oct= eontx2}, > { .compatible =3D "marvell,cn10624-wdt", .data =3D &match_data_cn= 10k}, Otherwise, looks good to me. You should probably also rename the file to match one of the compatibles contained in it. Thanks, Conor. --ywTPy+AUgC8z/xRs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHSbugAKCRB4tDGHoIJi 0jZ9AP9dKKl1qfQuhXx6zf7LJ/oKTPhJB0Iymd+M3n5+3MyDMAD9HryFUB8C5p7A zZ1uKMaseMn/g5aNILTTqA5PwMwQdQ4= =6E/Q -----END PGP SIGNATURE----- --ywTPy+AUgC8z/xRs--