Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp680990rwl; Fri, 31 Mar 2023 00:23:11 -0700 (PDT) X-Google-Smtp-Source: AKy350a4lZ1YBprlc+amfXJ3iN5GhTPRhiZxTp0tqjycpqJvChgetRIJjJMnp4zbyth4kDWuYbpn X-Received: by 2002:a05:6402:1e8e:b0:502:465:28e1 with SMTP id f14-20020a0564021e8e00b00502046528e1mr5276347edf.0.1680247390810; Fri, 31 Mar 2023 00:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680247390; cv=none; d=google.com; s=arc-20160816; b=roFl8b4VkfcVusrXywmRGFOeOGMrMkCdHJbxtyaiSrZd3Kk3tonLzvYMMbwJGXLWmY qMqKxyfWY4NJ+/iwntSCV1ax03VJXn1Mq2WAe1JZOyTEiR8fygNPq5n1vl+GcE3/KzJ1 KaXR8Rsdo+6Z818b34aEiHv8J4yPwVxphgs6n9pR5Rk1GkmjmRkoDp4p6+fO1qaBBB64 rsYYnNfD4JbPciHrhuHI+pLz+D1okiXWq4BMiprRmwRmNcFHACYs2EYbhyZ/fOtgejjL cfJcHC93V5YmVuZF677T4etw8J+X0+Mvg5RY2IcAm0Go9qy/sKK44gQR7FQuZAmN6qsg sncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iruzzEhd9nJw7BSv767IC3IqHhl1wPVknmyU9L3Vklo=; b=uqWJGfXRB0jEY5GtuRm6DTg0tq8Xh8Skr4N8uAvsg9xnOzuIHmrjuN36S1MQyfARS+ CP5ycsTG7QlA0B9yTVXfU650F38FinOqF//21bmplG+H33OrZXRfzN2gA3DxrcAupeP9 nUUGiKPLQ8PUkHKijOfLoSXeH2V4+wh3WslkaZVp95yqFDeWZkc7KDeTK6hXcCD6SUZl Je55tgH1lq7wGYrXBr40xDz3YNYjz8kIhsz4XqkMsX3cWsvqwmHZE2kT7ySsCeQcxVhI s6b2Js8Okck1domXn9KYJvxTT6EViqMGzlRhuW8ppbFR6M/qjl/lMsQj99myJOx9AXVq 2yRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=fH6jo2tc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020aa7cb44000000b0050230e4b487si1420074edt.13.2023.03.31.00.22.45; Fri, 31 Mar 2023 00:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=fH6jo2tc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbjCaHVT (ORCPT + 99 others); Fri, 31 Mar 2023 03:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230304AbjCaHTG (ORCPT ); Fri, 31 Mar 2023 03:19:06 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F8B7CA27; Fri, 31 Mar 2023 00:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1680247141; x=1711783141; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=W8qT8cE/6L055WutV/rSWFJbSx6kVbMIQW0V4V6NhD4=; b=fH6jo2tc6liojCtkPjZRVaYi86nVrB5gP/n2/4FTOcD+a6VQJYPgS72g Ali1MZwD4kwFZ3JRNOnJymOGwCY3zfzPMIP5s24JQzCVtnv6jap72ozb7 d14EAhpNN3z37DZ2PQCQ9HxroTn/dNUeur/+nPyOpX25/qE+qQDmPJL/R +QOaiYuKChLF7VwtdbmXgiDivDGJO+jvYJoCrFeuVPAyAlRWxtMbw7Nsk VBHSJ64SznupNr18Zub5w+c6iv2I7znvK+qeKyg5zsL9OLRqxan53xREU 1iNe6+GwrCXKxPVBTuPIgNV6HhdW/h8aJpasxpeTzJP+o6Gj5bJlw5Zv2 Q==; X-IronPort-AV: E=Sophos;i="5.98,307,1673938800"; d="scan'208";a="204349782" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 Mar 2023 00:18:59 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 31 Mar 2023 00:18:56 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 31 Mar 2023 00:18:54 -0700 From: Conor Dooley To: CC: , , Daire McNamara , Rob Herring , "Krzysztof Kozlowski" , Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , , , Subject: [PATCH v2 5/7] soc: microchip: mpfs: add auto-update subdev to system controller Date: Fri, 31 Mar 2023 08:18:21 +0100 Message-ID: <20230331071823.956087-6-conor.dooley@microchip.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230331071823.956087-1-conor.dooley@microchip.com> References: <20230331071823.956087-1-conor.dooley@microchip.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1866; i=conor.dooley@microchip.com; h=from:subject; bh=W8qT8cE/6L055WutV/rSWFJbSx6kVbMIQW0V4V6NhD4=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDClqnZZH/R4WB/2UWhIavnH5q7U/DdIlurKm7mpwa2SJXql0 ndW+o5SFQYyDQVZMkSXxdl+L1Po/Ljuce97CzGFlAhnCwMUpABNpiGNk6PMKyhS5dKvU4WSz9eZJWk o+s3+xHuzVeXC3gjG/Tj3PgOF/bWDzZJ8vhvyb+YQnva3XCTz7qX1VktCntX9rXbZpPNPkBgA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PolarFire SoC's system controller offers the ability to re-program the FPGA from a user application via two, related, mechanisms. In-Application Programming (IAP) is not ideal for use in Linux, as it will immediately take down the system when requested. Auto Update is preferred, as it will only take affect at device power up*, allowing the OS (and potential applications in AMP) to be shut down gracefully. * Auto Update occurs at device initialisation, which can also be triggered by device reset - possible with the v2023.02 version of the Hart Software Services (HSS) and reference design. Signed-off-by: Conor Dooley --- drivers/soc/microchip/mpfs-sys-controller.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/soc/microchip/mpfs-sys-controller.c b/drivers/soc/microchip/mpfs-sys-controller.c index 1b7680e05cc0..0b94fdcc805d 100644 --- a/drivers/soc/microchip/mpfs-sys-controller.c +++ b/drivers/soc/microchip/mpfs-sys-controller.c @@ -118,7 +118,11 @@ static struct platform_device subdevs[] = { { .name = "mpfs-generic-service", .id = -1, - } + }, + { + .name = "mpfs-auto-update", + .id = -1, + }, }; static int mpfs_sys_controller_probe(struct platform_device *pdev) @@ -160,7 +164,6 @@ static int mpfs_sys_controller_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sys_controller); - dev_info(&pdev->dev, "Registered MPFS system controller\n"); for (i = 0; i < ARRAY_SIZE(subdevs); i++) { subdevs[i].dev.parent = dev; @@ -168,6 +171,8 @@ static int mpfs_sys_controller_probe(struct platform_device *pdev) dev_warn(dev, "Error registering sub device %s\n", subdevs[i].name); } + dev_info(&pdev->dev, "Registered MPFS system controller\n"); + return 0; } -- 2.39.2