[v4,3/6] dt-bindings: serial: add binding for rs485 rx-enable state when rs485 is disabled
Message ID | 20240126-dev-rx-enable-v4-3-45aaf4d96328@theobroma-systems.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-40234-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp712932dyb; Fri, 26 Jan 2024 07:01:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG60M4CvYxDPAjbVYwp0XLvPHSXjSMgCrsdQq4z+Hi9pxGl8C9x/+wdrfYSDah6SA0wzEEE X-Received: by 2002:ad4:5fc9:0:b0:684:e4e3:3a49 with SMTP id jq9-20020ad45fc9000000b00684e4e33a49mr2396704qvb.48.1706281271365; Fri, 26 Jan 2024 07:01:11 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c1-20020ad45ae1000000b0068c36c87e6bsi475087qvh.472.2024.01.26.07.01.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 07:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@theobroma-systems.com header.s=selector1 header.b=AUoVsn2e; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-40234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40234-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=theobroma-systems.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 048931C23DA7 for <ouuuleilei@gmail.com>; Fri, 26 Jan 2024 15:00:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2B611E86A; Fri, 26 Jan 2024 14:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=theobroma-systems.com header.i=@theobroma-systems.com header.b="AUoVsn2e" Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2040.outbound.protection.outlook.com [40.107.22.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 658081CF98; Fri, 26 Jan 2024 14:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706281114; cv=fail; b=ZukU3YOLWcw7ZQz+OiAZGVtaOU63jm+3iUSadOxqGQBeZ6I1PqS3blaOjpMTw2dkJgVG54gJmaqhS4dHuvPb1QPC9fUbyzU9DP83cBq/vTp4wE5Z2OYE7hOd/LLkTY4yNRdwE8c4cmTEaHzq/rpAG6l6yCdaHntaD3Uks05Zlzs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706281114; c=relaxed/simple; bh=bU8QzIIAEmLwIHySXLaVymY4yS06nq9pd0KTDM18h3M=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=VkjMxfiGBJCNAJA2FoASJclWcRaKbooobRwRVyFOPLiYQqHv2E23pfLUuK6UJ5NQHH6fekE97/snKv28HUbRN5tvWZ0fl23z24yh4AzIF6CG+Xc8rlFhhFbVN+Nwtw8k+Yb0NEuJLOBErRfs4U+pR7qHeu9JEoHqv4+D7kDZGUA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=theobroma-systems.com; spf=pass smtp.mailfrom=theobroma-systems.com; dkim=pass (2048-bit key) header.d=theobroma-systems.com header.i=@theobroma-systems.com header.b=AUoVsn2e; arc=fail smtp.client-ip=40.107.22.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=theobroma-systems.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=theobroma-systems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LPupAlI8bKDW7Q0jLQ0HQ62YxGPEHdUngDJ+O7sq7dImxH5P9K03ZxV+IeeOC1sUe55g+JB40/Bx8u5rT9Icdzm2mdbDo9xhR/BdvLNGjLbREGHzioYcL8CXbGx0QRQSD7lGDqfBh/o7QdkKvYVKpuHegV4Spe5L5RJzq1oqBgPrCuXewdi3zewNERYQAFOZ5gZcUNEoRV2CTvG+Owt4HJYY1z1O8ybVvQqmOlvnTBOhDNJaoAdADcus6Rd9qqL/ywlj+Jt9DAPvHLmxMdrEO6TgSOU0xJfCa/SB5iZkk4V92+f7O3QqRI1wpMylb6Y6FUUm1agFtCpJBHZ3RIyLqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Wb46A5LLYS4lPodtjzqkEpywdweV2Ij7mTZrNtpcHr8=; b=Xy/r1gUoHpv27k4MqUOVbbe66ZnP/SWSdtQ6xFIr+4cwEbwl38jPhzrI0BuV/DxWrYkfBvAhNTFPnjmeagJpbimMdXI0wzTysvRK1km5nQ1jU3uOVP5u+EZ566YG80wtEvAsct/8f+iefB59h9L1cyFZ3tpFolic8+a+jPm/BK79/VKlCCjfuxDts5oEux9pNTwX2s06Q9ypxrJ5BSAdyublzVcsdYn2H+leAaiuOl6ZQdu9/yB2HQsdgCqoBIMn4BUl6h+hufF0TVKUncJPpW9J3dWZP1Ukk3FSQtwn210B7nYo5wVF1mUfmNM6uMwh/pfH96y8Y8Thok/z3nFUug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wb46A5LLYS4lPodtjzqkEpywdweV2Ij7mTZrNtpcHr8=; b=AUoVsn2ewuC/M4TLJ2Avjn3aW6VD/BUWuLP0hiGorBQVqQIwRLb4pswJ1M+j0kfO05sbNyUkP1u6e7XDgmLKk1/9tvOxGZB+M9P3HTAO9zZIKWp6MN6qkagCTehV+lYd09yAmQGTaGXYK1r13+654Hvxlkf/J2rnTYLsfelr0nA0zm/NBEpXrxC56AoF6n6rJh5LB39h+qBS+7QhH6cXR16/Hs80d0GpxvDJODQRXd+fW/aJToUGqOX5rxH18VmA8lPCaRqwjTCK3iMwApPovrG/tup09QfFAol/3SHvYkErI3JddrQiG3aNBLu8bkERIAQv0289/3cy+fx0iyc7/Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from AM0PR04MB6371.eurprd04.prod.outlook.com (2603:10a6:208:178::19) by GVXPR04MB9735.eurprd04.prod.outlook.com (2603:10a6:150:118::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Fri, 26 Jan 2024 14:58:25 +0000 Received: from AM0PR04MB6371.eurprd04.prod.outlook.com ([fe80::e130:6c40:23e5:9a8f]) by AM0PR04MB6371.eurprd04.prod.outlook.com ([fe80::e130:6c40:23e5:9a8f%5]) with mapi id 15.20.7228.022; Fri, 26 Jan 2024 14:58:25 +0000 From: Farouk Bouabid <farouk.bouabid@theobroma-systems.com> Date: Fri, 26 Jan 2024 15:55:12 +0100 Subject: [PATCH v4 3/6] dt-bindings: serial: add binding for rs485 rx-enable state when rs485 is disabled Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240126-dev-rx-enable-v4-3-45aaf4d96328@theobroma-systems.com> References: <20240126-dev-rx-enable-v4-0-45aaf4d96328@theobroma-systems.com> In-Reply-To: <20240126-dev-rx-enable-v4-0-45aaf4d96328@theobroma-systems.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Heiko Stuebner <heiko@sntech.de> Cc: Rob Herring <robh@kernel.org>, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, quentin.schulz@theobroma-systems.com, Farouk Bouabid <farouk.bouabid@theobroma-systems.com> X-Mailer: b4 0.12.3 X-ClientProxiedBy: VI1PR06CA0114.eurprd06.prod.outlook.com (2603:10a6:803:8c::43) To AM0PR04MB6371.eurprd04.prod.outlook.com (2603:10a6:208:178::19) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6371:EE_|GVXPR04MB9735:EE_ X-MS-Office365-Filtering-Correlation-Id: df1b6018-3cd0-45d5-c165-08dc1e7f3f68 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uL4WJea0dEcD3BP2fksuub1KNtbWiqkkZaTmvz9viKCrjouBtzhLGYEGwqqAitcn3OFXFvnw/z1lwxUsQEjtE5i2gFqIQewe9KImiur9I4XzedtiaMZdAhnGRJqao+z+hoXHZaC3RpQezDzNrajdVQHILyVo+RiGHkBHUk94o4i2QmhmHoM7yisHWsWBIwtPM5VXDwba2j6UCbpteBD7tgam0umZov0MmmTRl2T8Rvr+NbGdARyPfnEwuFsMDgvUNLOHprZhMUfFaWejseZSnArfDt4NJS3EP5kBj31Ayq494Q3FMpWabNd2fxecFJwLI2Q6SQinmu04YUDf4DLNVPhYmgf/Bvu4YXJQn7PWa0oChVSIY1ENgt0w1tiYw6MYuCZh9MkgAzaHGeVzlDHeXPT1loyJO+ykUqJLc2krv72I7Gy6ODer5PZEbtmLTG0KhyT3dLBRZS0Qsrqpaa8esDRA42F/hnEwXIvoDt2xHD1SkLPOOtAkUdxoPOr6zYnU7l6Pc4YdYNnfeNRnJ+/1SQfhKEf+L3Z1pzY+LDxH/WrTdctTFU1N9HNM4GFJHj855JWo9MEcZkNpo31eaXJMfeKpfh0c0WD4Yh9y7hVtJZnetngg2/Gp5xaonb+qsMyL X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6371.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(346002)(136003)(39850400004)(376002)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(66476007)(54906003)(66556008)(86362001)(478600001)(38100700002)(6486002)(6506007)(36756003)(38350700005)(41300700001)(52116002)(4326008)(8676002)(8936002)(26005)(2616005)(316002)(5660300002)(66946007)(6512007)(6666004)(7416002)(2906002)(44832011)(83380400001)(107886003)(110136005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LcPkiJ3QfUykiBoK7uTqzLAKYZ/n?= =?utf-8?q?lZzK+fTGCcB1nG15twQy780xN8gq82DKtP+Ae4djecEpXmv4LNQhxnyxFwZdh7aGS?= =?utf-8?q?XXUcaHqF1NeXkoh4UXNB3tUxEAQN6HItSFLazWXyUQEwwakDVQpPqLOTiSHgWG/Y+?= =?utf-8?q?9kctQBJylScAZy8h6SDq+Mp9YlUuaUWNOc0Lew+rQvKTLWxmDe8rgICfoPz7tMz/A?= =?utf-8?q?I2bCg9N48lu/yjI5EMP7QTDJpYgROR5umpPJrwFIUpuRHFb++EvBzrSkjQTTjT0tX?= =?utf-8?q?0vuTEVkJ1U0O2H2GxLZ7fCWoP8cUZ/l+NRake0HIGnr5PeWFtLVpeX8/etzTVrihj?= =?utf-8?q?2OzAs2+6YpW7Yd8BTQhLyuIgT+ro4UXfrl8+nUrAf4ts3I14GONs6GwlF1bTVr+KH?= =?utf-8?q?92LdtwHyvwNb0y4218n49GEU+Xcg8OygKZ06KgorDmoqm+p/13lzOvjk6oTxwcqVc?= =?utf-8?q?IbX06IYjsUFuuKiSaSh7FEa0Y0rWKVyPF3hTJZw8u0+S5kMG83rZcDVu5NNd8Dsv1?= =?utf-8?q?51iX3f16M9rMjMPE/TC7nCogzO3TTnDp7XhtC1BUuOaTNkmWP+3ciai7Is0xG0R3R?= =?utf-8?q?gfU+jjbe/gUnlgdNcDiZiMitzJGXi7yzP/42dK2odZeSR3XXZbelpEex6SN7RV1iC?= =?utf-8?q?Xgyff94IiKix6Dq1hqmA3ESO0Zc94TeU771wClYqoQooVoBKdsohOToHAlrUA4FQT?= =?utf-8?q?voGIY0ursP4Q7Y6dKKIkg76xqp23u9wcanHCcm0oO3NIxwVGJWb25qSPuNi1YgfVV?= =?utf-8?q?t254nrcarcDI5Kmcc3BfAehW56B8lJtS+5m50GdRk9Bzt/cjTsxiv4rC0rhS8pwer?= =?utf-8?q?fPivGqzaaSP6EtKfQwViD91BDgyx1uPofRqp9XL40gQXBN5UTLHMmJUjm31EKfhed?= =?utf-8?q?FZaLr2SY3rY3tLx+YDV7sBxvI/YjFmj3wtSUmapSz3KEMlh+AldA2oU3y5cXW1us4?= =?utf-8?q?fSx5Zg5ktr/bIP5QQQo0VsiwWuAGcm0C/OyCcZ8L9BXE+HZegoUdP81LXyVRLKevj?= =?utf-8?q?k9cViFvGejrGm4m0C87koNAiD2wf7rv4Nuu61m5BGYEIF/ceTkH9yvprXzoNqfB3L?= =?utf-8?q?yBFeYNx1YrCMiVku58rTDdlIKE8U+TymLpWfL1C/k3pzJegDH3si72ZUOQp186QRZ?= =?utf-8?q?Leu42bpdvy64NJWKwNym/KjHb268R6f4kKfV6CcQNKrMYSkgqCSpPmUX32syPzkkw?= =?utf-8?q?A0atu96r+tIUMxZ1nXZmdZYDTMo/QRaBMh17W0i6o/rJOkd6KGzD6f41ajr03nHQj?= =?utf-8?q?5/MjFU+rDR+Tuge9EHf+lxZ0yiGHqt6y3137Pd6vgSORJAxQn0wgrUcyS5ysg61qY?= =?utf-8?q?BuHMFH2UxUMPJsFgXyeMI83TRc2gb2y90YLpW6NgUc9RFMNGDDFb89T+4YCXL3CUI?= =?utf-8?q?1AeZUwi55A1FyTI9bAhM8mMh3aCdsYGZOoEVxymMlFYHhGCZvxDW0SEbQgu05qux3?= =?utf-8?q?EVKWM4w6C6+1Q9Q+5pJlZ/wSQhOsDp/m8Nk3HqrZ2yb0hGxxJLaHK7OYYxzJsIqLY?= =?utf-8?q?4wOc1yhchpx8oAX+jChJ7450W2rwfKdPN/IZpXr8JxCgqBPcOr0Z2Vc=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: df1b6018-3cd0-45d5-c165-08dc1e7f3f68 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2024 14:58:25.4797 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YZj1cWrQOCZ4I6/7k/hdG9QO6+5QHOcATmlcFutOexe5gT9XmRucMRRbBAWYhtpREHegI4WdRna072iQCtXBZWfPr0ja4hARFgxNScK8G+P0wbHHLEShliWOt/KF14QF X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9735 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789165590346628199 X-GMAIL-MSGID: 1789165590346628199 |
Series |
serial: 8250: Add support for rs485 half/full duplex on puma/ringneck-haikou
|
|
Commit Message
Farouk Bouabid
Jan. 26, 2024, 2:55 p.m. UTC
RS485 can have a receiver-enable gpio (rx-enable-gpios). When rs485 is
enabled, this gpio, if provided, must be driven active while receiving.
However when RS485 is disabled this gpio should not have an undefined
state. In that case, as DE and RE pins can be connected both to this gpio,
if its state is not properly defined, can cause unexpected transceiver
behavior.
This binding depend on rx-enable-gpios to be implemented.
Signed-off-by: Farouk Bouabid <farouk.bouabid@theobroma-systems.com>
---
Documentation/devicetree/bindings/serial/rs485.yaml | 5 +++++
1 file changed, 5 insertions(+)
Comments
On Fri, Jan 26, 2024 at 03:55:12PM +0100, Farouk Bouabid wrote: > RS485 can have a receiver-enable gpio (rx-enable-gpios). When rs485 is > enabled, this gpio, if provided, must be driven active while receiving. > However when RS485 is disabled this gpio should not have an undefined > state. In that case, as DE and RE pins can be connected both to this gpio, > if its state is not properly defined, can cause unexpected transceiver > behavior. > This binding depend on rx-enable-gpios to be implemented. Why do you need a dedicated property for this when there exists a device specific compatible for the uart on both of the affected rockchip systems? Thanks, Conor. > > Signed-off-by: Farouk Bouabid <farouk.bouabid@theobroma-systems.com> > --- > 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 b64577036b5c..4c79dfaaf460 100644 > --- a/Documentation/devicetree/bindings/serial/rs485.yaml > +++ b/Documentation/devicetree/bindings/serial/rs485.yaml > @@ -55,6 +55,11 @@ properties: > description: GPIO to handle a separate RS485 receive enable signal > maxItems: 1 > > + rs485-rx-enable-inactive-when-rs485-disabled: > + description: rx-enable GPIO is not active when RS485 is disabled. If missing, active-state > + is assumed. > + $ref: /schemas/types.yaml#/definitions/flag > + > rs485-term-gpios: > description: GPIO pin to enable RS485 bus termination. > maxItems: 1 > > -- > 2.34.1 >
Hi Conor, On 1/28/24 18:38, Conor Dooley wrote: > On Fri, Jan 26, 2024 at 03:55:12PM +0100, Farouk Bouabid wrote: >> RS485 can have a receiver-enable gpio (rx-enable-gpios). When rs485 is >> enabled, this gpio, if provided, must be driven active while receiving. >> However when RS485 is disabled this gpio should not have an undefined >> state. In that case, as DE and RE pins can be connected both to this gpio, >> if its state is not properly defined, can cause unexpected transceiver >> behavior. >> This binding depend on rx-enable-gpios to be implemented. > > Why do you need a dedicated property for this when there exists a device > specific compatible for the uart on both of the affected rockchip > systems? > This has nothing to do with Rockchip's IP but the HW design of our carrierboard, so using the "rockchip,px30-uart" for that (which I assume is what was suggested here?) is incorrect since it'll also apply to PX30, RK3399 and RK3588-based Q7 SoCs we manufacture. Did I understand the suggestion correctly? Cheers, Quentin
On Mon, Jan 29, 2024 at 01:26:51PM +0100, Quentin Schulz wrote: > Hi Conor, > > On 1/28/24 18:38, Conor Dooley wrote: > > On Fri, Jan 26, 2024 at 03:55:12PM +0100, Farouk Bouabid wrote: > > > RS485 can have a receiver-enable gpio (rx-enable-gpios). When rs485 is > > > enabled, this gpio, if provided, must be driven active while receiving. > > > However when RS485 is disabled this gpio should not have an undefined > > > state. In that case, as DE and RE pins can be connected both to this gpio, > > > if its state is not properly defined, can cause unexpected transceiver > > > behavior. > > > This binding depend on rx-enable-gpios to be implemented. > > > > Why do you need a dedicated property for this when there exists a device > > specific compatible for the uart on both of the affected rockchip > > systems? > > > > This has nothing to do with Rockchip's IP but the HW design of our > carrierboard, so using the "rockchip,px30-uart" for that (which I assume is > what was suggested here?) is incorrect since it'll also apply to PX30, > RK3399 and RK3588-based Q7 SoCs we manufacture. > > Did I understand the suggestion correctly? Yes you did. That explanation for not being able to use the compatibles makes sense. However, I can't give you an ack, because reading the commit message gives me the same feeling as looking at this photo: https://www.reddit.com/r/pics/comments/f8jyuz/nothing_in_this_image_is_identifiable/ Sorry, Conor.
diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml index b64577036b5c..4c79dfaaf460 100644 --- a/Documentation/devicetree/bindings/serial/rs485.yaml +++ b/Documentation/devicetree/bindings/serial/rs485.yaml @@ -55,6 +55,11 @@ properties: description: GPIO to handle a separate RS485 receive enable signal maxItems: 1 + rs485-rx-enable-inactive-when-rs485-disabled: + description: rx-enable GPIO is not active when RS485 is disabled. If missing, active-state + is assumed. + $ref: /schemas/types.yaml#/definitions/flag + rs485-term-gpios: description: GPIO pin to enable RS485 bus termination. maxItems: 1