From patchwork Thu Oct 15 04:44:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 317756 Delivered-To: patch@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp133009ilm; Wed, 14 Oct 2020 21:46:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgffZ7kcQk20k/uJZ8r3P2oU83R0XovgJBsRdOyGoR2m4j+yYlfb4Ev+ybtTTbI6cKbt1Q X-Received: by 2002:a17:906:a981:: with SMTP id jr1mr2391780ejb.99.1602737199689; Wed, 14 Oct 2020 21:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602737199; cv=none; d=google.com; s=arc-20160816; b=S7YoLK5tu5pOmmjXeFA1HvO78aZRVBhs0YF3ptQKC0UNrJcbmNryswDVWuCt9ii4fP 7dtIGUSgkALgCfQqdQiOaNUvZWp1iFwLj5Vusq7Y4Ysge0pRdz5T5jG6AgMJJTS6JBJ4 z5VrfkLtjc/48PN77Grd1tYYjermC8gxb8Y5QjPNcc/0t6eIsNTXVpM+zfdqslVfkdYm ah77UGenX8b1A8q6cpVA2yx3SP0VN6PJvys68fc8XQC+6zFYaN93wk1RFKgyhsbdqPmB Q+nVD07tn0G+iSf5mkzJk9HlrRAz/j8u6Hj3+s+uSEUvg8P24BPc4GQuu+L1h2O9GjW7 qCqg== 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:date:subject:cc:to:from; bh=0AVQZToVIDdeGD+U3HXmcyEhvd11+AfgI4yakCVRW7E=; b=NKiUKjEH13TNchoCX9OO2s9sOno1lE8qSytnn3C5k0KTMV+F0xmX8RFynxchrZD6xH 1OH4rZr+Nq/hNX1o+W/NYqbH3K0ufCxDerUMgiM1FF49sW1T2TDjab7NZ7diVnEc1KPE cpI3Hh6JIAvHymdLLa1/8kzMPh49+YBF0ALTttEG8u4grXFJu65MobxvmMOECdCHL9Jd xbG1C846NJVpigpjo4WipYsKJzyppGdwq+P/FS9T7SL2l4YYX+wIDD0OZtosTe3ld72m 2K8X/h66IiZ80FvCxHfd9AO2znL3v2bOFTGxruTSsrVS/mPJbQuu6BTUbCtAypk480Ij CkpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si1442936ejf.525.2020.10.14.21.46.38; Wed, 14 Oct 2020 21:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727479AbgJOEqe (ORCPT + 6 others); Thu, 15 Oct 2020 00:46:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15215 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726535AbgJOEqe (ORCPT ); Thu, 15 Oct 2020 00:46:34 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DCD3BC3150ACB8255FE8; Thu, 15 Oct 2020 12:46:28 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.134) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 15 Oct 2020 12:46:20 +0800 From: Zhen Lei To: Rob Herring , Pavel Machek , Dan Murphy , linux-leds , Lee Jones , Benson Leung , "Enric Balletbo i Serra" , Guenter Roeck , Mark Brown , linux-spi , Lubomir Rintel , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH v2 1/1] dt-bindings: misc: add support for both property names cmd-gpios and cmd-gpio Date: Thu, 15 Oct 2020 12:44:43 +0800 Message-ID: <20201015044443.1828-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20201015044443.1828-1-thunder.leizhen@huawei.com> References: <20201015044443.1828-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.134] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The definition "gpio_suffixes[] = { "gpios", "gpio" }" shows that both property names "cmd-gpios" and "cmd-gpio" are supported. But currently only "cmd-gpios" is allowed in this yaml, and the name used in mmp2-olpc-xo-1-75.dts is cmd-gpio. As a result, the following errors is reported. slave: 'cmd-gpios' is a required property slave: 'cmd-gpio' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml index b3c45c046ba5e37..dd549380a085709 100644 --- a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml +++ b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml @@ -24,15 +24,21 @@ properties: compatible: const: olpc,xo1.75-ec - cmd-gpios: + spi-cpha: true + +patternProperties: + "^cmd-gpio[s]?$": description: GPIO uspecifier of the CMD pin maxItems: 1 - spi-cpha: true - required: - compatible - - cmd-gpios + +oneOf: + - required: + - cmd-gpio + - required: + - cmd-gpios additionalProperties: false