From patchwork Wed Jul 31 18:51:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 13749058 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 0BBF2C3DA7F for ; Wed, 31 Jul 2024 18:54:24 +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=ojT/JLCa93OROa435ly8/9yf/IKMKJjKV66nK3VNbzc=; b=W5Gw6sFFCJMQwaeRunWCz9E4fs EerPxeAm/SuGpLcsqeX5lWsrEtEfMhd5lt6GCeiuouiZkHxAbBpPET1kXurFRtmHBKqIm4p5kJGBa uN2AiQULf61Bs5GiQW5Ob0v/vwZXtglhBzGrF7WrKSMY38M1WZYYoAWY0ZbCaP6IrT1MUvqpv7ZN6 hEpCvNLDUjZx1Zgj6SwZwGv6qriIXC/OkrI68Q1TXgNo33/2Bw239DLLqHX6qG3xnoZpuB1ZI6J8+ Ypu8gts+e8Qkb+JMQ2GXSP3WeUa1dSfFvCZVe6pb8xJko0wLRgJZGgBQgvaUV5Otp09LHiZGAds+U Nr1vu7Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZESi-00000002BCU-1syo; Wed, 31 Jul 2024 18:54:12 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZERo-00000002Atu-3kM3 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 18:53:18 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1fc47aef524so3524055ad.3 for ; Wed, 31 Jul 2024 11:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1722451995; x=1723056795; 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=ojT/JLCa93OROa435ly8/9yf/IKMKJjKV66nK3VNbzc=; b=B1Gk8rZbjfJ6KJISFb7I+Na1EimqLr2hQTFCNjGg/7faAaoZo+tD9JReTHiOvHzSoW gAd8Ejpqqr4rpmUj3ouKRIbh0Edw7fYZsOhSp8vsn+U+j1+A2d3JpiaygD9hJl5buTza KqF9vIZpCwNay9p0Oo5GE4S/OsIWTKsNfmg9hXhXD2M8AYvfxDrnJ2F4hFqmLCKU2W0p DLDn7CXm5JPErMGxoFXi0pNIQghYv7pyjO50B3e+5KekjN67j0+cj0F3/OrTiLmuHZ3D QhU0t+tAd26dZtQCzUcj8R7NxM8TjqitdWmOK4InbYx/em1EIV2UYufIJTNPik3mZU3J UjAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722451995; x=1723056795; 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=ojT/JLCa93OROa435ly8/9yf/IKMKJjKV66nK3VNbzc=; b=WIRAnYOcTxLxE8WYDxSRlqK+VszS5QL+BvM+LI3AYM9WcM3CDsepAfdvNlg0SmHnKo 8LKf6vyRPIERu5Pcxw0pROoTWl1sh10qTOWXA7jhGS5wNl/Gu4cugq+gfzepmgayGNRh m1fZEy2S8y4D2ac5aiCko9ZZCJChpFsj4RgKTMTMtdZxMsZIZydSYPHtvLVwXZVfxhnk Q5YB78G93hv3WmB3hgsxU4jNN8c+1p5kX1jgII7aMqPCon+2K2XEWsS1Naxnuh17ZKFq lrSpsMa/a444W8Zr16w+Kitr8ywHMMEC/pDKSKMp8Ksl9jkX/rR20Av+3lnCgWVs7FC4 jEkA== X-Forwarded-Encrypted: i=1; AJvYcCVSVEFjYO3kaKFVcCy3BiO3bz26xta9+9gE87069OOv+CCuxf0rvfYZ9bzifam9MSLWYwsJDNaEEiaFszshPuh3YEtxAkPqghhfD/DJ0srIuNuGI8I= X-Gm-Message-State: AOJu0YyVS8C9ydUzaaQ3rguzN3iQLz4RAqMSYGje1367unvWf2oycXxv K13QCmxEhkD9Pqwk1xT5kwu6X7IaUKDekQTfnoe6G4IsVjARY68car+GcmeaXA== X-Google-Smtp-Source: AGHT+IHdD6Lu2yTxVi0/pR+KxWdAvB7471oytstPn7Ep06dyWyYC7FdxtYjBH0hrSEJ/lCHbOD3o+g== X-Received: by 2002:a17:902:d507:b0:1fc:5377:35ac with SMTP id d9443c01a7336-1ff4d27c1ccmr1480985ad.10.1722451995611; Wed, 31 Jul 2024 11:53:15 -0700 (PDT) Received: from [172.16.118.4] ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7ff3d64sm123182825ad.299.2024.07.31.11.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 11:53:15 -0700 (PDT) From: Ayush Singh Date: Thu, 01 Aug 2024 00:21:05 +0530 Subject: [PATCH v2 1/3] dt-bindings: net: ti,cc1352p7: Add bootloader-backdoor-gpios MIME-Version: 1.0 Message-Id: <20240801-beagleplay_fw_upgrade-v2-1-e36928b792db@beagleboard.org> References: <20240801-beagleplay_fw_upgrade-v2-0-e36928b792db@beagleboard.org> In-Reply-To: <20240801-beagleplay_fw_upgrade-v2-0-e36928b792db@beagleboard.org> To: lorforlinux@beagleboard.org, jkridner@beagleboard.org, robertcnelson@beagleboard.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Johan Hovold , Alex Elder , Greg Kroah-Hartman Cc: greybus-dev@lists.linaro.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ayush Singh X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1346; i=ayush@beagleboard.org; h=from:subject:message-id; bh=XHqJU4/T7F12L5POtvVe0Q4zmll9qWWprpMTXEoqi+k=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBmqogPQ0J/TODCghlK+Gt4hhKjYxhh2Cr6l7ces FW/VbMBS8mJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZqqIDwAKCRAFzvXHieVa dDgoD/wLkKv4S7Es1rK82+/4QnDQYJc7qcpNhWECyHjCljbCMyaa4WnDa3OakUCJShWbwwy+Ael yC5w9+vVDuyWoYRBF7Q2t6Zk5wW5admxnuvGr+5iwrrmtewNxscAyiSdk+3z86dJ7ZT9ykh3jdX ubTwC5yWlPPB6sE8skPc8hx3h52CbTH/dyyqSmw5TQ8k1CcyA3zCFtm2BKcrqGfLgORI5iB/N2g wUYkccWg4APMnzXYFIbTwGSD+sTTo7QKTJ+PUf3kAgGfcKKcmDUY82p+MU+cnefFKLRXFocANtW uXrOeH+zufLwS84w8qtx7M+vw76ZQzA/uSUoLgdxcxXGkJln+6KnSc/WbST9hbX6/te5+KLnLeN zKJjmcbNjXY8UYeSGdmO4BeduMefXidaz4NTILD9YrY545m9incW7OgzOATss3A7GmXSGp6z6+0 yHxsC3a4HZQy6v+FHJtTf1asuWeTefsQibTluZSS+FbNNzW0wvLpHXF63glW43LZ5cfXS8mf8OD hNf0i981p7jXn8VgXW3616o8r1Uw2q0MIqNRNcZ8p8kIJuApNxK3oHnmz5Tu7oXr8LcMmXnNZOX nthCn7gtjNrGjV8plupFsvE4+VCVK7TjPvDlYb0O+jcv4ccVuqKRp4Hbhq0SZwIrfJZTwm8pFuy MupaODO95S+NofQ== X-Developer-Key: i=ayush@beagleboard.org; a=openpgp; fpr=DFCC131EF24F2D656FA504D605CEF5C789E55A74 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_115317_144647_3F4904D8 X-CRM114-Status: GOOD ( 10.91 ) 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 bootloader-backdoor-gpio (along with reset-gpio) is used to enable bootloader backdoor for flashing new firmware. The pin and pin level to enable bootloader backdoor is configured using the following CCFG variables in cc1352p7: - SET_CCFG_BL_CONFIG_BL_PIN_NO - SET_CCFG_BL_CONFIG_BL_LEVEL Signed-off-by: Ayush Singh Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/net/ti,cc1352p7.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml b/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml index 3dde10de4630..4f4253441547 100644 --- a/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml +++ b/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml @@ -29,6 +29,12 @@ properties: reset-gpios: maxItems: 1 + bootloader-backdoor-gpios: + maxItems: 1 + description: | + gpios to enable bootloader backdoor in cc1352p7 bootloader to allow + flashing new firmware. + vdds-supply: true required: @@ -46,6 +52,7 @@ examples: clocks = <&sclk_hf 0>, <&sclk_lf 25>; clock-names = "sclk_hf", "sclk_lf"; reset-gpios = <&pio 35 GPIO_ACTIVE_LOW>; + bootloader-backdoor-gpios = <&pio 36 GPIO_ACTIVE_LOW>; vdds-supply = <&vdds>; }; };