Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp517266lqc; Fri, 8 Mar 2024 04:41:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUrSMI3umivMin+6zNh6EMaWFjIMZ38cDgEGpXHrbStO7NrHGZGajlxJgSNJx84nVEex3ARmN4iCA92q2HgTixgPBst5Y0/m3jKflXCpA== X-Google-Smtp-Source: AGHT+IHgGxxSaLC++72i6MuTWCHD/WMh1ruXH5n81DVdJCWDeymZGY3XVzO0KfDU+UDrJqQqJWrY X-Received: by 2002:ac8:5b86:0:b0:42e:9255:2631 with SMTP id a6-20020ac85b86000000b0042e92552631mr166046qta.28.1709901660816; Fri, 08 Mar 2024 04:41:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709901660; cv=pass; d=google.com; s=arc-20160816; b=iePj2B4i5+G8fGrmO+TekLvjuhEJMtjSU6lefIcWhd508/d/k6MiAfafoPpbX0zvi/ 2Wk1lSzXhrt9AEcRB9bi4jADWWKUBdKhgMBi5vLJpOqcPRTC2d3jN5clWzspoEHpslsA WL9gqHPk2m5i4RInkZEog1MCON54PlIKm3LUYWGeNo7fp9zGq/lzEmc2h2RHh1/ih1Tk L1H7i7czLVtL9yNVls/0d9m/Jw7Ih5dU8pyiNJpWIKauY0pcMlJB6gEKZ8pbW/gxcO1d kVweS8pjbdTX/keoeoTHF2aWVXZds/SubrqDaHiRDqNYsR1Ap5ERa60cPgldaiq7XeU8 hzig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:references:in-reply-to:subject:cc:to:from :date:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=SKP3sYFjtsj0cchtdDG+ZU4/Ri6nxNJaSUgMG/EUeFU=; fh=5piH9rEu94OoFq964+5R0c7tipUqK5LXCA+sYfk0G2g=; b=tN/y2TIRT84qjDg9LAndpj3LyCzAS8SVa3Ra0d4brYOuP7tnLunZvKAY4Rn/RP/Dar zAnkGLaqSXS4HbL716OkRlF/f9Pv68EAeUM7AxT74pL0tD48O8/2t+QwPQQkemf0cip8 QG6YrKWI2td1RpKEMaIODku/y/dgQ3tdbNsFkXaczOkWYXgiHJBPI/Fgf02ebC0gImS6 cMUUHqUyC7opV9KdXDBxe/zgjUa8KqKwxjzKDPDAXAbdsfjhBhm/cd+dRwENYLh9lJ7V 6GINrFj1/OLbAM5nU+HI+F8kkYurM/zG5DLW7OyWSv/6JM+e2+UPfZQjI4fwidyFTRYn 1bkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=VmyQXsTl; arc=pass (i=1 spf=pass spfdomain=risingedge.co.za dkim=pass dkdomain=risingedge.co.za); spf=pass (google.com: domain of linux-kernel+bounces-97015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97015-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g1-20020ac85801000000b0042edcfb1f28si14032574qtg.92.2024.03.08.04.41.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@risingedge.co.za header.s=xneelo header.b=VmyQXsTl; arc=pass (i=1 spf=pass spfdomain=risingedge.co.za dkim=pass dkdomain=risingedge.co.za); spf=pass (google.com: domain of linux-kernel+bounces-97015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97015-linux.lists.archive=gmail.com@vger.kernel.org" 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 0DC571C2166B for ; Fri, 8 Mar 2024 12:40:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C639018049; Fri, 8 Mar 2024 12:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=risingedge.co.za header.i=@risingedge.co.za header.b="VmyQXsTl" Received: from outgoing6.flk.host-h.net (outgoing6.flk.host-h.net [188.40.0.77]) (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 6E83C4C84; Fri, 8 Mar 2024 12:40:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.0.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709901644; cv=none; b=TerFcy8pa0xdml5jNLjZJiHp9OeU1iYTq6bcS0x1LsbO6Ab6DoFP1I2LrqMKcEa2y+E9OAXX89l1TYOZ35mRIagM5GOTETrFtoXhNYtVWtpjBklIT+2tiyU+AqgstO+uTBZ97vUCpYwvUE9PY87e3vsUFJwOSLi+/vr3oXOjTjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709901644; c=relaxed/simple; bh=A1HFQdYy1kr4hkoIGOkvNMhnyCfmTpn0sOOae0Bfeh0=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:In-Reply-To: References:Message-ID; b=QSDcL1ID98bruR2aTa8NepudkthfG1jbW4nMHW0z8nSMIcjuDE2gRIeOmtjVzap6tVUddDpCaTfj4XB472WICkyce3eXi87REwhahXBPzT3TZ+KgEzUd2iRgOqj+QhnGxy7azNvKcCmwEy7phlNXkhanA+1njwBNgWNkDy5xB28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=risingedge.co.za; spf=pass smtp.mailfrom=risingedge.co.za; dkim=pass (2048-bit key) header.d=risingedge.co.za header.i=@risingedge.co.za header.b=VmyQXsTl; arc=none smtp.client-ip=188.40.0.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=risingedge.co.za Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=risingedge.co.za DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=risingedge.co.za; s=xneelo; h=Message-ID:References:In-Reply-To:Subject:Cc: To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:reply-to: sender:bcc; bh=SKP3sYFjtsj0cchtdDG+ZU4/Ri6nxNJaSUgMG/EUeFU=; b=VmyQXsTlLQTaAx e8fU3utV0jh2K1CsoGJxwnMP02Fes54lqeMWKw9OufWGIgaJD54qUqYuQG9WmmNwHEtoXNrn5s1Oh MncmigTGov+74vNSIMhr0/1yliP+83ePLwCCGL7EYSWF8KA3bBhgzP2I81o5QCLANqSJVt+3KBood sla6n2IoJmrSA/PnvlBQZlExH6zmoz7N27iIiVF1Qfjm+M16FtqIHNIQxtutOfxp37ixb4IC9fjOS KxYC9yxYZ9SblNAr3nSiph7PgjDBh1hHtcrXzMlEVOSmeYE2VQMylshkHdRipcSkKZ5LQQdyHEClt RxnTrfgdkD0Ily+/xybQ==; Received: from www31.flk1.host-h.net ([188.40.1.173]) by antispam2-flk1.host-h.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1riZWZ-00CVPf-1L; Fri, 08 Mar 2024 14:40:33 +0200 Received: from roundcubeweb1.flk1.host-h.net ([138.201.244.33] helo=webmail9.konsoleh.co.za) by www31.flk1.host-h.net with esmtpa (Exim 4.92) (envelope-from ) id 1riZWX-0004Zw-Rx; Fri, 08 Mar 2024 14:40:29 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 08 Mar 2024 14:40:29 +0200 From: Justin Swartz To: AngeloGioacchino Del Regno Cc: =?UTF-8?Q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= , Sergio Paracuellos , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Matthias Brugger , 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 Subject: Re: [PATCH v2 1/3] mips: dts: ralink: mt7621: associate uart1_pins with serial0 In-Reply-To: References: <20240307190408.23443-1-justin.swartz@risingedge.co.za> Message-ID: <9634b4fe726e711bd6bec7e487caab76@risingedge.co.za> X-Sender: justin.swartz@risingedge.co.za User-Agent: Roundcube Webmail/1.3.17 X-Authenticated-Sender: justin.swartz@risingedge.co.za X-Virus-Scanned: Clear X-SpamExperts-Domain: risingedge.co.za X-SpamExperts-Username: Authentication-Results: host-h.net; auth=pass (login) smtp.auth=@risingedge.co.za X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global_tokens (0.00380610437891) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+wmtT960jbjISQKCfCHZdhPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wCPRB8bAzJcv2cv+UqiTTc2+CpNcmBnO4XM3Sck4bwNogU WCl1nkLBzZX0KuJ9bXiS85Z42w/+2OBolTNFbPomXFWCX8oNdggW7HE9XDTdSejrkEpbuUvwMvHx 3T+KSG//gbuP7hnUK8NQdLwsVWKIFDZRrTGv3rxiw9tFrqFSCFNiLZt/QXQnOBRD+jq1HsKsD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YnvoiVFqgm093JBbUEaDQ0rf5lRqYaI2rFfhfWZ3LYM3A6BXfvel8O EFDbU51Q2S43vcWL3lM20b9wQESc+PquLiZOpxiedGbqX4nzL9MgCv99rrli2UQdOGeuQqV2IVXB o/3R5VqqcOmERbjE+D5FzT0EaduWMjGSdmMR5Ch1HY0a4RW7JP9zvdSGB9tIDxuFtg36jUhUk8/b P2/Mw1j9lmNQqiIAMR1SEszVdPY4ocfmWv3Fe9Iziczdq+A= X-Report-Abuse-To: spam@antispamquarantine.host-h.net Hi Angelo On 2024-03-08 10:41, AngeloGioacchino Del Regno wrote: > Il 07/03/24 20:04, Justin Swartz ha scritto: >> Add missing pinctrl-name and pinctrl-0 properties to declare >> that the uart1_pins group is associated with serial0. >> >> Signed-off-by: Justin Swartz >> --- >> arch/mips/boot/dts/ralink/mt7621.dtsi | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi >> b/arch/mips/boot/dts/ralink/mt7621.dtsi >> index 35a10258f..dca415fdd 100644 >> --- a/arch/mips/boot/dts/ralink/mt7621.dtsi >> +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi >> @@ -123,6 +123,9 @@ serial0: serial@c00 { >> reg-shift = <2>; >> reg-io-width = <4>; >> no-loopback-test; >> + >> + pinctrl-names = "default"; >> + pinctrl-0 = <&uart1_pins>; >> }; >> spi0: spi@b00 { > > The pins are muxed and can be either UART, or some other function that > is supported by the mux: this means that the pinctrl-xxx properties > shall > *not* go into the SoC dtsi file, but in board dts files instead. > > Said differently: the usage of the UART pins is board-specific, not > SoC-wide. Thanks for the explanation. I agree that the pinctrl properties would make more sense in a serial node extension in a board's dts, but my reason for including them in the SoC's dtsi is due to the precedent set with these existing nodes: i2c spi0 mmc ethernet pcie There is also a default function declared for each of the pin groups defined under the pinctrl node. These functions co-incide with what is intended for each of those device nodes to function correctly, rather than in the alternative GPIO-mode. So I thought that sticking with that existing pattern would get the least resistance from the community. I can imagine how moving the pinctrl node to the board dts, and then moving all of the pinctrl properties associated with device nodes to their board dts references could be a better separation logically. What do you recommend? Regards Justin