Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1008025pxb; Fri, 13 Aug 2021 11:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ5gKqi+GEmDTaNOhtDIg4KOqh8eUhu4Fr4UrPJV+HUeHD2QyKbsIlp0+Fjiu1jTOQxuG2 X-Received: by 2002:a17:906:aecc:: with SMTP id me12mr1922828ejb.97.1628878277425; Fri, 13 Aug 2021 11:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628878277; cv=none; d=google.com; s=arc-20160816; b=G3R2m5JzmKXanhE89LjJ6eFtD2OZ4AbULNxY4ky15NLMjHS8SAbG6GFSy9Dq6BOVhq PWeUz2XQ1bC9JtKDu5v2BzhI/M8kvQBJgNPPYDjSJZ/H/NS4Vdu7idEjLqRDvhQqag7x oCjum+KhtXu6r3lHyLx+Hpj4tV3AFAYBBgEYHOTy3e9QSkyb2/Fp00GHbeRcNb9tNDta 1ueY5fCrllEPk3hFQFhIDyGqbSkJUZpHqtiFpQjPpw059fkyk8KIDbS4yjap2eMCmr0a cZ43Rd+rMzlhp0bLno1/AbWEzw575x5erCP7u2bhaTwFYnsJkhEyQrJcIG3+CC18mhM/ dl+w== 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=RNAJ6CKuegXmSd2Yyh9RqrbADSON9AKbMmt2xHYGKZ0=; b=jxhrm+gJpYCrQO6qLjtv/idTlBhd0QOo+Pf3GDRART+jP9vFS6Va3eVoafVbCbZuVx yBk3f6k2Y28OWV28770vixAaB6DuTcKUcE9gG1WkvHe/iuwStAQFg1IZV9SWwXdF25l8 bpBLlQzAGWEI+NdZVOoJqOpBkjo0io4GcAECx4Opbgzk8CrFrnMpPU/p/+g08vLWvPQX jtLX182MdRY6dy/J4j7Eg5R4ATw7ZPxc+jlavZgfvwB809V7RVm+rRI1Ei7IrWlVuBkW x6+cayWMeNhe0mB2mZPR4Bq2HI4soF1gYfUBhQT023lky1U5rir7v8OjkER3PgVabXem JKVA== 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 dy18si2420770edb.594.2021.08.13.11.10.53; Fri, 13 Aug 2021 11:11:17 -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 S232598AbhHMSJq (ORCPT + 99 others); Fri, 13 Aug 2021 14:09:46 -0400 Received: from mail-ot1-f54.google.com ([209.85.210.54]:46746 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbhHMSJq (ORCPT ); Fri, 13 Aug 2021 14:09:46 -0400 Received: by mail-ot1-f54.google.com with SMTP id v33-20020a0568300921b0290517cd06302dso233360ott.13; Fri, 13 Aug 2021 11:09: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=RNAJ6CKuegXmSd2Yyh9RqrbADSON9AKbMmt2xHYGKZ0=; b=enAd95i+F1XkIoTp5lS6D4lNvzQmu7WQL1kgR+t77upo1YxEgYUVXNZVQs7z440zdE AffejsEEwPwBKuvVF1w9dvOi9O1mvAZxQKy2oHOweZgz+QQA5hUaNC/wQn84+pbPMCw7 L5i/y/+wpQS/lB+5VZiC8RO2v6XiPOokYF70u8Eukhq/f8RmDjGqXn1hT2ROD0KSJitn uApM+0HN96+Xnt7PND9jUpHwCPq5X3B7f2NIZl4WxVc2O3G8xIhs9BqtxTOtT/p+CmFq X2kM+iH+cB8V7aims2Bn/GOOJlm0jZ7PHwM6nUTlh7Ix/PzHKWdi1L2ixy1qGxabtAl8 3Ypg== X-Gm-Message-State: AOAM531vj2VCzmZgI8TWWzxb1Wj4wAosO5R2PDWBUOXhIzVu8I0gnQgK d5THD3hKZhN4vmqEDdAr3Q== X-Received: by 2002:a05:6830:2783:: with SMTP id x3mr3185257otu.37.1628878158745; Fri, 13 Aug 2021 11:09:18 -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 u15sm472572oiu.43.2021.08.13.11.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 11:09:18 -0700 (PDT) Received: (nullmailer pid 3783560 invoked by uid 1000); Fri, 13 Aug 2021 18:09:16 -0000 Date: Fri, 13 Aug 2021 13:09:16 -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 3/8] dt-bindings: serial: fsl-linflexuart: Add compatible for S32G2 Message-ID: References: <20210805065429.27485-1-clin@suse.com> <20210805065429.27485-4-clin@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805065429.27485-4-clin@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 05, 2021 at 02:54:24PM +0800, Chester Lin wrote: > Add a compatible string for the uart binding of NXP S32G2 platforms. Here > we use "s32v234-linflexuart" as fallback since the current linflexuart > driver still works on S32G2. > > Signed-off-by: Chester Lin > --- > .../bindings/serial/fsl,s32-linflexuart.yaml | 26 ++++++++++++++++--- > 1 file changed, 22 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml > index acfe34706ccb..e731f3f6cea4 100644 > --- a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml > +++ b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml > @@ -21,10 +21,20 @@ allOf: > > properties: > compatible: > - description: The LINFlexD controller on S32V234 SoC, which can be > - configured in UART mode. > - items: > - - const: fsl,s32v234-linflexuart > + minItems: 1 > + maxItems: 2 minItems/maxItems not needed here. > + oneOf: > + - description: The LINFlexD controller on S32G2 SoC, which can be > + configured in UART mode. > + items: > + - enum: > + - fsl,s32g2-linflexuart > + - const: fsl,s32v234-linflexuart > + > + - description: The LINFlexD controller on S32V234 SoC, which can be > + configured in UART mode. > + items: > + - const: fsl,s32v234-linflexuart > > reg: > maxItems: 1 > @@ -41,8 +51,16 @@ unevaluatedProperties: false > > examples: > - | > + /* S32V234 */ > serial@40053000 { > compatible = "fsl,s32v234-linflexuart"; > reg = <0x40053000 0x1000>; > interrupts = <0 59 4>; > }; > + > + /* S32G2 */ > + serial@401c8000 { > + compatible = "fsl,s32g2-linflexuart", "fsl,s32v234-linflexuart"; > + reg = <0x401c8000 0x3000>; > + interrupts = <0 82 1>; > + }; This doesn't really warrant another example just for a new compatible string.