From patchwork Mon Dec 11 16:23:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13487563 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 860B8C46CA3 for ; Mon, 11 Dec 2023 16:25:19 +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=uXjeuVTZYfnZu8ev+nvi6XCbnU/iork8jkP47Xhfe/o=; b=aPC0+9VIvs0rdQ nJJ0icfXicM+8xXLiMEFyFt1TUDXu4K0Kkj9iRq1cOH5YYWos58xrD3k/jTAWGTpdiAwYzwQWwttX SekOWEcN8zCz255eCPpVFYHtUUc1Dnyh7V+qf8zOjR9XCk1VOj76YTxPH6O0cM7p0iwcG4olmz+cQ 2YViC2NwrNLhM8g/spLWqsZGBJGq4ah25fvhp7zikgBYhpNGRIOuLCU7qGn34Bcv2Ar0lTwkQKQf6 NM1gc/f8rwEBhopB1Bvnn9s/zt9Vd+NGfDomk7tFkP5epoUeBowUn1P7MIoMJFSIuRvpXuA6yv2BC KZst5A1dzxHqGpQs7few==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCj5K-005mZN-0O; Mon, 11 Dec 2023 16:24:46 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCj4x-005mJf-0b for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2023 16:24:24 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40c41b43e1eso19517795e9.1 for ; Mon, 11 Dec 2023 08:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702311859; x=1702916659; 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=uHn6La4SxICedZgCH1SVIME+UAZa7Q6nySeOkcn6arQ=; b=iC0Oo4I/lEMH9fkWPk+b87Xdvu5LRyd9kAnXR3riU588wFUYAwmVICDBltMHnfrPnR NK65PLEmEJUIz3DF8Em8NooljTCkHLHJsjh8Uvdwx2yZnrvh2my7UZ1a6ftFvWyFoRqa b/9ZrqbkbRjW5B51gHR1V5z548T0H4myhX9gdUAkqZko+juaF0PMjFfKyIVo1++7c00z JH/p4K/U3yQKh5erDG/1FDSoH++v/4IGJrp/wLo2548nUvcNQeUC8b3M9CVwoZX7JmJ3 7wAJ+X0eH9M4j5Pyyibn7dZxyP84uh4BOhibuZprO7VFKGE2F0Hv21J5bUqfSf6AFs4y Q5bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702311859; x=1702916659; 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=uHn6La4SxICedZgCH1SVIME+UAZa7Q6nySeOkcn6arQ=; b=wspvmEP92Cc0vgrYLz3HtUhYMx9V6fR4L1ifV+2wDPOcex2IpF/F1od9zcXfLbsf9/ txw6k1CTtYYFvZAuHpX1sMO9ZMuZMm+QTzVzOZok45sOkC3DhjF/A7V1+Wt5vNnLnxc1 UoVoKCMAIji6IiMGYLeyIfP3LhICh/jmRll9D1NiHg6qJtKobKrhE0qeILMo3NzKVsQJ i/Zhki2pWQPe6bhUx299q+6ZcffUjmWcK9jqQ0+tjduT6zcVkWjrA8CL185fyrRsYqVY HJRhT4+Ubaja1ZgJNsuOwjW/C9itA0FnehBlIXn2cls/nUipRQCcYpUgh1HPSwElwmTM cTiw== X-Gm-Message-State: AOJu0YzS3lVIFmYCpN8HqEHUp3ZlC96gPwUJ0xVHE73YDWoV6RNz0mx1 2dhF+cWxmj0ArTI8KhcXLnTi3Q== X-Google-Smtp-Source: AGHT+IEmf6M1kKz97d9swAyZHxrDmo9Qm70c5j0hECQTw3R9XBH94lhiP5Z8mVJVo/XZZ6lHXKjMTw== X-Received: by 2002:a05:600c:1715:b0:40c:267e:314c with SMTP id c21-20020a05600c171500b0040c267e314cmr2222341wmn.103.1702311859112; Mon, 11 Dec 2023 08:24:19 -0800 (PST) Received: from gpeter-l.lan (host-92-29-28-58.as13285.net. [92.29.28.58]) by smtp.gmail.com with ESMTPSA id o4-20020a5d58c4000000b0033333bee379sm8923103wrf.107.2023.12.11.08.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:24:18 -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 v7 04/16] dt-bindings: serial: samsung: Make samsung,uart-fifosize a required property Date: Mon, 11 Dec 2023 16:23:19 +0000 Message-ID: <20231211162331.435900-5-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231211162331.435900-1-peter.griffin@linaro.org> References: <20231211162331.435900-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-20231211_082423_244090_E64FDCC7 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. 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 make samsung,uart-fifosize a required property. For this platform fifosize now *only* comes from DT. Reviewed-by: Sam Protsenko Signed-off-by: Peter Griffin --- .../devicetree/bindings/serial/samsung_uart.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/samsung_uart.yaml b/Documentation/devicetree/bindings/serial/samsung_uart.yaml index 6af274d2f185..133259ed3a34 100644 --- a/Documentation/devicetree/bindings/serial/samsung_uart.yaml +++ b/Documentation/devicetree/bindings/serial/samsung_uart.yaml @@ -134,6 +134,16 @@ allOf: - const: uart - const: clk_uart_baud0 + - if: + properties: + compatible: + contains: + enum: + - google,gs101-uart + then: + required: + - samsung,uart-fifosize + unevaluatedProperties: false examples: