From patchwork Mon Nov 20 21:20:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13462025 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 0688EC197A0 for ; Mon, 20 Nov 2023 21:22:20 +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:References:In-Reply-To: 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: List-Owner; bh=SxG4TZG9e1/cUSLnk+h2zRzWB5Ik4Y8zv8JobZ82FKU=; b=zxK+iW1QKKfGAF vGMxjDgu88XLYGMAEGZTdIsK2K3EbP4gPRYEb0viS2mF0+zvLgAc4o7ExNTDwZq+8GdOFCKZGFQPd +eVkxoetC0XST2YtTzX9Iav0g8I/M5bEZZqjyOb8H+rzmJksmP6VYyEsLoptLcJmcOk9RDI3F3q+1 /c3AhTrJmjTJ8rZuxVXIqn7hPJkgAilM9lEiJ+R6uUyaVkFBkUA7KvByfxRRVuFY01apuU7Y8fM8J ZmSdbJb3vrlQTzyJyrnjoStbkuqz4qMYhEAkag8cDDAyD4RQPmloyP8ovgAUeVyis+8Gb+ahCFfP6 DS9GTSrQOZzRBb6SqDTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5BiJ-00ErIV-15; Mon, 20 Nov 2023 21:21:51 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5Bhp-00Eqx2-1f for linux-arm-kernel@lists.infradead.org; Mon, 20 Nov 2023 21:21:24 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4079ed65471so21455395e9.1 for ; Mon, 20 Nov 2023 13:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700515279; x=1701120079; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HGbaQ0HPCBmwnLgBXIo+1TiPclTwFAe7Vfce3B7czes=; b=t7IKRp1e/Y+oV3NE9+sKm3ZCRL8nPjeb63S8yJLWBA56m0Vzck/DirWFCbG3oIeTHa YUWMdTyLXza8dkKXFzKu9JP7GsswNR5JnjxflmiOTJrVFg2EkM5Qc0fPvsXR+7A/z0nV NHrnkoACbz/ErYiNdXDyKGaW2tfhB+zytqIBGBDt/v8oGWso9s8tVK1QUZTZP6yAXAF/ rQNgX/ecb+9vCSy5GtBjpEm+eZHoJui2JK1hIBSL3NAwLMDV1NyIUal8YZp5ejNR/USS aF4NbKmH0fRjrNiEB8BL8JBGN7wEmx4DPdj5k4RaclYV/DnW07Bu7VbGC9BGzqfWh7vu rdHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700515279; x=1701120079; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HGbaQ0HPCBmwnLgBXIo+1TiPclTwFAe7Vfce3B7czes=; b=BR2jQDkY15dZURKz58iT702roptzQsRlklZBX+eqX7hU5B1Pe3kVogktp0Dd++wqX8 SoRwLnhS5NuPZh596MyEQpefJLSgO5pWqbPUKI6+7debQ4S7VRKhcbkJWzSuOJA5SHV4 34wFDjnXX6BWINgTuVUBPjSW0v7CJdioKF5SAHiQaBrON7SE4B5VI/861NxJdIChS31O uQp54oyV4UALfiUY0rDbZW4R5UhXHUtHEskyAG8Gg1bC2bbogdgzjfNRP1ipt0Ax8Wfh VkWROgPpPu3G5aVOp2droNQHQC/HPV+XwGKo7mcRYdne92a13RwW0nt+FlqpX848G4kO hArg== X-Gm-Message-State: AOJu0YyjLQxpymBvzNq+9Mj9ugUcBZcRgETJGBzJBfdTvab6PrcOaCzf DuRdfQwmvAzN8WT6HfcoNM3pyw== X-Google-Smtp-Source: AGHT+IH602lqzhrrd5ihv9nkycuna2+sAG626bnATZiwyxXwpH3DfNnEo9fr+SzZKcNrL/DjF/2qUw== X-Received: by 2002:a05:600c:4f04:b0:409:101e:235a with SMTP id l4-20020a05600c4f0400b00409101e235amr6149430wmq.28.1700515279671; Mon, 20 Nov 2023 13:21:19 -0800 (PST) Received: from gpeter-l.lan (host-92-29-24-243.as13285.net. [92.29.24.243]) by smtp.gmail.com with ESMTPSA id je14-20020a05600c1f8e00b0040596352951sm19518451wmb.5.2023.11.20.13.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 13:21:19 -0800 (PST) From: Peter Griffin To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, conor+dt@kernel.org, sboyd@kernel.org, tomasz.figa@gmail.com, s.nawrocki@samsung.com, linus.walleij@linaro.org, wim@linux-watchdog.org, linux@roeck-us.net, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, olof@lixom.net, gregkh@linuxfoundation.org, jirislaby@kernel.org, cw00.choi@samsung.com, alim.akhtar@samsung.com Cc: peter.griffin@linaro.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, saravanak@google.com, willmcvicker@google.com, soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, kernel-team@android.com, linux-serial@vger.kernel.org Subject: [PATCH v4 09/19] dt-bindings: serial: samsung: Make samsung,uart-fifosize required property Date: Mon, 20 Nov 2023 21:20:27 +0000 Message-ID: <20231120212037.911774-10-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog In-Reply-To: <20231120212037.911774-1-peter.griffin@linaro.org> References: <20231120212037.911774-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_132121_601682_53A41829 X-CRM114-Status: GOOD ( 10.28 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Specifying samsung,uart-fifosize in both DT and driver static data is error prone and relies on driver probe order and dt aliases to be correct. Additionally on many Exynos platforms these are (USI) universal serial interfaces which can be uart, spi or i2c, so it can change per board. For google,gs101-uart and exynosautov9-uart make samsung,uart-fifosize a required property. For these platforms fifosize now *only* comes from DT. It is hoped other Exynos platforms will also switch over time. Signed-off-by: Peter Griffin --- .../bindings/serial/samsung_uart.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/samsung_uart.yaml b/Documentation/devicetree/bindings/serial/samsung_uart.yaml index ccc3626779d9..22a1edadc4fe 100644 --- a/Documentation/devicetree/bindings/serial/samsung_uart.yaml +++ b/Documentation/devicetree/bindings/serial/samsung_uart.yaml @@ -133,6 +133,23 @@ allOf: - const: uart - const: clk_uart_baud0 + - if: + properties: + compatible: + contains: + enum: + - google,gs101-uart + - samsung,exynosautov9-uart + then: + properties: + samsung,uart-fifosize: + description: The fifo size supported by the UART channel. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [16, 64, 256] + + required: + - samsung,uart-fifosize + unevaluatedProperties: false examples: