From patchwork Fri Jul 28 10:24:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 708381 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FEAFC41513 for ; Fri, 28 Jul 2023 10:25:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235842AbjG1KZr (ORCPT ); Fri, 28 Jul 2023 06:25:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235840AbjG1KZ1 (ORCPT ); Fri, 28 Jul 2023 06:25:27 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D869444AE; Fri, 28 Jul 2023 03:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690539897; x=1722075897; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0QaZS3L2UJX/OqrxdZfZKqcfVOJsQ3ebCPwt06q93PU=; b=SZ5rl0+xa5Ce1zCDqPPbvSXvylN3+XTI5K9cD8seBmVc5E15tgzs1qX3 swNYiv9C7+w+pwW3gpGAiUV0LdIgnxv4UE+gTjQ1OwMzlTiMttoCgJBor 5s9J16GnZ8wEURo/V6cQ1dMWG4kc6PCoyuuIzelq5dyeylwyxkWoojG2G tS0HwIrE704x51bdn3nrbQlNrH1zbbOwY0GzYo9k9J9OgklME4XJUIicQ 1qXwIXHI7DJ5clO3eE51q2wGc1UXinHlulYcdJNfxKlSFH4bdqdlh1x39 nK98baZsNUZAYaIMBVSvSwAhEzUr+JhKQo70euMQFQ+DZilayuC0Jb3PK g==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="225812955" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 03:24:14 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 03:24:13 -0700 Received: from che-lt-i67070.amer.actel.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, 28 Jul 2023 03:24:09 -0700 From: Varshini Rajendran To: , , , , , , , , , , CC: Subject: [PATCH v3 07/50] dt-bindings: power: reset: atmel, sama5d2-shdwc: add sam9x7 Date: Fri, 28 Jul 2023 15:54:07 +0530 Message-ID: <20230728102407.265617-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add shutdown controller DT bindings. Signed-off-by: Varshini Rajendran Acked-by: Sebastian Reichel --- .../devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml b/Documentation/devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml index 8c58e12cdb60..0735ceb7c103 100644 --- a/Documentation/devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml +++ b/Documentation/devicetree/bindings/power/reset/atmel,sama5d2-shdwc.yaml @@ -22,6 +22,9 @@ properties: - enum: - atmel,sama5d2-shdwc - microchip,sam9x60-shdwc + - items: + - const: microchip,sam9x7-shdwc + - const: microchip,sam9x60-shdwc reg: maxItems: 1 From patchwork Fri Jul 28 10:30:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 707871 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8E38C0015E for ; Fri, 28 Jul 2023 10:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235895AbjG1Kck (ORCPT ); Fri, 28 Jul 2023 06:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234370AbjG1Kc2 (ORCPT ); Fri, 28 Jul 2023 06:32:28 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C6343A85; Fri, 28 Jul 2023 03:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690540237; x=1722076237; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FQaqOrc0da577LMZqP/Fi64MeTY0WzHny0EnnioIJsQ=; b=C2SizrP5ad1fPkX36xU4ACt+NclV9/YB4vO93HfrFhrSRO0hbVuqcfwH FLs4PIWnWOIbBDSk6wB37tetLG4nU1yc2ozCDkmvBXCPcroxI/j2yLzIg bPhS8F1oFs5FX6YpeW1ITI0sHrdiOH7+UZS6IifEAcoQzpF4+HXeLMbof EbZHlk0MVRoG5XuZhfntMVjmi/FVyxLt1NAqLz35XsyYJQ/XG6GQjemeO Plfik30Z7tMSQItBdzPitf8OR2zY29Bm2lEtw0DTVt2zGhYcL9Huo0vFV IBet4G9fPxL+UXxC+WwOZNIbq22K7Hjp7BXnTv+b55tSL6qUJuimTBKSf A==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="226623559" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 03:30:25 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 03:30:22 -0700 Received: from che-lt-i67070.amer.actel.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, 28 Jul 2023 03:30:19 -0700 From: Varshini Rajendran To: , , , , , , CC: Subject: [PATCH v3 43/50] power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7 Date: Fri, 28 Jul 2023 16:00:15 +0530 Message-ID: <20230728103015.267490-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use sam9x7 pmc's compatible to lookup for in the SHDWC driver. Signed-off-by: Varshini Rajendran Acked-by: Sebastian Reichel --- drivers/power/reset/at91-sama5d2_shdwc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c index d8ecffe72f16..d0f29b99f25e 100644 --- a/drivers/power/reset/at91-sama5d2_shdwc.c +++ b/drivers/power/reset/at91-sama5d2_shdwc.c @@ -326,6 +326,7 @@ static const struct of_device_id at91_pmc_ids[] = { { .compatible = "atmel,sama5d2-pmc" }, { .compatible = "microchip,sam9x60-pmc" }, { .compatible = "microchip,sama7g5-pmc" }, + { .compatible = "microchip,sam9x7-pmc" }, { /* Sentinel. */ } }; From patchwork Fri Jul 28 10:30:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 708380 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 540EAC0015E for ; Fri, 28 Jul 2023 10:34:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233761AbjG1Kd7 (ORCPT ); Fri, 28 Jul 2023 06:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235728AbjG1Kct (ORCPT ); Fri, 28 Jul 2023 06:32:49 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8A7A59CB; Fri, 28 Jul 2023 03:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690540260; x=1722076260; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=B/7MgzJUa31uT0LBQyycRu4Ocmuodf4u+DRY2fOJfW4=; b=h3wUSo6oguB8KHKqyOok9E8XVD6cjzLCrLPqNYua0JxzXiw9MJbZUQEy lZkf48rJo+GYfgIggAQxv9I66mBrf9DxaNfYCXVPU6p8L8d5PRU0P/iD4 /Q0m9ZvTt+rAn855g+nqDe/sh142t0hVP0BmSY8zmPwlL3xoCKU6Ur4XO HxIS6UBMJp4jNftuhaWjV0xrS9q5vy2aiCVNKhYYnUmw5l0Y9URxYgyGE A5DAox49pYaLXz9IeSIeVY2kpEGNWQ0FNmjmYVf8LQNzCwoFwZxJC8dPA eXRANnauf7vd+nObAPaeBXHGQwg/BIr4uVx0RNe6k6Du7RWV6cirfkx87 Q==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="226623595" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 03:30:40 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 03:30:31 -0700 Received: from che-lt-i67070.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 03:30:29 -0700 From: Varshini Rajendran To: , , CC: Subject: [PATCH v3 44/50] power: reset: at91-reset: add reset support for sam9x7 SoC Date: Fri, 28 Jul 2023 16:00:23 +0530 Message-ID: <20230728103023.267539-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add power reset support for SAM9X7 SoC. Signed-off-by: Varshini Rajendran Acked-by: Sebastian Reichel --- drivers/power/reset/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index fff07b2bd77b..518b232bfd3d 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -26,7 +26,7 @@ config POWER_RESET_AT91_POWEROFF config POWER_RESET_AT91_RESET tristate "Atmel AT91 reset driver" depends on ARCH_AT91 - default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5 + default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA5 help This driver supports restart for Atmel AT91SAM9 and SAMA5 SoCs From patchwork Fri Jul 28 10:30:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 707870 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34098C001E0 for ; Fri, 28 Jul 2023 10:34:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233986AbjG1KeA (ORCPT ); Fri, 28 Jul 2023 06:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235960AbjG1Kcz (ORCPT ); Fri, 28 Jul 2023 06:32:55 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAB2759CC; Fri, 28 Jul 2023 03:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690540258; x=1722076258; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=07eRa4nNT3zBKO6DeHao4x0ptknF6w5CwCj1aTRYzGg=; b=WrCwuzPC4zyr68721KLsCYw/OWFQZCWzZjMLDe13c3H+/XuuRLiI/NWg rn7bJkL3Hsho91cYVh1mOgRyAqb/S3FLfE7ELMOhGYIuHueIkQ8Kwj1wS 6BOLR+4MMgdlN52GHKEY+ajtP3i1X6jZWZpULyTMNDZWEyhzsL57DCSzK GNscBS6hZeUxFPe2xAmHXD5k7iSKUv5TKCWirdd542xCQBmm8iDduClMF RgGfE+V5a/TM82gvpCClbL3ja8dY6BEYRVhjTecJ9VP7mfr32y3nYPDIg buU0dDQOEmvxE0F8DCcoDFIKJd/zkiWJxIXtp2HwtAG+C+BP0Sz+IoyUc w==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="225813934" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 03:30:49 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 03:30:40 -0700 Received: from che-lt-i67070.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 03:30:37 -0700 From: Varshini Rajendran To: , , CC: Subject: [PATCH v3 45/50] power: reset: at91-reset: add sdhwc support for sam9x7 SoC Date: Fri, 28 Jul 2023 16:00:32 +0530 Message-ID: <20230728103032.267597-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add shutdown controller support for SAM9X7 SoC. Signed-off-by: Varshini Rajendran Acked-by: Sebastian Reichel --- drivers/power/reset/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index 518b232bfd3d..8571b592f257 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -34,7 +34,7 @@ config POWER_RESET_AT91_RESET config POWER_RESET_AT91_SAMA5D2_SHDWC tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver" depends on ARCH_AT91 - default SOC_SAM9X60 || SOC_SAMA5 + default SOC_SAM9X60 || SOC_SAM9X7 || SOC_SAMA5 help This driver supports the alternate shutdown controller for some Atmel SAMA5 SoCs. It is present for example on SAMA5D2 SoC.