Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp567615pxb; Tue, 15 Feb 2022 22:19:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1TNEe4KiVxmvuIViVN3G/4C8tSWmXlDBlK31UcyiEAdkO8Ym7jV71FRVBrbZCx/ZCurRi X-Received: by 2002:a05:6a00:7c6:b0:4e1:799:7a2 with SMTP id n6-20020a056a0007c600b004e1079907a2mr1546128pfu.25.1644992391062; Tue, 15 Feb 2022 22:19:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992391; cv=none; d=google.com; s=arc-20160816; b=mkUjfNY2ofEGPE+YK9J87z93nILep+U3Uz+nSaR85nCn4mX6Ug+p0x94gKFYGqI2gL JAw3ZH1Up1cnxUfoqc2l62ITnOqIedII5Dt2dLsS/NcXIO4TwQGJ/Sj46v0/dzSxxMeH VY7G6p/vJf+k5jfeQlFG05QqveOPvY/yvvT6ogF091Pgq1wW9YOZxxnl1ymJqL6sTDkr QRl5wba2PW8u8hKUs6NCyLy2a1s7KyZbAAJPKyXR+T615TIpQGFyU9bAb5kSsywuyze6 CJTZpkPjumjqyGGR1CKDMflowMaSsWqgyQQyHDyX9CpyFpjaVhTBonBQNZixAyynbDu+ 5W3w== 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; bh=lsGK/qQgzEJhVaa0z4/6bXFBP3IymdlgzxBAihYhOGM=; b=bgw/QE4v2gAvE65N+xU+pszBytzVBhjz7xrF7kSVzyNOACPXyVt3AQxb1Xi+AFUIYJ bcqVPKxhd6bsikqfdqFdkrX6WnjmdIfwNqmKrtGLIHJp41GuiVpnQ2FsdKGv8/IzSnxx lKmOTu0+FWi5EI9E2XLImtXdgfbUUS6G19tuMJ820HEemKU3WGGF7vDrzjLVP79mRTp3 MpsXzAsnNs7xhb6hQk5ADHaVjLvfN9lC20B3T288TSgs7GmXmzH0046aJLtO0mP0+pI7 86oaSxq0+JNpmtqR3oLgzu0jRgi1v1LNqVdfj0VLTTe2UjtdHIBuw6+EMshQG9P38/DU VHCw== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l187si2530752pge.813.2022.02.15.22.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:19:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5BBEF196A37; Tue, 15 Feb 2022 22:17:50 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242880AbiBOSIt (ORCPT + 99 others); Tue, 15 Feb 2022 13:08:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242870AbiBOSIq (ORCPT ); Tue, 15 Feb 2022 13:08:46 -0500 Received: from hs01.dk-develop.de (hs01.dk-develop.de [173.249.23.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9628F1199; Tue, 15 Feb 2022 10:08:36 -0800 (PST) From: Danilo Krummrich To: krzysztof.kozlowski@canonical.com, dmitry.torokhov@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, Danilo Krummrich Subject: [PATCH v3 2/3] dt-bindings: ps2-gpio: document bus signals open drain Date: Tue, 15 Feb 2022 19:08:28 +0100 Message-Id: <20220215180829.63543-3-danilokrummrich@dk-develop.de> In-Reply-To: <20220215180829.63543-1-danilokrummrich@dk-develop.de> References: <20220215180829.63543-1-danilokrummrich@dk-develop.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 The PS/2 bus defines data and clock line to be open drain, this should be reflected in the gpio flags set in the binding. Especially, this is important since the clock line sometimes is driven by the host while being used as interrupt source. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Danilo Krummrich --- .../devicetree/bindings/serio/ps2-gpio.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/serio/ps2-gpio.yaml b/Documentation/devicetree/bindings/serio/ps2-gpio.yaml index 304132fd30c5..a63d9172346f 100644 --- a/Documentation/devicetree/bindings/serio/ps2-gpio.yaml +++ b/Documentation/devicetree/bindings/serio/ps2-gpio.yaml @@ -15,12 +15,18 @@ properties: data-gpios: description: - the gpio used for the data signal + the gpio used for the data signal - this should be flagged as + active high using open drain with (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN) + from since the signal is open drain by + definition maxItems: 1 clk-gpios: description: - the gpio used for the clock signal + the gpio used for the clock signal - this should be flagged as + active high using open drain with (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN) + from since the signal is open drain by + definition maxItems: 1 interrupts: @@ -52,7 +58,7 @@ examples: compatible = "ps2-gpio"; interrupt-parent = <&gpio>; interrupts = <23 IRQ_TYPE_EDGE_FALLING>; - data-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>; - clk-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; + data-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + clk-gpios = <&gpio 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; write-enable; }; -- 2.35.1