From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0B85C433E2 for ; Thu, 17 Sep 2020 10:43:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F9E52074B for ; Thu, 17 Sep 2020 10:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600339407; bh=l8+mYv084D4frOVuw6OrW0ntYZbpPSfoQqaxrT6lcCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HR20zAUXi5fIQYxgb+y8duD4FDUkyJGoFeOG1w8ypiz5R7mnhlsofCV2nOFV8R1sa UMZ6zHP58QOyuCJr1QSlYiEw+vZwR0cqhw+14eEX66G+Yi9nWrcFvhWNKtiMPPfItN ICrs5LVCPC3Rbh+NwTykeLAGnMKR1CGgA6dHrnDc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbgIQKnU (ORCPT ); Thu, 17 Sep 2020 06:43:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:53432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbgIQKmX (ORCPT ); Thu, 17 Sep 2020 06:42:23 -0400 Received: from mail.kernel.org (ip5f5ad5d2.dynamic.kabel-deutschland.de [95.90.213.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 02092221E3; Thu, 17 Sep 2020 10:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600339342; bh=l8+mYv084D4frOVuw6OrW0ntYZbpPSfoQqaxrT6lcCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jv7YW6NGNBqfYcj0bEnYGgszSVaxcjX9SrEZYLacnezvfTO7yrB+HK1nheaZgiAkZ djs+DNTgguP7ry7pzcWtyc3JOv3C4gkSBq6glxLE8emVHGFUiJyCLjQnAeSKn1LNPg hsS7hkRpMUi3whOrR5oKSTepXW6k77q8ojgKyEU0= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kIrMp-005WZf-Rt; Thu, 17 Sep 2020 12:42:19 +0200 From: Mauro Carvalho Chehab To: Greg KH Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "John Stultz" , "Manivannan Sadhasivam" , "Vinod Koul" , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 7/8] staging: hikey9xx: phy-hi3670-usb3: change some DT properties Date: Thu, 17 Sep 2020 12:42:11 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do some changes at the DT properties in order to make it follow the phy-hi3660-usb3 example and to simplify usb3-phy-tx-vboost-lvl name. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/hikey9xx/phy-hi3670-usb3.c b/drivers/staging/hikey9xx/phy-hi3670-usb3.c index cb0bfcbbfbfa..42dbc20a0b9a 100644 --- a/drivers/staging/hikey9xx/phy-hi3670-usb3.c +++ b/drivers/staging/hikey9xx/phy-hi3670-usb3.c @@ -627,18 +627,18 @@ static int hi3670_phy_probe(struct platform_device *pdev) return PTR_ERR(priv->sctrl); } - priv->usb31misc = syscon_regmap_lookup_by_phandle(dev->of_node, - "hisilicon,usb31-misc-syscon"); + /* node of hi3670 phy is a sub-node of usb3_otg_bc */ + priv->usb31misc = syscon_node_to_regmap(dev->parent->of_node); if (IS_ERR(priv->usb31misc)) { - dev_err(dev, "no hisilicon,usb31-misc-syscon\n"); + dev_err(dev, "no hisilicon,usb3-otg-bc-syscon\n"); return PTR_ERR(priv->usb31misc); } - if (of_property_read_u32(dev->of_node, "eye-diagram-param", + if (of_property_read_u32(dev->of_node, "hisilicon,eye-diagram-param", &priv->eye_diagram_param)) priv->eye_diagram_param = KIRIN970_USB_DEFAULT_PHY_PARAM; - if (of_property_read_u32(dev->of_node, "usb3-phy-tx-vboost-lvl", + if (of_property_read_u32(dev->of_node, "hisilicon,tx-vboost-lvl", &priv->tx_vboost_lvl)) priv->eye_diagram_param = KIRIN970_USB_DEFAULT_PHY_VBOOST; -- 2.26.2