| Message ID | 20200723090210.41201-1-jagan@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBIFE4X4AKGQEACNAQKA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7E7F641487 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 23 Jul 2020 11:02:26 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id 67sf3074700pla.23 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 23 Jul 2020 02:02:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595494944; cv=pass; d=google.com; s=arc-20160816; b=KfpoumBsIq7XF8o7PKXwIv6bfrr4P5LkCuJxe99Y8D+AxPUAY5QnSeYU56o337Tyiu gx5xPIpHZ83ahMx6Is4scSXGu9hnnh9F8kRYMInwsSre0cnsoT4MnDe+bNUZTzk/VOvH NxwuKgrKpQsGqJsHUWLekqyVsBEDDi9qSz1Al5WyNA5yJSuvZ4ENKfeB8qPOP/nCQPPw CvArjdWDzKKIZf0+4QcFjq3T1ZJDYMNa5+j4P3Y73Gkx7iv124loYnBdMs3PqKvoGB9i gFP4FSMvtqUrxI+bRpac3rPLhanUnD2SH4+QoxxoEdiTYNpxAuZw1gFqHFLomw7oGByb AtFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=roI85g1Kcb/HDaR5DYkfHoxyXYKovRG4GZZDSH8To5M=; b=BiQ1dgoXWvTIGJWsYjdofVU644kNYm+kyLYCvWwR5g/WWqKcYa37M2NQTZ3lCQPbKC gF1Eh2ntJeB7Nat0tVh6Z8iHhML4GoSkr8LhHH79T3TzsCv6vTDIFohmUIXyss9kzuVg gHuKvLeKr+c5CgCNviUSxMv7mHufKM+WEu9rWRPuaaqXPHmSUuHXC6ojlrJTiDvNoONV QaSJx+2xzFp1XjLopo8aApFQABjGZkZN2rYGquz3EZ8rpsV0Oku4xHZatf9bg/wHbouX 57aL5qpjO+eJ91QJs2VmBrVuqao050PcLCveYG8wU8RSycgZjvENMWwDZPvDvK959uXL cP6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZozH9q0A; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=roI85g1Kcb/HDaR5DYkfHoxyXYKovRG4GZZDSH8To5M=; b=WnCiFpeY/I8j+AVeybADr2nyJMTPy4tohk+jh3x8626ZKOUYSAaXQHv1qGj1KQ3BnQ ck9Nc9IJn3aSH4XqhkAdk84AXxJvbw4bwui25MOV4ZTMetJvoltYMggXM1fAMqm2cqkK fwHq8cKMnyD9Aba6NVqM31PpMXtkiTO6GYb1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=roI85g1Kcb/HDaR5DYkfHoxyXYKovRG4GZZDSH8To5M=; b=CH3AZGroqWh4KcdPt4joYJJxKT9z2f7aHPR7zEypHfrtMGV7rdt2SsQ272TrizLUkD 8xJP2QSJvdifbiAv4MxMrBpLEsZh3RCRyvo8nQD1M2SXtmXPLPFzp2fkGffYrepYur0+ 6TWb2E/g4cF3Y7d1TjQGPGF2wEl9T1Pt5mfpJbeMxNBRgQWdcXHxkqilWx8lUfC5OBTn 1k9MgK86fw/s5jlbdoABt+rM70ydkPXrjW4OMPQ1hBEXWQp7Z+4me0tJfEvsyeN8T5/P Mf/DkVuXRGoLH5tUnUXb4ld9kUWNmvTaXc1ITfVxsnyTVVc+6/2D0XdGnFk/n1zLe4p6 fEIw== X-Gm-Message-State: AOAM531Scu7UYz7tsUFSrgQfkUPuIHQLDC0lXyrUHtM2Hy4c7NcCwm7p NWlHtOqWAO2FXgtOtaKuo67M7TTY X-Google-Smtp-Source: ABdhPJyGmDHLpCPAL1ZmSl77UCt0u7OoO+o7A2aUI4Z0LeH+7JTKEizd0A3GUeVBdX/XQTtFfcQVMw== X-Received: by 2002:a17:90a:30ea:: with SMTP id h97mr193723pjb.32.1595494944396; Thu, 23 Jul 2020 02:02:24 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6715:: with SMTP id u21ls1426691pgf.8.gmail; Thu, 23 Jul 2020 02:02:24 -0700 (PDT) X-Received: by 2002:a63:e556:: with SMTP id z22mr3319115pgj.130.1595494943854; Thu, 23 Jul 2020 02:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595494943; cv=none; d=google.com; s=arc-20160816; b=g/TKt2YEXCJslj8egtrPm7/CHIRFmU4ItWeYtOd+zeKC6YT3bhTMAULfbWyV+6gp1U abMSiwVJ67RBKJ+G1qjVWZgGWoQ4+PeTSkzqDRO4eG5bLxOcaHXQY8w5sM+QC255mFiK VeJcTUzzqoTn7zwRFygcnME0N0K+uOarhjqw9xCWV1qSre335KJ2QY72nF6024sl6x94 YlnTCXlVY17pmLd+z2LnEYmeXwQTTQJJhwbWx09pGbxLA6JICYeX0JxvINhdQXeuE9nI 3cI4c67kTDNgMasqW+Pr/GSUx261jCM0x4uRLMSztqgZdnYIyQcq8KS6DXtiw+WrvWF8 IV8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=4tPRnuMo6P2al0fa5yE86no6k6kmiCiMMqx340iPK/0=; b=QlVX5bIrVhTWG3AuSNq+ftY/JM/JVuTRNcZF1g281Fbvs/H+rhuFRTEdADNDCbH4WJ 2BCxMQb1mXMx4jUmMruS5x5Qe0AFsy2xBL8c0x5pbwfha+p4tSK+pOE75+iBFvQoSlzw kEFVBp4VCGJaEamhHMccQjVK0AZ4JO+AAoCeTRK+GaeVR4ESs+203VjyRFYGI4PoBId6 lswYLP4fAeCMqNpKQlrLjhg984o/vEcindqHa7tn7Eb3Z7pEzrdx76JZ6pPyY7G0blD5 V8fxewrZQFMeNvzNY9WJi/PcMKNeesQBzOmPU8tbTMpe2a7tWqrwdHi51DfzVg7d3DRZ WPvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZozH9q0A; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t18sor2437341pge.6.2020.07.23.02.02.23 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 23 Jul 2020 02:02:23 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a65:6650:: with SMTP id z16mr3505091pgv.161.1595494942657; Thu, 23 Jul 2020 02:02:22 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cbf:ea0:8a30:a3af]) by smtp.gmail.com with ESMTPSA id k23sm2319383pgb.92.2020.07.23.02.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 02:02:21 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Heiko Stuebner <heiko@sntech.de>, Rob Herring <robh+dt@kernel.org> Cc: Suniel Mahesh <sunil@amarulasolutions.com>, Michael Trimarchi <michael@amarulasolutions.com>, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula <linux-amarula@amarulasolutions.com>, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v3 1/4] dt-bindings: arm: rockchip: Update ROCKPi 4 binding Date: Thu, 23 Jul 2020 14:32:07 +0530 Message-Id: <20200723090210.41201-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZozH9q0A; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
[v3,1/4] dt-bindings: arm: rockchip: Update ROCKPi 4 binding
|
|
Commit Message
Jagan Teki
July 23, 2020, 9:02 a.m. UTC
ROCKPi 4 has 3 variants of hardware platforms called
ROCKPi 4A, 4B, and 4C.
- ROCKPi 4A has no Wif/BT.
- ROCKPi 4B has AP6256 Wifi/BT, PoE.
- ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled
GPIO pin change compared to 4B, 4C
So, update the existing ROCKPi 4 binding to support
ROCKPi 4A/B/C hardware platforms.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v3:
- new patch
Documentation/devicetree/bindings/arm/rockchip.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Comments
On Thu, Jul 23, 2020 at 02:32:07PM +0530, Jagan Teki wrote: > ROCKPi 4 has 3 variants of hardware platforms called > ROCKPi 4A, 4B, and 4C. > > - ROCKPi 4A has no Wif/BT. > - ROCKPi 4B has AP6256 Wifi/BT, PoE. > - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled > GPIO pin change compared to 4B, 4C > > So, update the existing ROCKPi 4 binding to support > ROCKPi 4A/B/C hardware platforms. > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > --- > Changes for v3: > - new patch > > Documentation/devicetree/bindings/arm/rockchip.yaml | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml > index db2e35796795..e6f656b0bd56 100644 > --- a/Documentation/devicetree/bindings/arm/rockchip.yaml > +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml > @@ -430,8 +430,12 @@ properties: > - const: radxa,rock > - const: rockchip,rk3188 > > - - description: Radxa ROCK Pi 4 > + - description: Radxa ROCK Pi 4A/B/C > items: > + - enum: > + - const: radxa,rockpi4a > + - const: radxa,rockpi4b > + - const: radxa,rockpi4c > - const: radxa,rockpi4 radxa,rockpi4 already meant 'ROCKPi 4A' and should continue to do so. Just add 4B and 4C strings. It's up to you if they should be backwards compatible with 'radxa,rockpi4' (meaning 4A), but I'd guess not unless it's just a board pop option. > - const: rockchip,rk3399 > > -- > 2.25.1 >
On Thu, 23 Jul 2020 14:32:07 +0530, Jagan Teki wrote: > ROCKPi 4 has 3 variants of hardware platforms called > ROCKPi 4A, 4B, and 4C. > > - ROCKPi 4A has no Wif/BT. > - ROCKPi 4B has AP6256 Wifi/BT, PoE. > - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled > GPIO pin change compared to 4B, 4C > > So, update the existing ROCKPi 4 binding to support > ROCKPi 4A/B/C hardware platforms. > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > --- > Changes for v3: > - new patch > > Documentation/devicetree/bindings/arm/rockchip.yaml | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > My bot found errors running 'make dt_binding_check' on your patch: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: properties:compatible:oneOf:48:items: [{'enum': [{'const': 'radxa,rockpi4a'}, {'const': 'radxa,rockpi4b'}, {'const': 'radxa,rockpi4c'}]}, {'const': 'radxa,rockpi4'}, {'const': 'rockchip,rk3399'}] is not valid under any of the given schemas (Possible causes of the failure): /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: properties:compatible:oneOf:48:items: [{'enum': [{'const': 'radxa,rockpi4a'}, {'const': 'radxa,rockpi4b'}, {'const': 'radxa,rockpi4c'}]}, {'const': 'radxa,rockpi4'}, {'const': 'rockchip,rk3399'}] is not of type 'object' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: properties:compatible:oneOf:48:items:0:enum:0: {'const': 'radxa,rockpi4a'} is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: properties:compatible:oneOf:48:items:0:enum:1: {'const': 'radxa,rockpi4b'} is not of type 'string' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: properties:compatible:oneOf:48:items:0:enum:2: {'const': 'radxa,rockpi4c'} is not of type 'string' Documentation/devicetree/bindings/Makefile:20: recipe for target 'Documentation/devicetree/bindings/arm/rockchip.example.dts' failed make[1]: *** [Documentation/devicetree/bindings/arm/rockchip.example.dts] Error 1 make[1]: *** Waiting for unfinished jobs.... /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: ignoring, error in schema: properties: compatible: oneOf: 48: items warning: no schema found in file: ./Documentation/devicetree/bindings/arm/rockchip.yaml /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/arm/rockchip.yaml: ignoring, error in schema: properties: compatible: oneOf: 48: items warning: no schema found in file: ./Documentation/devicetree/bindings/arm/rockchip.yaml Makefile:1347: recipe for target 'dt_binding_check' failed make: *** [dt_binding_check] Error 2 See https://patchwork.ozlabs.org/patch/1334641 If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure dt-schema is up to date: pip3 install git+https://github.com/devicetree-org/dt-schema.git@master --upgrade Please check and re-submit.
On Thu, Jul 23, 2020 at 9:20 PM Rob Herring <robh@kernel.org> wrote: > > On Thu, Jul 23, 2020 at 02:32:07PM +0530, Jagan Teki wrote: > > ROCKPi 4 has 3 variants of hardware platforms called > > ROCKPi 4A, 4B, and 4C. > > > > - ROCKPi 4A has no Wif/BT. > > - ROCKPi 4B has AP6256 Wifi/BT, PoE. > > - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled > > GPIO pin change compared to 4B, 4C > > > > So, update the existing ROCKPi 4 binding to support > > ROCKPi 4A/B/C hardware platforms. > > > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > > --- > > Changes for v3: > > - new patch > > > > Documentation/devicetree/bindings/arm/rockchip.yaml | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml > > index db2e35796795..e6f656b0bd56 100644 > > --- a/Documentation/devicetree/bindings/arm/rockchip.yaml > > +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml > > @@ -430,8 +430,12 @@ properties: > > - const: radxa,rock > > - const: rockchip,rk3188 > > > > - - description: Radxa ROCK Pi 4 > > + - description: Radxa ROCK Pi 4A/B/C > > items: > > + - enum: > > + - const: radxa,rockpi4a > > + - const: radxa,rockpi4b > > + - const: radxa,rockpi4c > > - const: radxa,rockpi4 > > radxa,rockpi4 already meant 'ROCKPi 4A' and should continue to do so. > Just add 4B and 4C strings. It's up to you if they should be backwards > compatible with 'radxa,rockpi4' (meaning 4A), but I'd guess not unless > it's just a board pop option. At-least from dts nodes enablement point of view the existing dts (with radxa,rockpi4) is 4B since it has wifi/bt enabled. 4A is the real name of the board so having a compatible with radxa,rockpi4a is meaningful as I understood. So, based on the above statements the respective binding look like - description: Radxa ROCK Pi 4A/B/C items: - enum: - radxa,rockpi4a - radxa,rockpi4b - radxa,rockpi4c - const: radxa,rockpi4 - const: rockchip,rk3399 Comments, please? Jagan.
diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index db2e35796795..e6f656b0bd56 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -430,8 +430,12 @@ properties: - const: radxa,rock - const: rockchip,rk3188 - - description: Radxa ROCK Pi 4 + - description: Radxa ROCK Pi 4A/B/C items: + - enum: + - const: radxa,rockpi4a + - const: radxa,rockpi4b + - const: radxa,rockpi4c - const: radxa,rockpi4 - const: rockchip,rk3399