From patchwork Wed Jun 8 08:39:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12873056 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 996AEC433EF for ; Wed, 8 Jun 2022 08:47:04 +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=yTLETcExqCgiXSQPH5KZRIGIKPTSn6fl0jI9VOXtLm4=; b=eRln38CacLbOmw t/iPzmGxEwFxfnGQ0ccuBMMgxt6XHox0kf+0U4fg30ujVfjLUqfQdsIs/u/qzSmlNwjT20YLPeeSu 26HrcccgHKKs2vpFaPGGY31TOvroenAcJpsnavrzkdczjXMisAIujUBKKjTqiL8WsHB9CnKBnwwEC xuiE3mh0wI3klocSCJLUG4fY80QYTACUt3IdIp+/YPGbzRlEBG+XJLi2nBixZUbBkVyeDyHbQD2fz y9QWSZoyYxRi6IVTGXlVD6DRoBa0O97MrnLt5XyzSxoZH8LIiaBxNfVbh5rW3WvLw0ogX9PxN1mr+ 1sJ9y+sNIN96pjO5lvvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyrJs-00C4O7-2m; Wed, 08 Jun 2022 08:45:40 +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 1nyrCT-00C12h-L2 for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2022 08:38:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1654677481; x=1686213481; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UmpkQCfq78I9O4H6zMMUL04zFy7nE3AaQI8yswkw5HA=; b=1k3GQU02K5FiS/uM8BHpv5p7G5tpXWbtSt51Mh3FU2/RcgUAe1OhD58t gErUJy+T4rhjuMQfBeHLWbLFNgx8wk6gDoePOuaPk+Yna19N7300oeATI AG001gCKqZ28ISUJNZsUqX/7JyKoN9tWtKjt7IJ858llzcizQNIlDDWjk CI87HzSVBAZ9dDWSWR2c3dot1GbXmpPKEL9gO/jhmNuqzzDRo0fXxLO1+ skKdbdns4c51e974F9ZuanUWOP2abiOa9CeBT0PGz7VIwD+2eowcQ0mbi hKd4vz2T6DnYurb2PKynFJJyQNNYgpODuhfBW0MtVCa278KhOaxPLdoxG A==; X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="167565074" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Jun 2022 01:38:00 -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; Wed, 8 Jun 2022 01:38:00 -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; Wed, 8 Jun 2022 01:37:57 -0700 From: Claudiu Beznea To: , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v4 8/9] power: reset: at91-reset: add support for SAMA7G5 Date: Wed, 8 Jun 2022 11:39:41 +0300 Message-ID: <20220608083942.1584087-9-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220608083942.1584087-1-claudiu.beznea@microchip.com> References: <20220608083942.1584087-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-20220608_013801_737446_10FF23CD X-CRM114-Status: GOOD ( 10.55 ) 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 e25d8d38a2f8..80bf0c023c17 100644 --- a/drivers/power/reset/at91-reset.c +++ b/drivers/power/reset/at91-reset.c @@ -202,6 +202,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", @@ -223,6 +228,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);