Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2045311rwa; Mon, 22 Aug 2022 00:40:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7YmBtJ+8ixiwpKBNJFuO/RLh1mUrVoVSRyFy7Uw/s7RlGHxx6pwxccPmTNSo+EP0jxsQNr X-Received: by 2002:a17:907:a0c6:b0:730:f081:6e8e with SMTP id hw6-20020a170907a0c600b00730f0816e8emr11756211ejc.479.1661154025395; Mon, 22 Aug 2022 00:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661154025; cv=none; d=google.com; s=arc-20160816; b=xzKQM5XhQV0wlxX+Snq+JD9v2cDIiWxic3sNDPv+wAGr3Nw7d57tubEfKXAw6uNJy0 v/W1DwIQsNAzHNhDkgb77phJpqUmxqR7sczAHsqpEzyANOxQ5LaFnenY9ox1XclnE52j 1kbjatsCsywR1ZRBmm1lMNSva7R9ASIAkZYGTT9MxeR1N9pkuMAw5vFtb0F5pLRiFKyy AfSMVxdIAulnKeZ/ke8yTyZkEoqoXnJqerOiKCYO1KrYVp6y206KOLjRws264lFnIKPZ VQx4PZuRNnOgK7y/2mKQOVbJ2IRu/uGJWe+9mQt6aI31Ha06/tFMOqB3UZm1Sn4R+Y8T 31lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=K9GqH8J2Rtwg9al68hkNDhdyAqH2iZ0okDuLSh58pgQ=; b=CEsKHGZCr1kgyZuUoPsMWkIEOOX7802aE1unqR8JH2OhZi3pwHqmHzODuHIoS3dlZR WFW3cWle/3lzDuYQjimA45UvglEUDNuYYei2pA79dKvawALtaUkoVe4XiY4jA1A/9yew hkUfS0QmeMENSVuCKKQbHHgWK9tCQ65Km20WDSIi7PvmZGu3JFikItuD+ywmupSayIwl j8d4Z/tv6oLMvoaLy51/KH43m45UW08L9eIKqt3Ew74MM3NtrZKHYrAsV+FAyIhpUClv 7Byh/2rZYBCBwfpMPzjIX6WJs4hqd2js86UIueU86nDPzGLoQ9pzx4/hxgXuqyGw23Zr lLLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lcomsdQY; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a1709066c8200b00738a50268d3si1235071ejr.417.2022.08.22.00.39.59; Mon, 22 Aug 2022 00:40:25 -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=@linaro.org header.s=google header.b=lcomsdQY; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233071AbiHVHWC (ORCPT + 99 others); Mon, 22 Aug 2022 03:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbiHVHV6 (ORCPT ); Mon, 22 Aug 2022 03:21:58 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3967A29C88 for ; Mon, 22 Aug 2022 00:21:57 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 2so4641613edx.2 for ; Mon, 22 Aug 2022 00:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=K9GqH8J2Rtwg9al68hkNDhdyAqH2iZ0okDuLSh58pgQ=; b=lcomsdQYETH++8/O8lDI76zbdmo8u73NvmYlTumg800wRLlB85LnH8xGZR3hpnq2ng YM2W5trM6h53BduUHjBwQU5/ATLm3SpfWgCKzjNs6OSd0XUlv/Kd3ywDUtBkITmkN68p Ec1JBUOsQpTNRVcdVnbVT04cmjsQKxHMk09ymwk+FCwhX7Y7ZEdVEBiRWVcgPpRLtkai HuqgsCXZYusUEMAe51bTP7zo7Z6RjFOgZ4v7iij8PEn5jrov1ZG5fH2voQNQWozsJuPw UohDEWX/Iga/EJHAw6mBbg3Lqixv/zy8AlYNtBgEDSkqVC1a5dQ/yfrbVyi1gM64LVRz PFJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=K9GqH8J2Rtwg9al68hkNDhdyAqH2iZ0okDuLSh58pgQ=; b=Umx3Zs7/CyytPglQIPxPIN4nINUghRjCd8mwZBuK4444DlFbnXzB8fy5I92toFdLVg ORvcTvx5RRs93M8cPy4csM1AWlruHVd+2IVB4dXVKhiltS558YSOy9HK+rYaI+Y6YuKW b6EGuXjylaPS5NsFJohNnR65u1Dg/WYR0TXTUdgpiq+gzBhEb+MEH0ZjWqOP5yQx8sjf GwmFB07oEYzqPbYJAOTo+jCausQy5B8pJnXSEmTr7lATa0ecZ3ss7iYMZPSnwFbhxfYV M/xfLZ77iIXl7mIUy1f2pctdeDlLrP6aDkO2LY55N+7h9epKgFuOE3lZ2ZM2+Zs2AxbT 3wqQ== X-Gm-Message-State: ACgBeo0dI0huWtFYAc/cuiDX9weu+c7dT4biMBSPG5QH/Ugj6VAwPJDE ILrbmY4V/rPPH3/NuVwDJvdo87JNhp1I1YulrSZQhw== X-Received: by 2002:aa7:c84f:0:b0:446:2bfb:5a63 with SMTP id g15-20020aa7c84f000000b004462bfb5a63mr12780779edt.172.1661152915747; Mon, 22 Aug 2022 00:21:55 -0700 (PDT) MIME-Version: 1.0 References: <20220728091712.13395-1-m.zatovic1@gmail.com> <20220728091712.13395-2-m.zatovic1@gmail.com> In-Reply-To: <20220728091712.13395-2-m.zatovic1@gmail.com> From: Linus Walleij Date: Mon, 22 Aug 2022 09:21:44 +0200 Message-ID: Subject: Re: [PATCH RFC v1 2/2] devicetree: bindings: bus: add Wiegand driver documentation To: =?UTF-8?B?TWFydGluIFphxaVvdmnEjQ==?= Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mani@kernel.org, hemantk@codeaurora.org, elder@linaro.org, f.fainelli@gmail.com, Michael.Srba@seznam.cz, jeffrey.l.hugo@gmail.com, gregkh@linuxfoundation.org, bjorn.andersson@linaro.org, saravanak@google.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On Thu, Jul 28, 2022 at 11:17 AM Martin Za=C5=A5ovi=C4=8D wrote: > Wiegand write-only driver requires definitions of two GPIO lines > in the devicetree. This adds the documentation of their > definitions. On top of the other comments: > + Both data lines are initially pulled up. That makes it sound like they are both open drain, right? Just like I2C. > + wiegand-data-hi-gpios: > + wiegand-data-lo-gpios: So these should be tagged with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) See the I2C bindings in Documentation/devicetree/bindings/i2c/i2c-gpio.yaml > + wiegand-data-hi-gpios =3D <&gpio2 1 GPIO_ACTIVE_HIGH>; > + wiegand-data-lo-gpios =3D <&gpio2 2 GPIO_ACTIVE_HIGH>; (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) on both then! Yours, Linus Walleij