From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4A32C87FCF for ; Wed, 13 Aug 2025 18:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tcZLAPBrcBRZbgAiiOIrhCddWIN8mlNpYkGIS5xui4Q=; b=IQNUOt6A/bGAnNenqHNSWK7L3S Nh7aUS4StKmfa1O9prP9+KhHk2skSJz9nuYMKYuylTrrDGIu7obDa4Yb0VrTQ8PFGRnp3TS02TSiy 9VpTP9XBAOQt/FdeTHbfqqltaqIaJT8ZTIxWKNRa7Xej6EZEwQghzTh1Igaz5Qc9CySgJbUoUD1Pe hy2DZm9yYGrPimwklx1I6Emh9s69+v1qcX26plvePuskJLEjKjnIyEXPbY1upn1FHqP3neWS92u0S /1zEI2KFPas2lxu4rcw4WoQyXPK07wTnS8LD/5ot/5PfgWk76zYiQfP5gC5spZqHek0Pq5VbFdro0 XhEkJIHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1umFrC-0000000EeWg-3eOH; Wed, 13 Aug 2025 18:05:50 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1umEhL-0000000ETMW-1CW3; Wed, 13 Aug 2025 16:51:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id A8DC6458EB; Wed, 13 Aug 2025 16:51:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6F9FC4CEF1; Wed, 13 Aug 2025 16:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755103894; bh=alZxexKuJRxDY0e4fO9bj6yA3dNEp3f4NpaBSvlkKBI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PDg2ZCyH4ajXLj2AbKVypeCzSlWWhmIXAAed3U43vAolmHFPzJIq9xj+2SQS2CGnf A1fi6/1H5G+qtbMRoasHX2D6eKcY7JszjfW52QpacYgT0YMP1tdEpe3HcD3GPv1r9W L+ly6AHYVg70ypQulceswIE+sAUx1g8krjGpvCa5mkV1MvbaYlhbUgx0jXWenuEEW1 0Y/ijSPMoHWjq09GvXB9cDpHC78faqTjOJrKxCVp9OzqMF/CRWYgyw/Nytt75o7mC/ mXe15yxiS0h6ZqTBOcAYQLMsJ2t4ZW1SCbELcvZBCUDtI+ztjNd7dOaiutegNF+mse RHfwFT3XnI0Dw== Date: Wed, 13 Aug 2025 17:51:28 +0100 From: Conor Dooley To: Alex Elder Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, dlan@gentoo.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lkundrak@v3.sk, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, spacemit@lists.linux.dev, linux-mediatek@lists.infradead.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH v2] dt-bindings: serial: 8250: allow "main" and "uart" as clock names Message-ID: <20250813-squint-glass-b68c6520a229@spud> References: <20250813031338.2328392-1-elder@riscstar.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1anDfOTh12y5hzMv" Content-Disposition: inline In-Reply-To: <20250813031338.2328392-1-elder@riscstar.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250813_095135_347119_0507C4AA X-CRM114-Status: GOOD ( 15.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --1anDfOTh12y5hzMv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 12, 2025 at 10:13:35PM -0500, Alex Elder wrote: > There are two compatible strings defined in "8250.yaml" that require > two clocks to be specified, along with their names: > - "spacemit,k1-uart", used in "spacemit/k1.dtsi" > - "nxp,lpc1850-uart", used in "lpc/lpc18xx.dtsi" >=20 > When only one clock is used, the name is not required. However there > are two places that do specify a name: > - In "mediatek/mt7623.dtsi", the clock for the "mediatek,mtk-btif" > compatible serial device is named "main" > - In "qca/ar9132.dtsi", the clock for the "ns8250" compatible > serial device is named "uart" >=20 > In commit d2db0d7815444 ("dt-bindings: serial: 8250: allow clock > 'uartclk' and 'reg' for nxp,lpc1850-uart"), Frank Li added the > restriction that two named clocks be used for the NXP platform > mentioned above. >=20 > Change that logic, so that an additional condition for (only) the > SpacemiT platform similarly restricts the two clocks to have the > names "core" and "bus". >=20 > Finally, add "main" and "uart" as allowed names when a single clock is > specified. >=20 > Fixes: 2c0594f9f0629 ("dt-bindings: serial: 8250: support an optional sec= ond clock") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202507160314.wrC51lXX-lkp@i= ntel.com/ > Signed-off-by: Alex Elder Acked-by: Conor Dooley --1anDfOTh12y5hzMv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaJzCkAAKCRB4tDGHoIJi 0hf5AQCJLTs84F3yXa+J58tT2Ytl+UUy+1ftd0PWZy75L6EgiQEAqd0HSvhT8Kdp 3558GIp4PpqlN9n18fVGmK6z3ca8Cgo= =iaPg -----END PGP SIGNATURE----- --1anDfOTh12y5hzMv--