Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2288706rdb; Mon, 20 Nov 2023 07:13:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8Pk0Wsyw+qmLzMn11apeS5vBxu3R7wzY+Egqj0+B1t6Rox+hjMddmGS+/1hSfJq1LC9gB X-Received: by 2002:a17:902:9687:b0:1cc:431f:55e6 with SMTP id n7-20020a170902968700b001cc431f55e6mr6954594plp.63.1700493215813; Mon, 20 Nov 2023 07:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700493215; cv=none; d=google.com; s=arc-20160816; b=vBfzRiqc5WOTdUNUgeTZJV5KFda2bazm0p4rcqF27Ek3OBBKyVqnx/wkLZr/Khb35Q Mw8wCoNeP+yp6LeEOchHG5clfrQGJ9xedzKlDLDbesbGx2JxF7FAuIi1YM931vB8nmh7 YNQFTx9WBVcWkheDKbarnjUtHkOT3aZsEeBuytq2gtmgVu2vt18a2qTMNiG7TujvKmAd naidgAaVs+qh6/y9S++rL/3TupI8pHrTwezidSxgV6w4XwqqNt8CYBAC3li/LIJVFZzk XYmdhrFhCEtoq9ZKPyN0JbHyViGkORPci9rFFg9IvqhpjC9EjTrKokFjqq1jtXdqTEBZ 4/3g== 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=qGaqt17Gnv+JzAAAylZ0QVte6wEO0Ns2QmRGqJ3NeHY=; fh=DPAMgBak4jN5Xdso4WE5ZaKat6Cr8j7GYNtZqO3TuNw=; b=kketsMpKcwa/Uc38GS0gZTnVyrjd2xPLRcX8nNyXgZlGlj4vGTjVwdWLcwMhyQltIf kZo5Jp8UOPTTVJF3NwRZZe3bJzCrtWyKtFgUlS/qP/2xv6xDYTR4HjtBu4pPg96Ct2+c zk1DH9fl/vrWu434tWW1P/0JxEXqRYQ/d7U6KiqAoHCO9KQWZXWsB+J3uiKHzOSeoDui Z7Cw3o/1kL163dBzqgBzw7tazoN+kaayymHVsnXijJlpCR6crBRP/Td0GwMiLMMr8sEo vYqp5UHq5kf+TY3LMGXCzw8LRJwI5YwLzFH4Pgi/bt0sCMMepSpuOvl/lvjaYAUsGEM1 wcdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WFjR3VcQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id o12-20020a170902bccc00b001bbad1883d5si7752979pls.293.2023.11.20.07.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:13:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WFjR3VcQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 61F9A8077533; Mon, 20 Nov 2023 07:11:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234017AbjKTPLK (ORCPT + 99 others); Mon, 20 Nov 2023 10:11:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233546AbjKTPLI (ORCPT ); Mon, 20 Nov 2023 10:11:08 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7CA2BE for ; Mon, 20 Nov 2023 07:11:02 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50aa8c0af41so1786754e87.1 for ; Mon, 20 Nov 2023 07:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1700493061; x=1701097861; darn=vger.kernel.org; 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=qGaqt17Gnv+JzAAAylZ0QVte6wEO0Ns2QmRGqJ3NeHY=; b=WFjR3VcQeOuEjE4XZ4jdKWymEZjI4ELRQxKV8yZ8FlQVpajtLz1F+cvo3pDutWDXPv EMvcwGg9e5k0qDuaMSg15OHGmLoZ/jtoDilzIQLCf19EBZxqOjg9mtYZdllmCjlpsoU3 gZbkFKQwavejwM9eOlkqHE/kbIBgJWmQ6H5No= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700493061; x=1701097861; 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=qGaqt17Gnv+JzAAAylZ0QVte6wEO0Ns2QmRGqJ3NeHY=; b=S8Dwg7aWdh0UoKiZ+5GVZjCYmeK5j759EPL3CPdhcJEn0mZ1YZ6BMOjjsr2z8hpPCl q9eAC0rYaAsS1dOq69r7qZyFF1KQ7jtQNzH66zgElC8FGj9X6HRCGsQgL9/9GUyi2kM6 pCRv8K/TTo/JM/HW/O6xf+juNq0BbPS7cjjMjC/VGLkU6qPkh+hyJgr8qTf90RF7CeMD D8sezkUzuOA3AMNpWSXC3jT8BHQWOs5d6poK/volSIoy3I2/0apM5Q8bq8SNtyxN3VjN Qp3Fg2nZ4sipJaoSmcfvygVUAV6JQCJGoUpwxXAk3oMKE+wMIxygBNUjCjRzAD/ul254 Nfng== X-Gm-Message-State: AOJu0YzH0p95tAMcF5cPogm1+0YmsNEyvP/bDIBsJnC47n5lmX8KtK9M VQfFI7hHzx1Q+YONJdmbihY+VaB9LaevBdHxWNsF/g== X-Received: by 2002:a05:6512:3d06:b0:509:4730:9103 with SMTP id d6-20020a0565123d0600b0050947309103mr3354120lfv.6.1700493061064; Mon, 20 Nov 2023 07:11:01 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id g29-20020a0565123b9d00b00502e2ab7118sm1207444lfv.50.2023.11.20.07.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:11:00 -0800 (PST) From: Rasmus Villemoes To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, Andy Shevchenko , Lukas Wunner , Rasmus Villemoes , Rob Herring , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: serial: rs485: add rs485-mux-gpios binding Date: Mon, 20 Nov 2023 16:10:54 +0100 Message-Id: <20231120151056.148450-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.40.1.1.g1c60b9335d In-Reply-To: <20231120151056.148450-1-linux@rasmusvillemoes.dk> References: <20231120151056.148450-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 07:11:42 -0800 (PST) Some boards are capable of both rs232 and rs485, and control which external terminals are active via a gpio-controlled mux. Allow describing that gpio in DT so that the kernel can transparently handle the proper setting when the uart is switched between rs232 and rs485 modes. Signed-off-by: Rasmus Villemoes --- Documentation/devicetree/bindings/serial/rs485.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml index 9418fd66a8e9..e8136c7d22ed 100644 --- a/Documentation/devicetree/bindings/serial/rs485.yaml +++ b/Documentation/devicetree/bindings/serial/rs485.yaml @@ -61,6 +61,11 @@ properties: the active state enables RX during TX. maxItems: 1 + rs485-mux-gpios: + description: GPIO pin to control muxing of the SOC signals to the RS485 + transceiver. + maxItems: 1 + additionalProperties: true ... -- 2.40.1.1.g1c60b9335d