From patchwork Thu Feb 4 17:09:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376326 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1562670jah; Thu, 4 Feb 2021 11:24:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuf0PrWo1qnJjGshThctedJOlfTq1+PKChdn4IunJM81vB00UzqXEE1xcdS4wo0fH7RID9 X-Received: by 2002:a50:c403:: with SMTP id v3mr108913edf.217.1612466668812; Thu, 04 Feb 2021 11:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612466668; cv=none; d=google.com; s=arc-20160816; b=PjZ7AZpNIGoqcSJC/OYSdhcNFeyOoAbq4BNIvvtxi8UCAAKiM8HYDk9gWmmHIaX7p7 3xvP6gPc8AynPbDl7Ry4aGbgVTWgZLkJo5mxibjbN8r2a9SXWuXQfSRHU+K4KBr4KP++ 5wuwTfOx3mc+t+dIGz84PbElpzHw6BSYF56q0nzUPwqUpamX5fYDq6+XfSEvjWfmcdXL bHCF3SsUdY7KAmCRQVli/+Xwuoa0qz5iwPhfn156anZ1JUB/glbI3KoohinLpGiywOrP l9GU7jZaimW5yqK9glq+LZarTrhq4l0XG9tgSZLDGvTi1y/ZB6xM+4rqXsI/DL745iDw sAPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zyMuR77lYm/vVOq++bTt3mvFZKmYyWxRF2DAf4CTgQI=; b=L2SUxXWQO7H3c1dkTpAZF6ZyaXsqlxNoba4RUYdpJ8g4zPorJR+JmBG2A/yXDe7Fgc cn2zXf5C+vKh5TK8cGSml9mIvrDl9ne0lQzmGmx53SNdxZV4EEQh9QApWgFefcoecrxf 8+b3sKXi7qRsnNKCJfmZ2Iu6UBy6XHkfr/wBJeJK/1jIRxoq4T3oBMitoOBEHJ5fFlQ7 Ok9CXmLIs7SozZxNppKLADcB7RNpXCj00TvAReX4ifT33IGpDawciD4RdGsIMDyxtqot dmdyVxtg8MLjQ5FU8pzoRyok2GjLePPGDxjLhN5eiJtKEvD3MqvZFGnOxBgI24JUCoxx cfXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BGbuNN8V; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si4466267edr.555.2021.02.04.11.24.28; Thu, 04 Feb 2021 11:24:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BGbuNN8V; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239806AbhBDTXj (ORCPT + 16 others); Thu, 4 Feb 2021 14:23:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:56724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238334AbhBDRKE (ORCPT ); Thu, 4 Feb 2021 12:10:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F172B64F6A; Thu, 4 Feb 2021 17:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458560; bh=6JBkxfukJnxAzAKjwZa9CPnWxEuRo/VPphBY2gDmBio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BGbuNN8VDAjZDJhq9SwJygBlhnF8Fu0Mi73qNYd55apVBWI1j05QVPWk5RCEFFR3b obg65+q/GER/mKZlbp1CXiZLk/uXV8BZiLhX0X9rOVTcHqwjlf4Rijdz4zbQ7MBmmQ bWEFRk15nCXFZDpKIDudsJ11V7oKoiY8vVdFo8gQ3jNHgQ9s9XjoLBfco4zO/TgNCa Ew4Fu+bxLVvZ6PwSsm1a9gXlyDAX2ozL37A52EuHhHkC3ODCXVg7mPfKW5x/HHAc5K i5hiSvX3p/1g3QyGvP0fkU7yKilspAd63YJw/lNN/xzYtViqYWNhG2J/tOVnXKmrR2 WGqsZf/Ef4h9w== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 1/6] arm64: dts: qcom: Add SM8350 apss_smmu node Date: Thu, 4 Feb 2021 22:39:02 +0530 Message-Id: <20210204170907.63545-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds apss_smmu node to SM8350 DTS Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 105 +++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 29af0b931690..e3597e2a22ab 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -345,6 +345,111 @@ uart2: serial@98c000 { }; }; + apps_smmu: iommu@15000000 { + compatible = "qcom,sm8350-smmu-500", "arm,mmu-500"; + reg = <0 0x15000000 0 0x100000>; + #iommu-cells = <2>; + #global-interrupts = <2>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Thu Feb 4 17:09:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376325 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1562661jah; Thu, 4 Feb 2021 11:24:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU/2F2U/dOGPGbBaVVP8XWbmzsLUmg3HyjFPSfAQXnypz97VSsMcJB4FQSPA3skzGbebQ/ X-Received: by 2002:a50:d90a:: with SMTP id t10mr151142edj.162.1612466668170; Thu, 04 Feb 2021 11:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612466668; cv=none; d=google.com; s=arc-20160816; b=tKtil6e9YNChqUH83nWIQ/IiZJi+ScXFpJQoJvvGxU12Cht5o+zfkIpeTTDV+1ZQBR eJxrT9KRoill8chdBarimyqjsF08AV2YRH6UPsxH6Zlku4ZHuZba8OfKxyGl6qMNdWl4 yI/faiHIhDCmgOrXXa0p7N9F4EnM55YqNCTFqPDEFXb02Cb0Fo7OwP1ZrC9Zg7nG9zbu BpLMG/DSNQbI4F4IAY031e+BP0MEETd1RP/LxN0/99YFuR3pPQRgNKVNa0gt8cSkflUu 4Q2Yv6uTvx3SD0RoDDhtpOM+Odsl/lYbfgQ2TQ7OeHB6x2i974vXz13C2jk2typRNfU/ w/Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qxbp29eAduftG/Qj1Dy1xyPDMpG/yiRbJiOyb3pWY4c=; b=gcymcp1AUB93nU3sA4B4a7etWB4w4/nS44bKTSSU6bYIdeEA8BilzXV02SOeitVAzp 6Yf7enYA3Isrdk2njBnKZHYbLiakFRrtgDJsazYkx56n7OBeJgxvUYgMRGL1IOf+Ey9m +KLCobVnrBWWmTioJ56NNA1iZXQrtS5RqFXRh7Gmk2kOY9b2QKNwAO+9NxoZ9fTj+ZGp TVaIiKPD/ouItDF/NZMYRz8ZkcXbUTgcpvKT0ZjI/YnMqjKqq9mXvOyxBXrJM0Ud2iMD Ys5q2ctwAD8dUhEC2hL3DyCGjx7163iJwyNPgP05mG9pnH/XCZo1aXhGScjU56Uk5lD1 HnrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hCS1hZtb; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si4466267edr.555.2021.02.04.11.24.27; Thu, 04 Feb 2021 11:24:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hCS1hZtb; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238151AbhBDTXG (ORCPT + 16 others); Thu, 4 Feb 2021 14:23:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:56734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237283AbhBDRKY (ORCPT ); Thu, 4 Feb 2021 12:10:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 99BB364F6D; Thu, 4 Feb 2021 17:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458562; bh=JHXhqbqCdX1AcnYGavX78IW4Dm7s48Mg0Wmfyr7XqVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hCS1hZtbIfeIDsYGrg6Pmm4EbC+8SHIbMC5EQaNMjuLSpTJlWJZK0F30piYRAJ7fs kW5QDZb1LY2tWShPh9wwujR8zAN7rWayjOzWfTtRY078UConuMDMGNjNEodLX1c8Sg 9CGmEWRDK893CYUTjwuAcksruhwuz43dWE9oqOktR2o9bBYtmPUdUvTGME4jzT3g65 ShlaCUD9Z09S4M3L09bwZueI3ircSGtS77ixyqSmgiUfop/xydfWH5Ain5PsdH2VT0 6d0RGLUnKD01k7DKpGq+7ys701sCPMIE9D5BUGQp0Y362iApTnv2LF7aRwj4YOtaJn w1H2nQDNjOHSQ== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Jack Pham , Andy Gross , linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 2/6] arm64: dts: qcom: sm8350: add USB and PHY device nodes Date: Thu, 4 Feb 2021 22:39:03 +0530 Message-Id: <20210204170907.63545-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jack Pham Add device nodes for the two instances each of USB3 controllers, QMP SS PHYs and SNPS HS PHYs. Signed-off-by: Jack Pham Message-Id: <20210116013802.1609-2-jackp@codeaurora.org> Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 179 +++++++++++++++++++++++++++ 1 file changed, 179 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e3597e2a22ab..e51d9ca0210c 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -592,6 +592,185 @@ rpmhcc: clock-controller { }; }; + + usb_1_hsphy: phy@88e3000 { + compatible = "qcom,sm8350-usb-hs-phy", + "qcom,usb-snps-hs-7nm-phy"; + reg = <0 0x088e3000 0 0x400>; + status = "disabled"; + #phy-cells = <0>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "ref"; + + resets = <&gcc 20>; + }; + + usb_2_hsphy: phy@88e4000 { + compatible = "qcom,sm8250-usb-hs-phy", + "qcom,usb-snps-hs-7nm-phy"; + reg = <0 0x088e4000 0 0x400>; + status = "disabled"; + #phy-cells = <0>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "ref"; + + resets = <&gcc 21>; + }; + + usb_1_qmpphy: phy-wrapper@88e9000 { + compatible = "qcom,sm8350-qmp-usb3-phy"; + reg = <0 0x088e9000 0 0x200>, + <0 0x088e8000 0 0x20>; + reg-names = "reg-base", "dp_com"; + status = "disabled"; + #clock-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&gcc 187>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc 189>; + clock-names = "aux", "ref_clk_src", "com_aux"; + + resets = <&gcc 28>, + <&gcc 30>; + reset-names = "phy", "common"; + + usb_1_ssphy: phy@88e9200 { + reg = <0 0x088e9200 0 0x200>, + <0 0x088e9400 0 0x200>, + <0 0x088e9c00 0 0x400>, + <0 0x088e9600 0 0x200>, + <0 0x088e9800 0 0x200>, + <0 0x088e9a00 0 0x100>; + #phy-cells = <0>; + #clock-cells = <1>; + clocks = <&gcc 190>; + clock-names = "pipe0"; + clock-output-names = "usb3_phy_pipe_clk_src"; + }; + }; + + usb_2_qmpphy: phy-wrapper@88eb000 { + compatible = "qcom,sm8350-qmp-usb3-uni-phy"; + reg = <0 0x088eb000 0 0x200>; + status = "disabled"; + #clock-cells = <1>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&gcc 193>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc 192>, + <&gcc 195>; + clock-names = "aux", "ref_clk_src", "ref", "com_aux"; + + resets = <&gcc 33>, + <&gcc 31>; + reset-names = "phy", "common"; + + usb_2_ssphy: phy@88ebe00 { + reg = <0 0x088ebe00 0 0x200>, + <0 0x088ec000 0 0x200>, + <0 0x088eb200 0 0x1100>; + #phy-cells = <0>; + #clock-cells = <1>; + clocks = <&gcc 196>; + clock-names = "pipe0"; + clock-output-names = "usb3_uni_phy_pipe_clk_src"; + }; + }; + + usb_1: usb@a6f8800 { + compatible = "qcom,sm8350-dwc3", "qcom,dwc3"; + reg = <0 0x0a6f8800 0 0x400>; + status = "disabled"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&gcc 23>, + <&gcc 173>, + <&gcc 18>, + <&gcc 176>, + <&gcc 179>; + clock-names = "cfg_noc", "core", "iface", "mock_utmi", + "sleep"; + + assigned-clocks = <&gcc 176>, + <&gcc 173>; + assigned-clock-rates = <19200000>, <200000000>; + + interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 14 IRQ_TYPE_EDGE_BOTH>, + <&pdc 15 IRQ_TYPE_EDGE_BOTH>, + <&pdc 17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hs_phy_irq", "dp_hs_phy_irq", + "dm_hs_phy_irq", "ss_phy_irq"; + + power-domains = <&gcc 4>; + + resets = <&gcc 26>; + + usb_1_dwc3: dwc3@a600000 { + compatible = "snps,dwc3"; + reg = <0 0x0a600000 0 0xcd00>; + interrupts = ; + iommus = <&apps_smmu 0x0 0x0>; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + phys = <&usb_1_hsphy>, <&usb_1_ssphy>; + phy-names = "usb2-phy", "usb3-phy"; + }; + }; + + usb_2: usb@a8f8800 { + compatible = "qcom,sm8350-dwc3", "qcom,dwc3"; + reg = <0 0x0a8f8800 0 0x400>; + status = "disabled"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&gcc 24>, + <&gcc 180>, + <&gcc 19>, + <&gcc 183>, + <&gcc 186>, + <&gcc 192>; + clock-names = "cfg_noc", "core", "iface", "mock_utmi", + "sleep", "xo"; + + assigned-clocks = <&gcc 183>, + <&gcc 180>; + assigned-clock-rates = <19200000>, <200000000>; + + interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 12 IRQ_TYPE_EDGE_BOTH>, + <&pdc 13 IRQ_TYPE_EDGE_BOTH>, + <&pdc 16 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hs_phy_irq", "dp_hs_phy_irq", + "dm_hs_phy_irq", "ss_phy_irq"; + + power-domains = <&gcc 5>; + + resets = <&gcc 27>; + + usb_2_dwc3: dwc3@a800000 { + compatible = "snps,dwc3"; + reg = <0 0x0a800000 0 0xcd00>; + interrupts = ; + iommus = <&apps_smmu 0x20 0x0>; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + phys = <&usb_2_hsphy>, <&usb_2_ssphy>; + phy-names = "usb2-phy", "usb3-phy"; + }; + }; }; timer { From patchwork Thu Feb 4 17:09:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376323 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1562589jah; Thu, 4 Feb 2021 11:24:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbP1blKXEaO7kN4hEWalCdjNAvLCSW2Sxejz1agDXSA1lUJQfJGZnhK7vijoj05LIt6tH2 X-Received: by 2002:aa7:c0cd:: with SMTP id j13mr99961edp.319.1612466661727; Thu, 04 Feb 2021 11:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612466661; cv=none; d=google.com; s=arc-20160816; b=LpRqrdoxHxIbUng+ZGitM4Pmy9ddwSSh6PyRjnquO6qVCO2hi4h+qBT/tQcsBXL8qD mzN+SXg0p0+Hof8H6OTYy7U76L0dfCHc1hZ+60mO/FCEYm08OR1Y+ufZwvdTGOOdxkmc D/cmPqk8EVduK7O27TNmPsQYS0dXFEWULY4/MkNkJfvYhQN4lY3hoABviKlIyVygC/b0 mM6zMcbhWypRmN89ugEAyXq1aa8/8RC+iqJueftID9xzNMFXGvQ7LnPPtr3AIbrMdgN7 UQamhtw47CHlvQNKLpG1GaahmRr6bq3piaZjgBigOuz20DaYWLEYUcdqvgJDVnJOOa8y 7v5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hDvFN7FOpJNjEtqonEfKLDLAFEoHhYkdIfVB3sA5RO8=; b=LmW5eY2SaCwWAew2FC0ekXRq9YLg68nT7BZnvhvbZ5lIb79gAM9U5itJjhbMLqS7gI BHEGL1GdH0660UFF872gidnxXs40bgipulNTbDCkIztmf5p6XXjKiu3tJi/1plxCP2fK NrDzX+t09xFUwBq2pHkZZTfFj9L7P9kZhY9fKWd/WHhkj+B9xjt4k1Fnt9OZ3SAOqOSV VS6Lvj2NMe6X6+hDvXZW6IKBW65KBzVtDPFbzzAhWvi8lNACjJl2DrHOEVYJQAC5YOko +5S3lyXN1FCm6Gh7GjndbYlNuEpfd70kWr0O9L7gR0g1yidEC3yBEDQrllpNX/8UNQER CI+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c99jDqMx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si4466267edr.555.2021.02.04.11.24.21; Thu, 04 Feb 2021 11:24:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c99jDqMx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238255AbhBDTXM (ORCPT + 16 others); Thu, 4 Feb 2021 14:23:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:56746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238339AbhBDRKX (ORCPT ); Thu, 4 Feb 2021 12:10:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8317864F65; Thu, 4 Feb 2021 17:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458565; bh=35QGcWRXrFZZKLLrP8CbNn95b1JWwB0ykltG6Pu99j0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c99jDqMx9VGky9p5LbB87lAzjRfq0NmAeChii4YBlgoO+poQrAxqMv0KN8Z0+ycn2 zQYqfEscDgreKoiaxrDsrD27tiFfGIWaAFp4rd6bVEgRUUc+gCEKXiWOp6TrBMGeeA eIxWQA7wcPPIHl+yG3SlSPb10lllGz5fI61Pg5PTEeiYZO8EIjl46Q5hwEakbxGi6g r+nZSiFutbq6f7A7ImRxCeivzHj7kF0NgJgtVA+Yaj8kbB9HcSKPqAlVF8ZwdvfWMj cVOBHm4T/BcJ2xb/LwluApe/BB8Lbx7cNJaMLEv2f9q/EUpIAqICT9eAVkawKC4gSg DiLv3YWxB2+3w== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Jack Pham , Andy Gross , linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 3/6] arm64: dts: qcom: sm8350-mtp: enable USB nodes Date: Thu, 4 Feb 2021 22:39:04 +0530 Message-Id: <20210204170907.63545-4-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jack Pham Enable both USB controllers and associated hsphy and qmp phy nodes on sm8350 MTP. Designate the usb_1 instance as peripheral-mode only until proper PMIC based Type-C dual-role handling is supported. TODO: the second USB controller is exposed to a microAB port. Dual- role can be supported for this by adding the "usb-role-switch" property as well as defining a USB connector node with a "gpio-usb-b-connector" compatible. However, this requires GPIO support from PM8350 which is still missing. Signed-off-by: Jack Pham Message-Id: <20210116013802.1609-3-jackp@codeaurora.org> Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts index 8923657579fb..a2baa1ad3752 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts @@ -248,3 +248,45 @@ &tlmm { &uart2 { status = "okay"; }; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_1_hsphy { + status = "okay"; + + vdda-pll-supply = <&vreg_l5b_0p88>; + vdda18-supply = <&vreg_l1c_1p8>; + vdda33-supply = <&vreg_l2b_3p07>; +}; + +&usb_1_qmpphy { + status = "okay"; + + vdda-phy-supply = <&vreg_l6b_1p2>; + vdda-pll-supply = <&vreg_l1b_0p88>; +}; + +&usb_2 { + status = "okay"; +}; + +&usb_2_hsphy { + status = "okay"; + + vdda-pll-supply = <&vreg_l5b_0p88>; + vdda18-supply = <&vreg_l1c_1p8>; + vdda33-supply = <&vreg_l2b_3p07>; +}; + +&usb_2_qmpphy { + status = "okay"; + + vdda-phy-supply = <&vreg_l6b_1p2>; + vdda-pll-supply = <&vreg_l5b_0p88>; +}; From patchwork Thu Feb 4 17:09:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376324 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1562607jah; Thu, 4 Feb 2021 11:24:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyP3IPFSTi3v8EwObtuRHr5E/KmoLF7MyOiO+J21FbogrdN13i19qUcVkf5DFKIGae2m7Le X-Received: by 2002:a05:6402:3122:: with SMTP id dd2mr139047edb.262.1612466664071; Thu, 04 Feb 2021 11:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612466664; cv=none; d=google.com; s=arc-20160816; b=DJOWgtceG/kGHSMFDPlwkKSwG6/L2fit6CYVJegvf1dXjJDilov2QxxuR5+3X7otUl x59+SZ217mX4m9nMvWPnWW+WpNYsgT43O/tYlXCHxQssY+GtQqp4bK6GoMNZVIsoucYT uoQ0WvsXcp463RPY2GdwMUH7g/lPww5FikHV2jsIzhEaXa4NIlBXgjwwTHz4m2v/XSx2 fjizMMZwZn/sbQfgsGE6ozErXkiy07Z4j0qd+6doVPQ/P/wQdHiNtXtboQfvZCGNWTxk j0d3K3KmQaNmHg2rBexR/jF2kxUMlFnCueJnc1xblQ3Wr4+GbxEd5SYzCPv+omX8gHya DEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b2Ar8DcuzmPoMvXDDWemKruqtPNTkbsIeLRngZxVMFM=; b=C8vGFt/5oo75TuhkDhGtqFJJKWelDc7tu/G7Qi9R9fXQ6FB2gLyUjS2NJzmUnnpqSs OAXZ4fZxw2v25ft4eavC9FTkgjKhpgy9Etmr8yYc7KNoiI6U8y/u4+Fk3Gx9RBo5nqAW u3ADRNdN4bYSAUwm/aiBu+QrUnqSsTA5bVK5Wnkg5K2yLhApe9cViIbZYw0jZeOER4ju rMjmqeO8nk/xZEMcviB7am4A8FFhp/MeDAQyk04Yxd/goHVZvYcxvyrNdEcK2kHgM4kZ lyRGUg+8+gpYM2P4QWL1W4CFrXH8xtELxlApbC6ER2e+xNMoHujW6UxU5sLku06ItrpN 3ozg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mZb6C2ZH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si4466267edr.555.2021.02.04.11.24.23; Thu, 04 Feb 2021 11:24:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mZb6C2ZH; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239799AbhBDTXJ (ORCPT + 16 others); Thu, 4 Feb 2021 14:23:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:56766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237638AbhBDRKY (ORCPT ); Thu, 4 Feb 2021 12:10:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D46B64F72; Thu, 4 Feb 2021 17:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458568; bh=xoWq4aqI+4Cn3qczfLSrx0Hoi/7jeG+0q0yZ6kUSHEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZb6C2ZHWcIsQ9vh/meYf1QtwEykwrBwN/jD7JbFvj6AoZY9KwvNm4b9Di7dP59xt sEKVPjV+Tz4FehL5zPN+3XwEsc2XMhOQ2HRGNv12xeK3mKKEqtuFaqXqgACC8iOjoH K7sqE/+hBSCMP1AHSNFHBxYAIdhseiEr5Yf51lr1RqcDrl9vM4qEs7Wc0LPA+g+R/o GKePDhA+6pqiFucxd3JHdrITtlynclJ8rZrvFjgpceC9mpuhLJTBXocF53aHrLpiSl o10iqV1r+9ZZlO/KIHd12KZlN08a7CP3rYu6vFwmlpRLjTjvUPu7HtipzX+/lyaKt5 ScOr7Vz2PgPWw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: qcom: Add SM8350 UFS nodes Date: Thu, 4 Feb 2021 22:39:05 +0530 Message-Id: <20210204170907.63545-5-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds UFS HC and UFS phy nodes to the SM8350 DTS Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 76 ++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e51d9ca0210c..188f4011352c 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -593,6 +593,82 @@ rpmhcc: clock-controller { }; + ufs_mem_hc: ufshc@1d84000 { + compatible = "qcom,sm8350-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0 0x01d84000 0 0x3000>; + interrupts = ; + phys = <&ufs_mem_phy_lanes>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc 25>; + reset-names = "rst"; + + power-domains = <&gcc 3>; + + iommus = <&apps_smmu 0xe0 0x0>; + + clock-names = + "ref_clk", + "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; + clocks = + <&rpmhcc RPMH_CXO_CLK>, + <&gcc 155>, + <&gcc 16>, + <&gcc 154>, + <&gcc 170>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc 168>, + <&gcc 164>, + <&gcc 166>; + freq-table-hz = + <75000000 300000000>, + <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <75000000 300000000>; + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sm8350-qmp-ufs-phy"; + reg = <0 0x01d87000 0 0xe10>; + #address-cells = <2>; + #size-cells = <2>; + #clock-cells = <1>; + ranges; + clock-names = "ref", + "ref_aux"; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc 161>; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + status = "disabled"; + + ufs_mem_phy_lanes: lanes@1d87400 { + reg = <0 0x01d87400 0 0x108>, + <0 0x01d87600 0 0x1e0>, + <0 0x01d87c00 0 0x1dc>, + <0 0x01d87800 0 0x108>, + <0 0x01d87a00 0 0x1e0>; + #phy-cells = <0>; + #clock-cells = <0>; + }; + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sm8350-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; From patchwork Thu Feb 4 17:09:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376304 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1467904jah; Thu, 4 Feb 2021 09:13:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTdjrxYU1oWafsBiA1kBtfK4RyiWNHb40zN4rNzF9RmgJnfqjPRWjuR2zrSYetEYDrYvDb X-Received: by 2002:aa7:ce96:: with SMTP id y22mr5985162edv.369.1612458837014; Thu, 04 Feb 2021 09:13:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612458837; cv=none; d=google.com; s=arc-20160816; b=fRuyRih1gERJ+rLRpre1nFHRXPreSJBfn/wZiRFu7p6NQE6SuVBUSQqLfiyTM/ZMq1 wWEHjSGpgKBnxDl0Yfs2+IRX7ELfaaIc/L/aHSR8anv09Q/5Sng2eYsOVY/r2e+hGJUd WFJlmbHSUEqevOke/8MHSrmQO1Rz/9IUTV7rlclPmrnXfms+rji4WN0XDsvLQ2wLTThW p2G0kftMs2Aa/FYT8ql0pslkjhPMT1+q25WhEf1xwwdi/Uqp3CVrELDSlst9qOsoL4vN iIq4qrF4+lkgdLFEzur2OLWxAQ+Paw74eqwZMKvaDWeR46raLpaRB4gvPsuR/x2fKTcY 001g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uUNBJSSlXuAMNdkv/FI6YL9qcWo7T63rAbrMC9YCO50=; b=yssnOwB7794mUcTJ9D9SkBl84BKQPOIURMgCgUUeQ1Pdn5XE5a/Y9+HnHMubFYPkDu gcW0o55pzY2vfkpu9w+tiFzxJP95OlaKU1Fih8sadTfg9xk+EhGpoWPLWxJU/tjAjs/T Jj+H29CX507tB6kQfUlvVS93DYVlQUiysCjTsTo0kBx30+O+lZKZdz+Ant/q5w9jcrn3 LcZXyweVz/yxZmXt3wremL8f6QsETz0dZBpc/T9cFuuWpBk+AfEWi2hSnz1OTK+pcuyr U5mC5/F1RoAN7WlK/5aPnGGDH6sSHDzlw6TIWT/aCDT5SLhDkdlOKnDUr7BJCJLmhlYH ptTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=omlHFt+6; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si3536231ejc.207.2021.02.04.09.13.56; Thu, 04 Feb 2021 09:13:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=omlHFt+6; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238286AbhBDRMr (ORCPT + 16 others); Thu, 4 Feb 2021 12:12:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:57126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238342AbhBDRMG (ORCPT ); Thu, 4 Feb 2021 12:12:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F37764F70; Thu, 4 Feb 2021 17:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458571; bh=rVkFqKiMv651OhiZuuMPdxsM2ChvMEUmeWBZTKPpj9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=omlHFt+6EED+KLr0pZ0VvVb5LnhbPQzSvA9aSqO+hDrhnA2KCIVQ1XCCdXAbwJVij SZjD16oHgyMDaoq8LR33y6UAo4kiijU3pQhoYInwBw6z7SZWkVDsa20PRFU1Y7jxun uIg01cRVxLv71J47FM0EGVuXV6EGCK+kUo5Z+XaXIj0G8TKhFsGbtwXn2TIDavltBa 3QQ3nbkSIQ8jr340wQTJiO8bN0QMBXUnNAHSUPnOSm+xiIcDf6sNgXl3elinaxI9zR Mm04FOSoxThSIA1BKdUgCYnVag0nBokIYS80rdVZSirrZoU+Z/nOTfX0BtkW/U6iWH VGbcIezau8RKw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: qcom: sm8350-mtp: enable UFS nodes Date: Thu, 4 Feb 2021 22:39:06 +0530 Message-Id: <20210204170907.63545-6-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enabled the UFS node found in SM8350-MTP platform, also add the regulators associated with UFS HC and UFS phy to these nodes. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts index a2baa1ad3752..2675afbbd75e 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include #include "sm8350.dtsi" @@ -249,6 +250,26 @@ &uart2 { status = "okay"; }; +&ufs_mem_hc { + status = "okay"; + + reset-gpios = <&tlmm 203 GPIO_ACTIVE_LOW>; + + vcc-supply = <&vreg_l7b_2p96>; + vcc-max-microamp = <800000>; + vccq-supply = <&vreg_l9b_1p2>; + vccq-max-microamp = <900000>; +}; + +&ufs_mem_phy { + status = "okay"; + + vdda-phy-supply = <&vreg_l5b_0p88>; + vdda-max-microamp = <91600>; + vdda-pll-supply = <&vreg_l6b_1p2>; + vdda-pll-max-microamp = <19000>; +}; + &usb_1 { status = "okay"; }; From patchwork Thu Feb 4 17:09:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376305 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1467934jah; Thu, 4 Feb 2021 09:13:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqbAC89GbaJfjYyqRIeavC/mplMY2M19zDJNFotimdRekzQYAFlmW5HmRwHl6fAW35XjNs X-Received: by 2002:a17:907:210d:: with SMTP id qn13mr71978ejb.377.1612458838842; Thu, 04 Feb 2021 09:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612458838; cv=none; d=google.com; s=arc-20160816; b=i9aLPP4Z1jAyCYNAb+cKawA3VS4WTCUazjVVfKzhe0ppB7v/dtHu9qclXNCQPk0hMz ispcMAWtiDqiK/tmF5X71467n/B0oxiAun8vSSXOhHh/4SiI0ue7JXeF3sJLxqZ4+7B0 vruxM/RzoZBuQT281KktGjBtwNpRxlO9kobSk+bRv7SgzzLoiw9PI89gmYC/gXUVqqwJ PH23VrUR1OnDmEIKegsm9+e0obUL39dk5VoSU5FiPUtbNZUNM7B22uDpUPUA9huCZ/v0 ImMwKsYD4Ilj9wrmnZkilLFHWq/GP4iEPlvtMDJirDIF+efiCmj4+Xl2d1q7YOHL693y iOVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J/XK+Vtz8qetwrz9/iL2VQYLAR1nw5uRzrcDeMBrUxs=; b=ipcJeveJpoRCbIleMxDxIDqR6cpMeA8DrdnpJM4RLRg+KvqyS036AIX2xqgkR+Ygkb KHdp2pT9nXcDTI3kcKrx2ppDuVetdB/enQhLDcWCmEg5+C4ml9MqTqjGjO7jQT7rkHcA PY2K1NcMAGPwajsoNE8AO7gFwLLPhDL4krHUwilHzWbExw+hRedBT5LnrebS3JXhg+/4 e1vqvmnRYxSnf0w3F4xPDBBV3xRNGM1ljgTzYdVTy8bXdTP3kbUqD8VG+DLUZXlQ6TK2 Udx1TViKFCVv1yU4QbP6VHcOSsnDNZPlBwLy9GLzFA4se5CQWk4FZmF4KjrD4b2GnAEN zdnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RFLVlEe9; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si3536231ejc.207.2021.02.04.09.13.57; Thu, 04 Feb 2021 09:13:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RFLVlEe9; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238314AbhBDRNR (ORCPT + 16 others); Thu, 4 Feb 2021 12:13:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:57128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238344AbhBDRMG (ORCPT ); Thu, 4 Feb 2021 12:12:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A71A164F76; Thu, 4 Feb 2021 17:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458573; bh=moLH7O3aPLeWeYHvK8JnDz0bw/lDVlhdHDFhU17tFB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RFLVlEe9qr5yIsioQY0+U/XfTDdYhYH5Y/PlSVSi/sM9124WY4jw1NejH6XhnrtQG e+krMAeIdhXCAO6WQh/+2HicZScaXCKvnpMqTcbfMJLmf2nonCQGHa9gEtRujfSVb2 7W1ghJ8DS8mOUw+8pd9eJgf8a92W7FwAccEcSPCK9KT9TWWEhAHZXB/+QrWfemGoqv gMat04vRp0uweR1pWYIhNnEOwbAFkg4iMTAetuIEFzo7ma66HahkNUqGACr+i5izOo vm8rpqcmNBGtxeJbo0ZW1W2MnG/dZNd4fzZ7lX85PxVc9XoTFuu396aQFgOncCszM7 dHBDJQw2ucyoA== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH 6/6] arm64: dts: qcom: sm8350-mtp: add regulator names Date: Thu, 4 Feb 2021 22:39:07 +0530 Message-Id: <20210204170907.63545-7-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the property "regulator-names" to the regulators as given in schematics so that it is easier to understand the regulators being used Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts index 2675afbbd75e..e544fe6b421f 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts @@ -57,57 +57,67 @@ pm8350-rpmh-regulators { vdd-l8-supply = <&vreg_s2c_0p8>; vreg_s10b_1p8: smps10 { + regulator-name = "vreg_s10b_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; vreg_s11b_0p95: smps11 { + regulator-name = "vreg_s11b_0p95"; regulator-min-microvolt = <752000>; regulator-max-microvolt = <1000000>; }; vreg_s12b_1p25: smps12 { + regulator-name = "vreg_s12b_1p25"; regulator-min-microvolt = <1224000>; regulator-max-microvolt = <1360000>; }; vreg_l1b_0p88: ldo1 { + regulator-name = "vreg_l1b_0p88"; regulator-min-microvolt = <912000>; regulator-max-microvolt = <920000>; regulator-initial-mode = ; }; vreg_l2b_3p07: ldo2 { + regulator-name = "vreg_l2b_3p07"; regulator-min-microvolt = <3072000>; regulator-max-microvolt = <3072000>; regulator-initial-mode = ; }; vreg_l3b_0p9: ldo3 { + regulator-name = "vreg_l3b_0p9"; regulator-min-microvolt = <904000>; regulator-max-microvolt = <904000>; regulator-initial-mode = ; }; vreg_l5b_0p88: ldo5 { + regulator-name = "vreg_l3b_0p9"; regulator-min-microvolt = <880000>; regulator-max-microvolt = <888000>; regulator-initial-mode = ; }; vreg_l6b_1p2: ldo6 { + regulator-name = "vreg_l6b_1p2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1208000>; regulator-initial-mode = ; }; vreg_l7b_2p96: ldo7 { + regulator-name = "vreg_l7b_2p96"; regulator-min-microvolt = <2400000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = ; }; vreg_l9b_1p2: ldo9 { + regulator-name = "vreg_l9b_1p2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = ; @@ -138,99 +148,116 @@ pm8350c-rpmh-regulators { vdd-bob-supply = <&vph_pwr>; vreg_s1c_1p86: smps1 { + regulator-name = "vreg_s1c_1p86"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1952000>; }; vreg_s2c_0p8: smps2 { + regulator-name = "vreg_s2c_0p8"; regulator-min-microvolt = <640000>; regulator-max-microvolt = <1000000>; }; vreg_s10c_1p05: smps10 { + regulator-name = "vreg_s10c_1p05"; regulator-min-microvolt = <1048000>; regulator-max-microvolt = <1128000>; }; vreg_bob: bob { + regulator-name = "vreg_bob"; regulator-min-microvolt = <3008000>; regulator-max-microvolt = <3960000>; regulator-initial-mode = ; }; vreg_l1c_1p8: ldo1 { + regulator-name = "vreg_l1c_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; }; vreg_l2c_1p8: ldo2 { + regulator-name = "vreg_l2c_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; }; vreg_l3c_3p0: ldo3 { + regulator-name = "vreg_l3c_3p0"; regulator-min-microvolt = <3008000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = ; }; vreg_l4c_uim1: ldo4 { + regulator-name = "vreg_l4c_uim1"; regulator-min-microvolt = <1704000>; regulator-max-microvolt = <3000000>; regulator-initial-mode = ; }; vreg_l5c_uim2: ldo5 { + regulator-name = "vreg_l5c_uim2"; regulator-min-microvolt = <1704000>; regulator-max-microvolt = <3000000>; regulator-initial-mode = ; }; vreg_l6c_1p8: ldo6 { + regulator-name = "vreg_l6c_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2960000>; regulator-initial-mode = ; }; vreg_l7c_3p0: ldo7 { + regulator-name = "vreg_l7c_3p0"; regulator-min-microvolt = <3008000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = ; }; vreg_l8c_1p8: ldo8 { + regulator-name = "vreg_l8c_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; }; vreg_l9c_2p96: ldo9 { + regulator-name = "vreg_l9c_2p96"; regulator-min-microvolt = <2960000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = ; }; vreg_l10c_1p2: ldo10 { + regulator-name = "vreg_l10c_1p2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = ; }; vreg_l11c_2p96: ldo11 { + regulator-name = "vreg_l11c_2p96"; regulator-min-microvolt = <2400000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = ; }; vreg_l12c_1p8: ldo12 { + regulator-name = "vreg_l12c_1p8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2000000>; regulator-initial-mode = ; }; vreg_l13c_3p0: ldo13 { + regulator-name = "vreg_l13c_3p0"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-initial-mode = ;