Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp375495pxb; Tue, 15 Feb 2022 15:52:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVOe2A+Eb0v0slrlvMNEVk7QRJ+wJh7iE15TwbJX25AL2ahAhpfVX/A9ULtEo2MX16t5bS X-Received: by 2002:a17:906:3a87:b0:6cf:6571:4a3b with SMTP id y7-20020a1709063a8700b006cf65714a3bmr355760ejd.78.1644969171206; Tue, 15 Feb 2022 15:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644969171; cv=none; d=google.com; s=arc-20160816; b=Mq4RDjwgD3QGgmcRDOh/+6sHqUYCJZQheLtZlKhEfdSWfVg20r9Op7GkhK7qbwMHfP V1LM0u3gcoES1zV1nhckmiINUZO5oB22/R60FAntRBaHHcQSK677cevrRPUyGsxZEpaC LlrW0nhFbtvsJkfBZxSvkJayzWdbnU80ztlvB3QFodXG9pfp5UScvUR93YY5Q16Kx0ok AUhBBagrHJCRqiesJ/LfuKVk4VRMgkWq8v0HRjQMhLW9niJwfMGs9GkcIFE9WM8ShPRK Zo+X75tM00Z7qnxA3o99woHQxXoyz7Ek8r3ZobVupgDz+dIJksm1wm/1U4xIzmO26lUO IMDQ== 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=rTMTMmTuoklUk82BfoAP4ub5xrMJwZ14wPQnJEMjvPo=; b=r9r9w3tBeDdqoePUHgk8icQmkr1l4qlLPXRgH+pXgaBM9ySvnT5gRWlAVUR6sBQMoL Mr0bq49tgXlWTYsJklGMnVYL9xRN9m3Vfn1OJ0Ts0/mwMXAhYPT6c2HAeh1Wl7WvahYu XkipR2bhOk6/FufdLASdjZ6BI9l7Hontfvj1roGtd4evD4szc4O+nDUdPjWLtVOmUWNc f0cPaEZGvdgG5eI4/KYY36TR2WmLrW9uYB1vToAvFo+AQ7H/40nl6hCZuRjzBx1p4WUj cdOzTQypPNQEQXDiFLFCo6FNyYWKK14EMWLywAg0ohkq/ZsmhvBeohu4YfSp2SS5RKvW oYrg== 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 eq17si833307edb.52.2022.02.15.15.52.28; Tue, 15 Feb 2022 15:52:51 -0800 (PST) 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 S241834AbiBOQvd (ORCPT + 99 others); Tue, 15 Feb 2022 11:51:33 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241844AbiBOQvc (ORCPT ); Tue, 15 Feb 2022 11:51:32 -0500 Received: from hs01.dk-develop.de (hs01.dk-develop.de [IPv6:2a02:c207:3002:6234::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EED5106CB3; Tue, 15 Feb 2022 08:51:21 -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 2/2] dt-bindings: ps2-gpio: document bus signals open drain Date: Tue, 15 Feb 2022 17:51:13 +0100 Message-Id: <20220215165113.52659-3-danilokrummrich@dk-develop.de> In-Reply-To: <20220215165113.52659-1-danilokrummrich@dk-develop.de> References: <20220215165113.52659-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. 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 41e43d797651..42dbfe5523fd 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