Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1891129iob; Fri, 29 Apr 2022 15:36:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9dKRzzIuqrLBwlHKeyxtuMcFHmUV2M3UB7G638u9lDhz5iW8C+EvqabuPokc/q7l6qWqZ X-Received: by 2002:a17:902:a413:b0:156:15b:524a with SMTP id p19-20020a170902a41300b00156015b524amr1475041plq.106.1651271793299; Fri, 29 Apr 2022 15:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651271793; cv=none; d=google.com; s=arc-20160816; b=Ig0rB3mweVK/G5PaQLLOwP1obaT0WFTF2IqQCJ2ePlCvNDQH7pBuzDzkeuSPD8Z/iG /sVBRk9ZLwd1tvn0ZaguOrKR/y5Zcm+P1scGNDUcIvD6Mgw2wd7VCeTaFFYd1WXFyRem UzUKYWuPZSXlhJXYM3NpoBJcZeCv2fRj7Y3eogeI3JPPu3+Y3/99A9BeUdze3tg6Djje pafjH9RQ8kXFLppSXNEEzVcv1Ti5QsGhtM+TGIBnWTMHACxLMkXOc5mMQDhW1fH7gKMw VirqOC4UdLHbklOiHueNgQGDNVxKMOjQwNsRsSwNvtiLeaygQFH77gnkKxDSDtIwn7Jz 6pjA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=mGfD41q6vWfCo9S/PnLd2StU8RKMPPUkqX83d8Sd3q4=; b=a6USEJJprZTPZ/aLbhqOOZfGPKqt+1ZN8vh6GC4VTMfT+Mq5iTYoo8UPorDRE6RRH8 kWni8OhP30aFV0YizeKeb72hcYs5OQH4j5KTQTewNceAG212wtuXFglVaGhnD0i1013u Gc3uB/N3kIw7lC1YpFjgfDhbp4jDBooZl0jmxbjrLokicOH2bdybg8UumPzbbvshac42 9t3b8wsktAtCDMr6+hfXOJwbxJTEhsC062sL4fzX+5FCiBDXSH5irvEhCyfx7aTJA9i1 iCSJINOGAMYE46J1G4fdPsNS5BMG01WJK48fNfahFG4vVkvP6PclMioQtSbmTfRC4JNV 8cQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bF5Y9hNQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a654b8c000000b003c144fa99d2si8380747pgq.635.2022.04.29.15.36.16; Fri, 29 Apr 2022 15:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bF5Y9hNQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380652AbiD2URC (ORCPT + 99 others); Fri, 29 Apr 2022 16:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380638AbiD2UQy (ORCPT ); Fri, 29 Apr 2022 16:16:54 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD1CD5E94; Fri, 29 Apr 2022 13:13:32 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id D924D1F469D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651263211; bh=Ygrrf/uiE7GKex7nmfQ7KPictd649a7293BtSJxSJ28=; h=From:To:Cc:Subject:Date:From; b=bF5Y9hNQy9VcyUwBt8enhkN46rRy0LwPqcxZlpmJQqFG7afz+RUXNOBkIXxBWSW7l n5f0x+aG7Z8YNagVc31Zq9jt0XQ3BxPvCMxt4b4RSwkHBnMAoX8zHn519KzNttEn4y zcYjx2Sxb8GKHejIaPnZix4Vqgg0t+qwcgN+4QKBOeY8rOnaNrcbFpym/oDFFxzS8Y O5HZWV8mK1NwIccTscOUmVd0y5b0wMSD3GzDx7nw2UN1qxjLjn99L3NF2/mYg73kkM WCw6i/oukTLnr7AJ4bDybinpRUOPB0WRM5iPsG9Uz1MgXENXUlHcDBUplbhDpKm5JW gMj/arQdA1m3g== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Mark Brown Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Hsin-Hsiung Wang , Krzysztof Kozlowski , Liam Girdwood , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH] dt-bindings: regulator: mt6315: Enforce regulator-compatible, not name Date: Fri, 29 Apr 2022 16:13:24 -0400 Message-Id: <20220429201325.2205799-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MT6315 PMIC dt-binding should enforce that one of the valid regulator-compatible is set in each regulator node. However it was mistakenly matching against regulator-name instead. Fix the typo. This not only fixes the compatible verification, but also lifts the regulator-name restriction, so that more meaningful names can be set for each platform. Signed-off-by: NĂ­colas F. R. A. Prado --- .../devicetree/bindings/regulator/mt6315-regulator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml index 61dd5af80db6..5d2d989de893 100644 --- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml @@ -31,7 +31,7 @@ properties: $ref: "regulator.yaml#" properties: - regulator-name: + regulator-compatible: pattern: "^vbuck[1-4]$" additionalProperties: false -- 2.36.0