From patchwork Tue Sep 10 01:51:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 173434 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5162196ilq; Mon, 9 Sep 2019 18:51:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzW22X6go1snpyBKgrp2i38cqyF2QF+urinbF3xi17z0M4M7eknW0id4atzyStE2dCkrwjC X-Received: by 2002:a17:906:2101:: with SMTP id 1mr22164461ejt.221.1568080315214; Mon, 09 Sep 2019 18:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568080315; cv=none; d=google.com; s=arc-20160816; b=NktqsF8XmG6psEmfVajRkLuQphP/FMRw70IY0StCtVgVTLmfND70a4krr2HftdPGrE rFDR6a3/4KIt3Sv+qwGLJTThnf8MBGKaY9eM6tMOguDJb3OFCe1XKw5arxh/KnFPfjRv 2sNOTQw7FvebYiJf1u9nLHuQt5NW48GbRdHrgIKU4EblbZijpl+0KAR6+pmrZE2FiggP 6WdY4ey4n016cL7ypN1TffyJHeVlkql5jqab/NR1nOmZsQaSC6qqoGyX8e4CmIjIAFZ/ 335ZugE+1NpBibjrP9Ee/5mf7p+/YJctTiqjTwiPHZOtR0UL6AhIHQN76HM/AcyaEfk9 95bg== 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=9x1Bq5f2zwipDn61/nRX59Ns4Yti6LX0r1C+DhJIILI=; b=P0c6wZDUnpT/7UVCpoaz20LqOEpUxqZAKe590grKGSjJD2MoeGEZi9Wf5E/FEm39so 6umBQmJujhw2ZTm21qsktUBWZmOLVE5X6/IYa/eAJZGj8se8qzj2Ejkt9Pr2fxmuf2ED Y5LKb3yFR1rNfw6WGeE/opCyfFtP9Cvjehyp/PUwYJk8phDNUCxXsF7q5JXWCC3kZJhb r4Uer22cULO5HSYrxaE6OOepMqPUMD9VUdz9fGpBfVi3curHs9YytCLHyjwp5x52qlys 0DkfEtfPIB9j8TcBTxotJt1hJKdk0l4K9Jfl54/cjbKPFaKsOx5fuzc6ADSc5cjFdUkd EGGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 f20si8501710ejw.399.2019.09.09.18.51.54; Mon, 09 Sep 2019 18:51:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392630AbfIJBvy (ORCPT + 27 others); Mon, 9 Sep 2019 21:51:54 -0400 Received: from mx.socionext.com ([202.248.49.38]:11572 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbfIJBvx (ORCPT ); Mon, 9 Sep 2019 21:51:53 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 10 Sep 2019 10:51:51 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id DDFBC605F8; Tue, 10 Sep 2019 10:51:51 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 10 Sep 2019 10:51:51 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 5EFEF1A04FB; Tue, 10 Sep 2019 10:51:51 +0900 (JST) From: Kunihiko Hayashi To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Masahiro Yamada Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH] regulator: uniphier: Add Pro5 USB3 VBUS support Date: Tue, 10 Sep 2019 10:51:44 +0900 Message-Id: <1568080304-1572-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pro5 SoC has same scheme of USB3 VBUS as Pro4, so the data for Pro5 is equivalent to Pro4. Signed-off-by: Kunihiko Hayashi --- Documentation/devicetree/bindings/regulator/uniphier-regulator.txt | 5 +++-- drivers/regulator/uniphier-regulator.c | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt b/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt index c9919f4..94fd38b 100644 --- a/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/uniphier-regulator.txt @@ -13,6 +13,7 @@ this layer. These clocks and resets should be described in each property. Required properties: - compatible: Should be "socionext,uniphier-pro4-usb3-regulator" - for Pro4 SoC + "socionext,uniphier-pro5-usb3-regulator" - for Pro5 SoC "socionext,uniphier-pxs2-usb3-regulator" - for PXs2 SoC "socionext,uniphier-ld20-usb3-regulator" - for LD20 SoC "socionext,uniphier-pxs3-usb3-regulator" - for PXs3 SoC @@ -20,12 +21,12 @@ Required properties: - clocks: A list of phandles to the clock gate for USB3 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 USB3 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 See Documentation/devicetree/bindings/regulator/regulator.txt diff --git a/drivers/regulator/uniphier-regulator.c b/drivers/regulator/uniphier-regulator.c index 9026d5a..2311924 100644 --- a/drivers/regulator/uniphier-regulator.c +++ b/drivers/regulator/uniphier-regulator.c @@ -186,6 +186,10 @@ static const struct of_device_id uniphier_regulator_match[] = { .data = &uniphier_pro4_usb3_data, }, { + .compatible = "socionext,uniphier-pro5-usb3-regulator", + .data = &uniphier_pro4_usb3_data, + }, + { .compatible = "socionext,uniphier-pxs2-usb3-regulator", .data = &uniphier_pxs2_usb3_data, },