Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4113120ybp; Mon, 7 Oct 2019 03:26:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr0u0rcE4TpmJ6JxP7FvK3lEQE1rir7LK/rVDbK55QqR09J1uSAMMpAYTIrRwZZx1JVPSI X-Received: by 2002:aa7:d692:: with SMTP id d18mr27638519edr.95.1570444006618; Mon, 07 Oct 2019 03:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570444006; cv=none; d=google.com; s=arc-20160816; b=i66Pu0W6pkXRacNheaMeAvhNF/yFJ5kPzdM5cyc1GcgESl2Iz9y7YPffS3+FNdGNZ7 RuxaiGpGhSoC5C/Zjx/nav1XIatC6LzZYlZDCQ5qMcSyDJrUSTa4RSK04xNPaAjBFjkQ J8pZJE4Nq1mlAIYuQhPQqp1ulvCoZcQvJwHCk1wUJxtVxfGdPmJqXGx7W0pOw/+t43b5 ulCaJijsDU5MdMAYYcAsGNfivWW8/S4sd3y3YJ+jMAB/SeHDmSYGHBtj+oJ/dkRheyvf i8z8PfxLvUVlxwwh2Wc+C7wJpzGG1wDFnfWntlM+HPJvg4wwSTjrRdWeO/6R09nXmS2f z0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cIh/B+QlT5Ufq0muAI8MFIZVmvtKiiVeIQjxYFeHv4U=; b=yMzdfVnlJR3L2a0leJahO71fRCKUNRL34rCnr8UBx8odLY4c/BIH91/6szOQIw8nWC Wgvs7gdBbDDjsrtymFTekH/jtTsqmVacDLmtshCIhpvFUk8cQdRT2zNHcr4DOwgHvXQ5 LT8R0HjBgF2VH7mSSMQeSaHlNynfhSgI5x1njF2bGdwVDUCzRp7Kc8F5cdAl331Tx7Ly AZ7zgPm/UooZHuZEASeLTUA0Sp12XCNlv4J3D/ERFqTDy7LPW3bpuQjJhJ3JhvzKuc4u 8j7aPbd2/98gQBq73Y8xU2F2j6tCDWDL0g39voAt9QuTLAv9mT1mXTjZYyh9Lm2UyyVT 8hxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=LqwFvsFe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be13si7723053edb.362.2019.10.07.03.26.23; Mon, 07 Oct 2019 03:26:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=LqwFvsFe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727546AbfJGK0S (ORCPT + 99 others); Mon, 7 Oct 2019 06:26:18 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:41413 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbfJGK0R (ORCPT ); Mon, 7 Oct 2019 06:26:17 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x97AKml6026153; Mon, 7 Oct 2019 12:25:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=cIh/B+QlT5Ufq0muAI8MFIZVmvtKiiVeIQjxYFeHv4U=; b=LqwFvsFeAgqwBt7UYWHD+Wuf+stCjxWldXnL+ZqqyTjv9PukoK6gjeJKuhHN9HtbFVk/ qINdmJ8SJp4VZEqHmX8HX/OR77VCCUuep5iwlHbpCQWiz6LmXWlQaz8SRLbONPSU5q7f u5QLwVf799PJGBZoVV6fPP6+SEP+pv9mUyv98wqICqgKGn2A94yONlyyI7KdQFyNqdG8 9zLr5o5ct1m4k2jtoSx/F0kDFB2tW9EcrQESlnfGgWY3iqekCks4uvtZvOsjgzpa0Zb9 cyZF3E7mbm2nk9Ev6T7CqfrdURgjwdJhs5igOpnTtDmBAgj0UPQO5hiatsex1g1i1Gjl /g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2vegxvhrn6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Oct 2019 12:25:57 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EB15210002A; Mon, 7 Oct 2019 12:25:56 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DC7722BFE0A; Mon, 7 Oct 2019 12:25:56 +0200 (CEST) Received: from localhost (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 7 Oct 2019 12:25:56 +0200 From: Alexandre Torgue To: Maxime Ripard , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , Alexandru Ardelean , Liam Girdwood , Mark Brown CC: , , , Alexandre Torgue , , Subject: [PATCH 3/3] dt-bindings: regulator: Fix yaml verification for fixed-regulator schema Date: Mon, 7 Oct 2019 12:25:52 +0200 Message-ID: <20191007102552.19808-4-alexandre.torgue@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007102552.19808-1-alexandre.torgue@st.com> References: <20191007102552.19808-1-alexandre.torgue@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG6NODE1.st.com (10.75.127.16) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-07_02:2019-10-07,2019-10-07 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit fixes an issue seen during yaml check ("make dt_binding_check"). Compatible didn't seem to be seen as a string. Reported issue: "properties:compatible:enum:0: {'const': 'regulator-fixed'} is not of type 'string'" And "properties:compatible:enum:1: {'const': 'regulator-fixed-clock'} is not of type 'string'" Fixes: 9c86d003d620 ("dt-bindings: regulator: add regulator-fixed-clock binding") Signed-off-by: Alexandre Torgue diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml index a78150c47aa2..7725cedf1538 100644 --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml @@ -22,16 +22,20 @@ allOf: if: properties: compatible: + allOf: + - $ref: "/schemas/types.yaml#/definitions/string" contains: - const: regulator-fixed-clock + const: "regulator-fixed-clock" required: - clocks properties: compatible: + allOf: + - $ref: "/schemas/types.yaml#/definitions/string" enum: - - const: regulator-fixed - - const: regulator-fixed-clock + - "regulator-fixed" + - "regulator-fixed-clock" regulator-name: true -- 2.17.1