Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2424391rwb; Wed, 30 Nov 2022 06:31:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JmCwxnBxZI/e2QB3eefzJidC/G94CNrXT9QgTqMnce0zhDlPAKvcFctFumWqOIakL9uPR X-Received: by 2002:a17:902:6ac4:b0:186:bb44:946d with SMTP id i4-20020a1709026ac400b00186bb44946dmr43243830plt.11.1669818685423; Wed, 30 Nov 2022 06:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669818685; cv=none; d=google.com; s=arc-20160816; b=XHVoq/rHFc2WpPsRC0Vl7eSaRxMhLoR1ufQPQcIXFuinSMbsmAo7/2Zckm2zVX79wj SReCFT0bT9WxxGdZ5Wq/KySCNmPaSgVnxnfIIKw5kEa+2bJURQdSzZumuuu2cTURSOBt 7u4hv4ifxx37QGEoN82OW7m6fNXW25rnlxegzSf1aXm/t40usZZ3p5wdpDOFMHEZvCOH X7xeachrZ2ouH3soJJujjERea0pXcSvUcG57adQwHX/yo2Q3SESlELO8Ogy4yP9Re/mf bqF8f5qPiqLSGHl/Alyz7UelQ+DZzKgl8CDrvE33b/pimuBZZAMvBlJ+0U263uLVduqJ G5og== 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:to:from :dkim-signature; bh=A9lRrQgwNdzcRvhC7oNoTPa3Q44tE4Nwzh6uHCLmick=; b=msdAHdn/o/mLAEl6NCZnab7kbSyCENQU0+6i22ZbiwAVo10G9lZ1daIdmV1gAMshj0 zGzGw1wMXTq3RreVe59YaB8i21XwHXo3CJwjrWuV8COukYkj//sHMOWGB8e9iYBjVV0M BBEAhSanzm5qrAK9dGOzEZ0hb3JYwFl0lbOOXxsjnVSlNcMlGtvN/VdHFWVMJO1dxmRv 0k+cety01xx1hA8d+lrFVqaZqC0tA7NIxzqfiNfpM53410fQN0oylTm9Hkdn2YZcV6li sUttRy3WqR7PHpybdvRJQbmL3hgPSkzPHH6iaGbRao8aFZY8lUYz7VPYw4/HOOOAGBat E/NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newflow-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=nm+YD4lw; 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 z1-20020aa79e41000000b0056bffcfc30csi1672964pfq.249.2022.11.30.06.31.13; Wed, 30 Nov 2022 06:31:25 -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; dkim=pass header.i=@newflow-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=nm+YD4lw; 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 S229702AbiK3OGc (ORCPT + 85 others); Wed, 30 Nov 2022 09:06:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbiK3OGS (ORCPT ); Wed, 30 Nov 2022 09:06:18 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 443787722A for ; Wed, 30 Nov 2022 06:06:17 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so1492146wmb.2 for ; Wed, 30 Nov 2022 06:06:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newflow-co-uk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=A9lRrQgwNdzcRvhC7oNoTPa3Q44tE4Nwzh6uHCLmick=; b=nm+YD4lwlJczqUoucPAREX3wJ1l5vxvd15NAhW1krXPZ45EaIkJZujRWYYdH0/MI8q 772V7WkYr98nBWiw4n+93RnMt1P9wX4rdLcDiL9s/GypC1551L3RhS6I3v4fj/a1O6Nc WzCbReKSuk9bwVQhyc7bQ8KD2VvI5S2sjLI7+wbZNMdplEcQrXHyCEH1J1Zj1sSNqmoD LmOSSfjut2yj5pCJDMS6i8MILacyrMx3LJdfNUljrzby7osr01Lt+UJAvno8ypI7lixV AkUKYWxXPyjQ/0p4/j5WGYjU1ZhhaK4gatUON+anEc2Y3DUf95zpJcWMNfGc4z4gyxGo 2WOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A9lRrQgwNdzcRvhC7oNoTPa3Q44tE4Nwzh6uHCLmick=; b=Q7Ad62+UHu3ZuQmM1oCZPCeh8z3i0wYgCJP6+J/0ShzVeBkWj9iFdrsGPbIM0bsoDe a1csvjGl2LgSRoeCVrwtsOfC/z5VaUxhOM55vu8+8A9l4JAPXRA111deb+box5x1ABQ0 CmTsE4wVLz1CB4poe2YVSjflkCM53PqbahyfdYbt1w4viML0+WkY9ZeU+uJDcMoREhW5 Jr7hytyoOwIEehnhcPlf1Gwmnhn5hDGW3zkWEpKDs0yf7+SyfbULC8gpuZ4cGzeU5b7H ZWzZ+4BNOdx3Kjp+g6NyLoPK6WUREXltNdbazr39ihY6vtQRgXyEtoeyz9NvMkHRUX/i g0nw== X-Gm-Message-State: ANoB5pkGZsvkr08f8ECoYYvbcJVlmb88icA51RjhBfYJ63mt6ClWWH6T JWXJB6KZikULViP+ajGY1cgarQ== X-Received: by 2002:a1c:6a0a:0:b0:3cf:d64e:1cea with SMTP id f10-20020a1c6a0a000000b003cfd64e1ceamr31184977wmc.183.1669817175869; Wed, 30 Nov 2022 06:06:15 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id v128-20020a1cac86000000b003cfa80443a0sm2062542wme.35.2022.11.30.06.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 06:06:15 -0800 (PST) From: Mark Jackson To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 RESEND 2/5] ARM: dts: am335x-nano: Enable RS485 mode for UART3 & 4 Date: Wed, 30 Nov 2022 14:05:44 +0000 Message-Id: <20221130140547.295859-3-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221130140547.295859-1-mpfj@newflow.co.uk> References: <20221130140547.295859-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 UART3 & 4 are both RS485 ports. So we need to configure and enable this by default. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index 05cbfe24f778..cecc2afaeff4 100644 --- a/arch/arm/boot/dts/am335x-nano.dts +++ b/arch/arm/boot/dts/am335x-nano.dts @@ -187,12 +187,22 @@ &uart2 { &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; + rts-gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>; + rs485-rts-active-high; + rs485-rx-during-tx; + rs485-rts-delay = <1 1>; + linux,rs485-enabled-at-boot-time; status = "okay"; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins>; + rts-gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; + rs485-rts-active-high; + rs485-rx-during-tx; + rs485-rts-delay = <1 1>; + linux,rs485-enabled-at-boot-time; status = "okay"; }; -- 2.34.1