From patchwork Tue Mar 3 15:07:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 184128 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3767856ile; Tue, 3 Mar 2020 07:08:02 -0800 (PST) X-Received: by 2002:ac2:51d1:: with SMTP id u17mr1768641lfm.68.1583248082562; Tue, 03 Mar 2020 07:08:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583248082; cv=none; d=google.com; s=arc-20160816; b=t7hCsmPq9iWMZOhJCd5BSq2yUhz7xk3y4oDk9Kt3jKxFbsYewDx7d75Vfaf1UBFJBs P77rdsnTLFcfT/KH2wnBwZ/dup905vddZ7iSG5PwZ1bNCbuSP2EIpXMFfdtYS6dDCYv9 O+cNZXpjvvHReHePZLXwXGg6LF5/Ace9PJWrwJ+8SaFEeYyHR4/Xm1OH44oKIjrfkYbD t5xBrT+oBhfFxKisq1Z7muMRHNuHko0ErhWQaGye1oHM4raNRDdTGLAlBOmE3mNo8A1A nTztTH2AIGV9q5hpFW8gagV8n6441Z/guHVsmV7bPLdKaXnqXNGfpxjBtvz7UZ9gq9xd LDiQ== 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=oH2DPw9yOnkNvy1Ktf77A4iViJfMOE/P09y2cJqfUP0=; b=KaRNpnIPAhhb9V86q0Bi3EodhVjixDcF8p4x2DPiIeDU1K/ydX84njwvdsOn1ba8O4 NzrmDatH2SYY3p/ZXYMWYUo9mfvlIYHuLaOq2uFsSePGPueDuHYZYVrMsaSAI4Dax1Zo L6CWfSIDYwFsS1s+me4UuXFKnjHZMzkKjH/7KeyBwnLg1zZVsc38ej6MUB+G56wf46mA qQQRmQwvmvlhmCTySutBk+YyYHqh7j2nrTD5gUcYYxgblGLTOQKsZssknXFnMhBEG56U O76UjrSa/jO/IPrEXcX2WiF/cJOzCJ7/D01AtK3zYz8xup+VJ5XuvOAhvFp11bcLSIj1 M4xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPul6xha; 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 m17sor4613487lfo.73.2020.03.03.07.08.02 for (Google Transport Security); Tue, 03 Mar 2020 07:08:02 -0800 (PST) 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=mPul6xha; 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=oH2DPw9yOnkNvy1Ktf77A4iViJfMOE/P09y2cJqfUP0=; b=mPul6xhaNAuxo8T2+NE+xGn8787mHR5kxItdLJQJgLjWA7RHBJv120FuQ0vlz6JeMi L86z/EMCuNHoLke+7BgdQPJLpMsDrJY4PNNIR4KHK/5id2D6YAD4T+9SbyZ/nEvaDU+3 epDaF59obqiYBlfBmYhFIi5QVk/ZNTprB/WeyY83K/5ILFe5xaQ2Vj9aVWajv4R+iESZ JeO21O78P8bErOdDEp5lNIkLGaGrtMc/pQ4/tusG+B/6aOnA0XkiAi90SxaWaztVSOHj 1sBD75JH05+mvHNLxdeTL1b7Th5uQowbmcuJJDknrkNnHyWmwp8THQeBzYamGO3C+TyE o/fw== 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=oH2DPw9yOnkNvy1Ktf77A4iViJfMOE/P09y2cJqfUP0=; b=uaaedmGjFrId06GjrJb8pGyXjS4KHfN3Kf4J8M6lfXnwIVJN9F9LYw26OERtfKWJTg PBgsxSJv5SzLrecfW9iE+cRy5nvvhB1fbGPg3rpjc7Ve+sqL+Zm+y5oF86mwIR6Bn4wH ja8wrTMIDeL0iI3HEuCnfcLgLGkd/hXhqNVHNnU9ajIkHMXe6QXY+uBx58H6YXOHBh6c qam04r8pvXYahW31foP2UyM12DfCjWbbncUuz4kbczk14w36UYeydk3STtB63a8lNSJx 15wO2OPFUfEBRxHOzV0i/LHeyNRzr37HOPpnGGGT0d2UrMpz50TeWxdEWCGRQp0OW6KG 5KIw== X-Gm-Message-State: ANhLgQ3BmYYpFkvJv/LQxCnyORIG6T4dowcIFqcYmsgmUUtz0TAoBzB3 Ei/DzMlYp/GNnfcxqCHvky6vt84sazJEfw== X-Google-Smtp-Source: ADFU+vvodELrLn3K9Dksie5B3U4dnmjJWJrhxSD42Lo+ggn0ROi0yWlkIY+w/726ufnV7RZRHghSUw== X-Received: by 2002:ac2:5ca5:: with SMTP id e5mr2984605lfq.122.1583248082142; Tue, 03 Mar 2020 07:08:02 -0800 (PST) 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 n189sm12143135lfa.14.2020.03.03.07.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 07:08:01 -0800 (PST) From: Ulf Hansson To: Rob Herring , Sudeep Holla , Lorenzo Pieralisi , devicetree@vger.kernel.org Cc: "Rafael J . Wysocki" , Daniel Lezcano , Lina Iyer , Stephen Boyd , Bjorn Andersson , Benjamin Gaignard , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH 4/7] dt-bindings: power: Extend nodename pattern for power-domain providers Date: Tue, 3 Mar 2020 16:07:46 +0100 Message-Id: <20200303150749.30566-5-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200303150749.30566-1-ulf.hansson@linaro.org> References: <20200303150749.30566-1-ulf.hansson@linaro.org> MIME-Version: 1.0 The existing binding requires the nodename to have a '@', which is a bit limiting for the wider use case. Therefore, let's extend the pattern to allow either '@' or '-'. Additionally, let's update one of the examples to show how the updated pattern could be used. Fixes: a3f048b5424e ("dt: psci: Update DT bindings to support hierarchical PSCI states") Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/power/power-domain.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/power/power-domain.yaml b/Documentation/devicetree/bindings/power/power-domain.yaml index 207e63ae10f9..dc232759013e 100644 --- a/Documentation/devicetree/bindings/power/power-domain.yaml +++ b/Documentation/devicetree/bindings/power/power-domain.yaml @@ -25,7 +25,7 @@ description: |+ properties: $nodename: - pattern: "^(power-controller|power-domain)(@.*)?$" + pattern: "^(power-controller|power-domain)([@-].*)?$" domain-idle-states: $ref: /schemas/types.yaml#/definitions/phandle-array @@ -71,13 +71,13 @@ required: examples: - | - power: power-controller@12340000 { - compatible = "foo,power-controller"; + power: power-domain-foo { + compatible = "foo,power-domain"; reg = <0x12340000 0x1000>; #power-domain-cells = <1>; }; - // The node above defines a power controller that is a PM domain provider and + // The node above defines a power domain that is a PM domain provider and // expects one cell as its phandle argument. - |