Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp531503lqp; Wed, 12 Jun 2024 08:39:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWo898cG3+9MBNQZCjWtWEGzXKh5QdisLaq27/xr5PzIQDhw2tvGNDJOb7Tbr1HlsVOe/HDYprthQz0IVQCRlj47TG8dXaC0gJ4v4UUXA== X-Google-Smtp-Source: AGHT+IEXvOUcFVP2/m9iytJl6c5bRrs1Rafw5d2e/x4DVi8/a7VX6fKYxLPZvJfhBmBVJQFGRfeZ X-Received: by 2002:a17:90a:12c3:b0:2c2:f8dd:e15c with SMTP id 98e67ed59e1d1-2c4a76f5f6emr2167512a91.37.1718206768063; Wed, 12 Jun 2024 08:39:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718206768; cv=pass; d=google.com; s=arc-20160816; b=o11NoBdK1wne/v1El7ax+SlY8ylXYSP/dumOhR5jD0MxApD8x19Y+IANarKVRb9p8O nAmWyD9wjz8Un2d/MGOQkyzo3ep6eAHvAOimnW0gC/zwjhFsjVVteVYNigqJazB0nvfv ASBgV2ty70rUvr0h41TIBj07vSPIWwIgA+2tfpNfVgr6oiePsgeaV3peGk69bap3ApQ5 BV/er4b0J3j+OXXzCldgj3YAkue9lanstD4LtbzS9RsQOtQ7NzREIlIaiLkWnUNTfPks z3nWsxXRP4iDbVP6qcxp5Nx27bFhqO6Limz9eXObBSo/29ylussDsWWo7GXL2e/PArN2 hgnQ== 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=qCn/xAaLJSjrwXEId/Eyiyy2QeSoCVHrnLmnaPWwjhc=; fh=psGpBcDpVmybv0aPwLyCqjzYOguVkeGZpZ1Q9EsuOp8=; b=M7PzTIhQXPFdKMA84d6ZyX5VcC3CDua/D1Jylh/TvxUQobNUc/uXqGZZB88hGbv6Ps IhVTcQcp8lUfWNf1zmJ2GXLhPF+Ky7AZrL0TBrw3Qyqvc4vW1lXCJdmX95zHfBBVExdV X6GjT3irHmBJ4JjKadbMFlc4L8dwX9v3ovXAVHu/KuIpNX3ikhjWElNgFSjCRApOCSry 6zx+hW8ukNzCOB+8zHPRCeQHDRXitAnI+LYBOY/CVSnP9PNCoRDo/hFjWH3GVekiKN9n MbGhYUoP2vtUTSqpNmZwtA3t97c1SvJJ2dGQ7o5L2XXVOK+b4lMYm0/BELA9fgfr2clc zb9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gsOpL0R9; 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-211806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a763e17dsi1820392a91.144.2024.06.12.08.39.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gsOpL0R9; 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-211806-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211806-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B1792830BC for ; Wed, 12 Jun 2024 15:39:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D7BD180A77; Wed, 12 Jun 2024 15:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gsOpL0R9" Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 5370318622; Wed, 12 Jun 2024 15:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718206754; cv=none; b=FiZCnctm5RmClpzu0TXzpTSO+ctpwiJP2Nt6k30vvxzbsfvn8+peFLRzYIuVexbevGP0mUDT2FAIPct+iK0mF828kXoJdwKgSTgxj76VHxa2o7UtU0gK1pAb0fiIpN8auP2u1FShe6Xg2YyXY9ApRSiux+4f6QKYw4PtQ4l9TdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718206754; c=relaxed/simple; bh=mz5ddMgSHBrMlN7KEn0jXPYKgE9bo2Re4KtL6Gnkk10=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GBGrrLrantAb4FtYAQGKhGzlNjYCqFnNBHDah+oginhyrLVhr5pUoaVPOpHWzPjgfm81+1PLSeCWCPPjr5TEiwx37Spe2020IxKpCAWI62lCZIrfRGloc1fSiQduM8nlYcFIzzytxwKE1776LiGbNoD4Kh/AbhTHdqaombKoZ8w= 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=gsOpL0R9; arc=none smtp.client-ip=209.85.210.169 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-pf1-f169.google.com with SMTP id d2e1a72fcca58-7041053c0fdso3997764b3a.3; Wed, 12 Jun 2024 08:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718206753; x=1718811553; 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=qCn/xAaLJSjrwXEId/Eyiyy2QeSoCVHrnLmnaPWwjhc=; b=gsOpL0R9XPeB5HX0lp8OZ5j6Nl7f01/9MzXODdA45JyUQPyM7OR3sxFGf74zcZ5WcH xLS3wenlKHbbz7i+qiVi3pGdnogOD/k6cL4HJGHAFvoRZZLJ9V6cfiZ/PCjDKiQIsByC cFg2UltkWvyTiPNb6t2V+yGFBriadmk0CNuo5NRePZkVfswA4JwvfsdVW6y2LuOmI/v4 4U0P945KLyZ3HvFQzzqX/88jeYRHpt4M1kqmCAVGT9LE1egVHndlv+AmjUuHYDWYWbBn tp7uM9YUVg2D1+VLEdAsiWT+//5bET0P5NMj6pjhBYU/Inqjdj6JDFV3c2+wZN5SqMRX Z5Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718206753; x=1718811553; 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=qCn/xAaLJSjrwXEId/Eyiyy2QeSoCVHrnLmnaPWwjhc=; b=iTw6rTZKbkIfkFyaab5IDnsCPfHdtjj/8XnpiFYIVwhhGNWl5SfaWUsVzd3fjftRYh krlAkWg92Sd9plDT0zXvTQvcPuP/0xcMUUYWCavqYMJRqS/6F2ul37tu26W8SI6o9XsJ bgcYQbG7VLJzSfM3z5h3/PSaKciumep2BGqD9PXrDb4BPzywozZMj2v5FIl/3CIXQlTz U1TKKuZkQAos+zYhkZMJqI7lavWepZWaaV04EHZrCRwKrswBpxCMswlM6IsLlHIaN37t IwrB8hB31VOzfGAh8yb6UnYrNju9AMPkL5pXG3PG11iIZidiZaHPy5QFQmd7axHJCOdy pQ+Q== X-Forwarded-Encrypted: i=1; AJvYcCW09/ZIRBrQyIEH0lTiZDfE/BKF/IZODCoKZw00+UIIvtQl6ZNOyuPsUhePR5RPQhGUL+SBBE+Cl0TbzQ7O+d8IFyyOnqJK3P9tyoaC3rhw2qcQPzojkzMPEdO0GpPYGJtRTuVZQj9BbznAm34hB0fUJ6OKLOMODUVLgZ2dlEbt7p63G7E/ZA== X-Gm-Message-State: AOJu0YzpLJ50L035DEzJw0jewkINI2/b5r/fGzdqGu5uC9dM8KDNhWIG BAYGxNiuu9dV4SSZ62WSFsAfcY4iBrx4mwgLrU7JIw9x396IsCw1 X-Received: by 2002:a05:6a21:6d95:b0:1b7:175a:6756 with SMTP id adf61e73a8af0-1b8a9c8de91mr2956080637.50.1718206752555; Wed, 12 Jun 2024 08:39:12 -0700 (PDT) Received: from ga401ii.. ([2401:4900:1c29:22a5:7130:4b49:9907:6f99]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-704338ca12fsm6726273b3a.173.2024.06.12.08.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:39:12 -0700 (PDT) From: Kanak Shilledar To: Cc: kanakshilledar111@protonmail.com, Kanak Shilledar , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexey Charkov , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3] dt-bindings: serial: vt8500-uart: convert to json-schema Date: Wed, 12 Jun 2024 21:08:43 +0530 Message-ID: <20240612153847.52647-2-kanakshilledar@gmail.com> X-Mailer: git-send-email 2.45.2 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 the VIA VT8500 and WonderMedia WM8xxx UART Controller to newer DT schema. Created DT schema based on the .txt file which had `compatible`, `reg`, `interrupts` and `clocks` as required properties. Additions to the original binding - changed the file name from vt8500-uart to via,vt8500-uart.yaml - removed unnecessary alias from the example. Signed-off-by: Kanak Shilledar --- Changes in v3: - Removed Rob and myself from maintainers and added Alexey. - Fixed commit message which mentioned "greg and jiri as maintainers". - Elaborated changelog for v2. Changes in v2: - Rebased changes - Changed maintainers to have Rob and remove Greg and Jiri. VT8500 is orphaned according to the maintainers file. - Replaced `compatible` property description with comments. --- .../bindings/serial/via,vt8500-uart.yaml | 46 +++++++++++++++++++ .../bindings/serial/vt8500-uart.txt | 27 ----------- 2 files changed, 46 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/serial/via,vt8500-uart.yaml delete mode 100644 Documentation/devicetree/bindings/serial/vt8500-uart.txt diff --git a/Documentation/devicetree/bindings/serial/via,vt8500-uart.yaml b/Documentation/devicetree/bindings/serial/via,vt8500-uart.yaml new file mode 100644 index 000000000000..9c6819241a49 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/via,vt8500-uart.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/via,vt8500-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VIA VT8500 and WonderMedia WM8xxx UART Controller + +maintainers: + - Alexey Charkov + +allOf: + - $ref: serial.yaml + +properties: + compatible: + enum: + - via,vt8500-uart # up to WM8850/WM8950 + - wm,wm8880-uart # for WM8880 and later + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - interrupts + - reg + +unevaluatedProperties: false + +examples: + - | + serial@d8200000 { + compatible = "via,vt8500-uart"; + reg = <0xd8200000 0x1040>; + interrupts = <32>; + clocks = <&clkuart0>; + }; diff --git a/Documentation/devicetree/bindings/serial/vt8500-uart.txt b/Documentation/devicetree/bindings/serial/vt8500-uart.txt deleted file mode 100644 index 2b64e6107fb3..000000000000 --- a/Documentation/devicetree/bindings/serial/vt8500-uart.txt +++ /dev/null @@ -1,27 +0,0 @@ -* VIA VT8500 and WonderMedia WM8xxx UART Controller - -Required properties: -- compatible: should be "via,vt8500-uart" (for VIA/WonderMedia chips up to and - including WM8850/WM8950), or "wm,wm8880-uart" (for WM8880 and later) - -- reg: base physical address of the controller and length of memory mapped - region. - -- interrupts: hardware interrupt number - -- clocks: shall be the input parent clock phandle for the clock. This should - be the 24Mhz reference clock. - -Aliases may be defined to ensure the correct ordering of the uarts. - -Example: - aliases { - serial0 = &uart0; - }; - - uart0: serial@d8200000 { - compatible = "via,vt8500-uart"; - reg = <0xd8200000 0x1040>; - interrupts = <32>; - clocks = <&clkuart0>; - }; -- 2.45.2