From patchwork Sun Aug 25 16:47: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: 13776836 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 F04B7C5321E for ; Sun, 25 Aug 2024 16:49:15 +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=jxz9W0rg7mMy2BV/5liqAlp9Grj+cfqvAy4EMVlcW0Q=; b=Z4Xdf0g/TVmmINS6CMjuNtMNeR +cJ1nk1xBj7X6dFGApI04eiPbnBM9VPssicoBrPokcZP1NJK1zMan3kMxMcmYayYTmgZVotI/A24F h3HXeW+T3drIzksj3YMGdty8+/FbUFm1Zbd93idPx8qKc/1zITFXfn6z4nGV0Uh5KYwME6v8Xuw0k Lq7wnYyxcMM0ZieLJBFdEXQrYO8G/P0sxXhEZi7gj1sjz5l+nYtOt9MMzb8ERgTqIOERz6AYcw79B A6uuMTuQZUv/SXIM7FNrGfkCKrC0+WGQWreIlmSeE+8rPQ9VNUIHrCf2TMfBf1ff6VXLcGKG/vXtQ 0e7iGKfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siGQK-00000004g7g-39cJ; Sun, 25 Aug 2024 16:49:04 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siGOp-00000004fi2-3gzj for linux-arm-kernel@lists.infradead.org; Sun, 25 Aug 2024 16:47:33 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-201f7fb09f6so28029365ad.2 for ; Sun, 25 Aug 2024 09:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1724604450; x=1725209250; 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=jxz9W0rg7mMy2BV/5liqAlp9Grj+cfqvAy4EMVlcW0Q=; b=uG95DfLbynpMcppHDz3YcS1I21WKL8MdtlHRzcrEzjqr7uq97DqDJey1Pqf5doMYL0 S4PN/XZ92sVzDLEoBiN63S7ppBgG/1IvrXmw/uzImTAwYdhUQYGh7aJiUWKqnH27MVh+ 0RYL3b26pRa7eLI97ClI7hZYlsKUKx9SlOIGZp7+eHCGlEvwzboEuPgRd6nLravVWQ9b UzC2nRzQJN5B7wKy9TeLiEP0l44w8sXk1hqUbvEhQJ+zWMjnaxObvaGKjzjaEE4rBT+m RlP/RnaMh8Hro/g161m0SqQ5y3Bo82Ouv2c+3JnDCKUGkhDMR+QWJWX7tKZJ+Dt4sxPy xjqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724604450; x=1725209250; 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=jxz9W0rg7mMy2BV/5liqAlp9Grj+cfqvAy4EMVlcW0Q=; b=nv87PnbkFlw46htvC1FNB/S2SoXI6ifJRzFDxPTfMK2x2wUgBvZ6VjngDk+eklRla0 iB35hApPF9FQER6kXN5cb+R+jNbaa23HM1ik0PTx4jDWyAZWVC1ATv1oJTo4r3n4cm10 dZWKIIMjCngg2EMziObl6Nv+Wr2DAUmgx1l4uZ/tz470CDwLdhew0oVLMaoMnnSF1raD bRDj/N3lFDxV5NN+fyoH3Rl4ATi+G6UNQqTMEny4Oyi0+XQw+m9IwnkEnJkrbAq/OOD5 ZWmBITb1/P3pGoOHERiRa8XCiuqdt63g6HreLJ0UVCNrltDJiezAJ+LM8DcA+pmC/URW 8nNg== X-Forwarded-Encrypted: i=1; AJvYcCXKlrYFHVlfShjMY5EC+JBiuWiuHD2hNpBGCx1xkUlc3BVhskiiHsmtMVbj6aEcyuu7RDg9FrQyTZPD+Q2BVWMY@lists.infradead.org X-Gm-Message-State: AOJu0YzxmfKPshYwpsC1mHx+SrYgLLQjPV/0JRVnnzLLCVzPnZGXFwk2 CcsNOeViWd31/LaJ7RZv6VvjOJu/Lh6xZgLiLHjVhHBwvSBIUx5rAQXhN2c3MQ== X-Google-Smtp-Source: AGHT+IGVR21d8zqzI/Keli5KOIFPrhh0cOLMEXTUS9i86vC9K91QywMMPIUWj0mRJltzwRZynXU06g== X-Received: by 2002:a17:902:d4cd:b0:202:2f0:3bb2 with SMTP id d9443c01a7336-2039e555a4dmr75158555ad.60.1724604450596; Sun, 25 Aug 2024 09:47:30 -0700 (PDT) Received: from [192.168.41.46] ([2401:4900:5ae1:9eb1:890a:6b80:a16d:5ab4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20385609dddsm55411465ad.196.2024.08.25.09.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Aug 2024 09:47:30 -0700 (PDT) From: Ayush Singh Date: Sun, 25 Aug 2024 22:17:05 +0530 Subject: [PATCH v3 1/3] dt-bindings: net: ti,cc1352p7: Add bootloader-backdoor-gpios MIME-Version: 1.0 Message-Id: <20240825-beagleplay_fw_upgrade-v3-1-8f424a9de9f6@beagleboard.org> References: <20240825-beagleplay_fw_upgrade-v3-0-8f424a9de9f6@beagleboard.org> In-Reply-To: <20240825-beagleplay_fw_upgrade-v3-0-8f424a9de9f6@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=GMfOVBjnJuIyDUwmWasZ6B3xnGuCFW07MH/nRO0xhUA=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBmy2AQ2QBtHN5N93ah4bgfx1vdyCdBtkCC+s3tb u9GqnkyqcmJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZstgEAAKCRAFzvXHieVa dHc8D/93PwsuFi6L+Z/37jsgx7MhUtmNxp+24Wzk9vMkyykd5HReCsim7ISof3Kg6TBA77Ytp8z WGifo40UZ7NZ2oMdYizXh/zeVfPUQ9aqXEOCD8uMhb/KsQBeaiF14zqE0Ef5CSwEmW9ed+2zjCF sYoPm67yXMV2B472oR2DDUlHAKZmF5C+PuwX1OHa8lVxzn01xci2IDxgrLNKk4TV/exJjCmNUsX zvDMugn0FYID0rV7sE+Pgdrf7WkblXNA624ZzL3SlIj2pwVV6h4hEHEBiT6vF04SbhXrpZqaMV6 tEwIQ8QQT1XjvMEtkmJMn2AWC7Yv4V3HH9ZjXlcIv3nHI7JmGVu36EBT2wn4mkp9MOeVe253QPc G+8YRqqoYNR067PQD7LZ6xJ2xmNtbLI/dgJK90/uBXeYS6cnjkHQt7TXzxbTmZ2C1z6Riq6JJnF FM+BW8BwyQzXwKMD9ZVIko3kmRmGOYTn+nS/ghK1+uxGiqLNXOkkAXuHA9PZ24chCfMI1RH4xF7 zO28q4vrvMX3y94l6BKLKPyALVcG8IKP8yya1m64kYpDeKWrvclvi9j70I0MCEbCp1f7SPjLdkj oaL5ayWcLNJmlLaOcqE03yvyDJoDElOxk9Oyo71qSowojg5iYbAYTrXghsFhETMzLJ8tJm5WSQU U7t6YLDAYwcQhEg== 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-20240825_094731_972509_DA01401B X-CRM114-Status: GOOD ( 10.67 ) 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: Conor Dooley --- 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>; }; };