From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 275FBC67861 for ; Fri, 5 Apr 2024 08:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uBwP439J8Ig8ktI0gS+OYixLh1hAX0Q2FiTqaF2pCEA=; b=pY8c0gs+8sUSJd hDPj62zqculogqUmpjUGnHcHN5TMEANj13RXxBGIZnHDXJNfiiO9xMrg0+f7t/cV4pojUAPqhhsmT AKZ5t9zoGkEO3p+dKpAglm7Ta3z+TJ1FPs5ZW4T4jH+YDKirrxLIOaTPc6sa72gjYp7SCaMBSbytU RhNhrk/KFul9oj7hbAf2xcrZzwUGktvpg9NGZp0be1z6Hhv8jivCkS7Ts6RI84GGXrSZ0N0Zj5w45 hujGD/MSAX2K0y3nqrJsnVHSK0WdTPb6pSkq/fLenTlr9DUrixu1KoD80cb+CN8F8f2RZPL4WdlpL 5otNt3sXHrfiSsVc9mwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rseYk-00000005rJk-0jzF; Fri, 05 Apr 2024 08:04:26 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rseYh-00000005rIZ-36t2; Fri, 05 Apr 2024 08:04:25 +0000 Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso1425265a12.2; Fri, 05 Apr 2024 01:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712304261; x=1712909061; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GfvN/GEUvZgHsMPKzmrhQeGD0EhxOkBXG+H6PdOljG4=; b=SJQCz39dnrbtINS2vWmwC8x4NP06MwO9VU5lCaYwMt5RP7Py2Jvs9Z+Osjn65tcI2o xvS56LBrjcGxwgCJLM/ww/QSfTFnp6e4+v+/8lYMOyZ0eoqVn3DS/ytJZ4ojCNpG4Qtc eQzI+pRPowPOmQ3xiKLujF4x/zyusXPUJuGemUxP7Gblk/+Yf+KsUeyZIGnjgNXLS9oo uLtulvJi+X9a9RWWIRkfO6x9klBHlDU2hLH8Swb/LwyEIWwTkRkapzrsPJSvbIOKavys hi1PTnWWASw87/1foSaQoG3W4bN8PzWTXiYIeXVJbdzdDQQTt8wBWGaiXjqhJcftlkcS tuwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712304261; x=1712909061; 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=GfvN/GEUvZgHsMPKzmrhQeGD0EhxOkBXG+H6PdOljG4=; b=WM2Iq8QvvwTjM1e3a16M/nRDt8dqxIW2k2zjdb1Q+KEDwEpafe+u8VE2GFl/779XQS 1DvQXPnNbHeBKRVPnYBHRzwhHazIlS+lxfxYmv8Ry1Is3p25aZL8C0T4RO4hFeEsnhUo 8/nrcvYq1B9l9zUNjyawkooSCGhLeCf+wyUC1n8oy7OXDmbx18n6/KqnaWkSjaJyQVTx i35/ggUNlD/HHQiAhM5W2JroM870p08wgWmupzFh/miG0dH6CljdXH8WYwnz30MWk0ZE iwyMyULKuSjISna3N/6d/g+PB+rSXFCnrq+uwqismkrzo4FWL3q3GSaF2EN4mIkxBec0 Vl3g== X-Forwarded-Encrypted: i=1; AJvYcCV6kxml2eXn9wz4BDyj8QS8WMY+V88PnHcfD6pJU3PyzQ4BOua3ERGSzzGOYGLrwLkvdGkWWPCupN3fhiLlDMr5o+iDZCBpEzh898phtt3gHwoNaSVnAC7deeTCOa3yIFBBWn/PP3eDg1AIsrEioqfB01pOOFiQQg== X-Gm-Message-State: AOJu0Yw246lln5u/l/FTwEaMeQTiz9w1gh7ib+Gkd+6k5IDrm7NF5eWq Xnn4U9jTSLWI3zuzg640yJG75jJ4v8W2UEEfvGFvnNRZYvzqL0b7 X-Google-Smtp-Source: AGHT+IEk9ijxrJqAh34I2dW8pSMS+a1cqK0Fa6E00ttmimkRzuDSHQJOQgvaAdjxlY1/kHWPx48UVw== X-Received: by 2002:a05:6a20:3d8a:b0:1a3:c512:580c with SMTP id s10-20020a056a203d8a00b001a3c512580cmr857251pzi.9.1712304260711; Fri, 05 Apr 2024 01:04:20 -0700 (PDT) Received: from localhost.localdomain ([103.4.220.252]) by smtp.googlemail.com with ESMTPSA id b6-20020a170902ed0600b001e10b6f45dasm921162pld.295.2024.04.05.01.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:04:19 -0700 (PDT) From: Kanak Shilledar To: Cc: daniel.baluta@nxp.com, Kanak Shilledar , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org Subject: [PATCH v5] dt-bindings: serial: actions,owl-uart: convert to dtschema Date: Fri, 5 Apr 2024 13:32:32 +0530 Message-Id: <20240405080235.11563-1-kanakshilledar@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240405_010423_823469_D08DFAD8 X-CRM114-Status: GOOD ( 15.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Kanak Shilledar Convert the Actions Semi Owl UART to newer DT schema. Created DT schema based on the .txt file which had `compatible`, `reg` and `interrupts` as the required properties. This binding is used by Actions S500, S700 and S900 SoC. S700 and S900 use the same UART compatible string. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kanak Shilledar --- Changes in v5 - rebased the patch - sent to all the maintainers Changes in v4 - updated commit message - `clocks` property is removed from the required section. - remove disabled status from example devicetree --- .../bindings/serial/actions,owl-uart.txt | 16 ------- .../bindings/serial/actions,owl-uart.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/serial/actions,owl-uart.txt create mode 100644 Documentation/devicetree/bindings/serial/actions,owl-uart.yaml diff --git a/Documentation/devicetree/bindings/serial/actions,owl-uart.txt b/Documentation/devicetree/bindings/serial/actions,owl-uart.txt deleted file mode 100644 index aa873eada02d..000000000000 --- a/Documentation/devicetree/bindings/serial/actions,owl-uart.txt +++ /dev/null @@ -1,16 +0,0 @@ -Actions Semi Owl UART - -Required properties: -- compatible : "actions,s500-uart", "actions,owl-uart" for S500 - "actions,s900-uart", "actions,owl-uart" for S900 -- reg : Offset and length of the register set for the device. -- interrupts : Should contain UART interrupt. - - -Example: - - uart3: serial@b0126000 { - compatible = "actions,s500-uart", "actions,owl-uart"; - reg = <0xb0126000 0x1000>; - interrupts = ; - }; diff --git a/Documentation/devicetree/bindings/serial/actions,owl-uart.yaml b/Documentation/devicetree/bindings/serial/actions,owl-uart.yaml new file mode 100644 index 000000000000..ab1c4514ae93 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/actions,owl-uart.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/actions,owl-uart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi Owl UART + +maintainers: + - Kanak Shilledar + +allOf: + - $ref: serial.yaml + +properties: + compatible: + items: + - enum: + - actions,s500-uart + - actions,s900-uart + - const: actions,owl-uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + uart0: serial@b0126000 { + compatible = "actions,s500-uart", "actions,owl-uart"; + reg = <0xb0126000 0x1000>; + clocks = <&cmu CLK_UART0>; + interrupts = ; + }; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel