Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1080412pxb; Fri, 22 Jan 2021 06:46:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7SCco4JP3hHwifILf43MxsZQk1/WWPqjwAGQ8mx79neuaPRvQdjmA4me5Tl6WLF3FAXy3 X-Received: by 2002:aa7:d651:: with SMTP id v17mr3518610edr.91.1611326814108; Fri, 22 Jan 2021 06:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611326814; cv=none; d=google.com; s=arc-20160816; b=SpzYD3S4GlsuUJ0lJxUfulgOB+N01UujuNNwWk0rZatdlg6YQTMejVuVNFh63HgXiV xO5mE7xZU004YzwwnPeRc3jrFpOgyGwnW2D4xtiB0A1wYbyCFQw/shpKdkpJoqOn7yqX lwB5qa5uLbwADCzSoI0H70t4h1s09ZgZ1h4Bepfyql/smRpC4F240fQ5bGaTDLwRlKyK 3xT4of2wyhBdGLezw9Y5aWsdRp5pLHP3zqDS1sr0uwL19Jwp7hT1D0cXjBwuR8oiAtro 3qiI21dmjnXkFixGv9tHkbk3CSG2E24DeVpSEqjXiphsgo3sH4062GZZJzXlVzl3R1w3 P2xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=9dz6eGNdxbI3K5ncIKPc6L90/Xe3pSrQeB+6TJXolsI=; b=ilwOrWKQ+T8JUu/al3r42Q17wSo14XwE2at/udX+pOav0jLrrR99FeP7eEg2LYSnbe DFvOyVqu+sj2ifMpkCoIdq3xwoHtqWCInUjndwwGEj0GgDHfBRkk434xJoEa6onon3xT NneU0VnmPE37hpV5R+85BodX0hTJd0PHrpfqHa+pWvZ2UqANpjU6yhR/fbWW94y/xXXn EEMRrY2sEvn8Y2dtUM+ixQ6HmMATeuRErpYBUHXzqZII4+GMi6MaE88j9gO05OKRWs70 DcQybwUrA3yg7QIFzXbd1bQntydjoV5fo4Es6GiOBzCJAlTBMxJf6B29rxOIWv4iMFut KyRA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si3695378edy.108.2021.01.22.06.46.30; Fri, 22 Jan 2021 06:46:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbhAVOne convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Jan 2021 09:43:34 -0500 Received: from aposti.net ([89.234.176.197]:55628 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbhAVOnW (ORCPT ); Fri, 22 Jan 2021 09:43:22 -0500 Date: Fri, 22 Jan 2021 14:42:28 +0000 From: Paul Cercueil Subject: Re: [PATCH 1/2] dt-bindings/phy: ingenic: Add compatibles =?UTF-8?Q?for=0D=0A?= JZ4760(B) SoCs To: Rob Herring Cc: Kishon Vijay Abraham I , Vinod Koul , od@zcrc.me, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: References: <20210120115945.29046-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Le ven. 22 janv. 2021 ? 8:35, Rob Herring a ?crit : > On Wed, Jan 20, 2021 at 5:59 AM Paul Cercueil > wrote: >> >> Add the ingenic,jz4760-phy and ingenic,jz4760b-phy compatible >> strings, >> and make the ingenic,jz4770-phy compatible string require >> ingenic,jz4760-phy as a fallback, since both work the same, and the >> JZ4760 SoC is older. >> >> Signed-off-by: Paul Cercueil >> --- >> .../bindings/phy/ingenic,phy-usb.yaml | 22 >> ++++++++++++------- >> 1 file changed, 14 insertions(+), 8 deletions(-) >> >> diff --git >> a/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml >> b/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml >> index 0fd93d71fe5a..3c65dfcf352b 100644 >> --- a/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml >> +++ b/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml >> @@ -15,13 +15,19 @@ properties: >> pattern: '^usb-phy@.*' >> >> compatible: >> - enum: >> - - ingenic,jz4770-phy >> - - ingenic,jz4775-phy >> - - ingenic,jz4780-phy >> - - ingenic,x1000-phy >> - - ingenic,x1830-phy >> - - ingenic,x2000-phy >> + oneOf: >> + - enum: >> + - ingenic,jz4760-phy > > This should be 2 more spaces indentation. Indent is always 2 more than > the above keyword and ignores '-'. Pretty confusing. But alright. Cheers, -Paul >> + - ingenic,jz4775-phy >> + - ingenic,jz4780-phy >> + - ingenic,x1000-phy >> + - ingenic,x1830-phy >> + - ingenic,x2000-phy >> + - items: >> + - enum: >> + - ingenic,jz4760b-phy >> + - ingenic,jz4770-phy >> + - const: ingenic,jz4760-phy >> >> reg: >> maxItems: 1 >> @@ -48,7 +54,7 @@ examples: >> - | >> #include >> otg_phy: usb-phy@3c { >> - compatible = "ingenic,jz4770-phy"; >> + compatible = "ingenic,jz4770-phy", "ingenic,jz4760-phy"; >> reg = <0x3c 0x10>; >> >> vcc-supply = <&vcc>; >> -- >> 2.29.2 >>