From patchwork Tue Jul 16 21:56:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 169081 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp77445ilk; Tue, 16 Jul 2019 14:56:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWyiB3eYizLVUUJ4yEGHYiMfv436F0I3LA7o8gWmxy1Ta9n9va6eS1bke7QI8J4ZAkN4Vx X-Received: by 2002:a17:902:8490:: with SMTP id c16mr39328435plo.1.1563314181587; Tue, 16 Jul 2019 14:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563314181; cv=none; d=google.com; s=arc-20160816; b=eKr7V0FgSWv9NCtMSUaJs4gC6JJx0bo3R5SVgTWDkrv+uAtgtrjW6ijcDXtieezEav WJysoLQP88s+7Xf87iaGxkUK1yC2s0it07Oyj9bYH7eyhvI/M8APHbQqHoXkClovkuNz Q0b22eMZa0UDrv2bzvr783U42UXHHZSFTK8iTzKesIMeF+5crt3VeT4C4MF9SacDEAmT Tf83BSDaY2tLy+8VLLT3DeQdkLi+pRE/0Tw9JcBmknHjYpVmyk7mdM/A4CxJvCvkx8DI h8XcwKtGuJKjVnVfnuW0UUDUkF0tcgigog4w23GudOfB0retfW2Fk0pNNdYvfGPnlsGa 3MjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kADd+NQKUgWUED+820fdDO7gVP7dDmGj1gYm9p5p3sw=; b=Fb9NU+pXl0MSP5L6iq3/Ai4cSy5RGV++KhFa/bbQVSW6igOzHxuaV1WZ1cX8IP+ebY XCdCsfHguHILTXAE/DjOR/SEQOwDdma6uNsGS+p63H+MNQ0rhNjyrS0JZ6vpxkpXGCj+ RFQi6hOBpyn25vYp1aNF1G7+kwX4D2oCAAerKdN0yHgJ4J7FsOIk1PrAzCfxvOKcOuBO Op8ihF5la5AqSahTdVfcLTC9/5m03PPAPs8gA1arJY/DM6Gl9TN0FAPRPByxTcmX5n/D usq+COw7Sig7anDxws5Ib8aAQp2K9KpeYcDmtb/fK14e4tMXYS8Rd6iY2sathCJVinP+ BMJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si8591451pgg.155.2019.07.16.14.56.21; Tue, 16 Jul 2019 14:56:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728235AbfGPV4V (ORCPT + 5 others); Tue, 16 Jul 2019 17:56:21 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38368 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbfGPV4U (ORCPT ); Tue, 16 Jul 2019 17:56:20 -0400 Received: by mail-io1-f67.google.com with SMTP id j6so10217154ioa.5; Tue, 16 Jul 2019 14:56:20 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=kADd+NQKUgWUED+820fdDO7gVP7dDmGj1gYm9p5p3sw=; b=ByNn6JN1wwQPUNvt8Gy1n+za6LarrICzIm/WJiOfVT2E1YCot47DwaMpiGAYAUlfXB iEmRiOx31C/TBviezpQzIYIEwd+qEtxTP/2BxrNTV1VXMkBZy/4v/YPA84xEfaTUMBpg EAAlNy0CvO7x8rTMn1ixPtGNO7MdDBP+qg45JxkKpJB+eGUA5qVtBqctkheDTutsbpjK tK/DuBqAiordSAN0P3E/osixbaEpYroA4sR+aYBZUQ6wwvW7cvjK2iI8bfB49duIhOYP xTEya26w2gDombfWo8NPvR15xDgkn7j0kfxPaT5o1THesvFD0/OANd4yKNLk+h9AQRQs iLfg== X-Gm-Message-State: APjAAAUcO4uYnqNL8zbFPIYkeStOw8Xb5Q+6BfqRamZFvf0gAlK+NTp8 wrywa37MiP7Y9MDQWjL/5A== X-Received: by 2002:a5e:d51a:: with SMTP id e26mr26126978iom.71.1563314179727; Tue, 16 Jul 2019 14:56:19 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.249]) by smtp.googlemail.com with ESMTPSA id f17sm20074646ioc.2.2019.07.16.14.56.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 14:56:19 -0700 (PDT) From: Rob Herring To: Linus Walleij Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Maxime Coquelin , Alexandre Torgue , linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH] dt-bindings: pinctrl: stm32: Fix missing 'clocks' property in examples Date: Tue, 16 Jul 2019 15:56:18 -0600 Message-Id: <20190716215618.29757-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Now that examples are validated against the DT schema, an error with required 'clocks' property missing is exposed: Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.example.dt.yaml: \ pinctrl@40020000: gpio@0: 'clocks' is a required property Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.example.dt.yaml: \ pinctrl@50020000: gpio@1000: 'clocks' is a required property Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.example.dt.yaml: \ pinctrl@50020000: gpio@2000: 'clocks' is a required property Add the missing 'clocks' properties to the examples to fix the errors. Fixes: 2c9239c125f0 ("dt-bindings: pinctrl: Convert stm32 pinctrl bindings to json-schema") Cc: Linus Walleij Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: linux-gpio@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Signed-off-by: Rob Herring --- .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 4 ++++ 1 file changed, 4 insertions(+) -- 2.20.1 Acked-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml index 3ac5d2088e49..91d3e78b3395 100644 --- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml @@ -197,6 +197,7 @@ required: examples: - | #include + #include //Example 1 pinctrl@40020000 { #address-cells = <1>; @@ -210,6 +211,7 @@ examples: #gpio-cells = <2>; reg = <0x0 0x400>; resets = <&reset_ahb1 0>; + clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOA)>; st,bank-name = "GPIOA"; }; }; @@ -227,6 +229,7 @@ examples: #gpio-cells = <2>; reg = <0x1000 0x400>; resets = <&reset_ahb1 0>; + clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOB)>; st,bank-name = "GPIOB"; gpio-ranges = <&pinctrl 0 0 16>; }; @@ -236,6 +239,7 @@ examples: #gpio-cells = <2>; reg = <0x2000 0x400>; resets = <&reset_ahb1 0>; + clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOC)>; st,bank-name = "GPIOC"; ngpios = <5>; gpio-ranges = <&pinctrl 0 16 3>,