Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1006907pxb; Fri, 13 Aug 2021 11:09:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztlM9AitkT2gPFbv9D/r4egkE2epiZIsG+Y4lD9w7lfVZGJmKP8p7Rz7WMJxsT6Spoumhf X-Received: by 2002:a05:6402:39a:: with SMTP id o26mr4686384edv.64.1628878173994; Fri, 13 Aug 2021 11:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628878173; cv=none; d=google.com; s=arc-20160816; b=BjdtEj6hWjmODEGw/Hdcda77sSIMkF7CtcbI5kW2CSsIx+nF69pDfEhSwgTtSK+rzr wEgZZtZ0M8R1fKSrgSfd6K0R9GVzJieIbhAc7slGrNBUufXhdG2TV9LvZ8OEMA2SsIAg iCot7HhpNMMUKUt7+G5k3ShmOkSepEmutuc1xM8nA9Lwnv30rQtGWIea9qqHCNfQzjaG 4StLkWwlIYPk28VJfBD1fOAMHZ5JhwzXK6B8UnYhEGT6WanjPpVi9hNXpBXeBlZ2pIiH biXFcLVXvoHYwNxBlIEoi2Exc7G+jdihUNwzt+qTqf+ydS+x07z33vOLmo0xCUt+FAwM HfIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iihg9oRsXmwP2LhA3OLBni38vE7IHeZGut4WUp0feJE=; b=eGsTIxGcyP1nXfVapgS4EJEcQOIdEFU1al2rII9TU0np0BgbO0bzuTwhw/4NY2o/3v MmuqJlmyTOhNAZ+4FkHO2V6S9lliKQqBjgo5HYrW/ewEBtY1JaGyFWwIYTqxLsC08Zte 4bCp827IyDvQE9TIQLV9fTycW0b/Sv6NZCvnueEPdkRvnjViI9CWOzqQVIZ97f0rxB5n 4qOuCob0aorwtOlpk8nHr4Ox5lW9igm0YTaVGn5EBVunM++b+gOvnI8kZDIYdJfp4CxX xX0jgIndNyGk2S+Q97wJonvsGyck8PWXsgLfTMlCw4b/QSNFclPiQUFyKJNT/ZV3q9Zn UIEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cn11si2439167edb.350.2021.08.13.11.09.10; Fri, 13 Aug 2021 11:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232356AbhHMSHs (ORCPT + 99 others); Fri, 13 Aug 2021 14:07:48 -0400 Received: from mail-ot1-f48.google.com ([209.85.210.48]:39830 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbhHMSHq (ORCPT ); Fri, 13 Aug 2021 14:07:46 -0400 Received: by mail-ot1-f48.google.com with SMTP id v10-20020a9d604a0000b02904fa9613b53dso12994446otj.6; Fri, 13 Aug 2021 11:07:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iihg9oRsXmwP2LhA3OLBni38vE7IHeZGut4WUp0feJE=; b=YOTdLIbLF6otxkpG+XL/zC7TZbZ9kgjZRJtRxQuu+b0fKelwTum4dFkDdHZW64CIxE RIGFFQvwAibxKFQ8hIhiTLITRsgz7wROdQWf1KhRnrlzNZUvgoWrjZ9WRKOWiAK8phNy 8itNpfKmeePEKNuLze3numVDYAuK6XCcCEUKsAlukFZ6vHAJQGV71BHP8p4K1bVVMYBJ l8evuA0JQaRJj8d2ZmUHEv49WHPDcjv73y+mJg9K+4x7nzodGo52uxBVzSUSoS/DBHEE kAU3xxBPxRwZeTWOjf4ZktC24IaWqhKXaPcEwVbkU3hH9kfdmMngxbaHVGXH2gYZKq2H yOFA== X-Gm-Message-State: AOAM531Qj0SUYcIamovC9+qd0Dn/DC251tzGjZuybeA1v6A16hBsxKtF RoJXiIML16hYQZmoWjsBxg== X-Received: by 2002:a9d:4806:: with SMTP id c6mr577839otf.210.1628878039192; Fri, 13 Aug 2021 11:07:19 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a19sm457340otl.48.2021.08.13.11.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 11:07:18 -0700 (PDT) Received: (nullmailer pid 3780434 invoked by uid 1000); Fri, 13 Aug 2021 18:07:17 -0000 Date: Fri, 13 Aug 2021 13:07:17 -0500 From: Rob Herring To: Chester Lin Cc: Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Shawn Guo , Krzysztof Kozlowski , Oleksij Rempel , Stefan Riedmueller , Matthias Schiffer , Li Yang , Fabio Estevam , Matteo Lisi , Frieder Schrempf , Tim Harvey , Jagan Teki , s32@nxp.com, catalin-dan.udma@nxp.com, bogdan.hamciuc@nxp.com, bogdan.folea@nxp.com, ciprianmarian.costea@nxp.com, radu-nicolae.pirea@nxp.com, ghennadi.procopciuc@nxp.com, Matthias Brugger , Andreas =?iso-8859-1?Q?F=E4rber?= , "Ivan T . Ivanov" , "Lee, Chun-Yi" Subject: Re: [PATCH 2/8] dt-bindings: serial: fsl-linflexuart: convert to json-schema format Message-ID: References: <20210805065429.27485-1-clin@suse.com> <20210805065429.27485-3-clin@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805065429.27485-3-clin@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 02:54:23PM +0800, Chester Lin wrote: > Convert the FSL LINFlexD UART binding to json-schema. > > Signed-off-by: Chester Lin > --- > .../bindings/serial/fsl,s32-linflexuart.txt | 22 --------- > .../bindings/serial/fsl,s32-linflexuart.yaml | 48 +++++++++++++++++++ > 2 files changed, 48 insertions(+), 22 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt > create mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml > > diff --git a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt > deleted file mode 100644 > index f1bbe0826be5..000000000000 > --- a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt > +++ /dev/null > @@ -1,22 +0,0 @@ > -* Freescale LINFlexD UART > - > -The LINFlexD controller implements several LIN protocol versions, as well as > -support for full-duplex UART communication through 8-bit and 9-bit frames. > - > -See chapter 47 ("LINFlexD") in the reference manual[1]. > - > -Required properties: > -- compatible : > - - "fsl,s32v234-linflexuart" for LINFlexD configured in UART mode, which > - is compatible with the one integrated on S32V234 SoC > -- reg : Address and length of the register set for the device > -- interrupts : Should contain uart interrupt > - > -Example: > -uart0: serial@40053000 { > - compatible = "fsl,s32v234-linflexuart"; > - reg = <0x0 0x40053000 0x0 0x1000>; > - interrupts = <0 59 4>; > -}; > - > -[1] https://www.nxp.com/webapp/Download?colCode=S32V234RM > diff --git a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml > new file mode 100644 > index 000000000000..acfe34706ccb > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.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/fsl,s32-linflexuart.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale LINFlexD UART > + > +description: | > + The LINFlexD controller implements several LIN protocol versions, as well > + as support for full-duplex UART communication through 8-bit and 9-bit > + frames. See chapter 47 ("LINFlexD") in the reference manual > + https://www.nxp.com/webapp/Download?colCode=S32V234RM. > + > +maintainers: > + - Greg Kroah-Hartman > + - Rob Herring Someone that cares about this h/w, not who applies patches. > + > +allOf: > + - $ref: "serial.yaml" > + > +properties: > + compatible: > + description: The LINFlexD controller on S32V234 SoC, which can be > + configured in UART mode. Drop 'on S32V234 SoC' so we're not editting for every new SoC. > + items: > + - const: fsl,s32v234-linflexuart > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + serial@40053000 { > + compatible = "fsl,s32v234-linflexuart"; > + reg = <0x40053000 0x1000>; > + interrupts = <0 59 4>; > + }; > -- > 2.30.0 > >