Message ID | 20240719-beagleplay_fw_upgrade-v1-0-8664d4513252@beagleboard.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 9E72EC3DA5D for <linux-arm-kernel@archiver.kernel.org>; Fri, 19 Jul 2024 09:46:09 +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: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DTIjdju0ng5SZUR/ZVbr+pjq8z5bsP/PxolugfMqbFg=; b=Gjlr12R+wSaxtQ 8Pu4pzAZqlgUfaB9LJSw3Ffpd2fJtEMlZstMLCuSZAy46ICEAU+zHf5iidq8RgSmdyWe2Hz19gITw M5S6jpRaB6vA6RnMavsdQwmBnMbPQCSAnsfVMsGPH+IVS0gkH0BHmIackiVUMN+ywLiJ5yzbHdHHB 4I4cHLMAnTb4B5Nqc8Z75tWAIPTkIEz0E/ef/FgwL4JtzMUalJSIFYO1s57QZpHghW2fXQR6FnYTV szxOp+kz7A08IlGi3Lm/ntZ/PfNjyDPYITl/zJ/npGp5/Gfy2fBV8kw0M/tlY0ZVwjCsxkkCWekh7 fMBn/LIzqrcFycksdznA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUkBY-00000002I0U-46Wr; Fri, 19 Jul 2024 09:45:56 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUkBC-00000002Htv-02ZS for linux-arm-kernel@lists.infradead.org; Fri, 19 Jul 2024 09:45:35 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1fc5c0c65bcso1623365ad.2 for <linux-arm-kernel@lists.infradead.org>; Fri, 19 Jul 2024 02:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1721382332; x=1721987132; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=DTIjdju0ng5SZUR/ZVbr+pjq8z5bsP/PxolugfMqbFg=; b=okUk6dXk4/FwBbYY6+0agymxnHbUiKAuzSL7j0zoBMTebNjc7v+wFme7VZmEEa/I0+ /McDRrPaKGwdmZuGw56Kht46YMh2UTQLmJ+b9EFkk4vhq0Dv1GXRvFf1F3etY46bOPJC Jnjq9L6FB/MrFpqem2/DuOkolAAKxhfzEEtSDNfNMAV9/j1Ur1H/jy6Bm+3HflNDtIlq +NzpdyDCRuywUTLo3B+r5eRIzkfS880VzGGVGSFbTd1rmlaAlQUpRKCMcLn9yBsQ3Uuz sRF3BIhd0a7dK3udpsB/5wN8fvejHeW3WQW5Rd49e5YqOxnE+edR0x5evCQUVLhd5IHj iyqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721382332; x=1721987132; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DTIjdju0ng5SZUR/ZVbr+pjq8z5bsP/PxolugfMqbFg=; b=gDhHCCYipllrvCgjJ1TSAci83hjV4pJr2AlHkGVSpUaM4BrpL+AUuuegdZna9IzQKq 96wezP36akjogToxqMXTcUZYI/m/6/ObMM20xL6aXgo0PhMCLaB/ox5ENV8tKjI/lI3J pfms8Nsowgy4d1q0BF/gHjNExE9hBxiBRBGSFGY5bjmEFHziDuN4Njt0K+UilWO90Er/ 7nqlvKBF2nDFolk1Qs7W4r2IYLqTK7/BfgYoD4OpW7w2J2pZhArjlIYw7fcnHTYec1D2 zm7z+4c4ciLyetadgVY5tpnRi/Iuwp7ZbXGnKMcwgHPDvUbQHlbOxVBnwtRy7k7d8ohG bcFA== X-Forwarded-Encrypted: i=1; AJvYcCWBMLEiKmYbDsGCJ/YO4YnDrd15LNWL/QbaN/MVq1cfzXWevBTOcDXgoLKTCLpda61yeES84toPJxodkIdjMWJqYjKzMrHpeg78I2FE1wNlSWM+c60= X-Gm-Message-State: AOJu0YwPLK7BQcQbSlCm2d2ISRG1WFXIJKVeHRsUERVFT5qtxJe55oj4 RqquGKixtreqK8jQCi78h6fNZ+qH7Zr79gyGcZRFIH/z3uXvtD0nw9t7ANDg6w== X-Google-Smtp-Source: AGHT+IEVyJea5xxoF0+wpJnzDjtXmvoUTHSZX9gEcY2eBSEdaXs1ZKnuf11e4P64seyMGkI+54GAPA== X-Received: by 2002:a17:902:e74e:b0:1f3:10e8:1e0 with SMTP id d9443c01a7336-1fd5ec5b9b6mr14469455ad.2.1721382331995; Fri, 19 Jul 2024 02:45:31 -0700 (PDT) Received: from [127.0.0.1] ([2401:4900:8899:6437:d031:b9ec:7ff1:6aa1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fd6f28f67esm819025ad.96.2024.07.19.02.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 02:45:31 -0700 (PDT) From: Ayush Singh <ayush@beagleboard.org> Subject: [PATCH 0/3] Add Firmware Upload support for beagleplay cc1352 Date: Fri, 19 Jul 2024 15:15:09 +0530 Message-Id: <20240719-beagleplay_fw_upgrade-v1-0-8664d4513252@beagleboard.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKU1mmYC/x3MSwqAIBRG4a3EHSfYG9pKRJj+2YUoUXoR7T1p+ A3OeSjAMwK1yUMeBwfe1ogsTUjParUQbKIpl3kpm6wSI5Rd4BZ1D9M57M56ZSDKArXWGKUpDMX WeUx8/d+uf98PcDP+bGcAAAA= To: jkridner@beagleboard.org, robertcnelson@beagleboard.org, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> 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 <ayush@beagleboard.org> X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1752; i=ayush@beagleboard.org; h=from:subject:message-id; bh=wvQcdEWQ3/kLHsxtgCGRA9jYHsgJ/xrav2Xn7haRcMU=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBmmjW1PzBconUuwkgIXGlPw5RQUNQ8xbEm8UvkG 6vloBiAU6CJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZpo1tQAKCRAFzvXHieVa dCbpD/9aS52VevnNnvYRJQyq7QU3ADVpxmVpEeUX0SJrQSzSqlAch4f6iGxAxvwIWQOGfdDYMev 7Kv6067Fj0544qQ+4t9iLZWeVxlYk7iZ/gisW9y+ZqF+sdywHAkWqXaC9lmJGu+WOn3FbG0kxJ7 oXdyLbG8dSUpceaPFgd3b43qoBx1v/BBRCM+CWGMsw7DoooGlChFT7Fbn3rc0B8fPOiv7wViorG p+Tgxu9k/tFdSZ3hOagYhnB5hXNzdjfN5siI1XWSKNbV/6tjT3nhpvez7qFouoJChkdSDfSecSl JPcdNuwuWwcXNI45FthqCWrN/Txmxi0ym0dylq4b/vilWjcMV8iuXBrayPksG9oHjdNb5PnXvlE soQx7bJMsnFWm9bBX2VYkkHPvLmuMb99OxgrrUnG7IY2jEB4qhAzRP9urvGcBquduTsHrHKZ+A5 Q5s6eNy0iRJwsZyp+zrLtD2wloyh8eEtHYq4v1f4FK1Hy0lHZTb+sffErg2EixdSk2zvLukrqbo EyiSBvxpRLef2fG88rg+ZaSVYiXNjiHB2VhzHt2RMfZ2aNZ9qi+KmqpiIQmSI+Svqh0y9D/3wIF UPYuppPh5mZmvDy0evdrAFReqQAlyLwDM9Rxp3x5UZHoFWpw7k/l+P89kGCPhKtrqk6Rr9juzW+ 9JY/V43A9FwOH+Q== 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-20240719_024534_250190_4F97E6CF X-CRM114-Status: GOOD ( 12.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add Firmware Upload support for beagleplay cc1352
|
expand
|
Adds support for beagleplay cc1352 co-processor firmware upgrade using kernel Firmware Upload API. Uses ROM based bootloader present in cc13x2x7 and cc26x2x7 platforms for flashing over UART. Communication with the bootloader can be moved out of gb-beagleplay driver if required, but I am keeping it here since there are no immediate plans to use the on-board cc1352p7 for anything other than greybus (BeagleConnect Technology). Additionally, there do not seem to any other devices using cc1352p7 or it's cousins as a co-processor. Boot and Reset GPIOs are used to enable cc1352p7 bootloader backdoor for flashing. Flashing is skipped in case we are trying to flash the same image as the one that is currently present. This is determined by CRC32 calculation of the supplied firmware and Flash data. We also do a CRC32 check after flashing to ensure that the firmware was flashed properly. Link: https://www.ti.com/lit/ug/swcu192/swcu192.pdf Ti CC1352p7 Tecnical Specification Signed-off-by: Ayush Singh <ayush@beagleboard.org> --- Ayush Singh (3): dt-bindings: net: ti,cc1352p7: Add boot-gpio arm64: dts: ti: k3-am625-beagleplay: Add boot-gpios to cc1352p7 greybus: gb-beagleplay: Add firmware upload API .../devicetree/bindings/net/ti,cc1352p7.yaml | 4 + arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts | 3 +- drivers/greybus/Kconfig | 1 + drivers/greybus/gb-beagleplay.c | 625 ++++++++++++++++++++- 4 files changed, 620 insertions(+), 13 deletions(-) --- base-commit: f76698bd9a8ca01d3581236082d786e9a6b72bb7 change-id: 20240715-beagleplay_fw_upgrade-43e6cceb0d3d Best regards,