Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp298337lqp; Tue, 11 Jun 2024 05:11:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrieUytcspuuhQrGJzY/fKTY2kwUAckDZrayvLZJjvsCXiKZ6cdm0bWXv7MAkjr7pVZ7JjySyxBNEcZB8s/SVfK5/zEJn/fq4uLTqm8Q== X-Google-Smtp-Source: AGHT+IHR1vrSDpmql0O7yzOGaQU0zyhOqB6wlNTetkqXdFHlmgDsOitIdqKCrWuPvnsydJLyGEuw X-Received: by 2002:a17:906:495a:b0:a6f:cce:4457 with SMTP id a640c23a62f3a-a6f0cce4ce2mr509293166b.71.1718107869858; Tue, 11 Jun 2024 05:11:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718107869; cv=pass; d=google.com; s=arc-20160816; b=Z8vY3tmNHl8RQYgV4pGmzklc0JaZYEknANhS4hTJ+Ez3xU2i+124+curF2JMi53h7+ DrRpcu6H9+hd0OFQjqACHSvPGz0FaVoqpiuBQRM9w4sSwRCzfkC4xHg3NejfUsVvEInv cy/Sr3Rg0wu/MNA9OqjXM63bOqrNcVLXBSoRsePpHmaFXb0EJlPGC/7LoHSNRHxmS6QY pbfKvESqDRCoFIxT7i+KQ3kQkC3frF+sLhHESNtg7xrzPZnSphBn5RLw1FPQh++TIgDJ hWGAsvy6BiKtXvjuuFlUBkuZgHmmd/MUiDDXYz1z3cli22pNz0CS7nPqWYba+dEYceNG bxTA== 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=D5Ql3E99ts31vP7gjuJD0BPHmyWgl0tnb3i3qEJrOeA=; fh=JVWpGY3iZd5s27/4ZQYshiceITRfF4Wcp3MS1JnMXgo=; b=JNUiGrMcANkYCJdkjWJxi1LGhj3Ugi10Ez3p475Gl9MRqDOOTMxCzTUSYAG3DY/p3W sVF510WVvg7LyHt6EvNInwZaQq1swc18LuRkyuDbUMh439NAIakVw0I5eUFnEZGQz0RO ZzbJlpEy+6MvApOZ1MdLeem0NVx40SzvY4TsNiWI/8spz2lDbQw1fZuyuvMHybCUqecF D98vgDU2IYf5rHhrBkbXXrxncDJFZW5aZNgpbMI1eQm7XZxj1IIQ6rbNqYhevbcdu7Ic niFLCjKph8l3x6RyjPv4PRG/Bz5EEeuHDi9mU+Q3uchMpDouwefhUZimaPr0L8v7CI9E HlEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iWT8Oc4g; 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-209835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209835-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 a640c23a62f3a-a6f1099fbb2si289207266b.147.2024.06.11.05.11.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:11:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209835-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=iWT8Oc4g; 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-209835-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209835-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 680971F2215F for ; Tue, 11 Jun 2024 12:11:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C9D817B510; Tue, 11 Jun 2024 12:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iWT8Oc4g" Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 EA03B481B4; Tue, 11 Jun 2024 12:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107859; cv=none; b=vC2bPhRcGQ4VEj0Pg5kUmejF6vtAdsakva2gB9Up/MhBGwHaRDWP6L265hbPLmxe+Y/9o+Ft9BHo5z9/s1fuxlwn5UVePhxwzQXhdv+2/X67cYersQ4L7g/dsKTnI1romiXKnbhcLPtuTmDdFNOzC2/dpGrw0x5U9eGFvAM0YX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718107859; c=relaxed/simple; bh=4sJF+qZgkff6mhxsiuML1SPXQa2f0RAQarao62dDJoA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ngI2Pqf4btVkCquSGezhfqf+4Zsc3RV/fHrmXw9MASIy91+U9I9bWiO/v3N7r0MwyBonygUVEPeLEmy9YhWfDgTegltjSkXnXqBnMoQTONKsxIWY+/ILLfBcT3kH+aNGPA84LsjiwBIFsKWbWBmuufn2BWYqvZKj366UDKXqcZc= 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=iWT8Oc4g; arc=none smtp.client-ip=209.85.210.177 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-f177.google.com with SMTP id d2e1a72fcca58-701b0b0be38so5159451b3a.0; Tue, 11 Jun 2024 05:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718107857; x=1718712657; 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=D5Ql3E99ts31vP7gjuJD0BPHmyWgl0tnb3i3qEJrOeA=; b=iWT8Oc4gXWERTH6W/lDw8u0nMHSeVy701nGNxacukSRd8KwbYUGYeWA+cBjwtk+Rr7 hn9OjidCCkY4v6bVSrAX38mFiNlWhp+yyJ3CXqyRzdMjFzf4ch3aA0SytBf0iOfyD7N8 H58B+oqUFJV68NVa2YpHwZq7sP6oTnROvPEny++j4idAmYUW9XEKXQj29gRLgPkOlnU1 h31E/Krsa6U2WH8CBQNcrYwSZ+RpEr9X3nD4fBWn1OjpzpjJgWlmX3CpntLMvZIFS4EV Zjvhkq25rz2BwAO0539jqsQzgVR8xtt8g8tmi1kOs+hk/YsBO1urwCk/VHSj7TPTKyJ0 cXsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718107857; x=1718712657; 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=D5Ql3E99ts31vP7gjuJD0BPHmyWgl0tnb3i3qEJrOeA=; b=GSPcKo4WkNKko1+dvkjXIf6Bd5cBUsifUuJ50ak0muqCfi8mdDELu3GCXW3dVQnPmU hpo0FNqgoYAN1oyqSnpmAmmekCTbWPraUE4Xfhkeihmt0+zYMM3oJ1KJJOlPcrPAKcGv w5QmVUrXa/FOm5U1Qvz+RtQ58bRgrSzSVrk1mCfSI7YzxU9GOIyvez4aJ6Mjd3lNIAC8 VveKtSKn0W6+POG5jgANOKROhmhQh+r8Y/2luuCcPliJ6nlEUKqeE+olwcWlWjFXdm1q cUE4/W/+iGFbGeZeXBURgczjX/CRFIflhgsd9YIYoi6iXoVUN8lLHJO71MqzzZpTlwXZ TUXw== X-Forwarded-Encrypted: i=1; AJvYcCVqbktOpWe7ueVV3gge2S/wpyB3X0lP6MQN5xqtiZHYpeU/z4R2x98+FJXPu2hQrr99KogrYuTnm2yT8vILG2w53piwM690EZQRi2sQzxIjR+MbpXH1BKLfF7pA1Yv9tYJRl61nWjRj1jCVPVtlai8cQBlmLwG8K4I+z4oEatetJ334qB8SnA== X-Gm-Message-State: AOJu0YyHAH50RysSbdCLKmqtGsPTAUMI/Pzii5ceQ2oMABziET7BIQE1 AZMid5bmfzYsNDORF/E7egiK8to6Xr4p2CbJ0mefH3x+v439swref5OTicZJ X-Received: by 2002:a05:6a20:3d91:b0:1b2:b104:594 with SMTP id adf61e73a8af0-1b2f9a0cb23mr14517494637.21.1718107857161; Tue, 11 Jun 2024 05:10:57 -0700 (PDT) Received: from ga401ii.. ([223.178.82.151]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-70594077c64sm3644955b3a.6.2024.06.11.05.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:10:56 -0700 (PDT) From: Kanak Shilledar To: Cc: Kanak Shilledar , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kanak Shilledar , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: serial: vt8500-uart: convert to json-schema Date: Tue, 11 Jun 2024 17:40:43 +0530 Message-ID: <20240611121048.225887-1-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. - added Greg and Jiri as maintainers (referred MAINTAINERS file). Signed-off-by: Kanak Shilledar --- .../bindings/serial/via,vt8500-uart.yaml | 52 +++++++++++++++++++ .../bindings/serial/vt8500-uart.txt | 27 ---------- 2 files changed, 52 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..b38925ab23a1 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/via,vt8500-uart.yaml @@ -0,0 +1,52 @@ +# 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: + - Greg Kroah-Hartman + - Jiri Slaby + - Kanak Shilledar + +allOf: + - $ref: serial.yaml + +properties: + compatible: + enum: + - via,vt8500-uart + - wm,wm8880-uart + + description: | + Should be "via,vt8500-uart" (for VIA/WonderMedia chips up to and + including WM8850/WM8950), or "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