From patchwork Tue Sep 10 01:55:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 173435 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5165201ilq; Mon, 9 Sep 2019 18:55:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCJu9ObpNAyuAQPFWZW3SqzAfVzBjXdGFsoWz1bD27+020dwyYRyTJ3xWOkObMTBo2j9Fl X-Received: by 2002:a50:f418:: with SMTP id r24mr27424826edm.248.1568080533443; Mon, 09 Sep 2019 18:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568080533; cv=none; d=google.com; s=arc-20160816; b=sWuJiAQAnLqiPjaGaG4co+L/E9M0g7xRU18WkGMvejQVE0HfjzvIxp2GYo7p2mjGL4 bE3qrHMbDEgObH3L6oZ+lZO/xTNGv8aMiiSpNHq2y1F5WL84CElArmRE3WO6fovKBp3U 8vkbbn/5ir3o4LutTOiJAqeNqEeZqGVGAsFkDrzATc2LCVLddRsv9aPKWoatOty9R15u YoOIQgPlpDgqiYpW+EwxLp3IGyidjqN/LoLGgsxNjAA2023E7gc29pR24lkIR4ti7xpN Tc0BYCTNRdEeLusJYGpeQr2lEAMW7dLNASxe8kJL4NTNy7/woX1vTyuqPS/QU9P9ZJy5 NqBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=wMFDD9JzsqmzalH3o0zoI+yB9Kt++zyEzH6wpdLIjLU=; b=pBP3dTksPlwKIuU7ZYH7+w3huPqqJUex54GE+ZR12F35cuuNZoIZbKVkk6PsjJ1ZqQ 4DGRJ+frM/XSRg/qHLuZpCcn4ma1xKxqliDul8IJ9YPKC4R1fRlFy9NcD0m/Q/S42HIX b0X2LDKsOlTixAWkyYz05/RI2wCzfIkfrB+Up6MwlwCD1zLewlo79pvcmwyuZ3oRNdlV XLGw6bjfAPLuwfPRLyIVZGNVd2z36j4Mice0aY7YXQAMAs7I2Ngd3Jbi60hZm31Ngpjm xHAJS6U6HCrAelOAI2L8S87NsO2ox5+nvduNC4GEePmuBgUvBa145X88cNhHAlAfTo/e iypA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jo17si6964457ejb.167.2019.09.09.18.55.33; Mon, 09 Sep 2019 18:55:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727106AbfIJBzc (ORCPT + 8 others); Mon, 9 Sep 2019 21:55:32 -0400 Received: from mx.socionext.com ([202.248.49.38]:11630 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbfIJBzc (ORCPT ); Mon, 9 Sep 2019 21:55:32 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 10 Sep 2019 10:55:30 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 90375180079; Tue, 10 Sep 2019 10:55:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 10 Sep 2019 10:55:30 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 062BB1A04FB; Tue, 10 Sep 2019 10:55:30 +0900 (JST) From: Kunihiko Hayashi To: Philipp Zabel , Rob Herring , Mark Rutland , Masahiro Yamada Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH] reset: uniphier-glue: Add Pro5 USB3 support Date: Tue, 10 Sep 2019 10:55:27 +0900 Message-Id: <1568080527-1767-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Pro5 SoC has same scheme of USB3 reset as Pro4, so the data for Pro5 is equivalent to Pro4. Signed-off-by: Kunihiko Hayashi --- Documentation/devicetree/bindings/reset/uniphier-reset.txt | 5 +++-- drivers/reset/reset-uniphier-glue.c | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/reset/uniphier-reset.txt b/Documentation/devicetree/bindings/reset/uniphier-reset.txt index ea00517..e320a8c 100644 --- a/Documentation/devicetree/bindings/reset/uniphier-reset.txt +++ b/Documentation/devicetree/bindings/reset/uniphier-reset.txt @@ -130,6 +130,7 @@ this layer. These clocks and resets should be described in each property. Required properties: - compatible: Should be "socionext,uniphier-pro4-usb3-reset" - for Pro4 SoC USB3 + "socionext,uniphier-pro5-usb3-reset" - for Pro5 SoC USB3 "socionext,uniphier-pxs2-usb3-reset" - for PXs2 SoC USB3 "socionext,uniphier-ld20-usb3-reset" - for LD20 SoC USB3 "socionext,uniphier-pxs3-usb3-reset" - for PXs3 SoC USB3 @@ -141,12 +142,12 @@ Required properties: - clocks: A list of phandles to the clock gate for the glue layer. According to the clock-names, appropriate clocks are required. - clock-names: Should contain - "gio", "link" - for Pro4 SoC + "gio", "link" - for Pro4 and Pro5 SoCs "link" - for others - resets: A list of phandles to the reset control for the glue layer. According to the reset-names, appropriate resets are required. - reset-names: Should contain - "gio", "link" - for Pro4 SoC + "gio", "link" - for Pro4 and Pro5 SoCs "link" - for others Example: diff --git a/drivers/reset/reset-uniphier-glue.c b/drivers/reset/reset-uniphier-glue.c index a45923f..2b188b3bb 100644 --- a/drivers/reset/reset-uniphier-glue.c +++ b/drivers/reset/reset-uniphier-glue.c @@ -141,6 +141,10 @@ static const struct of_device_id uniphier_glue_reset_match[] = { .data = &uniphier_pro4_data, }, { + .compatible = "socionext,uniphier-pro5-usb3-reset", + .data = &uniphier_pro4_data, + }, + { .compatible = "socionext,uniphier-pxs2-usb3-reset", .data = &uniphier_pxs2_data, },