Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1118625ybb; Wed, 25 Mar 2020 16:17:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtciw9D1pzSG9PSobg6gl0Fvb4KvCJJ5DJYamh//JvbRfL2iNbBAw3oYawxoRqu2hG4NoRP X-Received: by 2002:a05:6830:22c3:: with SMTP id q3mr1893833otc.152.1585178224640; Wed, 25 Mar 2020 16:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585178224; cv=none; d=google.com; s=arc-20160816; b=AvxUI3pagqBcho2GxBxRL+A6tpP1KiJdewmpS8sU4Hsg5T9aPtL0Ljbh29dg3qa3Hk Ra4VipswwR0Sym8kEq7R8dwWxUtEdDU3QUqXV4RUNOf0hr48vw6AQcJnjlrWsFP/mk6q NmIhePVQOTgxcE/IknLGJvUo4snNt5ECzjxMLtPfUky/LbhB+EXEvAVn/W7QSJPwGhfe h0TSaKa6IC9+ojbefGOPLredhdREMMQ90NuuoNzCuA+MiOLfH/avUBX/4atl76+DN5lw dgmmUoT6TajbTCOT9QgqHPHvcQdjElqtYnxxwoyvdiTziJT1Nk6eHqVX7ux6ngftI2gr BayA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=64dIl7nWhLizW2Rdo3s13/bIgTPZXz75obx6l9Xlbk8=; b=paN71mMvv82TJtvV09GkzRH+k8Cf9Ao3poVQIegh45O4u6T92hUG1KE0+fhNYqdEqm Be8aI3YBy2kPjPC/lCWjl7yDZGCqhTE62lgOYBkdlfNZ3aSogZs3Uiq9gCJHH1SSVpcB tGkJiLLpUvEok+Ekv6vzKvIgGTCpDw/xkBWxxaVvdM75tK7ojc2Ws0lMFcHAJnpHhSkd 46f7Y+a3y2YA4Aip4UjQmoy3/Ba7yBnVFr2VOA+LGv1z01ErJBsPSRtR8bMxYBj7JrFS MNgVzyO6yXDJhXAu2jpwCbqz8H6t5QJhDn70bbxj0BLtHmK7n15EMPFyKn2CfDStAXF9 k6JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si244570otb.59.2020.03.25.16.16.52; Wed, 25 Mar 2020 16:17:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbgCYXPE (ORCPT + 99 others); Wed, 25 Mar 2020 19:15:04 -0400 Received: from gloria.sntech.de ([185.11.138.130]:40172 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727549AbgCYXOm (ORCPT ); Wed, 25 Mar 2020 19:14:42 -0400 Received: from ip5f5a5d2f.dynamic.kabel-deutschland.de ([95.90.93.47] helo=phil.sntech) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jHFEH-0007ug-Q3; Thu, 26 Mar 2020 00:14:33 +0100 From: Heiko Stuebner To: gregkh@linuxfoundation.org Cc: jslaby@suse.com, andriy.shevchenko@linux.intel.com, matwey.kornilov@gmail.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, heiko@sntech.de, lukas@wunner.de, christoph.muellner@theobroma-systems.com, giulio.benetti@micronovasrl.com, Sascha Weisenberger , Jan Kiszka , Heiko Stuebner Subject: [PATCH DON'T APPLY v2 2/7] dt-bindings: serial: Add binding for rs485 bus termination GPIO Date: Thu, 26 Mar 2020 00:14:17 +0100 Message-Id: <20200325231422.1502366-3-heiko@sntech.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200325231422.1502366-1-heiko@sntech.de> References: <20200325231422.1502366-1-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lukas Wunner Commit e8759ad17d41 ("serial: uapi: Add support for bus termination") introduced the ability to enable rs485 bus termination from user space. So far the feature is only used by a single driver, 8250_exar.c, using a hardcoded GPIO pin specific to Siemens IOT2040 products. Provide for a more generic solution by allowing specification of an rs485 bus termination GPIO pin in the device tree. An upcoming commit implements support for this pin for any 8250 driver. The binding is used in device trees of the "Revolution Pi" PLCs offered by KUNBUS. Signed-off-by: Lukas Wunner Cc: Sascha Weisenberger Cc: Jan Kiszka [moved to yaml rs485 binding] Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/serial/rs485.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml index d4beaf11222d..a9ad17864889 100644 --- a/Documentation/devicetree/bindings/serial/rs485.yaml +++ b/Documentation/devicetree/bindings/serial/rs485.yaml @@ -43,3 +43,7 @@ properties: rs485-rx-during-tx: description: enables the receiving of data even while sending data. $ref: /schemas/types.yaml#/definitions/flag + + rs485-term-gpios: + description: GPIO pin to enable RS485 bus termination. + maxItems: 1 -- 2.24.1