From patchwork Sat Dec 9 23:30:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13486186 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 6B018C10DC3 for ; Sat, 9 Dec 2023 23:32:14 +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=iUwWyPZO5clDcf+Y/ZVgsi4hDarE0YGsNugHPa8iMvk=; b=olBFZt9YBg7XAE xDazvEzJVi20DscS3CRvfvU97YeSx/hOsjK2RODzB9RsLctic3o8eLmRFF4Wq8jS8AJS2gSYcaNGf YZN2UCIwojmQCincRwmrvEALufg35aPNyh4lyQHEyFktEvTGdY9ZD2gKUlHpqbUo81lwKHgsw11zs Ama5qCGYgZk//V5UYubWMlfmOomtm2jbhLE85yq2TwrhRqDRIXTqPg9o8SXVUFrvvV0ewsfaeD1aw pyw8Zi8js+R9VH/kX+DYCx0VyjRS+5x1paMD2bR99m2D1IGLY2bWUwkJvpdAb1YP32EttXogWH68t NdYDjVvydWvKZhc5cESg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rC6nK-000h6b-2V; Sat, 09 Dec 2023 23:31:38 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rC6nA-000h13-1w for linux-arm-kernel@lists.infradead.org; Sat, 09 Dec 2023 23:31:29 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40c41b43e1eso4849285e9.1 for ; Sat, 09 Dec 2023 15:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702164687; x=1702769487; 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=vCEASn12FKDQVcaKLklq1cpwGIzIXESUDgNj0x2vEcU=; b=OI5VVzJcczc0hzWr2Z3ZeGpjUMc21HBF6Zi3W7RTMFcy1xIVjUU058+4BgoTP43i1s OezD2FS8xtuDJ50jb3zZXzl9V9swFIoqiahkDe9mCx4ta1RRJrJ2HlJ4MJFs5jcMpjCr uqgRGR43hZPb7VIWzomrggG8gfIwuk5bq8LjHHMeKMJRZe2Z5cZ24DLqIdZXDeEJW/Cu GZCDt0V5KM+s0gjAOB3NlhgskD5/tLN+nYyZAZavwe2gsfn6+P4xHGa6V321tDV4KD4T P1+OefEyCehOPFEJMQ+p5OLGXXpLDV7+6PAjaqEHD5jSq2Hv8KdCM0Jro6fwjlt45No8 CSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702164687; x=1702769487; 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=vCEASn12FKDQVcaKLklq1cpwGIzIXESUDgNj0x2vEcU=; b=U3vnSjJ86vxFEiXouCECOXW+logPzCQAQONLDqFr4nfELhSYw28h3R+DknKFBDnN2L mlbnea3lteb4JHX+cDhUV1ddPH92tpvvF4fuULmxT5nNoS2hpkKgdVDdh/QlThTbNfFW k4/kgtEHEHddLgkQlEf/CkhX3aL5xqIrXY5ZXbhY2606pPHBJwXEMMtj4/xe0bLi5G9R 72I7FsXvkHwAA1ihaYEfcCI9WkYBiInpKPfXnARjKubNKXaK053Ucd7XVp4LuxrP1+Ij //trpd/1NzIpDhqe2TdUIu/w8IBVDdEyGIKmsMyurdLxs0wZj7Ql8e/y7W5bSwZ38QrS rMqg== X-Gm-Message-State: AOJu0Ywi8bbVNiQ8fd31yeNPfUedraEyVVs49bvWPONOTYFkU713bT5t AIDnOrpxd3Azhj6fQjG+Bqw1zg== X-Google-Smtp-Source: AGHT+IG9NFKYIPe5rKKomdvC+9wrGq3Vso9mHxrAoxj4nIc2vgbE3n1FjmhUM1gg4j+WKaynUva5/w== X-Received: by 2002:a7b:ce88:0:b0:408:434c:dae7 with SMTP id q8-20020a7bce88000000b00408434cdae7mr1035594wmj.2.1702164687340; Sat, 09 Dec 2023 15:31:27 -0800 (PST) Received: from gpeter-l.lan (host-92-23-61-173.as13285.net. [92.23.61.173]) by smtp.gmail.com with ESMTPSA id n9-20020a05600c4f8900b0040c41846923sm1875277wmq.26.2023.12.09.15.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 15:31:26 -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 v6 09/20] dt-bindings: serial: samsung: Make samsung,uart-fifosize a required property Date: Sat, 9 Dec 2023 23:30:55 +0000 Message-ID: <20231209233106.147416-10-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231209233106.147416-1-peter.griffin@linaro.org> References: <20231209233106.147416-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-20231209_153128_642216_529069AC X-CRM114-Status: UNSURE ( 9.25 ) 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. Signed-off-by: Peter Griffin Reviewed-by: Sam Protsenko --- .../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: