Received: by 2002:a05:7208:960e:b0:7f:5597:fa5c with SMTP id gt14csp1677154rbb; Thu, 7 Mar 2024 08:42:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUe5Hxu+JJHZUeqVDOaToyarQzzDSrrEYoEgNPTfjAjNWEVLEGzVKoRrFv2uvswXsUVWJnWdh6V0rMLTMXxDfpzHiBL8ZP7/T2So0fFQw== X-Google-Smtp-Source: AGHT+IGalHIW4EieVSo2JK5VHjPZNsU8DZVsWDNkQ5pUu2zt+Hh6HGDTjy4oC+VyjBKNKIECHRoF X-Received: by 2002:a17:903:1110:b0:1dd:159:e2e7 with SMTP id n16-20020a170903111000b001dd0159e2e7mr10176557plh.39.1709829752904; Thu, 07 Mar 2024 08:42:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709829752; cv=pass; d=google.com; s=arc-20160816; b=q8Od6d9Bt8rEU2s+jXTsDYBr1EKpoQF3hbjqUtaABMdFFKwzUatiFZKAEYB0I62WO2 hVK3bQv2RqoCaL/cROYa8F+4UMYEWDkU0Bdj2LaSOPRHMjb64OsbCDaYrPA73PVSC8gN UDZjZFF/3+1NUrnw7Opla7PxvASR/f0tVgwiLq+03sDusr59VX2rN1pFeT61tH1hocoZ 6KnazKFFbne7hUUf7cKn5uTMwQadEkSxXYQuWacLDHn0w9QK1Gd0AxtyRLLW+WTLnk1n MNs7GVkvgcQOjKKnxlFmnh/OiVcCJ2Ry6d2zwOWANykgb5LdID0oJ7hX2AbHIab5I9U6 rHvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=DRR3aMrPNTHPyKTnpZBfnYrcMUQU7aCizh88lK2tEOw=; fh=zx4rjx7uf7h6ouLB5yeyHkHk1JcVrhnkJ8Xz3HA/0LI=; b=T/VavugVjvTLvaY857u1h7Q6iz5T+eNAr1jAoF4GMKwhqNck9afct+tjZ08sVw05Rn SP8sRGcU0mX/sqoTkHwXaaqtkX3zL+XNyj3uKvf0Cb9bWLt12DAvmA9JH4mtu0o3d/Sx Wk6Qc4GBzSqoPuqOHKleZXT0GiI4IPkHgGAAoXkYgLRPDFyPLGxteT5imesNaHkLTIVY Hdfm4cI8rX75NE33Kq0rxsrSi/eOtesQNia9WSM5j9thh8HrGMiUDUUMRSP7Q09vJQeA Z+mDckhH2kak7LegJeMUtyeIgyoOaQIfdCxCeBSOJfCSJy59ribI6NU3/P06oRp4Fonj a4eA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fJ80NUNi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u6-20020a17090341c600b001d6f295bc53si8507251ple.204.2024.03.07.08.42.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 08:42:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fJ80NUNi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 537D62819FD for ; Thu, 7 Mar 2024 16:37:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C7C412FB3D; Thu, 7 Mar 2024 16:37:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fJ80NUNi" Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC0811DA27; Thu, 7 Mar 2024 16:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709829426; cv=none; b=gz4S7HRZK0OgIC/ZSZ3d+VREBuzuNlRBuvE5OCoZIPinFp343q0/LGExwQzT7Ad0F5sYUXXlHp2wc3J7qjMrOrMb3xdoUNJuFV76iq3zYWXSk+xPOSR0s1HeoJN6L6tzPSJVfepEQ7KbxabS6Fc68i2z+LaHpoJQsjvYiUvuEWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709829426; c=relaxed/simple; bh=R7uLcewIPcCbOUA5r2domMq49Hm7h9Eduw6Ebo4E+5A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lBaxzLUE7RElLcvNl0J8In+usCyQPXaFjbVWG/s777WllOJBomAFHTJLJby5Aqb6vcsNXBcWgGthOb31YSCcXElKpGRd8iXAM0vmnwzqWM5xCBBGpChy+L9mZrRDtKaruNDVWT5a9YrA8Ws8qBCl7tMO1kfi7CTIDhGai3nNV1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fJ80NUNi; arc=none smtp.client-ip=209.85.210.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f44.google.com with SMTP id 46e09a7af769-6e445b4f80bso537673a34.0; Thu, 07 Mar 2024 08:37:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709829424; x=1710434224; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DRR3aMrPNTHPyKTnpZBfnYrcMUQU7aCizh88lK2tEOw=; b=fJ80NUNiUmKnSTARnjTsPNUA+JlWDmHIon6TBUJytnwrGpb3Ho8LnEcSKZBuMjS8pZ kkK7dYyY6q0A6TJCJScBkUSANhR0HDzmyxo7ByneSsMPF1zKcD33g7zeNd2QkcNJk4hE rCFOu0JrLrD2MzxwU8V5Tr2N1jk0QLHl71RRFDGbfvkrh8XEwApKOrBAaVpqEMnU3cKL xCeCyQRMiXQoSgfnayXRrygUd5Gpm9jxlm3jvCUGCSpIkslkR7zZEwlEvGJ/Vb0efp3M CXL221ajBI+YbmNUXNAmErdmkTm8vT3fFZ8l34aJLfS+rZTruxBplMNw5NWsOxNQMsPd de0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709829424; x=1710434224; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DRR3aMrPNTHPyKTnpZBfnYrcMUQU7aCizh88lK2tEOw=; b=q4x/t3VelqAANEIZEu8tsY58Mk7gePb8sMshdYARdlcLlBVK4t1gtiPOonQcSSzihx OmpLmy/Y+9WvH2fTg8f1Z2xzww7qb1ZUHzANZ+SDuNpXxQMfkx2DsG+u/dLX3EcYqi8s l15j0rdF1xEwxwkbBRFAd0ReS2W/Xt3SmlWz9E6wfbu6N+LjLepoSCbiHbPBeNM8Gt2H ToP7sLzVt8zQP+tzbMXr2C6AfQLwmsofIWkLInsoaV9rDxVomIdosIUq5aBxlbEJzgXK IxqTC0KwT8wUNyKoCG+emBKITP5t8EOq3Dkva2ZzHGFEfkLQXRyfg8kl81LK0GIK9/U7 bu9Q== X-Forwarded-Encrypted: i=1; AJvYcCWq8/uoQgSNSqhGH5YrjXF98LYVxv3OG+rU/+Qd4hAGz1dVsWbkoPhwWoSv/9Xfp70lKBYg1Db+kHfTO19daLgVF6B8UrGYBzrZlS/sHvGGbmhlND4GU2pIqx7IKzmlH0Ql+1ika9fPI2LiObdPJgVsW5AYt9nkyzFRJu8aT2zNaoyudQ8= X-Gm-Message-State: AOJu0YwYoVnuI5NTQSYOddKuIrNmIuWXqKUYfUzx3wHcgnK/94RCjNgh eopK9LETkx9IxLj9bv2UDOyqr5y4aJnZ+KtqXW1Axvoaf9X8iBPw+3J1nz6cEqQ0FZPXX5FEIAw A1sImKMut1/cprNwrTPYFRS/MCsg= X-Received: by 2002:a05:6871:782:b0:21e:e5db:7964 with SMTP id o2-20020a056871078200b0021ee5db7964mr370234oap.23.1709829423970; Thu, 07 Mar 2024 08:37:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240306201045.1475-1-justin.swartz@risingedge.co.za> <20240306201045.1475-2-justin.swartz@risingedge.co.za> <13e3063facfea3407dba23b74b0a56db@risingedge.co.za> In-Reply-To: <13e3063facfea3407dba23b74b0a56db@risingedge.co.za> From: Sergio Paracuellos Date: Thu, 7 Mar 2024 17:36:51 +0100 Message-ID: Subject: Re: [PATCH 2/2] mips: dts: ralink: mt7621: add serial1 and serial2 nodes To: Justin Swartz Cc: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Matthias Brugger , AngeloGioacchino Del Regno , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Justin, On Thu, Mar 7, 2024 at 4:15=E2=80=AFPM Justin Swartz wrote: > > Hi Sergio > > On 2024-03-07 12:04, Sergio Paracuellos wrote: > > Hi Justin, > > > > On Wed, Mar 6, 2024 at 9:11=E2=80=AFPM Justin Swartz > > wrote: > >> > >> Add serial1 and serial2 nodes to define the existence of > >> UART1 and UART2. > >> > >> Signed-off-by: Justin Swartz > >> --- > >> arch/mips/boot/dts/ralink/mt7621.dtsi | 38 > >> +++++++++++++++++++++++++++ > >> 1 file changed, 38 insertions(+) > >> > >> diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi > >> b/arch/mips/boot/dts/ralink/mt7621.dtsi > >> index dca415fdd..2069249c8 100644 > >> --- a/arch/mips/boot/dts/ralink/mt7621.dtsi > >> +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi > >> @@ -128,6 +128,44 @@ serial0: serial@c00 { > >> pinctrl-0 =3D <&uart1_pins>; > >> }; > >> > >> + serial1: serial@d00 { > >> + status =3D "disabled"; > >> + > >> + compatible =3D "ns16550a"; > >> + reg =3D <0xd00 0x100>; > >> + > >> + clocks =3D <&sysc MT7621_CLK_UART2>; > >> + > >> + interrupt-parent =3D <&gic>; > >> + interrupts =3D >> IRQ_TYPE_LEVEL_HIGH>; > >> + > >> + reg-shift =3D <2>; > >> + reg-io-width =3D <4>; > >> + no-loopback-test; > >> + > >> + pinctrl-names =3D "default"; > >> + pinctrl-0 =3D <&uart2_pins>; > >> + }; > >> + > >> + serial2: serial@e00 { > >> + status =3D "disabled"; > >> + > >> + compatible =3D "ns16550a"; > >> + reg =3D <0xe00 0x100>; > >> + > >> + clocks =3D <&sysc MT7621_CLK_UART3>; > >> + > >> + interrupt-parent =3D <&gic>; > >> + interrupts =3D >> IRQ_TYPE_LEVEL_HIGH>; > >> + > >> + reg-shift =3D <2>; > >> + reg-io-width =3D <4>; > >> + no-loopback-test; > >> + > >> + pinctrl-names =3D "default"; > >> + pinctrl-0 =3D <&uart3_pins>; > >> + }; > >> + > > > > Please follow the preferred order for properties described in dts > > coding style [0]. I know that there is some mess around the properties > > order in some nodes with the current dtsi file but we did not have > > coding style before and now we have it, so I think we should follow it > > at least for new additions. > > No problem. I see you've already "Acked-by" patch 1 (adding pinctrl > properties to serial0) of this set, so would it be a better move to > submit a new patch set that would look something like: > > 1. add pinctrl-name and pinctrl-0 to serial0 [no changes from what I > sent] > 2. reorder serial0 properties according to the DTS style guidelines > 3. add serial1 and serial2 with the correct property order This would be ok, thank you. Best regards, Sergio Paracuellos