Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp1010726pxb; Fri, 13 Aug 2021 11:15:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlJk0uDfAyNZKjbo+V9z+UyOcRM5l0e5m9l0fYfhfjShu/Dy9gz8YAnYNrGcax+UB/V3gm X-Received: by 2002:a17:906:a881:: with SMTP id ha1mr3783733ejb.33.1628878519331; Fri, 13 Aug 2021 11:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628878519; cv=none; d=google.com; s=arc-20160816; b=keQ6LXsZxRqqm2B8ABBBci0oWMgfFCy6uZqundik1xZf9sFqLG/Uq/ivyZmuJQhCvE 55ShV+/vgtiSFKj2nhAmyJPvedrVs5eLXOH0waFGgfWKouqjbyEKzwyj0FdRXuY4AY1X WRPWITrJhcrLee819i+iFgWt3RkwNvz5hW98VxdJZktA5OUwNMMu8HSrVMgUU3BVViT0 QVBTFQ9ep6dFTfxvHRsZelBtf+1xx7j0V3xi3hvcHoTc2OZcFmxv282LWXKC7GNBycme zKPttdQnbzRCTQ7tVuH09JWQTdHUvcVXSpXMtGTexHhB6GqBahgbyfmraSfJyVihuwLV 4tRw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LPzED54xeKgTV0uzpxN25ycvgJ7+FnU0XzwWfHIGp+M=; b=H70cvXQ1aSmvzyZIo7/emcDxYa1SB9jEZQ40PMyXktzLGTiYiXWXx6QV6z31N9FgJL +ABnIkgKQQJJn70/W7Y859Fc7YfYUVZFLmnxcxdkYBrzYSd9rxhFEc4jffsFJXS9LSaQ YAGo1A0RJNFxXBCa2Ldpzzt9jdO2pu8dS3QeDYElq0psRyjwztViV3h17VnXg1k33BEE Kwmjp1zJqmEupBzgq8y+v4zcZeOqM1Sfq68aQudFX2vQ6T5QwhS+A6hz9uDQoaW/4Y06 VYPD1/S0+N7BlWVTaeVmSUZbNaH5AzWr/4uyuddvWUvaXLyl8jQAuAU0xn24/wLOHvUu ZNww== 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 r17si2321171edv.508.2021.08.13.11.14.55; Fri, 13 Aug 2021 11:15:19 -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 S232611AbhHMSLn (ORCPT + 99 others); Fri, 13 Aug 2021 14:11:43 -0400 Received: from mail-ot1-f54.google.com ([209.85.210.54]:40516 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbhHMSLn (ORCPT ); Fri, 13 Aug 2021 14:11:43 -0400 Received: by mail-ot1-f54.google.com with SMTP id h63-20020a9d14450000b02904ce97efee36so13036558oth.7; Fri, 13 Aug 2021 11:11:16 -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:content-transfer-encoding :in-reply-to; bh=LPzED54xeKgTV0uzpxN25ycvgJ7+FnU0XzwWfHIGp+M=; b=dDJgmPyy1TLYFPtdQcVksT1WJVApRCL7jHpWiOrCZbcZ2T7D8pR1p/bxM61F9VPxP1 8v6OKbFJPQSpJ3VqLmgFn0Pf3uNjK/hMfkLeNVeuTvDXF5yuoXu2H+xwe/REosUJ8BMy F+AQLLvW73JDsgX0o5tZmwEK/xl4IdXL+7HOuvhagtUNaCi1VOelv+LwYWsAr4OErRcL bJz/r1At15AH4WAVrQl+vY8mqeYasKIsyuG2K8IS+6eEQQPVNzAAUzlca6S0+6GljXlZ rxBsicw6JkV/9vUNXA2y+nsNZtjdbFtFplYYjaSPlJ9cl1Ox3iE+/YAUjUd7fsmZWTcF UZrw== X-Gm-Message-State: AOAM531ykPe7TbayIhATpUXQvgbdtkj9ap5vfk74T+2kCicMRXhdhR7g UOaWAb1fsU0deqnQ8yxdlQ== X-Received: by 2002:a9d:5e5:: with SMTP id 92mr3056054otd.193.1628878275680; Fri, 13 Aug 2021 11:11:15 -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 g13sm218710oos.39.2021.08.13.11.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 11:11:15 -0700 (PDT) Received: (nullmailer pid 3786586 invoked by uid 1000); Fri, 13 Aug 2021 18:11:13 -0000 Date: Fri, 13 Aug 2021 13:11:13 -0500 From: Rob Herring To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Chester Lin , Greg Kroah-Hartman , s32@nxp.com, 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 , 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 , "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> <96c02ee6-cd3a-59df-0b3b-1632bb355019@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <96c02ee6-cd3a-59df-0b3b-1632bb355019@suse.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 12, 2021 at 06:27:57PM +0200, Andreas F?rber wrote: > On 05.08.21 08:54, 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 > > Are these necessary for oneOf? > > > + oneOf: > > + - description: The LINFlexD controller on S32G2 SoC, which can be > > + configured in UART mode. > > + items: > > + - enum: > > + - fsl,s32g2-linflexuart > > + - const: fsl,s32v234-linflexuart > > This reads inconsistent to me: Either this oneOf is for S32G2 only, then > please turn the enum into a const. Or change the description to "on SoCs > compatible with S32V234" if we expect the enum list to grow. > > I believe the idea here was to avoid unnecessary driver compatible and > earlycon compatible additions, while preparing for eventual quirks > specific to S32G2. > > @NXP: Should this be s32g2- like above or s32g274a- specifically? Do you > agree this is a useful thing to prepare here, as opposed to using only > s32v234- in the s32g2* DT? > > I assume the ordering is done alphabetically as S32G < S32V; > alternatively we might order S32V234 first and then the compatible ones. > > > + > > + - description: The LINFlexD controller on S32V234 SoC, which can be > > + configured in UART mode. > > + items: > > + - const: fsl,s32v234-linflexuart > > To minimize this S32G2 patch, would it be valid to do oneOf for the > single S32V in the preceding patch already? Then we would avoid the text > movement and re-indentation above and more easily see the lines newly > getting added for S32G2. > > > > > reg: > > maxItems: 1 > > @@ -41,8 +51,16 @@ unevaluatedProperties: false > > > > examples: > > - | > > + /* S32V234 */ > > Could this be: > - description: S32V234 > | > ? No, that would not be valid json-schema. Rob