Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3184356ioo; Sun, 29 May 2022 16:26:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBKwLDz/deQMIpej14wvcj/Wvb/FWF5INEa/683NavqBJPIKkXNmu7Hbys4xNbLkiBRve6 X-Received: by 2002:a17:902:a502:b0:151:8289:b19 with SMTP id s2-20020a170902a50200b0015182890b19mr53583588plq.149.1653866798762; Sun, 29 May 2022 16:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653866798; cv=none; d=google.com; s=arc-20160816; b=02wPwvcsPkA2znPcMOPLZK/vdmeUDMaNJpzNJic5m60BmPxuZ4Pnseq2Xk8sTn7wn7 TBY9xWPn+VfkD2QBKV6/DYxOphBhSTk1qgj4gsHRKHS+jtqLBmwpBYsQ6rDBKWela/sk jU8GaHEEkgwe56Vn9+a9MCJiDqFRFzN0MDIV6EG0oUD0EFJmzhBULqcjGAOBwkSXwcRI rhMYzrZMurc39suvXeFioY/JIt7x9vFNrcAaA9bFjjHBfbYWg4LpK8K/LaIwNP08B8PA Z1WyNHb/NFV75Je3lmy6HXkdunib5LQ9w5oB7VKwVBuLEhJwXo+WDPc7U3Q7DRVAvLjy jn0g== 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=QcNJ2uagHgSPfw0xe+SyROUpMhRgTXpt83d18VABjUU=; b=EhB/YwaLGVy35Ujfc7f2KQBUt0Yb0e+QEkpo810mQn3XBZcusuSmY5DRIzRD8Pag3N ycvSq4YYKZr0AINJIlKbruPxVGfENv3XC5PovPV+WGghdRkCXj74k0Vkuh2LBSaot5MX uTzr1XHkOdr7VgOvlsPFXUmyjzOwqiLxwd/C7iZOHYbH/XgLrQlKN8K6qN8T5cEE++vU VrSQmtM/VAInK3OswbRkwua7T+081G/39hs7K7Lmgy9mA/KUROf3VBSfUACnkRzLu3Uz FW79As+8wd57tyrVOqXYs3dTH3PcgpsMnHw7WrkAdHuQMF5YRkqHqAuILZsH/5ua3IDP D/9Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il17-20020a17090b165100b001df891c9ab8si12496245pjb.47.2022.05.29.16.26.05; Sun, 29 May 2022 16:26: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbiE2NdW (ORCPT + 99 others); Sun, 29 May 2022 09:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbiE2NdU (ORCPT ); Sun, 29 May 2022 09:33:20 -0400 X-Greylist: delayed 383 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 29 May 2022 06:33:18 PDT Received: from hs01.dk-develop.de (hs01.dk-develop.de [IPv6:2a02:c207:3002:6234::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A476B47043; Sun, 29 May 2022 06:33:18 -0700 (PDT) From: Danilo Krummrich To: krzysztof.kozlowski@canonical.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: [RESEND PATCH v3 2/2] dt-bindings: ps2-gpio: document bus signals open drain Date: Sun, 29 May 2022 15:26:38 +0200 Message-Id: <20220529132638.13420-2-danilokrummrich@dk-develop.de> In-Reply-To: <20220529132638.13420-1-danilokrummrich@dk-develop.de> References: <20220529132638.13420-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,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 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.36.1