From patchwork Fri Apr 8 08:00:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12806250 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 6FC08C433F5 for ; Fri, 8 Apr 2022 08:02:33 +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=tVzNeEqD77Q2mh5Wb7YSZC7X/qU/G/hYKHdrtwx7jJ0=; b=TVAv31W2GzDR5H 9LkGBtvoGNkNMJNVaohAa6bDtGFJ9cSPMrq+8Pfc4r5xlfzHWsGRqQjvWS+lTs95ZPKwG1inCgeqq +Zbzuqrv8suUJ4R91m2h8choblB3rhj0+fLKvv9rFMFrtVCLVU0s0cnB+S3C9Q8Sdylq/04bucb/9 wbEdKz89HEKngbfkcXF3cAS5mPUEM7nTy0p5ID3X2MLLoyMYXHvhM5ozg+7W4DPoAPS1axcJukV5r FyYxAKK9cbO836EVj8+hbVqnKhmz2UZXeIOEBH0X34aILtnNJ+rFwn7abEKKjIIavDNqm56ZY432+ z2DMMMLN8iFvyBJx5Ahw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncjYb-00FgYO-Ei; Fri, 08 Apr 2022 08:01:26 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncjW2-00Ff1z-Bx for linux-arm-kernel@lists.infradead.org; Fri, 08 Apr 2022 07:58:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649404726; x=1680940726; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LjlPOOL1nwB6NN3xgp5+k5dkaE5an7Nmiez6lWR6k+o=; b=lGZsgTGzS9MF0EAKhF4GSzPZ78iW0zpBsserV8E6i4aUImpGnw+fug4s nwcBBDzF5wmbeKnISp/jC/GksKCsLf+JyPLSdAZrCxI9DQIiv0kAWLt7G w4YNw47LYPvVQTgGuMUpvKYV7lqR27+Rw6gIEVe87kiP9rJRbswrIpK+R lsICjN80DrcjcAmX4d/lk01Vdnh+EeU0Ywa1xICVP+DrHWs56dNFJciI5 rCMMGjk4ftFpNdyWjjXbq8v8BUQseni4NGCLtNdB3fBDLxM79iFNgJnJx gtPhNKSKktkiOOYom6c67Hk7k0Fqn/IGgK8WR6iBHO3SKOAu83PcH8eo6 A==; X-IronPort-AV: E=Sophos;i="5.90,244,1643698800"; d="scan'208";a="91735420" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Apr 2022 00:58:45 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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.2375.17; Fri, 8 Apr 2022 00:58:45 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 8 Apr 2022 00:58:42 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v3 08/10] power: reset: at91-reset: add support for SAMA7G5 Date: Fri, 8 Apr 2022 11:00:29 +0300 Message-ID: <20220408080031.2527232-9-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220408080031.2527232-1-claudiu.beznea@microchip.com> References: <20220408080031.2527232-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-20220408_005846_510123_4798F53A X-CRM114-Status: GOOD ( 10.31 ) 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);