Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4703020imw; Tue, 12 Jul 2022 12:42:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vGzBszCytYwikAHSiYsS6sXvhX2nOUWcf/ROgFGWO9/Rc7QhcHRAJF1S/0WkskJHH007DU X-Received: by 2002:a17:907:d88:b0:72b:1127:33f5 with SMTP id go8-20020a1709070d8800b0072b112733f5mr26074810ejc.725.1657654965453; Tue, 12 Jul 2022 12:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657654965; cv=none; d=google.com; s=arc-20160816; b=uz5w6sZmH2Cwu4ZaqEjCA5+1FaRP73GkDVI02leYoH9z27Tpz4e4oM6dMUwT1QWq1M bavz8vf87md0fGNUYwWhBnvv1pHGFwL6Wvm68TMTTT9anDU/7P0O5CxoT4MUvvynb80C 2C1qpJ9XrVQZbv9jz0NPCDi93peBEcgRMgOqRCuS3oBpFH9CPjHQp1ES1EPC3Go9fBkD dLXajgvphADJlLD9zUZLWP8n7DvzHzBOtxA4JGHpyYgH8sww2XkuA5QbWn9gj4v8emBQ lMxSclgw1dvs5TkkHZHr/JJTPvG0BnsRcQIVScXiOln0/h/l9KRySptrVzVvpS/Vm/IT 6cFw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6W8B6L9eDM4m8/MJ0avbA+DgywTO7XdB8xPvfv0PlGg=; b=FlMHcXaTw5MCsz2wRxvvWsEx/RDvad0md3+++FJzchg98hV1nY6BEeBkRG5RHVrsqY NqeCbG0WUgeTB/QobaEsTLT/o8Tw8I46caAUKiqyzProAAiJzVB3tKxTdzKe65jsaQEq yEwgDOFWrkIBd6Yjks18G6aW3My4DKhcvIH0uLGm+n4mhJTNlNXKhR4Q7HjB09OHYmLB mpuGB4zsRHPtmqI8tr1Hudr834f+iUXWyXIW/ZySCPq8fHJCzFG4fFqXMGMeCTc3fj7g PJNeVRr01/CMPDPcUNoR6EUbE7OwS4rq3k1bExqTyFPM5SktysWFTVcDuWenE9gnsAoC mibw== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz9-20020a1709077d8900b006f38560fe61si1980672ejc.94.2022.07.12.12.42.19; Tue, 12 Jul 2022 12:42:45 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233513AbiGLS2i (ORCPT + 99 others); Tue, 12 Jul 2022 14:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233584AbiGLS2f (ORCPT ); Tue, 12 Jul 2022 14:28:35 -0400 Received: from mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84EDAC3A; Tue, 12 Jul 2022 11:28:34 -0700 (PDT) Received: by mail-il1-f177.google.com with SMTP id k1so5374905ilu.1; Tue, 12 Jul 2022 11:28:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6W8B6L9eDM4m8/MJ0avbA+DgywTO7XdB8xPvfv0PlGg=; b=1wbdy2i8SlMUxxaqW+Y+8EUofUwOygMa/V8td+FfunEA0+eaheWADD4YuDkEMZB02J 8CYyLE68aWyEAHpZc1cRjwju6jbtmbYZ9nTGz52hE70ItdssARk3G9sZE1wP/h1qZrp7 8497cNBh0uxmwCNl50I9crma197EVLIrKJ6wT5YwHQDo1ez4bQGVS4PSUIX/lqxeA7ng eOMKTRTsOtD5NAtprk0TrUP0uxT/jR+FRGfSrk00Z9wAbvjQqSzE5iQySVTUP+rZALuy VxWcNa0yPBRIBFZuGMCeJAl0vjRbgDdkZnvkCDEbValVA904X5Y3GF80I/bT9F0UHx52 /6vQ== X-Gm-Message-State: AJIora90/Gww1wAWGI23I9qpMFFcgLLumrgRKdWQ2l2kq66XJ9H0y9GE t0HQpxtxmKEmmrj2HMi2wxTB+Jim4g== X-Received: by 2002:a92:c242:0:b0:2dc:2df2:a3d1 with SMTP id k2-20020a92c242000000b002dc2df2a3d1mr13172826ilo.111.1657650513726; Tue, 12 Jul 2022 11:28:33 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id o17-20020a92d4d1000000b002dbee570531sm3992059ilm.18.2022.07.12.11.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 11:28:33 -0700 (PDT) Received: (nullmailer pid 2143588 invoked by uid 1000); Tue, 12 Jul 2022 18:28:32 -0000 Date: Tue, 12 Jul 2022 12:28:32 -0600 From: Rob Herring To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kabel@kernel.org Subject: Re: [PATCH v3 1/2] dt-bindings: watchdog: max63xx: Add GPIO binding Message-ID: <20220712182832.GJ1823936-robh@kernel.org> References: <20220705001023.14660-1-pali@kernel.org> <20220706150726.GA40600-robh@kernel.org> <20220707122730.45jtopop5cj7beni@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220707122730.45jtopop5cj7beni@pali> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, Jul 07, 2022 at 02:27:30PM +0200, Pali Roh?r wrote: > On Wednesday 06 July 2022 09:07:26 Rob Herring wrote: > > On Tue, Jul 05, 2022 at 02:10:22AM +0200, Pali Roh?r wrote: > > > GPIO is optional and used for WDI logic. > > > > > > Signed-off-by: Pali Roh?r > > > --- > > > Changes in v3: > > > * Extend description > > > --- > > > Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml b/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml > > > index ab9641e845db..a0cf9e6c371d 100644 > > > --- a/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml > > > +++ b/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml > > > @@ -27,6 +27,10 @@ properties: > > > description: This is a 1-byte memory-mapped address > > > maxItems: 1 > > > > > > + gpios: > > > > As I said before, add a name prefix: wdi-gpios > > So gpio with output direction should be really named that is input? Names are based on the pins they connect to, so yes. The flags cell will make it clear it is a GPIO output. > I really do not understand this kind of thinking and making every device > tree description totally illogical and inconsistent with all other. I don't understand what you mean. When there is a 2nd GPIO used for this binding, what do we call it? 'gpios' doesn't scale. > > > + description: Optional GPIO used for controlling WDI (watchdog input) when WDI bit is not mapped to memory Look at it this way, why do I have to find and read the description here to know what 'gpios' is for when instead, it can be self-describing when I look at the datasheet and the DT to see this is the GPIO connection to WDI signal. Rob