Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp698008lqb; Wed, 17 Apr 2024 08:20:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWprPqbBEgQ9Ynj59kysDD79k375qI9GAEVXR5VitvRTDWmE1mfrxju7rvdNJCCg1xWEQtGlMcZMGWsobZh5llAFcLl9u2FvuQcoxg23w== X-Google-Smtp-Source: AGHT+IGJcrSsLRu4lQm8r8aAl6PXINWG3INtBpt7U/IqeMXygdy61CF30lhtJVG1kb2ZHYnho+wP X-Received: by 2002:a05:620a:28cc:b0:78e:eb70:c7a9 with SMTP id l12-20020a05620a28cc00b0078eeb70c7a9mr11093447qkp.53.1713367200479; Wed, 17 Apr 2024 08:20:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713367200; cv=pass; d=google.com; s=arc-20160816; b=knmkaK9Gwqzpz7LKpGeZvj8iyemClLHskYC57cRlq2M6QAqcCegSEFrCyp6bQ4Srf7 s9becYK+3IG2Yb/s0ft3QzjNyBLWuJag9R39R/hr08Ykl0Uea9/P6tHgyaf2kjwtDw9l 4MKg0BVyEJobUVWSDSGqWyvSuWX7W3WcV3z7++Ga4zcZYlnkuZhyfjjeAFvm70rhH/b0 Wf7PgnLcndI+JcNCN2HYwecOFzsFhHVGYJpoO2JJMifltfr7X8L6Y85U0zrW60RhVBAL FMzRhJ7qlutSQD7EuXtle/AhSbPq5AgOQcTDlThkI3om/NaJATFjPSDtLOzS2zcoh3i0 Ij/g== 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=IsuMImG8y65tuxtEa3J0zOxc8q85jI16Vx7B/v7ER6c=; fh=IyEOwYbtAALFtsg73M1tDDodOrFe3VsS2QmywFa9gzo=; b=nX6XicfFDbO8JmmaBSflq/kdfV9+ly1uixj/k3ZyrZBYVZ5FUSek+tpSO2f3xwseUD LYu4r+lcD6Kk+I7WinqmQ+WW+Lgrq6MdZy0tS47CY1cPm8Hri8yaQzaUNhhW69wdNpYA Mq0WsW8tz3vBB/rrzVSFXuSL7/0eU8KsFz/PCb4C83d8A+fwCZgMnA2bA19WqVc0592Q TVHdA8ChmJkuM9Oo0/41PKQLQQogQfOYK19lAZ3YcyPxgltNDAtUT6Y/yLF/NWlOzIjG soV+b8h2nKN7p6JPdsbF+6Fd9MRFH7q+oU/yt3UIbQx/Fimvm9/k8kQPPMXvmw0T7hyD g0xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VBnZrAOy; 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-148782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vz21-20020a05620a495500b0078d63e1dee0si14805398qkn.215.2024.04.17.08.20.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VBnZrAOy; 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-148782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148782-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 24ACB1C216AF for ; Wed, 17 Apr 2024 15:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7CF71482F5; Wed, 17 Apr 2024 15:19:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VBnZrAOy" Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 3D7B6146D5D; Wed, 17 Apr 2024 15:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713367171; cv=none; b=HvsCSIFpk17O3hNKB+FUwwlMSmWrKssTsj85WBcfSXFvqDm7dKDJM8DMha9Wlk+PICo+k9rAuKtDGC6u5/jUgckT9SLojwBA2DqsGuuOILj0Wjgvhm70Fm1nHeNKmhb1BEUgEpi5q376f/WiZY+P1/cdQm8RLPYp8U4jvMeepIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713367171; c=relaxed/simple; bh=9ieCxJYZGNBDD1LiuUPAloXHCCgXHM76uCwIyEXjUiU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DIrGVSPrd36Jn+GN0k8StRadAx4YI0/jhtPG6dmKps62hhZVEKP2NJg7Bl4QIg9c+S/Tj/qz9H70ZaL4GioPysQ/Rtk35s9ctUN7qb6tmo/HwZpYaMEcG45CNIiMTLwSWyhM1kaIpB8GZ8a5IBRp0oY30MvlyySiooT09z+9nK0= 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=VBnZrAOy; arc=none smtp.client-ip=209.85.160.170 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-qt1-f170.google.com with SMTP id d75a77b69052e-43716c1616dso16450181cf.2; Wed, 17 Apr 2024 08:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713367169; x=1713971969; 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=IsuMImG8y65tuxtEa3J0zOxc8q85jI16Vx7B/v7ER6c=; b=VBnZrAOyEn5VczX6uD1UkqvFGOvlhz3Gicaegyd8RAdEBVGDfV8FOOD5DP5Y8ZXUWd HSacl5Qo6DCPzjOwNjbyfSO8y+yvHLfTsnTptuoru9H7brGJHZnh12YueDPln4OLRSFk SsFAcxDz5oikKhitjPLju3KYGzBSOKHi90yRYtmOlT91AuiDeKTcI63PaCPRFmjqBbmf 4L4qDlNoot8waIM/Wa+CVYou9HpRI+lgxgCbPmBLnWkh5wA8Z9nS/jUwtxGSexORNG8G yMIl4IHm0uxsUgt1h3GjmmYt0h6VsVaHkwzDAqUm2Rb4ItkSPiK3YGmvk7X1dKKOSOi9 DvCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713367169; x=1713971969; 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=IsuMImG8y65tuxtEa3J0zOxc8q85jI16Vx7B/v7ER6c=; b=xQ/GlZWwWo2bqK3OLeE62DS1xFrFIKCCTNb5ZPJ6+zrx0vpXcFMom1wqiJFJL/bpA7 TSloEfqGS7EAbWmSuL2PdyhTpSsBdcf8Zv0LLwjHqbQN+F7FWUd6IXVl84xnCFpT9K7H ZzK9kgRTqix2qopIqqa64s1RwYi0238DoMM6uvtP4H7YJcjtTBsL/BTocmFmVyMVO4ey QWsVfnWLzf2QygN2kj3xXy41aAdt30Z313e0pExwhTeDh/4SKhsk6FhVZ+7c/WPCUoCl /b2FCikjWt9JV0z/yzxL7q4m3r7Mx0Y7B8eAaBF3GfvbqstSYLdfnOzNyDDZbt9+1AcW Qb2w== X-Forwarded-Encrypted: i=1; AJvYcCUBqD+GtitdXL1IXGGznlkhmfSOHdJvhpJslc5qyfVzzv3PFrTssQp2GAzgbomlJo+zwuhwWXp/YOuwVwwsRRAL17vRb4Xi+JBBp1oBgrrL/J/vOJrIwGBmhZI8TM3KmVPRkBU6MprpaDmOm/nuXkKubB0i9LsSU24UX0+vYUyXx8AatCAf5g== X-Gm-Message-State: AOJu0YwGCbGn7bXvy0VmrJkuDuNYxBwJRRzkEACVwlbQjmXzNjXJeIas 7K5fwn949Xf2kXgF+3JpgptZsbuE0qrUZQRt3E+2lMraD1tWT3S6Cy8P1sWO2okKTI6Jx0rFlpv lDJ6sCOVwNgX2Z24OgVwmxKiT++o= X-Received: by 2002:ac8:57cc:0:b0:436:ac83:42b8 with SMTP id w12-20020ac857cc000000b00436ac8342b8mr17228338qta.1.1713367169046; Wed, 17 Apr 2024 08:19:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240417135111.20375-1-pratik.farkase@wsisweden.com> <20240417-obscure-denial-ae7c53d0e321@spud> In-Reply-To: <20240417-obscure-denial-ae7c53d0e321@spud> From: Pratik Farkase Date: Wed, 17 Apr 2024 17:19:18 +0200 Message-ID: Subject: Re: [PATCH v2] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema To: Conor Dooley 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 17, 2024 at 4:54=E2=80=AFPM Conor Dooley wro= te: > > 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. > > > > 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,bcm28= 35-aux-uart.txt > > create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm28= 35-aux-uart.yaml > > > > diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-= uart.txt b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.t= xt > > deleted file mode 100644 > > index b5cc6297cd1b..000000000000 > > --- a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.tx= t > > +++ /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-= uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.= yaml > > new file mode 100644 > > index 000000000000..5d4d37371d6b > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.ya= ml > > @@ -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. I did not understand this part. What do you suggest i change it into? I took the example from original dtsi file: arch/arm/boot/dts/broadcom/bcm283x.dtsi > > 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>; > > + }; > > -- > > 2.34.1 > > --=20 Best Regards Pratik Farkase Be Passionate Be Smart