From nobody Mon Feb 9 11:21:25 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ECCA277031; Wed, 14 May 2025 13:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747230901; cv=none; b=R21ysCyYui4SiBmcyb2j9e4f0KoKX593cENfXlaTgbFHtJ2DWj+6NKv8tFNzZG3DuU19RO2AaR7hqy1lvoEOb9IZKKzVPVz5HAfTA5f6NaP2yFFk8E5H8VDvuVCl7jIAWHDRE7OE2tUmf2nauy8Ccaf428ey4ZC6HMCpyJvezy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747230901; c=relaxed/simple; bh=7aCrCUIB5QkPQuKnh9Zm6hpLX8iQL7aaLQ2UpbL1ncg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pCLBmrM2RoDJDZtzjXZGoL4udncDTCJZ6qoaaX2M4aY1iI7ZNkX0CewTjdlTTEvKaQKvGci7mKRyBvkHfQyCbofi+NZyDuS+wn+uSyAqmnOOiRzpWYQ72/+ufWsmF1+gLyLPtOMRQlnzU/VLHRieo+l1eZvv3vXg4fHrmjyJlzk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g+8alx+J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g+8alx+J" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1311DC4CEE3; Wed, 14 May 2025 13:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747230901; bh=7aCrCUIB5QkPQuKnh9Zm6hpLX8iQL7aaLQ2UpbL1ncg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=g+8alx+JkHxcx2bZ3JufuuFQCoVnbqzytPADNZQrDg7e8A/9diBinudrnf8Fjd3Sc WSGy0Gcf9aP3k38TtHyIlqSU5Rg/hhWTWBjTQ/5Z8Y3NY0YmPlVgjGuAh/PHVKH6ts AgrOawTA2BHRLxgnRXb/rXre3lb1JVIe1oT4w5Ai5rgGUGnAg5nVzAEMPFju3NymR6 nWYmqhrPhqODGPO0KAJpaoeGY2Jl2VzcPVfmTa6Z15nLFhZN87trJ78Dn7WfWYJ6E8 1I89J5/6/JswSplQzcawiYr8XBid5px+kCYX4hjU1TSE0vkmv/IXneVyh8A6MFMCtT HEPq2QqeNrV/A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 033A4C3ABD8; Wed, 14 May 2025 13:55:01 +0000 (UTC) From: Alejandro Enrique via B4 Relay Date: Wed, 14 May 2025 15:54:41 +0200 Subject: [PATCH 1/2] dt-bindings: gnss: u-blox: add "safeboot-gpios" binding Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250514-ubx-safeboot-v1-1-1ae771335356@geotab.com> References: <20250514-ubx-safeboot-v1-0-1ae771335356@geotab.com> In-Reply-To: <20250514-ubx-safeboot-v1-0-1ae771335356@geotab.com> To: Johan Hovold , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alejandro Enrique X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1747230900; l=1203; i=alejandroe1@geotab.com; s=20250514; h=from:subject:message-id; bh=BxkYd/2jGt2UwnlIuZQlH4ljP/UW6C5OfMYMSn4bkPk=; b=wzJsfMUDFEUX3vvMjMqmR/SPpPnEQ67e+HbfeA0b/2D6NioGz9QHUtye9B5Ppld6BWafjefvl rfSa8Q3RBJ/AxNlRJIwpBHiNM51jwtmz9JMynDcssJC0y/A/MsbfDbF X-Developer-Key: i=alejandroe1@geotab.com; a=ed25519; pk=xzHMPbqczL/tMsjXr26iLoHwIzLveHVnT+GIU4p1k38= X-Endpoint-Received: by B4 Relay for alejandroe1@geotab.com/20250514 with auth_id=404 X-Original-From: Alejandro Enrique Reply-To: alejandroe1@geotab.com From: Alejandro Enrique U-Blox M8/M9 chip have a pin to start it in safeboot mode, to be used to recover from situations where the flash content has become corrupted and needs to be restored. Introduce a binding to support this safeboot pin. Signed-off-by: Alejandro Enrique --- Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Do= cumentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml index 7d4b6d49e5eea2201ac05ba6d54b1c1721172f26..16d922279def99257c194520a7a= c820f2a26e9c7 100644 --- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml +++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml @@ -32,6 +32,9 @@ properties: reset-gpios: maxItems: 1 =20 + safeboot-gpios: + maxItems: 1 + vcc-supply: description: > Main voltage regulator @@ -61,5 +64,6 @@ examples: v-bckp-supply =3D <&gnss_v_bckp_reg>; vcc-supply =3D <&gnss_vcc_reg>; reset-gpios =3D <&gpio 1 GPIO_ACTIVE_LOW>; + safeboot-gpios =3D <&gpio 2 GPIO_ACTIVE_LOW>; }; }; --=20 2.34.1 From nobody Mon Feb 9 11:21:25 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4C4E27A465; Wed, 14 May 2025 13:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747230901; cv=none; b=KhJElvqM1+bkzYzz30I4ffCMKTuI0urecsXXPKmfBpqmjJtHBs8jbU/4Xb4tSGrbq+dFq9PawHVZrkjblBpuesGwlsC6rLyHSEqlwBxAFo0CZ3sa6N8Qs2n2ncxxv6sArY+mfWhpZsR/4gN1r4q8SdKkbGoILKcSM1MEDjQGDck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747230901; c=relaxed/simple; bh=Wt37B1Xcw25zg2r3NantMYnvPFJ2++GMoo1FMzBQxB4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JPjDNrvAtjBGrym5veTJ5OTzLsjyp3fI6VO085MlHSEeKAMDE5apxaHA+TMk8e24DplDHauXszp++NrFOdMOUalH5XEgR6JKFJ6TXjRr87eccYT6ZfWPe0JB5Izeyff3Py1yBQQoXxYpnreVXRG3hxgOWl9HCpwmV0MAOlD6NJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BoqAsDdr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BoqAsDdr" Received: by smtp.kernel.org (Postfix) with ESMTPS id 22DE1C4CEED; Wed, 14 May 2025 13:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747230901; bh=Wt37B1Xcw25zg2r3NantMYnvPFJ2++GMoo1FMzBQxB4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BoqAsDdr3EOOJ3DNgTZIOB4AlN2n+KPdYemMkX1lgsYwPbkJiO8CIwyGliOx34wLF WiL4fdGBFfQ65JmLz839+kzqBHzsJsd+d1ERIxgPAeQHlFPnfwbnk/NNjBxtp/+sCm /OKU0LyCoavRVWsnUaC2Di2ujrY+Q3jFTzM7Ysi2Cd8VWMKjwv4X9AqLvaFL2fHmml t1MJw7IWHpgkSn0vIq9QVHeiMBb+29uSk2+V2f+3EaCoMhou7niAQo/vgXiYHKEGtI FJJXHafTZFwmH+zdRqHdwI/B8Mw3F/jqEXKP6WeUU/YUc00/nxddFc8vQ9Wvg0vdRI 1xPpAwlLZzfIg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1228DC3ABDE; Wed, 14 May 2025 13:55:01 +0000 (UTC) From: Alejandro Enrique via B4 Relay Date: Wed, 14 May 2025 15:54:42 +0200 Subject: [PATCH 2/2] gnss: ubx: add support for the safeboot gpio Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250514-ubx-safeboot-v1-2-1ae771335356@geotab.com> References: <20250514-ubx-safeboot-v1-0-1ae771335356@geotab.com> In-Reply-To: <20250514-ubx-safeboot-v1-0-1ae771335356@geotab.com> To: Johan Hovold , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alejandro Enrique X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1747230900; l=1333; i=alejandroe1@geotab.com; s=20250514; h=from:subject:message-id; bh=b7rVQ595EWL+GpArVm/oRzrPGJVMa9hRhI22PNK/1BQ=; b=8SRteBjQGaPBbZxMBkkHQCpbZMPGK48jm7FUm3U0WFuHwV/mmeZE5qh6Tf7FFWfQrShWVx1bh r6f2ZELSJa4Dw8MxM13e5/WjBcB3KGY3nKxa+CQLfi4R95f992SC0lE X-Developer-Key: i=alejandroe1@geotab.com; a=ed25519; pk=xzHMPbqczL/tMsjXr26iLoHwIzLveHVnT+GIU4p1k38= X-Endpoint-Received: by B4 Relay for alejandroe1@geotab.com/20250514 with auth_id=404 X-Original-From: Alejandro Enrique Reply-To: alejandroe1@geotab.com From: Alejandro Enrique U-Blox M8/M9 chip have a pin to start it in safeboot mode, to be used to recover from situations where the flash content has become corrupted and needs to be restored. If this pin is asserted at power up/reset, the receiver starts in safeboot mode and GNSS operation is disabled. Deassert the safeboot pin when probing this driver. Signed-off-by: Alejandro Enrique Reviewed-by: Krzysztof Kozlowski --- drivers/gnss/ubx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c index 92402f6082c415c7b9051338eef5406b09e09455..1d6acace84f76f8d5d2eacdbbf5= ab7a934b33486 100644 --- a/drivers/gnss/ubx.c +++ b/drivers/gnss/ubx.c @@ -67,6 +67,7 @@ static int ubx_probe(struct serdev_device *serdev) { struct gnss_serial *gserial; struct gpio_desc *reset; + struct gpio_desc *safeboot; struct ubx_data *data; int ret; =20 @@ -82,6 +83,13 @@ static int ubx_probe(struct serdev_device *serdev) =20 data =3D gnss_serial_get_drvdata(gserial); =20 + /* Deassert safeboot */ + safeboot =3D devm_gpiod_get_optional(&serdev->dev, "safeboot", GPIOD_OUT_= LOW); + if (IS_ERR(safeboot)) { + ret =3D PTR_ERR(safeboot); + goto err_free_gserial; + } + data->vcc =3D devm_regulator_get(&serdev->dev, "vcc"); if (IS_ERR(data->vcc)) { ret =3D PTR_ERR(data->vcc); --=20 2.34.1