From patchwork Sun Aug 11 18:17:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13759802 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 D222CC52D7B for ; Sun, 11 Aug 2024 18:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IeggRLrefKS4NRHp55eXF+21fQVTmgaEKucAb/25uG8=; b=rJLNpxEvEV898VBp6spvCtBAnu 3jdVBYZdzIYi5FCNfMTRszct7VLVZ362jHESot1AwpWWyUSbsDQPVAgqv2idkmdnNPUMLdNM2erKv P+5md9cHbzJ7iOI46WIx9w1vf79hE2hOEKwSCk1JyQaqJEgWOBhCgGwL5N3/iYL9AFaSjvl+9SBJN d9UDT8KSjoJ0ELIlqF15GhOlCsUrlZ1jrx/cNrGtYbDdfCC+qIz6TNdiWyHzMrQ7Ph5xZL3f4ja0M LfEZ+/S/uToAK6i3VM6DxlrD67b2NGZZWjouutaSBOafkGSl4NMz49Np6n1XtJBNjWDu64xb51Dh+ fyWL9khw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD8j-0000000Fve2-257N; Sun, 11 Aug 2024 18:18:01 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD86-0000000FvOq-1khH for linux-mediatek@lists.infradead.org; Sun, 11 Aug 2024 18:17:24 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-52f024f468bso4219971e87.1 for ; Sun, 11 Aug 2024 11:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723400240; x=1724005040; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=IeggRLrefKS4NRHp55eXF+21fQVTmgaEKucAb/25uG8=; b=ziHTBI2xuyZdq07RI4bMFKJ2Ugcx9g9H+kBmulHRrY7svDJJJ0AY0yZEt0qY8i2JGp G0WXLEsZySIvNkZ2C9mpxg5QgyiyJY+eJTQ0e0+s8UC8wHNd804zre/tvmB3Bq8T2G0h bEwsg6m5TQWGcDorzmGttFWmIAf2bU07cS73kghWPg/w4tNePo7uEWQBibSF6et2x28B B6VdOv56QNsUS10b4yaZw5LUFS4STl59zNNnCnDkjuQAbCbjml5c4vEvkQ8Nn7btwNnu aU/oTDGuI/QAsA1r974rijeqkR7KFW/Nd8bLlier2tLtZ3UBsNfCHG8Sc7fk9XRrzfo5 iU8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723400240; x=1724005040; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IeggRLrefKS4NRHp55eXF+21fQVTmgaEKucAb/25uG8=; b=Wa4mzUgSS7SNaYGWxfnWEbKY10QBRfLsFiY68lKMkSm1C+xMZi2YLlME4oSZsPn0iS P/5FKmb1nqt4+BE2OZWCgqSHBY6U8UhM3x/mRkZq897dbWBegpxOQKaITMrVkKQ4u7EC Nt3/oZkTZ5IP0iDwAmZktiew5LFFq2matOJ/GBxxKFNEFQz4vRP39+N/44kzh+9PA0Nu +jjb7CYQUys5+vxx2WJakdCR9KCdoZ3inDiaSUQIo6HSsIsxmcZNaWM+uX3zxuKQyNDp 7PVzeBO0S3dUAXCuVtGtZPcamiwzZtOilw3NAgBr8LZ+7WICwSLokIetpn9BfofqfKVE bHvw== X-Forwarded-Encrypted: i=1; AJvYcCXZMQ/0nvWl8IraQP0aLaWWwgUTHmy5vZCDswAYFaVgYhpaDDc4KNknshw/aADcBq1ja5vm3TmjGNfMZ2ijY2lH2tTOR01A09gXm1k1a/cTdXao X-Gm-Message-State: AOJu0YzTslCr7rSDrtc6J3Iuxi5fIm5jGHgbs+YNJPgZLrs19DrXs6U+ roO2o4s+Z1K9DbHwnQC2gXfstPR60b0bt3FBSuhNURWPr9BYkWNUl/WCPySCXU7RXFjS99K8+UT e X-Google-Smtp-Source: AGHT+IGo96lPHtsUXjiRmEnFORtSb+OG6u30XA7cbQkXT2T8/BFuRGLG4MYUDVs7QheieToXGlwKTg== X-Received: by 2002:a05:6512:110d:b0:52e:f2a6:8e1a with SMTP id 2adb3069b0e04-530ee9d0b5bmr5672768e87.29.1723400240286; Sun, 11 Aug 2024 11:17:20 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a6032c1sm1610593a12.92.2024.08.11.11.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 11:17:19 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 11 Aug 2024 20:17:04 +0200 Subject: [PATCH 1/6] dt-bindings: serial: add missing "additionalProperties" on child nodes MIME-Version: 1.0 Message-Id: <20240811-dt-bindings-serial-peripheral-props-v1-1-1dba258b7492@linaro.org> References: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> In-Reply-To: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> To: Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Johan Hovold , Liam Girdwood , Mark Brown , Daniel Kaehn Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1057; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=o1Pg+WYSU+1aP3K7rSMBYgVoWMnaQYMrTTQy4scWqrU=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmuQAnOXoFWzTi2CdjfGUgn4ZzAkWR4980rKV/3 sazBXuxtKyJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZrkAJwAKCRDBN2bmhouD 17SED/4rdw923+Og8fvQ6box0oI2553Pq0Sy01E56fmyMW37SSXn72uzCc9LccCaq9xWSZsUpHa fGKKaRzDCArQZlxv+37ArKnHQZudrzWpvF5hU+PvVS0BwhaFdmcnay3X8u4D7HjbtY1zPl74MYE 1vRbFIUvuomlKIgnkGtyqnS/qxhaKBSQhoo7QSy/c+1c7fYcBV1TWDfcN62O0mLPjfxxV2N3wMS IQsPCaUDtnDA4QxaORdzjUMrOVv0EsSdrlpn3cQBzG8GMyXM1bl9h5B5RU2lEa7dbiB1CdzuP5e Db1y2CN4fVQ77UFUoNz+YIfkmAKYkzLm6wcYRz9kxPiWu/ES6e0LhDOJl0EOQsixs4Yb3SF5oou MMemYJSH84VgCdaiQZNh/HpJq7awc5PDpD9NAxYNMvFE/UqWL70OGKBNNhuNRHtCQs96M2ibMNi IlmSDrBR6KXRWEnQJ8QJKXLoY0NL8wMR65VencMz1CZ5uV3N4PWs/UW0iPRJ4HTHYKn3HyJtsJb uY8ebPIDItug1xo4oUts4fmciO/Q4JKhli8C6ouFJvAfD2Fzc4RmphNm1Rc7jLwhUGtNfW4dbX7 IVTs0ibDN/ne8F1QHDvrBcwq/2d+TGFLdn6+20WnjvTwRKkHqlDRnIQrtUXpaRkrPQLKlA8kXpn meevMgUeFiHveug== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_111722_496915_544C4E21 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org All nodes need an explicit additionalProperties or unevaluatedProperties unless a $ref has one that's false. Add missing additionalProperties for serial-attached devices. Signed-off-by: Krzysztof Kozlowski --- This patch should probably go via Rob's Devicetree tree. The context of the next patch depends on this one. --- Documentation/devicetree/bindings/serial/serial.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml index ffc9198ae214..40e05dd37826 100644 --- a/Documentation/devicetree/bindings/serial/serial.yaml +++ b/Documentation/devicetree/bindings/serial/serial.yaml @@ -92,6 +92,7 @@ patternProperties: if: type: object then: + additionalProperties: true description: Serial attached devices shall be a child node of the host UART device the slave device is attached to. It is expected that the attached From patchwork Sun Aug 11 18:17:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13759803 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 E095DC52D7B for ; Sun, 11 Aug 2024 18:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=w+nOiSZVTAGXNGH6eneUy74cyMDNkjNt6P9eyPr5+K8=; b=TDk0U0nWdVQkgunNVXWSN4G3WL uwXNA3AkyzDhfyu/nDoGjhtGNmzbsQHkVLz93YG9W4LOLI/TVgb89X0bv+9UbiOtU8YMHjV4q997G HbYrL7yMEm9OpAVsL8+eg/2btACrglIKvJLcMVCVdDy1JPaqEyZGsxvIL1Zs8pe6tiDiD0uxC5C2M xxGC37Y9zIFTVBUWiOtt0r4a5suMJ0cg+JXIopjPKcyXP8hiS0zrHPyY/g9oRMKmuVElayqSHscXY 56uh91+DsxKdJ0oRkRRH+utRlLQ6i5V/JmZd/iAenffgIAslZ/OQFJa6FPdGAQxHA4vkmOrmZuyLv i+biRHmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD9q-0000000Fw24-1XNa; Sun, 11 Aug 2024 18:19:10 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD88-0000000FvQQ-0Uxx for linux-mediatek@lists.infradead.org; Sun, 11 Aug 2024 18:17:26 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5af6a1afa63so4182303a12.0 for ; Sun, 11 Aug 2024 11:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723400242; x=1724005042; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=w+nOiSZVTAGXNGH6eneUy74cyMDNkjNt6P9eyPr5+K8=; b=ggyJHRPdkDj514gzLLITosgpekxff5X/X9yn/d6Q5s/XhzCfbUZsxxxDhXcrmPCysO fvDXEKf4YiwGm6xahD9a0T0AqE5SkeawtFKtquh77ut77NCerRmHFHmoxrCF5TFdbdAA 9p/0W0KitxTDqWpYxy3W+uY4crq4tW5+tGbSpFVYIkJ3FmfxI3jptPalYGdXJEMjQJE+ 2CtqJ0/HLoS/rQVG9+0h9t1QBMo5EqBe+Xv2Uk+tNw6h0qXgaoaYWhbt43NxeFdXNCOW RLdjgtvwhRHkQSBZqX1agmCkAdarelvK9WppOfiagDSp/huudNy3smDrThh97g9zTN5K pOyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723400242; x=1724005042; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w+nOiSZVTAGXNGH6eneUy74cyMDNkjNt6P9eyPr5+K8=; b=mFgujks6q9esnQoPpq5CttCYKjdltYQAcuGSFWIGqLgym41+F8kqxAJtqnbA1nUuzu 3gvndUE0eQeojLzSeq4EkHbA5ufW5mijwMJ9YBpEnzDZFMKb5phliJXVxEknNvyMvTfU qnx6qHnavUIEzmH+AjxglIN9OM1pngneK0HZnefGFJ4P9pFvjchuJuXRSm1G7LCdiTKB N7i4Pdff5COhOzcvdMkXmMfpo+wCk5fI4kswlFq3GKYwqnCbfPrysNKU7JZQXPCDgRu8 IPr5BA3n40xSfa7LdrqE625vozKl3JUtYMRnJMlJNtSToNa0TweZuuxoKnYqgF/ADiFS p8cg== X-Forwarded-Encrypted: i=1; AJvYcCU/lF58VMAg+UeXhJ20FnQF2layORqjFfHtytTTxK0CBJ/CeUqNlpIJwKHcCZO6kgqo9ElREO4Ay1MlW28clfIBBPeJP78AzXotWWoeXNiThmSp X-Gm-Message-State: AOJu0YyweE8YdrrF+9/IVbe66b98qi+bEiFzLSbfCmauYDaRlLN2j89w csot7cgJW9PJRxfa2oCKSnvb3nQU3Es7OkVzrAICGnuoXE6PSivsbs3bj9ogW9g= X-Google-Smtp-Source: AGHT+IE4wd/lzE9MdP0YQr2O7QtAWAX9rdSp6E7hYtxz3L9YKcOJCmCuv9Yp3oMvUw/jaUEBy1XhwQ== X-Received: by 2002:a05:6402:40d4:b0:5a3:8c9:3c1d with SMTP id 4fb4d7f45d1cf-5bd0a598365mr4773119a12.14.1723400241969; Sun, 11 Aug 2024 11:17:21 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a6032c1sm1610593a12.92.2024.08.11.11.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 11:17:21 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 11 Aug 2024 20:17:05 +0200 Subject: [PATCH 2/6] dt-bindings: serial: add common properties schema for UART children MIME-Version: 1.0 Message-Id: <20240811-dt-bindings-serial-peripheral-props-v1-2-1dba258b7492@linaro.org> References: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> In-Reply-To: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> To: Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Johan Hovold , Liam Girdwood , Mark Brown , Daniel Kaehn Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=4392; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=fCBvR5l2kfQnmClu3hY5hsw9S1f2r9uHvUNX7tLyV3A=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmuQAoN9Yt8uNW6oM1DQmDpVszXdEiFyOz3K0sA EqCIJvkLqKJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZrkAKAAKCRDBN2bmhouD 1yCPD/9U+1jRz1m9m7eSRZa9w5LcjzvIpO5u0gAUYN2i7+4oSzeapPYO1x3GLVZXs+CNtSqnGsa CVg8HZ3UA5a2m/BeSUdEYBEIBVAF2hiQMop7GNFrAh/i4ci0knu/KnN8OhbFoEAgQFDh4r9ssvT 9b7riBq5tjmjBJlKOOEGFSjdxyutpeR0nS/h56HFwHEPJ0p0QagC9u9PGUtQ7r4bHHl5Lod1Ifp 4Q4n6xQlYvEp2/B8I+elkuoJX6xcPMK7OA7JuhtiLmyxD6yrlx3KGt5LuFOxZuFNW44Vulk0f13 030ZkZqEnSMeYzOIxNLO6gKBYScLItTPL6bVll9dCm6p0aHOF6NSqZ2I2JZ2pDh36j3S93As6/J j2xkLjLf4UtuQsJLE7ff4XvgN4WOf7jGvh9em4o+X5tMOm3kXQY1r9tXg1L7ChySOd3Rm6Eb1s3 /1MNOq9SdUoQkxEEEO7aYSceeyYVrydUothpc1cai6L38N8ebsNym42PeKhzLUVv9Gwjuw374ez RJNHdgRRD2obRNRIlm5dksIrJYR0zBl5BwQ0Pq0JrUS0SYBC8Hq6CVgbgaB4NOaAT6L0n+/hBl1 PztglQZlN6QhDSheKlYJ+kl5JR/mAxi2Q1TlFIzySPqSQsE48lMkRheqw9IZiutKMXQK81xF16r 1VCwrDNITQCU+jQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_111724_360904_C8AAA09B X-CRM114-Status: GOOD ( 21.05 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Properties should be defined in only one place, thus add new serial-peripheral-props.yaml schema with definition of common properties for UART-connected devices (children of UART controller): current-speed and max-speed. The schema can be referenced by individual devices using these properties. Signed-off-by: Krzysztof Kozlowski --- This patch should probably go via Rob's Devicetree tree. This is the dependency for all further patches. --- .../bindings/serial/serial-peripheral-props.yaml | 41 ++++++++++++++++++++++ .../devicetree/bindings/serial/serial.yaml | 23 +----------- 2 files changed, 42 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/serial-peripheral-props.yaml b/Documentation/devicetree/bindings/serial/serial-peripheral-props.yaml new file mode 100644 index 000000000000..b4a73214d20d --- /dev/null +++ b/Documentation/devicetree/bindings/serial/serial-peripheral-props.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/serial-peripheral-props.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for Serial-attached Devices + +maintainers: + - Rob Herring + - Greg Kroah-Hartman + +description: + Devices connected over serial/UART, expressed as children of a serial + controller, might need similar properties, e.g. for configuring the baud + rate. + +properties: + max-speed: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The maximum baud rate the device operates at. + This should only be present if the maximum is less than the slave + device can support. For example, a particular board has some + signal quality issue or the host processor can't support higher + baud rates. + + current-speed: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The current baud rate the device operates at. + This should only be present in case a driver has no chance to know + the baud rate of the slave device. + Examples: + * device supports auto-baud + * the rate is setup by a bootloader and there is no way to reset + the device + * device baud rate is configured by its firmware but there is no + way to request the actual settings + +additionalProperties: true diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml index 40e05dd37826..30c85768d980 100644 --- a/Documentation/devicetree/bindings/serial/serial.yaml +++ b/Documentation/devicetree/bindings/serial/serial.yaml @@ -93,6 +93,7 @@ patternProperties: type: object then: additionalProperties: true + $ref: serial-peripheral-props.yaml# description: Serial attached devices shall be a child node of the host UART device the slave device is attached to. It is expected that the attached @@ -104,28 +105,6 @@ patternProperties: description: Compatible of the device connected to the serial port. - max-speed: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - The maximum baud rate the device operates at. - This should only be present if the maximum is less than the slave - device can support. For example, a particular board has some - signal quality issue or the host processor can't support higher - baud rates. - - current-speed: - $ref: /schemas/types.yaml#/definitions/uint32 - description: | - The current baud rate the device operates at. - This should only be present in case a driver has no chance to know - the baud rate of the slave device. - Examples: - * device supports auto-baud - * the rate is setup by a bootloader and there is no way to reset - the device - * device baud rate is configured by its firmware but there is no - way to request the actual settings - required: - compatible From patchwork Sun Aug 11 18:17:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13759804 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 45866C3DA4A for ; Sun, 11 Aug 2024 18:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AGFhjis3vEwUW+zmFS0SHZDoiWLXNXD1jilEiEFaOug=; b=BFdpomdUY6AEXWoHi98OO9k75P XnY1mNQMw4iTKASwve781Vl5D7lltsovcOf2w5G6kyY3w1sVWbz86SO8Xa0SNUJbY+wLK1Fcd/VRZ qfodUDsYKGKMxMvK2oCz3zhMolVzX6s4/d0lM7dSRMpDDR+AcXyYsJFjKpURZ/APjI8MfXbf22Kd+ eeiU14spk5RHCukHrJStCBxjiEYndwNcDOO66c9LpnzL0qL/rpxk9i/mdI80LSU+tCFfujUvaozoG YmQ4NWwuzvkvKtO8noV0JwU22sPzeqVaOGGKgpYGHqLfnMawaWBYYw6tz/IHLXXf1DRYqeYzzSkUj qTM4bihA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD9q-0000000Fw2N-3J47; Sun, 11 Aug 2024 18:19:10 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD89-0000000FvRP-3fpG for linux-mediatek@lists.infradead.org; Sun, 11 Aug 2024 18:17:27 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52fc4388a64so5055767e87.1 for ; Sun, 11 Aug 2024 11:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723400244; x=1724005044; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=AGFhjis3vEwUW+zmFS0SHZDoiWLXNXD1jilEiEFaOug=; b=buuce8NLcgRzys7cQBu76mSC3uMd3iVUnJpU/gx2auJh8RBGwlRJ9UgsxLJiQ8Vwdl 5rqFOuTf2zzb+J6yp3fSOwfceyDj8kauZfknQ6ltIqLQNKE8DVnCPB9YehAXLeHFQKko bGr8lTB6Q9y9vn8UVG2bIuZzTEkT9MUJbOQBGNLBNLISuQjKpu5rQH29uPe8uVyjQQtP ORWyBqv4J8sU16oYIRjfx90ZSfvibC1Oie2rwkxPbWs+ROMhYgXn24HHt+NHeQivfh2U gQSLKnGX+jqwYgUDYTKBe3PkQfoVg1e7mCrUQSm38vw/STAzy4PeHhviM1MiW80U8Fcp ktNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723400244; x=1724005044; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AGFhjis3vEwUW+zmFS0SHZDoiWLXNXD1jilEiEFaOug=; b=howycGTY/mQDzq5ow0eZjkfPSlh5inh/PHl+dikEE+14j9DhUNShWbfibbZbvpZisa lWXHXXj3MHYdM5+tR1HFNmeg8Sds+h7GyB3g+cLWmpQ6LUUsxqT0rQikJVq2Q6X5gfKa c1utbI+Zpz0qF04pt3kamnLma2rt4VMk3gMaS8FJuO9RJjN/W9Ex1Q+G8Z3jrGV1SDIx NouaBmVkgRy1tOvP/c2sPfoFkCMtJVINb3EbgiFqhFESnF7GtNFTNTWqHICK5pAPF4Ck jcRVJh2eJt4LjmgheEbNHaF7d0CZc2ei5I8tzA3hokJSViSVf4jYz4meIpgtGri1iGgl V8Kw== X-Forwarded-Encrypted: i=1; AJvYcCVlj1t7tuPqdCX6ihd8ZYKzIn6iTS1fXpO1y6uVlWydHUqgAIJa2jxO0mm03CeUg7qgcQMXiw/tLGpHXD8pJ7yR8qEWcBKh6SaSeswaziDlOh9H X-Gm-Message-State: AOJu0Yykx7j8tQlM92/YsHJFO32BSa7Pc5cvOC5n3tVqFvqwyiMRSJaD +nRuTbi2tadZUqymGE5YsgWhM9+gv5tJhVhQ+fhc8pldeRCfXiVL6jnpYYymBQ0= X-Google-Smtp-Source: AGHT+IF1UTHAP/uCXS+U0LCWoWj6La4p0Jxj1fGCJBYGFjAqz1RV8j1pRFl9F80FQYyJE89hUneeuw== X-Received: by 2002:a05:6512:3ca4:b0:52c:d905:9645 with SMTP id 2adb3069b0e04-530ee998c1fmr5849572e87.13.1723400243767; Sun, 11 Aug 2024 11:17:23 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a6032c1sm1610593a12.92.2024.08.11.11.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 11:17:23 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 11 Aug 2024 20:17:06 +0200 Subject: [PATCH 3/6] dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory MIME-Version: 1.0 Message-Id: <20240811-dt-bindings-serial-peripheral-props-v1-3-1dba258b7492@linaro.org> References: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> In-Reply-To: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> To: Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Johan Hovold , Liam Girdwood , Mark Brown , Daniel Kaehn Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=5616; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=Shykp2EypMXZ/QCtrfeiM+kDiKjZCEK90ANRVRIkFao=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmuQAogwO47g5/difzXmXbrkByuY1vS2kO0De2e ZKPfbrsPguJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZrkAKAAKCRDBN2bmhouD 147TD/474Iq37wLRBRyecqclhH0wNzPuifYqBgjZqQHezZmQbpXVDVK1vf0+LCfc/ZtyCR/Sv4m jltJ2V8uBF3IPaQHcicV8n9tMtUWybfMJjDr6tnbBhpNS+X2Aa87SO75vBBtCnrSVTfkXK0o8YX RSKBy6GOo67UIzbasCmS+HYdpr9ERwy7K+3TNHSmhLRCLRBfVrDMG2w9u4Y7LvIxIgCAiaNOpFP o1in1Juq7JrW3qkKdH3xV+H+b72v5vAb6nWM1uVVeSrA2nWNeVrAvV2ckQa6FtHqozXL3RiTV5k aKMfLyL0DOT23SbOPUVV7GLTy/B1lKShYkUl4EdD1n49w1IWbKVaCXtDj173oDwdXe+LxVplYGf kDZ7F3DsQeriuNXM3nndbXGinKgjOnJWZnp3mQtog++T8upjSSWQP7I0PRhbV1SXYqN1THYDy3G vTspwv7Ox5oIvZ9wQiNf1+7xnB9PlIIo4JbdIo7qSyS8XnTcMrS8KmdB0YZGhR7rHeUrx7S4q9f 8uVqhBw7RiLUJKjSESXgCS2KLsoQ6KkMHJF0zxjO7oq0N4WyW/awYsXliZazsBLE+ofM2uoB3tq G9hVXGUpr8+1AFc4Hzv7DzCM93Dbm7GEJ7FxjCjUF480EyBRObg3LOB12RcecvO90dzdJeG0OhG kbLDwaE43Filc8w== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_111725_966297_792BEE5A X-CRM114-Status: GOOD ( 13.29 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Some Bluetooth devices bindings are in net/ and some are in net/bluetooth/, so bring some consistency by putting everything in net/bluetooth. Rename few bindings to match preferred naming style: "vendor,device". Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- This patch should probably go via Rob's Devicetree tree. This is the dependency for another Bluetooth patch. --- .../net/{broadcom-bluetooth.yaml => bluetooth/brcm,bluetooth.yaml} | 2 +- .../net/{marvell-bluetooth.yaml => bluetooth/marvell,88w8897.yaml} | 2 +- .../net/{mediatek-bluetooth.txt => bluetooth/mediatek,bluetooth.txt} | 0 .../net/{nokia-bluetooth.txt => bluetooth/nokia,h4p-bluetooth.txt} | 0 .../net/{realtek-bluetooth.yaml => bluetooth/realtek,bluetooth.yaml} | 2 +- Documentation/devicetree/bindings/net/{ => bluetooth}/ti,bluetooth.yaml | 2 +- MAINTAINERS | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml similarity index 98% rename from Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml rename to Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml index 4a1bfc2b3584..e49e4146736f 100644 --- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/net/broadcom-bluetooth.yaml# +$id: http://devicetree.org/schemas/net/bluetooth/brcm,bluetooth.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Broadcom Bluetooth Chips diff --git a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml similarity index 92% rename from Documentation/devicetree/bindings/net/marvell-bluetooth.yaml rename to Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml index 188a42ca6ceb..60b90cd62013 100644 --- a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/net/marvell-bluetooth.yaml# +$id: http://devicetree.org/schemas/net/bluetooth/marvell,88w8897.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Marvell Bluetooth chips diff --git a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt b/Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt similarity index 100% rename from Documentation/devicetree/bindings/net/mediatek-bluetooth.txt rename to Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt diff --git a/Documentation/devicetree/bindings/net/nokia-bluetooth.txt b/Documentation/devicetree/bindings/net/bluetooth/nokia,h4p-bluetooth.txt similarity index 100% rename from Documentation/devicetree/bindings/net/nokia-bluetooth.txt rename to Documentation/devicetree/bindings/net/bluetooth/nokia,h4p-bluetooth.txt diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml similarity index 95% rename from Documentation/devicetree/bindings/net/realtek-bluetooth.yaml rename to Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml index 043e118c605c..993c607eaa49 100644 --- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 %YAML 1.2 --- -$id: http://devicetree.org/schemas/net/realtek-bluetooth.yaml# +$id: http://devicetree.org/schemas/net/bluetooth/realtek,bluetooth.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth diff --git a/Documentation/devicetree/bindings/net/ti,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml similarity index 96% rename from Documentation/devicetree/bindings/net/ti,bluetooth.yaml rename to Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml index 81616f9fb493..1f507ddccc3c 100644 --- a/Documentation/devicetree/bindings/net/ti,bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/net/ti,bluetooth.yaml# +$id: http://devicetree.org/schemas/net/bluetooth/ti,bluetooth.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Texas Instruments Bluetooth Chips diff --git a/MAINTAINERS b/MAINTAINERS index 494bcb5e6f35..ae9a81df25ce 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14269,8 +14269,8 @@ M: Sean Wang L: linux-bluetooth@vger.kernel.org L: linux-mediatek@lists.infradead.org (moderated for non-subscribers) S: Maintained +F: Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt F: Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml -F: Documentation/devicetree/bindings/net/mediatek-bluetooth.txt F: drivers/bluetooth/btmtkuart.c MEDIATEK BOARD LEVEL SHUTDOWN DRIVERS From patchwork Sun Aug 11 18:17:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13759824 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 E799CC52D7B for ; Sun, 11 Aug 2024 18:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gHTvHF3MuIrehZRyYr5ZNOACu8Umul1Ou6KdEhJmaog=; b=QNarHG9PPT8AONSBEMGYkc5iIR V+jyJ426oqyuWVxdpp/eX0OF+iX0k5Qu8Utcnqc9jK5qzM/mTGI/H+/cY2KChTwhJdSVUCDAD0ZCR ndfb87Y5eyMJ9uNpYauqW9z/k2VbwydkzN6ZgG/fUeZytJSoyDkl5S96BfJn1fAStHAlobX/QOksi +HYPZ4WX89g3pfIWSxT37iRRIV3TqXZNkLL4kClAm2GaxMx0+ySZ/KPhoELRYlVb9CUswY6R/1O7V IVgNhAo8TpBGIQo3iPnQHMgEQUvCF0Xn/AS24cLzmnxwOqvR88V+Q0z37fh5Q1N++ecNqfi1eqDyE o+7uz8gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdDAz-0000000FwSA-2gyh; Sun, 11 Aug 2024 18:20:21 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD8B-0000000FvSb-3s3m for linux-mediatek@lists.infradead.org; Sun, 11 Aug 2024 18:17:29 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a6117aso1484345a12.0 for ; Sun, 11 Aug 2024 11:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723400246; x=1724005046; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gHTvHF3MuIrehZRyYr5ZNOACu8Umul1Ou6KdEhJmaog=; b=PVu+hPpa/ccpZ1KqfBRE3Apz1wYMswm8IWHlNjtWatFUQx2/l7DIquE/FoTT+3DgT3 W26GIJNZzXkp52GOsbuls3ZnhkcO5RA+wZRfv0h7Zc/fM/aoRlEIUi2JwVJ/VBLE250v SJM5VfcWM+VDkkJOCH6ZN8MXOQa05O/lFq3ABU4fTCiDcvKX8e9f+JcGAhLieaV7JBs7 xjJN1oAnEHu/YAxG+FTAr2+/1KMgEE0jPuju/PYNiNH+YaOot7H2i3g7lT/lJwhGCwXZ UoSbN9CWPLN7xOxIwSUpFKF5Q4k/m0zk41Kf4kt8tJIKQQcph1QnG/PtamsoARdNkmOu XSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723400246; x=1724005046; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gHTvHF3MuIrehZRyYr5ZNOACu8Umul1Ou6KdEhJmaog=; b=UldZchX05djc95fVJcGTR+blaycauMgS7CmiN0k5Q0YtLZnXHmbga3ESpF5nnTEkgG RbFua/Ulwi3SHgNmfUmifhEjn81w4lWMflSJD4YcxJmzhjTh8N2RQGLXmN+1vgq7Czhy BUfAoQDgf3RRLO2Fyvluz1W5zUhoOzEbN/sYuiVfh2s/BrETAGIL5UAlHkO8C71/5RwR uPqxVNhiv0ksTot8LcAzjwj8ENjmQk6iTbuGp9KoAfGvXokTW5bKx+H7NY2XIqc1knhU x3d34QJQZlXmiJRkct/ieUDNwpYZJY+48HYEzgfTjJlLAp0hDGSzlg1Pk6ijoouSx50J Rw1Q== X-Forwarded-Encrypted: i=1; AJvYcCXnOo9uJHt5b60tDqZs7vLATwwiFPzbVoj9t5R46sXc/a07edvPfx9uOytVsjm0i+1F4YA6uOIMgvc0thegkkWuPjOO5WfYHO4R46yrFprCFfB9 X-Gm-Message-State: AOJu0YysXUV5IJs2415UxucUwhJ7Ks8S1Y9DwRUHFgw/LGByhRZY7jf3 BUSQuzSxcAgzyGxc1m5ZCtsOa7EIl/0TY9lC8NwlJCS1DqjKwkhFqoipY+XH5bI= X-Google-Smtp-Source: AGHT+IEmj+sNFihQ08rrfGWG3a26LT65ynSemEMCSGFHc+3kbvAO24eNC8gMDj/QsltK+PB9TZrL9w== X-Received: by 2002:a05:6402:1d4d:b0:5af:5342:c5c0 with SMTP id 4fb4d7f45d1cf-5bd0a61c193mr6401870a12.23.1723400245584; Sun, 11 Aug 2024 11:17:25 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a6032c1sm1610593a12.92.2024.08.11.11.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 11:17:25 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 11 Aug 2024 20:17:07 +0200 Subject: [PATCH 4/6] dt-bindings: gnss: reference serial-peripheral-props.yaml MIME-Version: 1.0 Message-Id: <20240811-dt-bindings-serial-peripheral-props-v1-4-1dba258b7492@linaro.org> References: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> In-Reply-To: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> To: Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Johan Hovold , Liam Girdwood , Mark Brown , Daniel Kaehn Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=3362; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=mvi7UVUD9P+O/9ZF6mKgCskHov/XbgcktorvQahRWR4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmuQAph8zdk2rT4gjVTPNarYAGEQtTiGQ+tPDnk z+uS96hib+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZrkAKQAKCRDBN2bmhouD 123oD/sHJtccDxWIKerFfLfEW5rsmWD8qOVMuFTY5l84PnocCY4R8F48r/EZSn68llNA+9ZmLq7 9y4ttt7gyZ1Um1LtQGOU8iMx/qOwFZlok9n7T6s6SNEWutgQ85Xl9pxuwl5nhGZfjbRxmryrU+c Nbb/X57g466nS9vp5O+if35f1HiFvdexj49/cl8NRRhrz/o5rvzThuoTToV7luXIV29oZNzH5qj RPaQGmcInaS3hUxQLNrWSHvzUct8ekruhnD2WjqupAhLCeyHqy0yT0mthXLNwcCl8DWpHr+eCqF x9r5jHVkh64bqoaU4qV97KLjsUmLS45x+MLOERasuGMtosuSTgRbOgTwTeo3SxCBTppolrEU5c4 WhioFU3jjWEFUE6EywTduzyjPM0ouHpjcpq+Vt+e6OC2YpD9VJ8uGgm3vHx7tCxd4dOg5Vwojb3 Opv7ut5m9kkttwlw5eTtVdHGnM5aUQYUcfottSPuu9X8pbalTs1G2ao64JI+pMXQhr83YYIQie/ IsQivDNOtCtYjJBQz0ReqTca1rXa9u/cyxjVCKnoe3ayenxbNDodPnH0cqBFjoqINN369zhGZ/r WW0wPHp7Jk3MNChrIcW0xpivPckAHrPgdsROnoCBU7UGO4EgsRbyY18FTfCmP3l9W6JQ45/LM7c Howv8GVMJJo3Mhw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_111727_982887_887058E2 X-CRM114-Status: GOOD ( 12.65 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The "current-speed" property is not a common property for all GNSS devices, but only to these connected with serial. Drop the property from the common GNSS properties schema and instead reference common serial properties schema (for children of UART controllers). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- This patch should probably go via Rob's Devicetree tree. It depends on the serial patch adding serial-peripheral-props.yaml. --- Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml | 1 + Documentation/devicetree/bindings/gnss/gnss-common.yaml | 5 ----- Documentation/devicetree/bindings/gnss/mediatek.yaml | 1 + Documentation/devicetree/bindings/gnss/sirfstar.yaml | 1 + Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 1 + 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml b/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml index c21549e0fba6..089166089498 100644 --- a/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml +++ b/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml @@ -18,6 +18,7 @@ description: allOf: - $ref: gnss-common.yaml# + - $ref: /schemas/serial/serial-peripheral-props.yaml# properties: compatible: diff --git a/Documentation/devicetree/bindings/gnss/gnss-common.yaml b/Documentation/devicetree/bindings/gnss/gnss-common.yaml index 963b926e30a7..d4430d2d6855 100644 --- a/Documentation/devicetree/bindings/gnss/gnss-common.yaml +++ b/Documentation/devicetree/bindings/gnss/gnss-common.yaml @@ -35,11 +35,6 @@ properties: GPIO line, this is used. maxItems: 1 - current-speed: - description: The baudrate in bits per second of the device as it comes - online, current active speed. - $ref: /schemas/types.yaml#/definitions/uint32 - additionalProperties: true examples: diff --git a/Documentation/devicetree/bindings/gnss/mediatek.yaml b/Documentation/devicetree/bindings/gnss/mediatek.yaml index c0eb35beb2ef..2b9e5be4ebf3 100644 --- a/Documentation/devicetree/bindings/gnss/mediatek.yaml +++ b/Documentation/devicetree/bindings/gnss/mediatek.yaml @@ -15,6 +15,7 @@ description: allOf: - $ref: gnss-common.yaml# + - $ref: /schemas/serial/serial-peripheral-props.yaml# properties: compatible: diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.yaml b/Documentation/devicetree/bindings/gnss/sirfstar.yaml index 0bbe684d82e1..7e5da89a5ad7 100644 --- a/Documentation/devicetree/bindings/gnss/sirfstar.yaml +++ b/Documentation/devicetree/bindings/gnss/sirfstar.yaml @@ -21,6 +21,7 @@ description: allOf: - $ref: gnss-common.yaml# + - $ref: /schemas/serial/serial-peripheral-props.yaml# properties: compatible: diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml index cd80668182b6..7d4b6d49e5ee 100644 --- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml +++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml @@ -8,6 +8,7 @@ title: U-blox GNSS Receiver allOf: - $ref: gnss-common.yaml# + - $ref: /schemas/serial/serial-peripheral-props.yaml# maintainers: - Johan Hovold From patchwork Sun Aug 11 18:17:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13759825 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 54CD9C3DA4A for ; Sun, 11 Aug 2024 18:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4I1MOs4RlICrHo6+3Xh5oqbsEAM8Ad9zumEnWMGczaU=; b=Flob+b5EWDI5hThv/UlJRQzRyy eSU9Bpb2lXkxnoda2sfZXSEN+EoZ/Qg27Ca/IoAtzo1wp8dQemoGUt4yGtpdYw/fLsIl5MRh8OMti dQffk3XfjdGHeVsVlNpA5vS8HhFdOm7FOY02W7WDXAKwFYAnsJET0cqzJ7lmk2DzxjEWIoxWUvmRu 9Z2iIn7J8v0bUq3Q0sAV719Gii/F+BTO44VvUy1rPQKNQs0A0YjF0QspIALNiuRjk/0IXXbZ5pqS1 HTEhKpBp5YdkooS9Zh69yN+Z1yZWAsODuamUno9M7NaGO+/KSCvXy11u7vjNDSS2fnIH1P35MWu5r 4P0D7YPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdDAz-0000000FwSX-4B2M; Sun, 11 Aug 2024 18:20:22 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD8D-0000000FvTY-02OE for linux-mediatek@lists.infradead.org; Sun, 11 Aug 2024 18:17:30 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2f149845fbaso38579241fa.3 for ; Sun, 11 Aug 2024 11:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723400247; x=1724005047; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4I1MOs4RlICrHo6+3Xh5oqbsEAM8Ad9zumEnWMGczaU=; b=pWJwhzY38gO7ekNFpdKpI+NPqJqG3Ug6DpuiLrFk+f+qtHxqx6knK57i9kh3G5JYou tM+1B9e8PHIJq/XQs3uf9bbHptKG5e4Sxr7jjw4qE3ywnop4qFagJvErz+i03FmvV8xA XbOPbQHFfju75LcDwB6Cg1VRua41YYJ0GSphg1GGDasa26Gw+I0Ws5gQa8HnkS7trbZI 11BaL6x/VuJullrisWdA+fd/zyyFNLqnKgDonlOamvT+3mh1S/nr9f9xc/DGPFGTuKGN A1RlgaNApURuPNv19bGNcyMLqpXMwU/y3Q5EMD215Nbwa1ot7MccZ3m8CKgJavwfhJfs JEng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723400247; x=1724005047; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4I1MOs4RlICrHo6+3Xh5oqbsEAM8Ad9zumEnWMGczaU=; b=LQpp+ADrKSHlcB+SYihdjiRoMoys5YJDSkwZMCRtISbfFjiBDe4vR7hQVaNUcl6voz JC5YhP7QJRIgO03xEiyG8azFsDzuCs9UNmfKntD3jSVwvS+3pFIFrxkmwwPFot90KH6Z J1xXwWefOdTwx8IsNVDGdx+x/c2wi6IW5EHafGvjBU1gU9hlKdXXTWqf6ppDVWLgR4jm ijOiBnqyWscZxU2cXG+DisYHpPu4SxsipJJ93bAKN23t7+a6FEg4dvQCYes9IjkRmBq8 2xnADrzDutBnIzWbT+ZVrKl04O7BmswMx3zDM2KCrP5v88vCYR2bWRqXySMu4Yef4w2E 2cDg== X-Forwarded-Encrypted: i=1; AJvYcCUyU/6Pp28Q/FYX86zTA1W9hdM77D10St+eKhKY7UoUbqGmLXyt6KHsjdBmWYrUObffFke7IM5eESYZKYANtYuJGVbnkazhnnAbWWPPjd147lF7 X-Gm-Message-State: AOJu0Yze3JDR7sIg8uJx57ktQVas0jYPI8hkpSeWnRsoL9kFfsPmQjou GNpRzZKok9eqcTq2+KMM199ei++I4auD+dopEGu9AseOK/Ae6QmXk3WRlRJ0UZA= X-Google-Smtp-Source: AGHT+IGZk8tSp6TCMLyX7Nh8mlsOe+NTSYoLKUIveF7rdM/yJGip844M6WYN5Bdk4so7A4B+EQy7Tg== X-Received: by 2002:a2e:b4b6:0:b0:2ee:8ea4:d649 with SMTP id 38308e7fff4ca-2f1a6d0d517mr51105321fa.16.1723400247459; Sun, 11 Aug 2024 11:17:27 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a6032c1sm1610593a12.92.2024.08.11.11.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 11:17:26 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 11 Aug 2024 20:17:08 +0200 Subject: [PATCH 5/6] dt-bindings: bluetooth: reference serial-peripheral-props.yaml MIME-Version: 1.0 Message-Id: <20240811-dt-bindings-serial-peripheral-props-v1-5-1dba258b7492@linaro.org> References: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> In-Reply-To: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> To: Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Johan Hovold , Liam Girdwood , Mark Brown , Daniel Kaehn Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=4621; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=ODWT4GHR30t+QnDSZHKStQSpKmwtKvyvXE4vBLxh1WI=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmuQAqOJOTxfm6MHExpo3dgYQ9SqbgDR4o/cpL6 8ITUCeJOmaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZrkAKgAKCRDBN2bmhouD 1x0NEACAsDcv6D6/XYWk4Es7HPPW2CKoBfs2JObs/84LP24gWNYTG4vPD2kbpM8IEJAuwI2LUI6 3+tUxQ80u2pm2yVqcooaCI9qGdr1MGrtbP74+dct5wdWzdu5B2eJO83Zu2YCClBQ5zdR/8SErcP 5nNCKtK8GeOkcupUkK+IrP98Ahc4DwsR4oAP7kUzIMxD3i6sRFFCGHluLtn6MrgqDGqV6tDwucQ RyiE4kurOOLkY8+pMJZtzhAfS+i6JIqLgAEK7HJzod7wypE+i5Cd5zYpxSV2CTQ28MMZXdNx7ta bV8g0oByZxi2yOZdiTxOKVJQAC7kDT/WCkheov0k4mCdJ6vog4lj9EqHANJ7IqHAb7QcBK8uFRf Lx2UmPT9ZEjGUobHioIYbprCTADQLnsAQkvLAnoIiEZ9NjDIzDJcumx5/Cov5sfIl5OBwHLGMnx 1R/C05mFXKulqUk6XuXRl/EQ4McsS1QlaA72sJo/ra+E3cXDSu42JuTzYZExbxLuGxEuwwAzcuH SD3EVCLnEXLRMbYRzaHsqhYnAF6HyShOi6zwXF8TRsN1nK+xBTbWUzq5HwzBZ9lAjfE+2Y+tPn2 0Pl5cIPKBKY88wpKY1bQipWt4sQAKkJJmSnGDfAIIrTws2/S9aWvEsh8zxSQNNcnmvMbj02+C95 ZnmGsbT4r2kWqMw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_111729_132887_BCA35FE4 X-CRM114-Status: GOOD ( 12.64 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Reference common serial properties schema (for children of UART controllers) to bring common definition of "current-speed" and "max-speed" properties. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- This patch should probably go via Rob's Devicetree tree. It depends on the serial patch adding serial-peripheral-props.yaml. --- .../bindings/net/bluetooth/brcm,bluetooth.yaml | 31 +++++++++++----------- .../bindings/net/bluetooth/marvell,88w8897.yaml | 4 +-- .../bindings/net/bluetooth/qualcomm-bluetooth.yaml | 4 +-- .../bindings/net/bluetooth/realtek,bluetooth.yaml | 3 +++ .../bindings/net/bluetooth/ti,bluetooth.yaml | 3 +++ 5 files changed, 25 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml index e49e4146736f..3c410cadff23 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml @@ -119,29 +119,28 @@ properties: items: - const: host-wakeup - max-speed: true - current-speed: true - required: - compatible dependencies: brcm,requires-autobaud-mode: [ shutdown-gpios ] -if: - not: - properties: - compatible: - contains: - enum: - - brcm,bcm20702a1 - - brcm,bcm4329-bt - - brcm,bcm4330-bt -then: - properties: - reset-gpios: false +allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# + - if: + not: + properties: + compatible: + contains: + enum: + - brcm,bcm20702a1 + - brcm,bcm4329-bt + - brcm,bcm4330-bt + then: + properties: + reset-gpios: false -additionalProperties: false +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml index 60b90cd62013..2fc36874deb7 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml @@ -19,13 +19,13 @@ properties: - mrvl,88w8897 - mrvl,88w8997 - max-speed: - description: see Documentation/devicetree/bindings/serial/serial.yaml + max-speed: true required: - compatible allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml index 68c5ed111417..67f95e60ed3a 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml @@ -98,8 +98,7 @@ properties: vddwlmx-supply: description: VDD_WLMX supply regulator handle - max-speed: - description: see Documentation/devicetree/bindings/serial/serial.yaml + max-speed: true firmware-name: description: specify the name of nvm firmware to load @@ -118,6 +117,7 @@ additionalProperties: false allOf: - $ref: bluetooth-controller.yaml# + - $ref: /schemas/serial/serial-peripheral-props.yaml# - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml index 993c607eaa49..7d567122bac9 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml @@ -46,6 +46,9 @@ properties: required: - compatible +allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# + additionalProperties: false examples: diff --git a/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml index 1f507ddccc3c..290abc22e18a 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml @@ -74,6 +74,9 @@ properties: required: - compatible +allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# + additionalProperties: false examples: From patchwork Sun Aug 11 18:17:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13759826 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 17709C3DA4A for ; Sun, 11 Aug 2024 18:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JvbZ+8SyXPbkfWIxq8fFFxIwmoC4vttG1Fog7o3RX+I=; b=4C9pVdbpC3YseVxe6eEIStkZ4A i85eeYqelLeoxGuFjzm/aP6ymuWLqje41ngSZtx1eT+R3FESTld4andy35D5BHTppikhW46q0Zs8E 5zdyX3VUGrAPz28D1Zi4kQbDIxHzVoUOhV20QF3h99BP4iUCOms6bQ8Vj9ziJfF7LEvpHZClBmjQs 2j4zkbewesYP7EQhzG+O28Zbqr6auBc2Z3pdYywJxVObB9BvZ1IQvADc3fs8KazsfOyLT31uPGQkQ w9Cj8YAEOLpLP9vIUKYg9h4ETFVgP6RqKWROPAvsHg3gkbQbo/kBG8tHqoKYJSy0WdSXbIvmSkqwR vLjTIW0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdDBn-0000000Fwdx-3HTQ; Sun, 11 Aug 2024 18:21:11 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdD8F-0000000FvUG-2our for linux-mediatek@lists.infradead.org; Sun, 11 Aug 2024 18:17:33 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5b391c8abd7so4229072a12.2 for ; Sun, 11 Aug 2024 11:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723400250; x=1724005050; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JvbZ+8SyXPbkfWIxq8fFFxIwmoC4vttG1Fog7o3RX+I=; b=OE95aN6F4Xm3ASrG0yvyg5st1EuiCuA1B4x98ybfaJp2AA9tzTIaxBFu0/LCvHFd49 fmwifFHC7jWl2LxbsWXLH2yfR4/ai3PSNR9U+lyCMPHeHiyZngX8id/Qpgt/XJJw+99e 6h3lBmY6X597ixhLUCB7XWawNBHb2VrGgSlzfybxe3kanH3pYdziI95wpWECx9SZ4P0F 82OJydqj/tf7603YmPncxHObyb/IQN85DkCbKNcSv65a9yv31dSlYvhWbmncl6/MFqxj A+e486seZO1Ajvugce3ekD/1mUIlrRxoPdlo+CHgu645vKXqA+EhNfiCsY7UvLlxqg79 TCRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723400250; x=1724005050; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JvbZ+8SyXPbkfWIxq8fFFxIwmoC4vttG1Fog7o3RX+I=; b=jt4L38s13Wh2iYqwUsIOOyRQGQhZc7QoyEuQEHxB6Tp4IeiVn2Sb7MQGtFslBsKPAx hmF3GPboCopXMfKZpt2tfJHAFIeRo16+5uZeyv8sEDNgmCfPPe2t/1juFxqClgcQdZnl bG5U2P2iIMW7OWIKTtBtqBwB5UZE7fXitWBIg0IFVMWQQckPk79gNeU8pn6NtGkns4pj ASzcOReLiEboTNC0TjPGNMqC8X6+k4eRjCPntxmGs+ofTEvvRHbKX8XTft/Ws82rMJHq VQLWdnRqqqqMgBwhsG8nR6x1rXciDNrIgJFtku/rl7WC//3ccpoNLusvSt8XQCU32U5o NCXA== X-Forwarded-Encrypted: i=1; AJvYcCW7CuFDTYZpk5YgnhiEt9ZPWI2GbCFMVkW+Jpm0Lmw30DurgskgZQMaOOxh0VAf0SgE/5wkY9WsDui/XFQTsYHph1QIB+fF7SVmxoLJiChr/4f4 X-Gm-Message-State: AOJu0YyVvxVehONsPOFnJtVf/u/reoBd6atYiJrWHD26CuoKGn6s/C3t vGeN4uAu/+KqkPxw9Ib/mB1hFFSWq4JGjLtxcZd0Qi4GoZDRhaRfFU6A/9WaOXs= X-Google-Smtp-Source: AGHT+IF845o0XSP5n/BwrlmriZw7Zb6P6jQ3BpfatLkLOENLMyaMOLi7UlDJBP7b5+N/eNUzZ5p81w== X-Received: by 2002:a05:6402:458f:b0:5a1:c40a:3a81 with SMTP id 4fb4d7f45d1cf-5bd0a6603a2mr3481173a12.35.1723400249713; Sun, 11 Aug 2024 11:17:29 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd1a6032c1sm1610593a12.92.2024.08.11.11.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 11:17:29 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 11 Aug 2024 20:17:09 +0200 Subject: [PATCH 6/6] ASoC: dt-bindings: serial-midi: reference serial-peripheral-props.yaml MIME-Version: 1.0 Message-Id: <20240811-dt-bindings-serial-peripheral-props-v1-6-1dba258b7492@linaro.org> References: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> In-Reply-To: <20240811-dt-bindings-serial-peripheral-props-v1-0-1dba258b7492@linaro.org> To: Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Johan Hovold , Liam Girdwood , Mark Brown , Daniel Kaehn Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1136; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=i+lTvqxiMRXFw4pW4fXIUgAA4bXjhigtS13EAIn2h9I=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmuQArOhpNatW52wzJpXmws0fDjOokzOoUe8LaC lsqDe/iqmyJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZrkAKwAKCRDBN2bmhouD 10kpD/9SOhRnOR0/feUFtJ3/1bim82Fw4+7IumOZPA7eiWKJANvWp2lMdImnWInzmSwBhyQreJX CcZOcbd29+X1YgRQFNNxf6PkQ444aPBNpCmUggJxXS1hYJZF6HWHMIQtlr3FelO4SHIF4QJdMEh exRB43qX03biWL0S+zQcNW9/WOmyfmOqJkzjrW3yohC2VGvgqpMw98+8+wpX4EIE34vvu3Hk9ta Dgh9Ho9WU79eqWzdn7C8aawEviq3Hbn7o7SRJX43kVaAy0KHVYOLTrWQQrVd22AVwBxm2JFtEB0 752kvhWQRzIlOL5PEvcbg0sxnIMtixrhBPw/JZfOrnzdSJ3R5BCn1D5p1GCTPzCjBY+xJBFUDjQ SaTdfn+xLdc6HYz1XPQgRyypy5RTUxaqAYe9Nd5dGGgKmm1ihWw5W4W8o/C7Ko3cTAR/GJsBxOI PDixnjajQVDH9z6sgoDoifPyYwrLxfvWMhzWjZATVFw7x3f03Z6SIjKq/+6ScEuYaVp6qfMbKpb Rgo0ayBhAXShHODYAWm3U8uXrSTWMY+b1EaCNxbxB/ZSk1pmOkbcxl50h7/CfqDMq8Mrv4xMobm t3YbsVbWF6YCTxKpBDShzvOXWpp5ULhSQ/Y2dLnrqsQStlcfK/ZVJaPQyinHcyCcJG0LUhlfuxN b7/go1JyGYOp9xA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_111731_756798_107B3FD3 X-CRM114-Status: GOOD ( 11.60 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Reference common serial properties schema (for children of UART controllers) to bring common definition of "current-speed" and "max-speed" properties. Signed-off-by: Krzysztof Kozlowski --- This patch should probably go via Rob's Devicetree tree. It depends on the serial patch adding serial-peripheral-props.yaml. --- Documentation/devicetree/bindings/sound/serial-midi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/serial-midi.yaml b/Documentation/devicetree/bindings/sound/serial-midi.yaml index f6a807329a5a..3b2f6dd5bffa 100644 --- a/Documentation/devicetree/bindings/sound/serial-midi.yaml +++ b/Documentation/devicetree/bindings/sound/serial-midi.yaml @@ -22,6 +22,9 @@ description: configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default) +allOf: + - $ref: /schemas/serial/serial-peripheral-props.yaml# + properties: compatible: const: serial-midi