Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2955572imw; Wed, 6 Jul 2022 14:49:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uku7rVMOpkYYLrrYdlDt9Ke+KNer6OivDWqkgO1tLl2zSJEoHRGWUWb+b04jXTs6INEfhj X-Received: by 2002:aa7:cd17:0:b0:435:bd7e:2efb with SMTP id b23-20020aa7cd17000000b00435bd7e2efbmr58966131edw.180.1657144177860; Wed, 06 Jul 2022 14:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657144177; cv=none; d=google.com; s=arc-20160816; b=zVaYvJc7jgbzJ9Oi/gBVtoLSQ++QwKjtT0uc0RUay8+//qGwQE8xqVgjcPab96KniZ RmDnxKzGvE7tmCwWZT25ws5GGV7v664/Q891Op9cVlTvZVWddMv7joe3AX7C5tmHzrHw bkNWnhRgnoX9+Ziehj84WOzndiPTUUeiwW17YcEl4uIlNZwW5KIwAKUaF7lZET4Ks0HD vnQdZWne9SV28NSvhEwGp1oCKRluq/kgzWQ9/IrkDhXAUYKVmF1GTMxAth1uGa+1BSwh m/w/JfseeNnklt8xkWtc0wJYisHNZAjjQJB5Vz7aWAh8GBph4g17vH/RqxiTTQxnz71L hphQ== 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; bh=UhZoitLijiPNAqkv3CxoYd+Lpg8Yl4Q/B3mulaHhdfA=; b=LFL0zAsAA/yfnghjNebkA4MTXA5DWqJFxeBFeXcsFYQH3vA/kWetvKGGYc6VF47Gmk k1slrK9gTbON0N1OdMil/McQT9VNEwCTjIwoW+2TKMW3UYPcrVNwG7YPdwftEB0n+ku1 18AXsehtOGjG3sBx09vNILB+Up2PpkBcbyj4QeYXSdTNwTPZxkWeGoypFmIeqw/1/7hk wthG7ke6Ylx6ALOaWzxNNaAy3zXYN70B5NjqKWDiFvPIRpazoZZ7symUeVxaP0ZCfBZI cAYGfWD38PYd+Q1J3qMRi/YvxYVE7z9kmVlvBLZJqSi9HrtfJ/OD9WOp5q0wcx1pe8Dr kffA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gr19-20020a170906e2d300b0072a51fa07a2si557821ejb.296.2022.07.06.14.49.11; Wed, 06 Jul 2022 14:49:37 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234342AbiGFVUe (ORCPT + 99 others); Wed, 6 Jul 2022 17:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234278AbiGFVUd (ORCPT ); Wed, 6 Jul 2022 17:20:33 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDBC91CFFB; Wed, 6 Jul 2022 14:20:31 -0700 (PDT) Received: by mail-qk1-f171.google.com with SMTP id z12so12035825qki.3; Wed, 06 Jul 2022 14:20:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UhZoitLijiPNAqkv3CxoYd+Lpg8Yl4Q/B3mulaHhdfA=; b=fWecbpk3TcbtAl7jH2DFXWI+ZYpx+0Ecl3Ccmb0RpTCvzMDnFmZhRhgq/LSdtDYb34 6nYjoqUU8oqWiNWUJ8etuZPaflUukg+fQAkuVy2iJgp2yIxaZrucVuKqKr+f0w2mvXQZ AsucKcBz3thKoBwi1kyTSTMC+DcWBnFsimBc6+lIyUVV76Yobs/J/5l78jw8imy59L5o 5CdNuPRMhFFIu3/cErm2T5eQmdtLWDWZ2eUAWAC4Zw+Uepize7Xa6HScr10y+dkFHtLj IGsifzpOYMzcrUEaj6PvWM0BXAmKsOpEI9UseA4R1LUvawz3sLrxrHlXOND1NL+TUWVC XyDw== X-Gm-Message-State: AJIora+VMHIiayEkyjLpGLigEWz52jyx3tH9Hd63hUUngycEhPx5jdwU IODYb6n6F+fy6d+r3CZ3Rg== X-Received: by 2002:a05:620a:1924:b0:6b2:85c1:7c7e with SMTP id bj36-20020a05620a192400b006b285c17c7emr13557929qkb.142.1657142430724; Wed, 06 Jul 2022 14:20:30 -0700 (PDT) Received: from xps15.. ([172.58.107.140]) by smtp.googlemail.com with ESMTPSA id c7-20020a05620a268700b006aef1e5eb87sm31500678qkp.24.2022.07.06.14.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 14:20:30 -0700 (PDT) From: Rob Herring To: Fabrice Gasnier , Lee Jones , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: mfd: stm32-timers: Move fixed string node names under 'properties' Date: Wed, 6 Jul 2022 15:19:33 -0600 Message-Id: <20220706211934.567432-1-robh@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fixed string node names should be under 'properties' rather than 'patternProperties'. Additionally, without beginning and end of line anchors, any prefix or suffix is allowed on the specified node name. Move the stm32 timers 'counter' and 'timer' nodes to the 'properties' section. Signed-off-by: Rob Herring --- .../bindings/mfd/st,stm32-lptimer.yaml | 28 +++++++++---------- .../bindings/mfd/st,stm32-timers.yaml | 20 ++++++------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml b/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml index ec7f0190f46e..a58f08aa430d 100644 --- a/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml +++ b/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml @@ -58,43 +58,43 @@ properties: - "#pwm-cells" - compatible -patternProperties: - "^trigger@[0-9]+$": + counter: type: object properties: compatible: - const: st,stm32-lptimer-trigger - - reg: - description: Identify trigger hardware block. - items: - minimum: 0 - maximum: 2 + const: st,stm32-lptimer-counter required: - compatible - - reg - counter: + timer: type: object properties: compatible: - const: st,stm32-lptimer-counter + const: st,stm32-lptimer-timer required: - compatible - timer: +patternProperties: + "^trigger@[0-9]+$": type: object properties: compatible: - const: st,stm32-lptimer-timer + const: st,stm32-lptimer-trigger + + reg: + description: Identify trigger hardware block. + items: + minimum: 0 + maximum: 2 required: - compatible + - reg required: - "#address-cells" diff --git a/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml b/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml index 10b330d42901..1bd663f886dc 100644 --- a/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml +++ b/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml @@ -87,6 +87,16 @@ properties: - "#pwm-cells" - compatible + counter: + type: object + + properties: + compatible: + const: st,stm32-timer-counter + + required: + - compatible + patternProperties: "^timer@[0-9]+$": type: object @@ -107,16 +117,6 @@ patternProperties: - compatible - reg - counter: - type: object - - properties: - compatible: - const: st,stm32-timer-counter - - required: - - compatible - required: - compatible - reg -- 2.34.1