From patchwork Thu Mar 26 10:56:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 184849 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp1701735ile; Thu, 26 Mar 2020 03:56:36 -0700 (PDT) X-Received: by 2002:a05:6512:3188:: with SMTP id i8mr5614795lfe.26.1585220196522; Thu, 26 Mar 2020 03:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585220196; cv=none; d=google.com; s=arc-20160816; b=RmSukYXcI2iiUvsQhYrSeKMzdO82trAnKpbfqrNpVZUOetIb65vCmAP9RogP9bWMVB Cn947kQ9YoZC7N10qfOtHZyspMiUSS+m8TUBdg98rA6GmwsAmuGm2dLmyU926LMmZiYH 2Pom9YSUU6xRM1xU3JFOgagjRJxpnteZ/jnqpip5rh4z0nl0ZZYFGqG3BsdxunygIxLo SiLHmKnCm1az/3hGYPsvnSlrou2Zgw8VWziGDfds/TcCjzdsrYDGw+Kq/2TaUKeGydUZ Df7wgoWgoY1gd2eJJWrA6t52Wd+/JXEoD3TiFz0/9J9DhBxrtTMaFYJ2FeK92N4xwRlJ Yqdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=TuuxQjjiHA1MwNowGgc6IZfr8zLQ9maUJaFARjpxln4=; b=hUxfWvmMKOzxTnzsTEZqVYGxdr320G99eCBIJNcHAwqkQTEP7v4/7gSlr4eb/yuSxE hQ2vlSzNQ7NW/57UkKIND4tngV0ljd6/b4ZOTO+jwIWdgoFAg+rfoXWvdWSBcpm5Q5sH MuQz+NvrMnlopM/AFHFF9+aJStqE1vT/KiIifC6BRrtRKRzgEkaJrpYT/OZDNPU8t25l 43h9a18aZ2Ehemryd11L6vIYgk06VosVLlH/Msj654AKoGQer2z8DESZLrBOjNxI9o5s 8ChZWLXUU/a1wark2o/6JPDURmlapzeXs9G2mZQ5WrUM5tUU5AuKiNDs0iCfvl/hy6zE 6OpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hV+MlhyX; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t11sor1294934ljg.10.2020.03.26.03.56.36 for (Google Transport Security); Thu, 26 Mar 2020 03:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hV+MlhyX; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TuuxQjjiHA1MwNowGgc6IZfr8zLQ9maUJaFARjpxln4=; b=hV+MlhyXKY0QLDls81FMrAiwg7WjsXZvFNFQpl2GZ/rfzLdj3av/7+1J0ptLNp+gzl QbmKraoSSQviudWxJnYf0uzene7qz/a1lthvBy9lXmwaFz8FGa0P63JCqCUgMPg8TOvw sie5B0tgIFW8DTK6G2OSw9IULaAYxRDsqQau3ubnC1FLHieQEEsTQtpeBPvkA10fE1A1 tNICUqoXP4fOY1uGOw2Nf2rscKjTfD0CEkyNQZrAiCOQUOtOKWd/Zu8Xk/JLwZbdXrDU voFxWswR7S7twoZlfFLmDIzPJnPoGOCcEScswPEsOoF3SSexlMpcx2Zq96b5SBtiCJOb wnNw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=TuuxQjjiHA1MwNowGgc6IZfr8zLQ9maUJaFARjpxln4=; b=aXkQTrX66LjIBfdVSaVLNOosp4bbJy9HVmEkfVZs2/H21gpXVNBrjzayaUjyqPFnIt VtOeJmvdP0N2JLkMsleFhXAbg6hIoSyPosYJyG039lth/CovNFjPlSNXDRIEBwCJLz8n OAlF+EPfqH2FYwOACCv9QRBpmV1brIPuM/+BLqcRX/Qds+Nw7u/+AKBy5WdqDLfwA3l8 fsm/6FjkNVu4lorGOvoZTVIGQuNuGheEG/hvWcOY5RG+CGv2lvrqb4rqG+GJQrWr6fUO 6qe2KgaGUZgJQdI/SKbfGML6VZsInecXGh144x7FCkXo3sawIAv27QN8FRa+bpsM7NhJ qsyg== X-Gm-Message-State: ANhLgQ3ICI5uv7dxZjoyqWHgJLznvDLzR+zRZWb7ChPNcun8ShfS5SGu VvaJeMF90JJz2HAsDJhG99vGH3vx X-Google-Smtp-Source: APiQypIh0oKPTy0rPtj3JtcsUXTdtYTXgTC+JrTuULTRNCFGhf6dAq2avCL1mE/6d8eDRPImbNdr2A== X-Received: by 2002:a2e:9013:: with SMTP id h19mr4933294ljg.101.1585220196103; Thu, 26 Mar 2020 03:56:36 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id z17sm1214653ljm.19.2020.03.26.03.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 03:56:35 -0700 (PDT) From: Ulf Hansson To: Rob Herring , devicetree@vger.kernel.org Cc: Sudeep Holla , Lorenzo Pieralisi , "Rafael J . Wysocki" , Lina Iyer , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: arm: Add some constraints for PSCI nodes Date: Thu, 26 Mar 2020 11:56:25 +0100 Message-Id: <20200326105626.6369-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326105626.6369-1-ulf.hansson@linaro.org> References: <20200326105626.6369-1-ulf.hansson@linaro.org> MIME-Version: 1.0 There's no point allowing anything else but "psci" for the corresponding nodename of the PSCI node, so let's make this an explicit requirement. Moreover, let's also prevent additional properties, which also allows a better verification of the "patternProperties" bindings for subnodes. Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/arm/psci.yaml | 5 +++++ 1 file changed, 5 insertions(+) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml index 5e66934455bb..9247b58c26fc 100644 --- a/Documentation/devicetree/bindings/arm/psci.yaml +++ b/Documentation/devicetree/bindings/arm/psci.yaml @@ -32,6 +32,9 @@ description: |+ http://infocenter.arm.com/help/topic/com.arm.doc.den0022c/DEN0022C_Power_State_Coordination_Interface.pdf properties: + $nodename: + const: psci + compatible: oneOf: - description: @@ -141,6 +144,8 @@ allOf: - cpu_off - cpu_on +additionalProperties: false + examples: - |+