Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1220739pxu; Sat, 12 Dec 2020 05:59:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxtBOxWaizJoC8a6U1IPSjcA6SPeWH/4Yw7vgkcRP04YjQapnGIATyqfpD9STVxcYdaJAw X-Received: by 2002:a17:906:1955:: with SMTP id b21mr15157012eje.236.1607781575591; Sat, 12 Dec 2020 05:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607781575; cv=none; d=google.com; s=arc-20160816; b=KoSEszh7v017xAYS2XqzVg/5biprL5PlDx3UaSllVHjHMkDSWE6QoobypaGJYzHEvh 4J4MydWCzxFjScMN2gloPH+9NQI7NdToOoJIyriXSUgkxUWWvfPG9+Epdv5Bt9cys0WT lrCzFlXobFpaOjY7AU1Tw+zVc6n/gboaIZ+iGMera3QYd6Ewhx/oKI7N+F7UBJ3L1j/V u6mdf9dDrQo+LGBzl7fAih4yFgf+BdEh5LYQPMVnQ2X8ilZ+wJQwR9i4O1CmZ6+NgG6y tMM2mgaE3eBa7Fz/batAotOGnFZT5OlgohFAElGNe+djcCMt/m96rVEwAsm4k4TvqU1o UF3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:subject:dkim-signature; bh=Tu59/3Cv9BBH4Oz+YHX6+4aqIBoWj0gUR86vdaBThG0=; b=Zjckh+u1PVlese0YDSdlxOGv8uDhC1+R+jodi5LfEkAk+1H4iZJJoscmR6xT0/4LjY Ds03Yx34qXigRVMRhtgPyE0bogIyHJde/UH26mlQZGt2dOhKpVHiEnYpWZr6V8PVQxcn DZyJMH9t+8NQUpz12oivFpo3Ns1lK1G2W+oxJNvefjAT91qCrXK7Iju81hM0uRBrMSVU iioNH3Ux+gxmOMcvLjEv4LScflxh3gp6ZRhogbLxog1ZEQs8frJCzXREjI8Mcc8g6Wwv cWVzCIahVmdzLi1zsWpcG5N/eyC90qyajJGo8qmHcXCU6XlaGCxiwyYfnJabApFicjdp xJiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="pQQTe8/9"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si6197214ejf.281.2020.12.12.05.58.38; Sat, 12 Dec 2020 05:59:35 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="pQQTe8/9"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390573AbgLKMG7 (ORCPT + 99 others); Fri, 11 Dec 2020 07:06:59 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:57538 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729717AbgLKMGc (ORCPT ); Fri, 11 Dec 2020 07:06:32 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BBC4sEE031693; Fri, 11 Dec 2020 06:04:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1607688294; bh=Tu59/3Cv9BBH4Oz+YHX6+4aqIBoWj0gUR86vdaBThG0=; h=Subject:CC:References:From:Date:In-Reply-To; b=pQQTe8/9P79ImNwSWY8bwsYjm4sipUW8iJ/sWpK5M9ADk0fdkkfPoRQz69+iHWVTG GJsd9jvzJptbSuNCxAN/Yw3d6VFu1O4tlnvalFbJYuDipLXQJnyZyvVqSBGhE0TnfX tZ5BWAAI/9tkxtWF8rU6f5dlL3Q1j2o/RdiG/3vw= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BBC4sle110761 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Dec 2020 06:04:54 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 11 Dec 2020 06:00:44 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 11 Dec 2020 06:00:44 -0600 Received: from [10.250.232.169] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BBC0fj9060784; Fri, 11 Dec 2020 06:00:41 -0600 Subject: Re: [PATCH v4] dt-bindings: usb: Add new compatible string for AM64 SoC CC: Vignesh Raghavendra , Sekhar Nori , Greg Kroah-Hartman , Rob Herring , Roger Quadros , , , References: <20201211060429.20027-1-a-govindraju@ti.com> From: Aswath Govindraju Message-ID: <062c861a-b35e-06cd-2bda-a2d3f5034290@ti.com> Date: Fri, 11 Dec 2020 17:30:40 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201211060429.20027-1-a-govindraju@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/12/20 11:34 am, Aswath Govindraju wrote: > Add compatible string in j721e-usb binding file as the same USB subsystem > is present in AM64. > > Signed-off-by: Aswath Govindraju > --- > > Changes since v3: > - used enum instead of anyOf. > > Changes since v2: > - added changes done over the versions. > > Changes since v1: > - replaced the '\t' at the beginning of the lines with spaces as it was > causing the dt_binding_check to fail. > > Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > index 388245b91a55..1a5c7bbb40d1 100644 > --- a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > +++ b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > @@ -11,8 +11,9 @@ maintainers: > > properties: > compatible: > - items: > - - const: ti,j721e-usb > + enum: > + - ti,j721e-usb > + - ti,am64-usb > I am trying to use the compatible strings in the following manner ``` compatible = "ti,am64-usb", "ti,j721e-usb"; ``` If I use above patch I am getting an error while doing a dtbs check. ``` /home/gsaswath/src/ti-linux-kernel/arch/arm64/boot/dts/ti/k3-am642-evm.dt.yaml: cdns-usb@f900000: compatible: Additional items are not allowed ('ti,j721e-usb' was unexpected) From schema: /home/gsaswath/src/ti-linux-kernel/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml /home/gsaswath/src/ti-linux-kernel/arch/arm64/boot/dts/ti/k3-am642-evm.dt.yaml: cdns-usb@f900000: compatible: ['ti,am64-usb', 'ti,j721e-usb'] is too long From schema: /home/gsaswath/src/ti-linux-kernel/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml ``` I have looked around for examples but I am unable to find a similar case. I tried using anyOf in the following manner ``` compatible: anyOf: - const: ti,am64-usb - const: ti,j721e-usb ``` But I am getting an error ``` /home/gsaswath/src/ti-linux-kernel/Documentation/devicetree/bindings/usb/ti,j721e-usb.example.dt.yaml: cdns_usb@4104000: compatible: 'anyOf' conditional failed, one must be fixed: Additional items are not allowed ('ti,j721e-usb' was unexpected) ['ti,am64-usb', 'ti,j721e-usb'] is too long 'ti,j721e-usb' was expected ``` Doesn't anyof mean that the compatible strings can be used in any combination ?? Thanks, Aswath > reg: > description: module registers >