From patchwork Fri Dec 1 16:09:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13476050 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 DA76EC4167B for ; Fri, 1 Dec 2023 16:11:54 +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=NsbjUfAXafLvWTnn22v44SDPSX7fXLKeKVNcCE7LTqA=; b=E+DSsWyIjY/HMt BkixhvSYbvOVnR12XD/tQRhcoYv06ZrE+gc8gGCounFT9h+5v4/k6atNVdq560jXZ21uzJoiloZoV iLcYYJtSl5lFtz7znz9/8Urs38/h7mc2Y1vRq+i0D4EeFiGtPnKFn8aOvRKxT5QqkH5f07Hx+i0kw rR0ZYt5zV3vLze8rpZntSzn2DdkWjtpmInBVr+0kpLzGX6n/g84RasHSOCAueLVfmqTwWxoB/AHk7 Rr1tGp6yVhOcXHLQpB+EUxj8+tnQEMMafu7Gd3DKjDUIcHxUzhGh1qpqFfMJK4+Twbl4nQX+9PW6/ oS4D0Tm5yWfK3UhHtRiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r966d-00E7sG-2U; Fri, 01 Dec 2023 16:11:07 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r966a-00E7n0-0p for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2023 16:11:05 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-332c0c32d19so1765573f8f.3 for ; Fri, 01 Dec 2023 08:11:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701447062; x=1702051862; 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=C7gV2bTYZ/8fGxngk+WgJOxqZzJsxGLjpBfcpof/uy0=; b=qdpEM1rDvSy2RjcJ15PTsl0LrTTTHB4qszLof7sGLivlQemMD4R3t/9gDgeUrdqiA+ qDdwjxSS7dMNERgQLj7LLiSHclDovJQz+BReGLHj/o2Zw9PvXT7RksNUBK/1ZwHMcj9U TfJNsrjw/tkhjoOVwGch4mmv48FleqEHVHlSBVReOnHSMz8dDPMiWioJg8qTnoVTd87p Pi9demsmdZerJbSL4G12DIHQ8xDtXjOXg0GzIbEq48gCwJzqV1nVqBwcEQA7mSe3HUc2 S5IjvoHypqevUtvNibH1knaUwEABxYcyphcqwZiHvn4JPYEiF089GOI/3PecJbR2QSx2 U3dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701447062; x=1702051862; 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=C7gV2bTYZ/8fGxngk+WgJOxqZzJsxGLjpBfcpof/uy0=; b=RVFNjdN/fToIHp/8YFSeRtkn/GrjaqVOhOHhw2KUwPpnmk4VSu8MGcTwK6+nkz+x7y 6rbvMpipfIesB6fwUbB8PjmT9WWaZsAIG+CKEDMjIUqaiIQgI0+XvCThhF5MbiddZPMv TPysp+ZGxv/oiMEXw0Ao7HTqa1B1d8fD0HXqQmvLuvnHl+Ij2sKl/ptIt3pM79pg1eDA UD+OQeHZHCuIUVpMfRPpOKUnYF9/uV1RyrpE4Zh/5QBAxkvnIJwUPM3Nq72DS5J1w1wZ gkNybkTkQ0US/dnTqsB+caElwZm/XyPKla8Ox9NK2lKPuexaQLtU67nF7vgKMTOb57bp P+Dg== X-Gm-Message-State: AOJu0Yz0mojLEQst8w24Cga5lY9Vrgq9/HgvUIPTGlPK36yzazz55YtW pqjYABjVPzMvyNbFvECJV7bdLA== X-Google-Smtp-Source: AGHT+IHifnPnjwfFbRUDi0Dq/CXTdTB+43Bv53XwrhOqE0a/iXWMk5yDdxyInhmCzVvC0YTegqDPjQ== X-Received: by 2002:a5d:63cb:0:b0:332:eaa7:56b0 with SMTP id c11-20020a5d63cb000000b00332eaa756b0mr1048507wrw.14.1701447062005; Fri, 01 Dec 2023 08:11:02 -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 cg16-20020a5d5cd0000000b003332656cd73sm3907386wrb.105.2023.12.01.08.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:11:01 -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 v5 09/20] dt-bindings: serial: samsung: Make samsung,uart-fifosize required property Date: Fri, 1 Dec 2023 16:09:14 +0000 Message-ID: <20231201160925.3136868-10-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog In-Reply-To: <20231201160925.3136868-1-peter.griffin@linaro.org> References: <20231201160925.3136868-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-20231201_081104_308946_346F4CA7 X-CRM114-Status: UNSURE ( 9.84 ) 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 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 --- .../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 ccc3626779d9..65d5d361e8f4 100644 --- a/Documentation/devicetree/bindings/serial/samsung_uart.yaml +++ b/Documentation/devicetree/bindings/serial/samsung_uart.yaml @@ -133,6 +133,16 @@ allOf: - const: uart - const: clk_uart_baud0 + - if: + properties: + compatible: + contains: + enum: + - google,gs101-uart + then: + required: + - samsung,uart-fifosize + unevaluatedProperties: false examples: