Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp89055pxj; Fri, 7 May 2021 04:29:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7tj73dSuS/DHdpriV1dXncM89RZlMaIdynNS6njRCnAZ5zjTIuGMORAg6SGvbhkRTtkjc X-Received: by 2002:a17:906:248e:: with SMTP id e14mr9178063ejb.249.1620386942718; Fri, 07 May 2021 04:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620386942; cv=none; d=google.com; s=arc-20160816; b=VjKyqKT4dhqFh04uMwcnrz9xQMRW+nTiBLATNU81mdIGt8s/aa5sqP+YWOQod2X8yB pS4Bs/3/zSGUZz0zwY4oMpccwJPJEq0zIa2GEkJ1U/StLGVbmY85fK3R6Z/+O0X3s2cr 8kU3mkbVpWGAM9JyYROpgwQVFxugLqg7SXu8gyz96TKcvJRbfnCwvADb2LspecgkG7BX 1qchDEFvCRL86MO/LR0dO3L7SBSUyKLXdL36D2JD3xCuMaEfmTlXEcLys+HYTw8eF/W+ ulSTPZ7zf18sB14FtvApo3toLXv5dHs9iDSKglS2AbuuPV7exNPvZSBgJLmD6N5p13g+ e5EA== 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=DdofZaEE6Utp9fW2FfSZu8fPUXtU+IZuDya7tQmQq8U=; b=fxPW5wz7Ivc0JB+g4YyFV2C5uxFgrLdI63YzN9yGdKp2uNnXm9DWFFMRpRweZWMjUf y00UfPqOvkQP9g87lllT9U/w+jqHVbR/mPhN6x/TzB9DAphMUoJJTOnDvV+rTkSR+7B7 F0eks11FGA8V2bOH5TY8mDJ/43KdpsfIKFvd5INXRwBhn4nCxHjdkHUqnfYvSMfnDfpp aJu9pKDP+yeQEt5A2D06rikcrcbJG7D0PVR9gnSlTexoBVP3JaeGmIZFFTCQOEg07Uw+ E/LeAP/gu36ogI2z2iz9q69Q3BARfTeUc9WHwFkTG3hBu9F1GfuaV/74EHkkUjS23lnL 7+kw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si741886eds.436.2021.05.07.04.28.38; Fri, 07 May 2021 04:29:02 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236120AbhEGI00 (ORCPT + 99 others); Fri, 7 May 2021 04:26:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236126AbhEGI0X (ORCPT ); Fri, 7 May 2021 04:26:23 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB978C061574 for ; Fri, 7 May 2021 01:25:23 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:f434:20f9:aa9e:b80c]) by xavier.telenet-ops.be with bizsmtp id 1kRG250080ZPnBx01kRGAE; Fri, 07 May 2021 10:25:21 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1levnP-003VSy-G3; Fri, 07 May 2021 10:25:15 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1levnP-006WUo-1f; Fri, 07 May 2021 10:25:15 +0200 From: Geert Uytterhoeven To: Rob Herring , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , Daniel Lezcano , Thomas Gleixner , Laurent Pinchart , Yoshinori Sato Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] dt-bindings: pwm: renesas,tpu-pwm: Improve json-schema Date: Fri, 7 May 2021 10:25:12 +0200 Message-Id: <82dcf4b87f2b2149bb2e238c7fd654ca2397230e.1620375445.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Include the general PWM controller schema, - Make clocks, power-domains, and resets properties required. Signed-off-by: Geert Uytterhoeven --- .../bindings/pwm/renesas,tpu-pwm.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml index aa9a4570c9068226..3a072ee29815c695 100644 --- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml @@ -58,8 +58,25 @@ required: - compatible - reg - '#pwm-cells' + - clocks + - power-domains -additionalProperties: false +allOf: + - $ref: pwm.yaml# + + - if: + not: + properties: + compatible: + contains: + enum: + - renesas,tpu-r8a73a4 + - renesas,tpu-r8a7740 + then: + required: + - resets + +unevaluatedProperties: false examples: - | -- 2.25.1