Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3081136lqo; Tue, 21 May 2024 06:29:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXy8hHdxtEPJIwcAqWJDvU+n6XaYqdDNhL/rt0q015B3iJEA1z+jGYJq5EyauRijfDkFebC6TUHfyNROGubmnaADx8l0U1T8XvfLiG1Eg== X-Google-Smtp-Source: AGHT+IGu801Oh6S6cazgOMCzsRCJmF4jfnkdxz6U4lretzVkn+mjpmHZxKURX4emlk9LyGKfvN8X X-Received: by 2002:a9d:5918:0:b0:6f0:6b5b:11d4 with SMTP id 46e09a7af769-6f0e92c0c74mr35750163a34.33.1716298146123; Tue, 21 May 2024 06:29:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716298146; cv=pass; d=google.com; s=arc-20160816; b=bHytYYp8m/u9RNqr9erYZpx5303hC4gp32C0b3dQkhXVItoK3CCKgKae8pTmvssMc+ Ercxq+Yn99i3idfE/JwD7yJs/N8FYso/oEn/fUBoF5IBNh9qOvvGNlRXAe35/GErxobv b4Adene8l+vpiV1ObgIrUAKa1WjHh53/AlXa2Bjq2wKPC73yUhd3aVv2IJ2RoeSDLFWC UrADa4pTDlbs3qLA0YRq48JQKuZ5BSfAl84nnTknTxHpiZlMS9roD24o3s8vRRZvjsUH JE5Gq7ImIGt3y/ugAWPSh1/F9kHJffMLP0s9F7BsQ9eo6Axfp8V1SmE3I36JoqGx1Fcl 0aCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=O/w0zAIX6ouScQAf5cgLuQs81uLGtkDo+ykpFxWom6c=; fh=vyegODOhlnaVCNd/LxFjd51Uv+EM8dh62UGD7dO+6T8=; b=TDikTuKzjwE45xxg3+8irmvZ4QAnPQaX0onNZxcfcRB22ZA1IIB8Ub7s5zsGMnYkZm JBXrOfVyrTBsAEUe9V2GFaLfHrdkAzKEkAmlFNKxKiibnRrSs7SsSXcB7TuAqOKuK8tK ao7a3IH6vs+TLIZThvcLdoHVGDz/9KIrR9w1RNPCnMBCX9UrIFy6Giu0Ji93/RDTLJGQ y4OKynIqT/eSohRwST1M4y0LxTQ4omaYejHEv7MIdhtvmxdki36JVE/vCN3WiWfIWRAt ivkUTf3CKrp2LI+CbxbRzERU/6pO+xJrNoewjyJHXB+Lvu7X63Uo1pzxA/SHCqf3+3v8 WJWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JeHjQhKs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf30ab51si58309385a.283.2024.05.21.06.29.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 06:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JeHjQhKs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CEEF61C219FD for ; Tue, 21 May 2024 13:29:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2F6D7C6EB; Tue, 21 May 2024 13:28:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JeHjQhKs" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23EF571B48; Tue, 21 May 2024 13:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716298135; cv=none; b=dWuvHPAQAn5PimbG1QO5qxdo6W/w27CBUzBbecU6Qi6FR8tcxRRtF3VzBvnlB1ffSGyw0P2la/ELzLZ7cNBCo7hEdv8ZGk5mSUJGZeMwK2sG8XBCK1V3gRYAybBC1D3Kt4Sr8e9avLpK8AYjSdad3aY3huex9A4TrOm53cxjDW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716298135; c=relaxed/simple; bh=bhhIseOKYkrPJ3gVvF3Uffc2Hv1ibToMuP3KH5k/KJo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=klSwa9fyGAvQ6MVHSzLAI2Wryw+3UhTHEUdwCwr3UfzsYtiw7ojh7bGQB0HHwAPkWMKhn4FJ+iBpSsqScpGHYdRBWqpCCNJTXhQMTbNb24HEJaqjYqR1WTDTpx9+2W9JVTz9QIIJ09nP7KQp6ru8tPU48d8TTQcKeX18VYkVBdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JeHjQhKs; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51ff65b1e14so6191885e87.2; Tue, 21 May 2024 06:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716298132; x=1716902932; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=O/w0zAIX6ouScQAf5cgLuQs81uLGtkDo+ykpFxWom6c=; b=JeHjQhKs1UQApVqPAFa1aWKR15ZmLguNav+YDHvy9xastoCDdczDJgh33pYSmjpa9j kbQzypWtnP4M2DtrbY2l0QfZWz1w1bgTWjvDGE0hi4Xjzv8/La+nEUBQhXgFMkGKM3Vv 2y69Eh5sP2U4908yJoWjBZgE0L+riBKpoqhphuWPSQ7krE2KmAOM7eqQ/PRTGehxMbZW L+o0W2LSNLP5BS8dDGx4G1MzHklXtnhP13fDRFGLKXlbHMiQdkNbjXPkrqcpRLZwos33 WyIOhHw9tSb1DHpZ4lnGhjjUOJ3vjUEwNYj4KTmN7mwozKUnLEUFWVpmQTTj14sZcRdP BBFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716298132; x=1716902932; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O/w0zAIX6ouScQAf5cgLuQs81uLGtkDo+ykpFxWom6c=; b=LaAgAhIIx+ydSUjqTrIt76esbUUkwbl0c/mbxAJuSeZxbfqa2uJuZoLLyzDQ9GmFZi YLUWq1UyhLrSMpisYKeUJV5hpIULGcx8VliWg4qZMBX0dgOKHn9MqK8rJEBBV7LNGWa5 uWB159eanVimXq74Y9WuTQm6lp6ZnnEJydKg1htTeP3L95K+Az1R1n0ziAD0JDY91e53 QkIXZZdnwFq7+jQ/7iRsqNVkKoFSzZeaM+eAzuvINMV0qXC///iV0TVUj9UQUtbsgTjp YapF9ELgsLl6Q/gzD3yZ6YRdJ9xepcyFVpvHBEthyzCwVbhmpfPz+XTTDqSAqKSHYS0b eugg== X-Forwarded-Encrypted: i=1; AJvYcCU17TmtOZ+vT7u0a6tERV0j9v7D/CZ7lJo25AhSTD75Deq4+ssvYm6IPZkqhNa/u3Yvpe0+yRpNRaZkRFGWP1uJLNldcDCTJquNm4Z4ey2JMNVH0LDIK8IuHrqGOPdnPjj43Zy4RgsmLQ1o/kSnNHN7q0UjRClRn1QFJnHgubyQTe+1Biw= X-Gm-Message-State: AOJu0YzW7Ce2pM7JmmCLBNdwrbLCpwQpYZdt6lRTR3nlOjBqgOqPU34l 9A3GbeW+ho41aJn2zAJwTtO8loBJ7qqgYSaDD/QGpk51zsfPRENO X-Received: by 2002:a05:6512:2209:b0:51b:180a:7b7c with SMTP id 2adb3069b0e04-5220fb76cebmr26066994e87.3.1716298131913; Tue, 21 May 2024 06:28:51 -0700 (PDT) Received: from pratik-IdeaPad.lan (customer-145-40-29-195.stosn.net. [145.40.29.195]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-521f38d38easm4639837e87.180.2024.05.21.06.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 06:28:51 -0700 (PDT) From: Pratik Farkase X-Google-Original-From: Pratik Farkase To: Cc: Pratik Farkase , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pratik Farkase , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema Date: Tue, 21 May 2024 15:28:46 +0200 Message-Id: <20240521132849.34647-1-pratik.farkase@wsisweden.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert Zevio GPIO Controller from text to dtschema. Signed-off-by: Pratik Farkase --- Changes in v3: - Updated relative path filename to match actual path filename - Added `interrupts` property Changes in v2: - Renamed file from `gpio-zevio.yaml` to `lsi,zevio-gpio.yaml` - Fixed the space indentation in example --- --- .../devicetree/bindings/gpio/gpio-zevio.txt | 16 ------- .../bindings/gpio/lsi,zevio-gpio.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-zevio.txt create mode 100644 Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/gpio-zevio.txt b/Documentation/devicetree/bindings/gpio/gpio-zevio.txt deleted file mode 100644 index a37bd9ae2730..000000000000 --- a/Documentation/devicetree/bindings/gpio/gpio-zevio.txt +++ /dev/null @@ -1,16 +0,0 @@ -Zevio GPIO controller - -Required properties: -- compatible: Should be "lsi,zevio-gpio" -- reg: Address and length of the register set for the device -- #gpio-cells: Should be two. The first cell is the pin number and the - second cell is used to specify optional parameters (currently unused). -- gpio-controller: Marks the device node as a GPIO controller. - -Example: - gpio: gpio@90000000 { - compatible = "lsi,zevio-gpio"; - reg = <0x90000000 0x1000>; - gpio-controller; - #gpio-cells = <2>; - }; diff --git a/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml b/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml new file mode 100644 index 000000000000..37df0e6cfec5 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/lsi,zevio-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Zevio GPIO controller + +maintainers: + - Pratik Farkase + +properties: + compatible: + items: + - const: lsi,zevio-gpio + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#gpio-cells": + const: 2 + + gpio-controller: true + +required: + - compatible + - reg + - "#gpio-cells" + - gpio-controller + +unevaluatedProperties: false + +examples: + - | + gpio@90000000 { + compatible = "lsi,zevio-gpio"; + reg = <0x90000000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + }; -- 2.34.1