From patchwork Tue Apr 5 11:27:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12801454 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 10315C433EF for ; Tue, 5 Apr 2022 11:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PuPoaG05FG5wP02ShtUFARMT5wI4n0iXPVwekPiVMl4=; b=zbefgQgTV2KslF 1k1aBpIZ9SSE6cb834cNTfN8zAhEHXJQG8OlrJ3DyX9xNBQei6EhU/UV9iqG+EOJZkoYlrIKbnRJp 0/XFwwFHn/+BHgkeuS22tjzB6Yf8y93rweM/fyBDVsAPd8p9/yCwuf3vvVVePnqSIo2D9B8/ipbaq Yj/1xTJQI4UulN05rBbAYYolZT85SjaTiqyAccSBGKuHX7e+75195bjAqmhx8aXy2ulH0C5ppWLnV IcVueqZy9cXbZFAA4n+7UKBKOhuu1rX0VGk1mH4VzCdIP9zVtJNqGA3dE6EZOgwMSeM3Od/GqE9GH w2bbwsVndZMN4oC4Pq6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbhKj-000nE1-I3; Tue, 05 Apr 2022 11:26:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbhJc-000ml6-L8 for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2022 11:25:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649157941; x=1680693941; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UT7E7C2wAOOUNT3zfG0/5PCOo+h0GfuTai0n/VZN5TE=; b=tl7Yqbr/PtU8VjRaO/b1tBkiexkJ0kea3tklYg/JQL/48UrttPnpzNO/ 74jNLBI3PQ84rZutuhTbHZwABxS4GTabNbAb74DOHwYAyuNHNoK26/K6y tRN2qqApFutiNUTiSpUv83VXDlhWOu2spk9w0/jfOqGQaaKvlz5d/Kv6k Ct4pg+RFuYxSfEZV6TNrE75tg6HE97WcDJlQli0wgiYaPupV4yJ36F9sp Ma6frExcQ3pz5tqRfz09G7mbi5Ami0AxKvDlHIIhyntUQz5qLxWV+fGZa iQ5q+C3asIyAcqgf99FKsFAlAcxzFi6PH5Fl92BZmuCwCEIriLuKCgPqv Q==; X-IronPort-AV: E=Sophos;i="5.90,236,1643698800"; d="scan'208";a="158916352" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 05 Apr 2022 04:25:41 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 5 Apr 2022 04:25:40 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 5 Apr 2022 04:25:37 -0700 From: Claudiu Beznea To: , , , , CC: , , , , Claudiu Beznea Subject: [PATCH 7/8] power: reset: at91-reset: add support for SAMA7G5 Date: Tue, 5 Apr 2022 14:27:23 +0300 Message-ID: <20220405112724.2760905-8-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220405112724.2760905-1-claudiu.beznea@microchip.com> References: <20220405112724.2760905-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220405_042540_739442_2FC4115A X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. 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 Add support for SAMA7G5 including reset_controller_dev support for 3 lines (which are USB PHYs). Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-reset.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c index b04df54c15d2..45313acf0c55 100644 --- a/drivers/power/reset/at91-reset.c +++ b/drivers/power/reset/at91-reset.c @@ -171,6 +171,11 @@ static const struct at91_reset_data samx7 = { .reset_args = AT91_RSTC_KEY | AT91_RSTC_PROCRST, }; +static const struct at91_reset_data sama7g5 = { + .reset_args = AT91_RSTC_KEY | AT91_RSTC_PROCRST, + .n_device_reset = 3, +}; + static const struct of_device_id at91_reset_of_match[] = { { .compatible = "atmel,at91sam9260-rstc", @@ -192,6 +197,10 @@ static const struct of_device_id at91_reset_of_match[] = { .compatible = "microchip,sam9x60-rstc", .data = &samx7, }, + { + .compatible = "microchip,sama7g5-rstc", + .data = &sama7g5, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, at91_reset_of_match);