Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp66042rwl; Wed, 9 Aug 2023 11:01:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFq+fDHRF0n41iGSHVM81XLEOlb58v60osuuscmgtdXrSsK4YKvJR/5OKRlR+QRJgTMoIqN X-Received: by 2002:a05:6a20:7fa9:b0:137:23a2:2b3c with SMTP id d41-20020a056a207fa900b0013723a22b3cmr4312824pzj.49.1691604071446; Wed, 09 Aug 2023 11:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691604071; cv=none; d=google.com; s=arc-20160816; b=IqQUxjtTKdgSSF+nGlXEh+WZLLcpeT8ogi7nssjKDM2VtTpUnwlkfxyfNGueQ+3Tn0 mk8sr2JOIsQDd5E2zVw8T0FZBau3hWr08oq6kh/q2cIPnNEnVZ7uP8FksRQEe33rMKgF 3fzqcYcpXnGZdSXSkoswXyJypWxYjswF5hQ73ZSKnkblNkKXgKwUOsNHwKFNWLUWTLri Nhm7Hgz5x31vw6x2INvpLHTwi3vbKwhCpQemdDB9szrRdRnPb4vYSb5cxRc32mM9pZmW ucS4cK15b8kEtqC/yhDUAlQM3+kCsR4+7cMHSQqLKoQSLo7/Ch9wO7qsGclL2bHgkxFe Irmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=locXRAZShx/Ip09/WBeCOmXx0r2GGenxopdxoXszxv4=; fh=CIihr5NEFTyVhPCC35/i6TCSAOLWTgNRZrBqF9laz8I=; b=CNkNKbmbPvH0G3MK+a3y7/MUT3S/PF4oNMeSw08xuGEjsnZK0O+qBQZS9TA3BBFn6c 0upcOosobd5t2eKNArMH1/vDV1KthzOKhxXlEvo0NBQv5UxRjJtzTo0EIE9/SBfHSjxH FAib6ZQzaNVR+qXiFeTai0rmg9R7LM8QNzclKrVGtkASZajb+eDePlXTPDAXatK+dUEH imQIOWNa/k+JK/mzQ0cmWgTjS6DOJliT/qsLZV716SAiNsIgBqeR2PqY1260rA5ZvcvV SyqSamPqK6Nx4rQc+fMI6Mhi9vjwgtXizFp0+Xi95EvG7g+7zGJcCr+n0t/V0XDWURn2 95wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20221208.gappssmtp.com header.s=20221208 header.b=y3JdGKp6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi10-20020a056a00398a00b0068730bad69bsi9871866pfb.305.2023.08.09.11.00.58; Wed, 09 Aug 2023 11:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gateworks-com.20221208.gappssmtp.com header.s=20221208 header.b=y3JdGKp6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231203AbjHIR1G (ORCPT + 99 others); Wed, 9 Aug 2023 13:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230474AbjHIR1E (ORCPT ); Wed, 9 Aug 2023 13:27:04 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF5DB8E for ; Wed, 9 Aug 2023 10:27:03 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99c1f6f3884so17163066b.0 for ; Wed, 09 Aug 2023 10:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20221208.gappssmtp.com; s=20221208; t=1691602022; x=1692206822; 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=locXRAZShx/Ip09/WBeCOmXx0r2GGenxopdxoXszxv4=; b=y3JdGKp6XUwqjk5BTCCcWOSzYHLli0AanC7EjSVi+9o0f+WfR+lqztQvdzDIAL9L/e 0I0VAp5tOdVvxELYy6mxepOWpK+uSajeU12W2WDZGEX8sVKJcruxVBs/oqNHY5aFewca WO0DcYG524ZrsJiD5IQlU/R+C4JwtWMlzB6NunHWMbHcCRESKtfc+gg4WRVlJgF9SvUB 9e6xSq/W+30fyz2Ae4aPIbvi5O/lPTrzk3iTRzDjTcRAh9+Wld7mhzZvEIvJpIOGAB3L 69Z41NR4qctOqsuv7VkdtCbSLynNkWqE+byOeGGog+kqYbkpoLWsjFPlwcOvZ/XDWe25 CcNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691602022; x=1692206822; 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=locXRAZShx/Ip09/WBeCOmXx0r2GGenxopdxoXszxv4=; b=XY9oH5gkZJ3sfC/kUn7l8NSMhiRaZYrtJ9h4F3JIY4cDjcBz7EVOeF9CtVI4rRJeAa WAlHEYkHzgy8LECWNh7XUNJLLJ2C4sYwFEVv4i6G01DR+0gFDkaPf/t9neh9Yae5viJc kebfCAuUe1zwVBD8PHZ89fL5TVKiinnkHVhw76MhunCFwVFZtiVoHR3NbtkwhvmhEZkx 5hwtY6yw/xT4dMcxSXMnV+DAuoZJ0gA7tTurxNfUJdhsbcHmIdbbypxhkpoZEP3FaQnp KmaWjXsBvm7H3UqkIpXr4IJI4n5q4R8B53NVcqzzfrslitgbSkqoqdTj0x8Kubm2XYDK tReA== X-Gm-Message-State: AOJu0YxbRGYm6DKAJElVCoIwPQaUg3IAdwvjDzMXRs+fOn4d3h3tI12a HI6mbj2HSRfVyA3G+94nS2LLkSTSTTdud3KRUht2wQ== X-Received: by 2002:a17:906:76d4:b0:99c:581f:7f51 with SMTP id q20-20020a17090676d400b0099c581f7f51mr2651367ejn.54.1691602022140; Wed, 09 Aug 2023 10:27:02 -0700 (PDT) MIME-Version: 1.0 References: <20230806233333.815702-1-festevam@gmail.com> <3bbd635f-85a6-9031-3264-e5209f8bc44f@linaro.org> In-Reply-To: <3bbd635f-85a6-9031-3264-e5209f8bc44f@linaro.org> From: Tim Harvey Date: Wed, 9 Aug 2023 10:26:50 -0700 Message-ID: Subject: Re: [PATCH] arm64: dts: imx8m-venice: Pass "brcm,bcm4329-fmac" To: Krzysztof Kozlowski , Fabio Estevam Cc: shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org, Fabio Estevam Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 8, 2023 at 11:33=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 09/08/2023 01:52, Tim Harvey wrote: > > On Sun, Aug 6, 2023 at 4:33=E2=80=AFPM Fabio Estevam wrote: > >> > >> From: Fabio Estevam > >> > >> Pass "brcm,bcm4329-fmac" to fix the following schema warnings: > >> > >> imx8mp-venice-gw74xx.dtb: wifi@0: compatible: 'oneOf' conditional fail= ed, one must be fixed: > >> ['cypress,cyw4373-fmac'] is too short > >> 'cypress,cyw4373-fmac' is not one of ['brcm,bcm4329-fmac', 'pc= i14e4,43dc', 'pci14e4,4464', 'pci14e4,4488', 'pci14e4,4425', 'pci14e4,4433'= ] > >> from schema $id: http://devicetree.org/schemas/net/wireless/br= cm,bcm4329-fmac.yaml# > >> > >> imx8mn-venice-gw7902.dtb: wifi@0: compatible: 'oneOf' conditional fail= ed, one must be fixed: > >> ['brcm,bcm43455-fmac'] is too short > >> 'brcm,bcm43455-fmac' is not one of ['brcm,bcm4329-fmac', 'pci1= 4e4,43dc', 'pci14e4,4464', 'pci14e4,4488', 'pci14e4,4425', 'pci14e4,4433'] > >> from schema $id: http://devicetree.org/schemas/net/wireless/br= cm,bcm4329-fmac.yaml# > >> > >> Signed-off-by: Fabio Estevam > >> --- > >> arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts | 2 +- > >> arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts | 2 +- > >> arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts | 2 +- > >> arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts | 2 +- > >> 4 files changed, 4 insertions(+), 4 deletions(-) > >> > >> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts b/= arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts > >> index 21d7b16d6f84..cde29aa1a0a2 100644 > >> --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts > >> +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts > >> @@ -801,7 +801,7 @@ &usdhc1 { > >> status =3D "okay"; > >> > >> wifi@0 { > >> - compatible =3D "brcm,bcm43455-fmac"; > >> + compatible =3D "brcm,bcm43455-fmac", "brcm,bcm4329-fma= c"; > >> reg =3D <0>; > >> }; > >> }; > >> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts b/= arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts > >> index 964cc4fc2ddf..0bff7a6fdca6 100644 > >> --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts > >> +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts > >> @@ -726,7 +726,7 @@ &usdhc2 { > >> status =3D "okay"; > >> > >> wifi@0 { > >> - compatible =3D "brcm,bcm43455-fmac"; > >> + compatible =3D "brcm,bcm43455-fmac", "brcm,bcm4329-fma= c"; > >> reg =3D <0>; > >> }; > >> }; > >> diff --git a/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts b/= arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts > >> index 3ac011bbc025..9a36edc60394 100644 > >> --- a/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts > >> +++ b/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts > >> @@ -679,7 +679,7 @@ &usdhc2 { > >> status =3D "okay"; > >> > >> wifi@0 { > >> - compatible =3D "brcm,bcm43455-fmac"; > >> + compatible =3D "brcm,bcm43455-fmac", "brcm,bcm4329-fma= c"; > >> reg =3D <0>; > >> }; > >> }; > >> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts b/= arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts > >> index 3473423ac939..faa370a5885f 100644 > >> --- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts > >> +++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts > >> @@ -737,7 +737,7 @@ &usdhc1 { > >> status =3D "okay"; > >> > >> wifi@0 { > >> - compatible =3D "cypress,cyw4373-fmac"; > >> + compatible =3D "cypress,cyw4373-fmac", "brcm,bcm4329-f= mac"; > >> reg =3D <0>; > >> }; > >> }; > >> -- > >> 2.34.1 > >> > > > > Fabio, > > > > Thank you for your continued efforts to squash out all these > > dt-binding warnings/issues. > > > > Can you explain what the difference is in the dt-binding yaml between > > compatible/oneOf/items/{enum,const} and compatible/oneOf/enum? The > > items defines a list. items with enum and const, defines a list of two > items, where first is an enum (so oneOf few) and second is fixed. > > compatible/oneOf/enum is not a list. Or you could look at it as > one-element-list. > > > > first list for Documentation/devicetree/bindings/net/wireless/brcm,bcm4= 329-fmac.yaml > > has a much larger set of enums including the bcm43455 on these boards > > but the second set of enums has a much more limited set. > > What's the question here? Both define different things. One defines > compatible devices with some model, second defines just some devices. > > > > There is no > > driver code to look at for this because it is bound via SDIO device > > id's instead of the dt compatible property. > > > > Best regards, > > > > Tim > Krzysztof, Thanks for the explanation. I see now that if I want to specify anything other than the enums in the second item (brcm,bcm4329-fmac, and the pci14e4*), per the first item I must follow it with 'brcm,bcm4329-fmac'. Acked-by: Tim Harvey best regards, Tim