Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp684913lqb; Wed, 17 Apr 2024 08:03:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7ORmLMWh4JdnBKokcsIyg689o9fOwjd1XHHIV4gZ3xZh862Oz9zv/B3AdL7XIwh90tqKyyEpxo1mRYRle2aAU4xQLQclApSL7T9hKhg== X-Google-Smtp-Source: AGHT+IGn/Bi099bjNiuSD2OkrSWO/xNxdDc2oFt50ptsU3gljILh1tQIhq0aR2WVLxZ1faQOt2fy X-Received: by 2002:a05:6a00:1798:b0:6ea:8793:6d64 with SMTP id s24-20020a056a00179800b006ea87936d64mr20886710pfg.23.1713366208140; Wed, 17 Apr 2024 08:03:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713366208; cv=pass; d=google.com; s=arc-20160816; b=Mq1buJAKoh5Zqg+b0rum6rZnBWT8zamYZXiWwBucOhrzVTN229n9hqJQ2wPgAMbW44 qC1dYAwFI/nkwEvA2O2D7gWCD2QFuraOJVmOcI9hWiQkASFHnTPkS4cs+AOpMh2GKDr0 38TGDwpyjL7CAnz+JXkVsZDn29B+Ej2lMm20FYG1jqN88xxeCtls3WkfpSS5QTTIkuzi CVLERJDDBeS36bmutK7qSvwvALvOKTkPrgxI37GXPi4f3HoqSs2DZsngat+gGOHe8lXL 9q0tnYKw8UbpZ9tuBhmpPQssJp0KZhe6VGwtcFUQ2+1xE67Dm0UE1KUa6Q/alB7NtgDN noyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cNSbiQ6ynok2Nysvu/jar4KbI+jIIq8zE6zXQj1eM5Y=; fh=tScD7gr5iVseFT2MT2MS4OSI8NMeq+x8cmCBIQdKOuc=; b=JQFTdL8tjQXmDFfLce3/fRMzdcojJsIRhzEI65DMgvZ6W8MjcFPlpS/bMwhj3dxneJ EE116sF2BxcCMLQwSprl+mpOHXgmeSu9oqWQEVx2X3dA4TvV6DtuVQ+OJENhRl4it87D +cikwZaGnztmF/SnnRfNIeFZp6wZv+HyFKtQChLpjtrntRiGw9Wqbp5yi6Lkdaigl8q5 KJrCymx3ZB2QhJrd5RvIh24QbZCNK4ZDO9hjxzv4MdA7ivuG2/SrM1SweecpWtMESeN3 4rrgdXt6ESOt3Bva76gWIGdUkXsw5wkYA59HK6RlwJ77WQA4zxACjPqygnfQbUA0GQ6w xifQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gm94Q50I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p10-20020a63e64a000000b005d8b8c6a98bsi11814050pgj.588.2024.04.17.08.03.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148736-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=@kernel.org header.s=k20201202 header.b=Gm94Q50I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BD5BB287EF2 for ; Wed, 17 Apr 2024 14:54:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C755D1422CB; Wed, 17 Apr 2024 14:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Gm94Q50I" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DA9A7132807; Wed, 17 Apr 2024 14:54:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713365645; cv=none; b=GkYrGZVnAz7t60yd22CLnoicibwG/xi6fhZn+a4JWjb90F9t4ZgIAgkFMN4Z1vdDASncnT81GtKegi0WXsk2RqtbuGw86Lz+dglIfiTazp4b5HGr+9RgmWydDkAm7g9zPlhphzabMwlJ8R5uQ9Gct7Z2FQJozvfsoiYBmoeWjKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713365645; c=relaxed/simple; bh=KXoRcIdsjepxSU6ZzJ4NvcTWctTLBqKZBlDxeAr8ABI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qWob64/V4l2D0/oq/MkW5LdMVl1dYPLYogSnrcdHoD0fLqyAlFlJ3xeelGmNv0uWBtgr1inONLnl6vgckRCmoPLHgYTuWRq+MF/MXkedyE3Dq0FwxbWT9VN3Nlnhy314Rwq2hnfo9poQVbY5pgf5D/vt7CNKwcD8rc2qlhVvkBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Gm94Q50I; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FB8CC072AA; Wed, 17 Apr 2024 14:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713365644; bh=KXoRcIdsjepxSU6ZzJ4NvcTWctTLBqKZBlDxeAr8ABI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gm94Q50I1K8dNBm81Zb/69btVaVgZXrO+r9ncFacD1fPL1GgkThbxsp1pVL6AGRDQ KzUKo56OiWKmYKkOTQOxnH0zu41LIHJ284kQR11uM5yqR1KFv6fKHwdzBi3Md+J0qK mOBtuRQOjEpZHjAyVxCx0dcjTpaGaULJh4V8aI9TPVpcg0zXiwsgDpIleIh+3RnRa4 M4/Eg2q5IgEHETq5LvwQKarykXUyrMRmL3GK8AWxFbBI/LHg0JQjWkQ8xoMFbIZOGB Ra0ebBzm54lQ+mlZxk1/uBE57SN3V3g+vDd9sbhTT23PwNAplzps4b3/WNfAzNoAsi MiDxnEBesu2cw== Date: Wed, 17 Apr 2024 15:53:59 +0100 From: Conor Dooley To: Pratik Farkase Cc: Pratik Farkase , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Stefan Wahren , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema Message-ID: <20240417-obscure-denial-ae7c53d0e321@spud> References: <20240417135111.20375-1-pratik.farkase@wsisweden.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="knnuLnAQI4vYAM9c" Content-Disposition: inline In-Reply-To: <20240417135111.20375-1-pratik.farkase@wsisweden.com> --knnuLnAQI4vYAM9c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 17, 2024 at 03:51:10PM +0200, Pratik Farkase wrote: > Convert the Broadcom BCM2835 Auxiliary UART to newer DT schema. > Created DT schema based on the .txt file which had > `compatible`, `reg` `clocks` and `interrupts` as the > required properties. This binding is used by Broadcom BCM2835 > SOC used in some Raspberry PI boards. > Changes from original file: > Implemented complete example which the original txt binding lacked. >=20 > Signed-off-by: Pratik Farkase > --- > Changes in v2 > - Updated Maintainers list according to feedback > - Fixed typo `Auxiliar` to `Auxiliary` > --- > --- > .../bindings/serial/brcm,bcm2835-aux-uart.txt | 18 ------- > .../serial/brcm,bcm2835-aux-uart.yaml | 48 +++++++++++++++++++ > 2 files changed, 48 insertions(+), 18 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm2835= -aux-uart.txt > create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm2835= -aux-uart.yaml >=20 > diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-ua= rt.txt b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt > deleted file mode 100644 > index b5cc6297cd1b..000000000000 > --- a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt > +++ /dev/null > @@ -1,18 +0,0 @@ > -* BCM2835 AUXILIAR UART > - > -Required properties: > - > -- compatible: "brcm,bcm2835-aux-uart" > -- reg: The base address of the UART register bank. > -- interrupts: A single interrupt specifier. > -- clocks: Clock driving the hardware; used to figure out the baud rate > - divisor. > - > -Example: > - > - uart1: serial@7e215040 { > - compatible =3D "brcm,bcm2835-aux-uart"; > - reg =3D <0x7e215040 0x40>; > - interrupts =3D <1 29>; > - clocks =3D <&aux BCM2835_AUX_CLOCK_UART>; > - }; > diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-ua= rt.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.ya= ml > new file mode 100644 > index 000000000000..5d4d37371d6b > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/serial/brcm,bcm2835-aux-uart.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: BCM2835 AUXILIARY UART > + > +maintainers: > + - Pratik Farkase > + - Florian Fainelli > + - Stefan Wahren > + > +allOf: > + - $ref: serial.yaml > + > +properties: > + compatible: > + const: brcm,bcm2835-aux-uart > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include Only 1 of these headers seems used, there's only one define below. > + uart1: serial@7e215040 { The label is unused and can be dropped. Otherwise, Reviewed-by: Conor Dooley > + compatible =3D "brcm,bcm2835-aux-uart"; > + reg =3D <0x7e215040 0x40>; > + interrupts =3D <1 29>; > + clocks =3D <&aux BCM2835_AUX_CLOCK_UART>; > + }; > --=20 > 2.34.1 >=20 --knnuLnAQI4vYAM9c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZh/ihwAKCRB4tDGHoIJi 0imwAP9/Is48Rdr8Ve/PrA6TGNes1do/R5ztpGZ9dIDeSWgULQEAiUqD0ir6iPVP x6UGbzh4csXpoErw8rW9Z1s6E1VC7wU= =kk4e -----END PGP SIGNATURE----- --knnuLnAQI4vYAM9c--