Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7557142rwr; Wed, 10 May 2023 09:36:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EpO/VkPHjkLPO7dYtSolpOVPz8CUzUE/dS2aHn56pACzbtZjY+k+kGD6o7VrTY0hs/AOM X-Received: by 2002:a05:6a00:1343:b0:646:c30d:e9c2 with SMTP id k3-20020a056a00134300b00646c30de9c2mr11056526pfu.28.1683736577789; Wed, 10 May 2023 09:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683736577; cv=none; d=google.com; s=arc-20160816; b=K8n8nuast2Jx/1XeCXG1VyQQadA1NPM5k41o3nkIVVKECghsGDxVL4PfDr3/NNf707 lAQHPB2PWX7XplPcC3YRVWxy+ngVPwqaYXSqNizjmzfRVUIwJyvvD/QwsCl6r/lrth7+ x99CdKfy5DMgnuJeGCFaJ2SQRpmWsayfvYITZKGFmgVoJEpu6JY7tSbRJooai8aFEVc4 2EFYOypE0VOL1w5jmsIad2r2si0ubvBxUFYNQQ2b9uM+slB64+7R717BpyOfPcL/pDcF VAOSHmuwF7/5TpUb4S7goOzsA461xjoDOcMuNOkkTlO9SLdwkjQbiWgyh/QcBjSzDPKU PQ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GMXjZD5TG12KlJC0oMszsNGKJaWk0DNrIhumCmxtZDQ=; b=LilPZTnVFHFJizRHIi+qoNlmBBiLkqHn+Nx3vVW/nWi5mFNT311GQSXg/u3wCchXo3 uhjvlLQQavfo29rzEG0u4UaThHghx7dn5rzusvIXwz472HyXU60iwzbzCZqkw95dxR0q uw7Cdiu9etLgOKj6gPMxouU23Kh5Arml5yxIU+T5VIHXph9fdrTW5NKmMD3r6I9mYz21 nAp2Aaphlc1ScZDoZDFgvQaGF7HDWMPKYGMklv6R53pZmObKMV+qF7NBbX5xnHvUA4FE dJrqjA58+EseU8cSWGyGnCC7D+tRckLj11uD5vn7tDtoqNrb9IUhQJgVg7fymmb3lBQu sDRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EeiLouIo; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a633609000000b0050301265ffcsi4316365pga.471.2023.05.10.09.35.43; Wed, 10 May 2023 09:36:17 -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=@gmail.com header.s=20221208 header.b=EeiLouIo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235134AbjEJQYJ (ORCPT + 99 others); Wed, 10 May 2023 12:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjEJQXc (ORCPT ); Wed, 10 May 2023 12:23:32 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 198817D97; Wed, 10 May 2023 09:22:56 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-969f90d71d4so347235566b.3; Wed, 10 May 2023 09:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683735774; x=1686327774; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GMXjZD5TG12KlJC0oMszsNGKJaWk0DNrIhumCmxtZDQ=; b=EeiLouIo8Cw00Sa3M2/bq+acP9EsBNGgNlXg3uJ3iODy1v6EnM0Ve3NcOvg0nm1J77 3v51DGXizh127Li3O3T6UmJUMRLFthAyw51Xu76O6cPH2fAL/TjvyokPMOnMMdud81Az VC1dI79sMhRb0c3b3htMcojLWb36HseGozRaa37rLTeYfAqqB1g37s8NxXgEIIFnIAma 5OWVStih6zNUsYZk15XZLggo3pOoagipJsNkNHEKPlWvLB+BltE9z3hN8p3rCGIE1osT vb01nF6S0bU8THPlnNayKkOGd2UcuR302G+BdVDb2WXl/68c/xNjvA9aNLI7KskZiHm0 o3tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683735774; x=1686327774; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GMXjZD5TG12KlJC0oMszsNGKJaWk0DNrIhumCmxtZDQ=; b=VBzN/WbkoGZhsza95lNxLe+O4itgr94qNCzt2nE/y7c/CDM2eoHiGtUkKjEYTcEIuu hzDFohKib/DXNONi/vG7ALlv+0ddTF5sJcYzMqVIINdKIIMJHEdwyo6Exi8lkih418CD +NdzyTVUu6zHKtm0xp1JaXEJC1MFA0QSCRaXNPiTR9in7AvoHV5VEKQJXv9Z1Cpe5icb Tzz2MH/bgvHFdx5LVnqzL0CI3z+I4TMcHO5Mkuq9m+L7xpgZShZusCwhwvH1OJlYrKLp NH3IjzHDIs4L1JkiPudHMlgt5jVXoaluS6+m9wFPTkFeut9OzXbmYD3+CB+b7n538HgK bAXg== X-Gm-Message-State: AC+VfDzutVD9Q+0QYrcabfajbJiEnDmcZgkfygpWgQAolae8qSNExIwd qy3A0INoofh7yN/xZt8/TsxscLPiDc+jyVZ7 X-Received: by 2002:a17:907:1614:b0:956:f4f8:23b6 with SMTP id hb20-20020a170907161400b00956f4f823b6mr19575722ejc.43.1683735774026; Wed, 10 May 2023 09:22:54 -0700 (PDT) Received: from fedora.dev.tbscz ([85.93.123.158]) by smtp.gmail.com with ESMTPSA id m28-20020a17090677dc00b00947ed087a2csm2890149ejn.154.2023.05.10.09.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 09:22:53 -0700 (PDT) From: =?UTF-8?q?Martin=20Za=C5=A5ovi=C4=8D?= To: linux-kernel@vger.kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, beanhuo@micron.com, nipun.gupta@amd.com, linus.walleij@linaro.org, mwen@igalia.com, bvanassche@acm.org, arnd@arndb.de, ogabbay@kernel.org, linux@zary.sk, jacek.lawrynowicz@linux.intel.com, geert+renesas@glider.be, benjamin.tissoires@redhat.com, masahiroy@kernel.org, yangyicong@hisilicon.com, devicetree@vger.kernel.org, =?UTF-8?q?Martin=20Za=C5=A5ovi=C4=8D?= , Rob Herring Subject: [PATCHv4 1/4] dt-bindings: wiegand: add Wiegand controller common properties Date: Wed, 10 May 2023 18:22:40 +0200 Message-Id: <20230510162243.95820-2-m.zatovic1@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230510162243.95820-1-m.zatovic1@gmail.com> References: <20230510162243.95820-1-m.zatovic1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wiegand bus is defined by a Wiegand controller node. This node can contain one or more device nodes for devices attached to the controller(it is advised to only connect one device as Wiegand is a point-to-point bus). Wiegand controller needs to specify several attributes such as the pulse length in order to function properly. These attributes are documented here. Acked-by: Linus Walleij Reviewed-by: Rob Herring Signed-off-by: Martin Zaťovič --- .../bindings/wiegand/wiegand-controller.yaml | 39 +++++++++++++++++++ MAINTAINERS | 5 +++ 2 files changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/wiegand/wiegand-controller.yaml diff --git a/Documentation/devicetree/bindings/wiegand/wiegand-controller.yaml b/Documentation/devicetree/bindings/wiegand/wiegand-controller.yaml new file mode 100644 index 000000000000..8f36287e4fed --- /dev/null +++ b/Documentation/devicetree/bindings/wiegand/wiegand-controller.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/wiegand/wiegand-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wiegand Generic Controller Common Properties + +maintainers: + - Martin Zaťovič + +description: + Wiegand busses can be described with a node for the Wiegand controller device + and a set of child nodes for each SPI slave on the bus. + +properties: + $nodename: + pattern: "^wiegand(@.*|-[0-9a-f])?$" + + pulse-len-us: + description: + Length of the low pulse in microseconds. + + interval-len-us: + description: + Length of a whole bit (both the pulse and the high phase) in microseconds. + + frame-gap-us: + description: + Length of the last bit of a frame (both the pulse and the high phase) in + microseconds. + +required: + - compatible + - pulse-len-us + - interval-len-us + - frame-gap-us + +additionalProperties: true diff --git a/MAINTAINERS b/MAINTAINERS index 7e0b87d5aa2e..55602888f084 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22697,6 +22697,11 @@ L: linux-input@vger.kernel.org S: Maintained F: drivers/hid/hid-wiimote* +WIEGAND BUS DRIVER +M: Martin Zaťovič +S: Maintained +F: Documentation/devicetree/bindings/wiegand/wiegand-controller.yaml + WILOCITY WIL6210 WIRELESS DRIVER L: linux-wireless@vger.kernel.org S: Orphan -- 2.40.0