From patchwork Sun Feb 25 10:03:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raphael Gallais-Pou X-Patchwork-Id: 206010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1510352dyb; Sun, 25 Feb 2024 02:04:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUDzh39Lbxd1+A99Y95YJASQybYSsHkrYnSMoTI58sAH0LV0kJby1uujJt6RJ9QSm4yeI+uEq3v83fzVk32ZIsPqTGVDQ== X-Google-Smtp-Source: AGHT+IErcnI1jorlpUSfWmgGTbjiMlahe4zhh7Xh+EXD4CjdIuWdh/QG8OAQ/iUmooGHtRanebs0 X-Received: by 2002:a17:903:984:b0:1dc:157e:456a with SMTP id mb4-20020a170903098400b001dc157e456amr4956663plb.49.1708855445019; Sun, 25 Feb 2024 02:04:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708855445; cv=pass; d=google.com; s=arc-20160816; b=ky7hivig22w9cXpBdVQ7r7YmdfrPx5jeHoup4tTy3NktPfSw/NneNL5B5uPiMpiovf hZLuAD2nOXcr5fCAcuJknCXaMwDfAYvmKltWL3eMhyEAjiWV/a8oWyU3xQ2CvkFRVTOo d5229XrzCMAPRXGYx4btUOsCciuxLZ+HIm9XC+GoS31+kdJEAW/NsXPuF5ekxYn0bFp2 pHiTrdflDkXBSGyPI64nCfRYaJ0Jm5njIWLVJxGJeTvuPt+ayoioPCTDITp4kG5bDrLq AiUaOIgAUO7VqLY3BeyX8IQK8nqG5+NznpvJLm0JQs0xk9d9IdFntWISPAitpplfWMVt qiAQ== 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=Wyw3xA0HGd/6i6d7WHoA8ZSWdz/coub8I+ng5GM1Nc0=; fh=F7Em48cpTm1tOGEFyHWHNkZHwSirTqPPaBMbPUCAmHQ=; b=xItAmWueHLVNW3EYnhPQnrbufasm9V7l/3TfkZPgNigTbvZgC+GsD4erF8RKGaekYr eSQNH9sZx11SLbIs2eLvDjYKm2O3jaiDZsza6COb0l953zQsGmTiC21cM20cpFte9GcC 0oclXAf1OLbA/IzmFE2iyaR6hcxvthY9CJ7v4QR8cYvx3DoITthQCEwX1HrHF2ylQ82U qMtEbz1iIIIb1hP4IRBoty2HGDiJtJBCcbdDCauBF9skeiKROSfkhPW0E8Wg/66p6e5B uMNFWFgbycAPTJC+T+ZQgMDA1mF/9ABWV8eS4RqsRqxpVT1c56b7Byt3CGRLYfOMXaDb zZEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="G/hocDDZ"; 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-80031-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80031-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i11-20020a17090332cb00b001dc41a25b4dsi1977563plr.419.2024.02.25.02.04.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 02:04:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80031-ouuuleilei=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="G/hocDDZ"; 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-80031-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80031-ouuuleilei=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 C70D3281BEA for ; Sun, 25 Feb 2024 10:04:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31805FC02; Sun, 25 Feb 2024 10:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G/hocDDZ" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 9F54DD528; Sun, 25 Feb 2024 10:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708855430; cv=none; b=m8cjKJ0DnzrcwNozNt0kIizCm9wXmU8n2BhzmZv+elC2CxB7vHRF7uXVtv1w+XQdl7uoRDpKRq6MbL2TgdFd6HQ8lF/eMDDosHC76oqRL2FqeQ6EyC8nTIHv+8Pg3uDlKSF3D8E/NGVZluJJ2up2i+0KfJ2ceanLHWzEcrr/l6A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708855430; c=relaxed/simple; bh=FwyYlcicA94hCgi0KTUdT4QunAnlUBM+uSL7POHZY/g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kSKrZ/ypC8wnd6tpmbyYHtXt8tV7gZp+DunoDYSFAE2rX9jE4SgnIlfxw+7DwCsEnoPQ2hyJKIQMuwD0bmWh7r8lQ7abZxEvrgGaM6wYU56275eLgg2SlYOeBkn54BQfH/TOyxhEsHxWiD+kXczvg9lvHHiSno8jgsF2KZYbQH8= 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=G/hocDDZ; arc=none smtp.client-ip=209.85.208.170 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-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d21a68dd3bso29350551fa.1; Sun, 25 Feb 2024 02:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708855427; x=1709460227; 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=Wyw3xA0HGd/6i6d7WHoA8ZSWdz/coub8I+ng5GM1Nc0=; b=G/hocDDZEK6FqVGz8QjNwwQeT7di3QuuWq04ofgZ+dpErvHCoG/XWeoQH5OZ1kY6dy G9Ei31s0zWUXeO56bgP4DIjF7+jZvzz4bBiYRzpM5/h9x9buI8oFy2pzFImFF5e6Ua1G VpyQpLTe27GQ2Ijl9eL+/8i5iDkWkbsCQiWh1Ux92F8S6OPIN6RRkEb6PxD9fApRWo6e MMzWsHZxNznJl6RsXm+jUJWbrnm+tWlc5E+Twpepi3LtKr0FE+xrQE6c5+WJ/FLw+qrQ cl+I2MGi7xS/tPCH5FkP8fxVn3qVL7xWwZHVRJWprkSa9qb1hwpCneqPXexj5RLdVBDu htJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708855427; x=1709460227; 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=Wyw3xA0HGd/6i6d7WHoA8ZSWdz/coub8I+ng5GM1Nc0=; b=CySXu3PIcCp86eIw7lhQ13ZirNPqYzqgAPYcrZxWdMCT98IkfSG7HmrhWEif4cRTyI Tu+AEwl59UoNAwdwY3xdVHa7kvlJ3ro7/4VYAD5BR6GC7yGV1pUH3L9twWuQWHMUy3T4 y7uIPuhGVT1YAzXkhB5C7ExbSpfuc5VCESePcjQpJRT0HdXB9t04r3fZlc5/PAKo15X7 b7JEu49gXwyoCvr6UbtMXxibCNL6teMuycP5aMyNz9pUdhONOvXFroF17sPPbQpIOrgh PeZbcS5ZyuCIMMtH2Bp6pSi6EwCVr2g+68wDgOSQnIhPlTBtBbCy3RLwyX9pm5jeEiK5 IQvA== X-Forwarded-Encrypted: i=1; AJvYcCXaaq1oQTu/KIh7xFlstUZghJe3rSekdsAwQKiKB5Dgq/Z6rTBKJtqlsQXwa5Ov8WXzrxv8/FBkuRbH464jPnsXo3SwY9MFFczs0f8RAGBZp+pHGOOTwzySJ8rkJLyC/c4ueICAqsxxTQ== X-Gm-Message-State: AOJu0Yys4pvVA3lwJAjScmsxeLNsexnY9kU10/2DMPl9vMHASZ2/8eLK wh6sL6XH5ePjTVzPuwSJTL9BRlgRHTc4kps0+mbEvP6JjmfqIwVZQ6k+66Ng X-Received: by 2002:a2e:92c9:0:b0:2d2:6568:eb6c with SMTP id k9-20020a2e92c9000000b002d26568eb6cmr2179436ljh.30.1708855426478; Sun, 25 Feb 2024 02:03:46 -0800 (PST) Received: from localhost ([2001:861:3385:e20:6384:4cf:52c5:3194]) by smtp.gmail.com with ESMTPSA id k2-20020a5d6d42000000b0033b79d385f6sm4604075wri.47.2024.02.25.02.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 02:03:46 -0800 (PST) From: Raphael Gallais-Pou To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrice Chotard Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: serial: convert st,asc to DT schema Date: Sun, 25 Feb 2024 11:03:36 +0100 Message-ID: <20240225100336.34122-1-rgallaispou@gmail.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791864807500858944 X-GMAIL-MSGID: 1791864807500858944 Converts st,asc binding to DT schema format and update example. Signed-off-by: Raphael Gallais-Pou --- .../devicetree/bindings/serial/st,asc.yaml | 57 +++++++++++++++++++ .../devicetree/bindings/serial/st-asc.txt | 18 ------ 2 files changed, 57 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/serial/st,asc.yaml delete mode 100644 Documentation/devicetree/bindings/serial/st-asc.txt diff --git a/Documentation/devicetree/bindings/serial/st,asc.yaml b/Documentation/devicetree/bindings/serial/st,asc.yaml new file mode 100644 index 000000000000..b26e1d247346 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/st,asc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/st,asc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STi SoCs Serial Port + +maintainers: + - Patrice Chotard + +allOf: + - $ref: serial.yaml# + +properties: + compatible: + const: st,asc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + uart-has-rtscts: true + + st,hw-flow-ctrl: + description: When set, enable hardware flow control. + type: boolean + + st,force-m1: + description: When set, force asc to be in Mode-1. This is recommended for + high bit rates above 19.2K. + type: boolean + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + #include + serial@9830000 { + compatible = "st,asc"; + reg = <0x9830000 0x2c>; + interrupts = ; + clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; + }; +... diff --git a/Documentation/devicetree/bindings/serial/st-asc.txt b/Documentation/devicetree/bindings/serial/st-asc.txt deleted file mode 100644 index a1b9b6f3490a..000000000000 --- a/Documentation/devicetree/bindings/serial/st-asc.txt +++ /dev/null @@ -1,18 +0,0 @@ -*st-asc(Serial Port) - -Required properties: -- compatible : Should be "st,asc". -- reg, reg-names, interrupts, interrupt-names : Standard way to define device - resources with names. look in - Documentation/devicetree/bindings/resource-names.txt - -Optional properties: -- st,hw-flow-ctrl bool flag to enable hardware flow control. -- st,force-m1 bool flat to force asc to be in Mode-1 recommended - for high bit rates (above 19.2K) -Example: -serial@fe440000{ - compatible = "st,asc"; - reg = <0xfe440000 0x2c>; - interrupts = <0 209 0>; -};