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: 13759823 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 B7546C3DA4A for ; Sun, 11 Aug 2024 18:20:32 +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=1ap3jGUFipD3dvn7QzS2VobLp2 FzIPEoqdCDQdp/JTafLF7VvJRJv7j+HjtRCUc+EG8vUzx5B7T407kD/NQ5+awjLumXayEz+z/UMgW v+yYlVoSbo0nB1/VGNIQjb/EcibOB5kXiaNiVxbuq5iq/buWmM1G7WTqKBx38iYSPlleF1iHydZ2b 7/IsvO/gGbOq96VQ6E8v7CEf3pOQkFGCC2UYCEw8FjzvUXKfOfZiWCMhj7VwoemIdKuwQqUaopedi YlA/KMczeCrXTLC3Xz38z2MAP/jBVIP2hxLVlkJXuYY+T8sgi87yRE6pB6XaquTE3ehVj9wILp8ir kCMWxgiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdDAz-0000000FwRs-0E4s; Sun, 11 Aug 2024 18:20:21 +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 1sdD8B-0000000FvSc-29Nw for linux-arm-kernel@lists.infradead.org; Sun, 11 Aug 2024 18:17:29 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5a1c496335aso1659974a12.1 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=EZP7QIJaIaQNnPA81d+5XIyBc1glQZR1uxujrArIw6dt9wRMbFJgVSN7cMx83ayMV8 wV5x3IUbbUJQL2LgHsUNsc270SLp95WdxQjzLXWCsNqggoGPeV0HTWVFHEij3m6phTCv hw9EJ0yEN64oT2d/xFUlEoeke4ogKo0gqL/ep8nm6OjKJ9cl6sJWM/xPYN4VZ6xLpeU/ bv6JHUVnuGmDge/qKP3yyyuU1Fhi8JobkBQk+ZcA+VQ9XYTpaEiswkbv4YJShUbmog5Z NuIfetczU4lMSnNbf7oWeDBGcznB7Tx7x6wq2dhhIi17fJL59FaadRNUoLpkBu+SjN2B Yo2Q== X-Forwarded-Encrypted: i=1; AJvYcCUzN77thpdBrpR1GNFvZaBdD/wgAoG/qs431Ky8B/K8ulSUifeId2NvHPCpXhP7q84OF2KDnuDbnGCvShMgt/pWBpYk5EvhdYcgqjqKILoBOx/ZdIM= X-Gm-Message-State: AOJu0YxPwrZ3y+ydhE0fNHOgQOCDJdHO3f5M+z+JzEo9L2Yg+q8NsP6F iZnOM9sQhrlU9LXcshG7V7XMvknTOGjb1oEcM3fg5abQLd5x0COlO43qQOz2LO0= 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_647825_D5B3D245 X-CRM114-Status: GOOD ( 14.06 ) 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 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