Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2538947lqo; Mon, 20 May 2024 08:47:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJSf3HrlhRVXlmYZDi58JSuQ0YPcsBjYMOqJdVAV3pObUCABtS3mTrkXHmuTmNujjrJKNS6Mk6t6VSnv58AKtuDdmGfWozNPdVxb7rRA== X-Google-Smtp-Source: AGHT+IFnCwEU/FBoY8arkXgLi3gjQF/q/s69rL4BdD1gBZX278AOjh7ob1SPkISHgv6KXC6ycIaa X-Received: by 2002:a50:d684:0:b0:572:a13c:30ca with SMTP id 4fb4d7f45d1cf-5734d5de823mr20716604a12.20.1716220054015; Mon, 20 May 2024 08:47:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716220054; cv=pass; d=google.com; s=arc-20160816; b=cM0tRSCPVLmamQCgD/ELu8LwDdQzusiaUq4zub+4jSrhdqdzhxxpOn8VPo4AeTDl9S Sv23+5O4kAPBWs7wwcUV1A7p16ESV2FLqSAg4pueNE6TzWTLq+JKDI6ha3VvTDbTzNOc RJX0e+MeAa/4LjM1qHjCK8lJ+ACMTfsdG88yweTH1dJK3gTxSIXdJ60bdm3zNSKQdcW6 2xxi7VJKoy3RSWZqtH29+rwNk1lGb1jm+NEykUEXCXZVHgBFygj9gUktlCAtIEOFLw45 F5glSHpGgwiIIlBTg1SInuPyjvzvWxPqjbxnK3md2lcMAax0vrzIhOgpPO9DgeK+cuK2 AILQ== 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=F3SMiS49AyJkdxBHc7WIBbANno/llp+H6SaO+b8OMQA=; fh=GYcM1YUxTmTWl6x1tmiWI/SAS2e/LLVoatTVoziDoXU=; b=DbqO9CbRXnT8CVLfiQNMvKmYTPXZz2DZaK4J013aaWIvt60Pg0lQ0+ofIwDePs9KCp RM2iGhtx04h8/GASeujnMeql44+ngvlVqCnf7J4ShjqWHToNBelOIaBRnjlEcB+HzywE ooMNvD5t6lf/2HSVRqnmNTK5miRY0d2DTdLzn1cDI6p0naduwzT5g+tjysC5pzZf7vRL bICGEWEf1RV7dnXrs9TcjIhMnO0wLBJZWxk2XVOAazzuqNXEk6fdiO5CH3wFDTkT712p lNKIm47ImlFr2kwasXwPN3oBZXcxVFXMGDAVsA1rllrDpbqLbabkWJ4s0VKbQNybIFJT L0mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MosCYrxE; 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-183924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ecc39f8asi7106834a12.459.2024.05.20.08.47.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 08:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MosCYrxE; 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-183924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183924-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 817F51F21EBB for ; Mon, 20 May 2024 15:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE456137742; Mon, 20 May 2024 15:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MosCYrxE" 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 535014C66; Mon, 20 May 2024 15:47:16 +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=1716220038; cv=none; b=gD+UZJ+YratiyRVJXitIMDEpv4TfoUSm3AXkXzqF+PRUhonDmewzYJuCpSvsRjnUmHt1VlBNHTBDXUQFmSdK+8q/2FfzxDvXI8lc0HbtVFSDawdSq3Wi6fZytOS/w3e64Vm3tYaFHepuOMwTLhqEmYtEIWYMtnZSbLkVgFi7rdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716220038; c=relaxed/simple; bh=uQyTUDBrb2M4ToZZB76OHhpsj6zKCUibocapiCL/n+o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hKLud25cgqUxiJ0CSnQ5FSfuor+Xa+b1fnzLjaBPr3JUb9WCfg/ANmDUVHO0jgnUAQxI3wb0sTIdv2ZvIHHZAeLd5ETVVLHGdS+FwA/Nqpt0wUJdcjDl8ho+a+sEOaOnPZj3cq7BnzqqTch29Zj2LkFRrddY41jmul+8evud2FM= 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=MosCYrxE; 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-5210684cee6so3961055e87.0; Mon, 20 May 2024 08:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716220034; x=1716824834; 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=F3SMiS49AyJkdxBHc7WIBbANno/llp+H6SaO+b8OMQA=; b=MosCYrxEXdUNb7C9Txh7i8+ELcUGNxO/x9nK9Y2r+glGjoEf3QaC02lEyRue2yl7M0 BgzEv5C6wpBXSflu9/S4j01TjLr+yQX1fsLW/486Q0yg+vIeyyo5a4vlOnx34jsq4v1/ ewAGC/fVDqib3WvppfIxvKpK3CM8hk7GMc4fLA0u9SvSJq5N/Wfp2T+eCu2AtvJDuapX xiwJxd6EVws4EF3veRdxRQBySkMx0DXp5OBq7aSlUnu17XC7j0mYeZzaw0uPMJrBJe8B 86henWGECYmrRHqyi5/vqXtB9dhJ1yG2ZXrSBqO/4VegMzfLWTMTJUPNbh+IgBrRiWXq oPNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716220034; x=1716824834; 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=F3SMiS49AyJkdxBHc7WIBbANno/llp+H6SaO+b8OMQA=; b=KLKL9iWpXsVQjulg/Ux/Hpkrl0DRG7/pJ/J2Oe1+lXLgS2T95uaBcmZXqZ4F4QD3Ry sEpTxn1r5E8ZT/2SRH22T2H6TaVDEsLA16+7J5wLpURm/9K5k68I4JYkbS5BrO72IhGx 6Qly0mFSZle9mvjM8SGAaebeJRWD0tQpc/F5zVg/Qu+w0nT1/Reqw3hy5LK1B98pRUVV TMRe9X+8EZooYkd9hooADLVq7LQzLf81nfxpIdiEFt0lehRYZJXn24eTaH+xHgEH61Qz 6Sf5stPoxofS7Nfd8D0hd+FP53X99mmo5UJZLOg1AQEis1eq8MkHnm2Oan5tGGcITzEf hY8A== X-Forwarded-Encrypted: i=1; AJvYcCVa/3BDOg4Wu0+UjGid0iJPW9+/4veUVF7LbxkB1cPYfDben/X88+Y0CVAYWzlCEKmYg76ZAF4CrZs/bpaqqZg2GuaADW8yshjHIWF/rNwsxdw06dKndU5EdovWvvogL7w0uH6BE/zL+5JFedMAk3m0uNp57bhSmUWH7MCt41BewUqqslI= X-Gm-Message-State: AOJu0YysiDI6seSB6QLN32UI7XoBC3hIPuC2xpW5NaRzUepCuNWEMlTd Wi4A0IW1vdQWqYV36KMMgGJGHvoHtrE0QLUjInzrcr/hw+rob9Uu X-Received: by 2002:a05:6512:3091:b0:51e:f1a6:ac39 with SMTP id 2adb3069b0e04-5220fa71b46mr24154338e87.12.1716220034251; Mon, 20 May 2024 08:47:14 -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-521f35ba754sm4301267e87.107.2024.05.20.08.47.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 08:47:13 -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 v2] dt-bindings: gpio: lsi,zevio-gpio: convert to dtschema Date: Mon, 20 May 2024 17:47:08 +0200 Message-Id: <20240520154711.7991-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 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 | 41 +++++++++++++++++++ 2 files changed, 41 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..b5aae8124311 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/lsi,zevio-gpio.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-zevio.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 + + "#gpio-cells": + const: 2 + + gpio-controller: true + +required: + - compatible + - reg + - "#gpio-cells" + - gpio-controller + +additionalProperties: false + +examples: + - | + gpio@90000000 { + compatible = "lsi,zevio-gpio"; + reg = <0x90000000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + }; -- 2.34.1