Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1225347lqb; Sat, 25 May 2024 11:01:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/dEmsTcYTF5scsu9xvNqxAe2CoOe0QNhk5XTDAGVoldUHA+tEcAMAPpFqo1Ul/4FvRAxJZNRP4EGbijpXX/pZvQfrGhHBvGNvZUbHkA== X-Google-Smtp-Source: AGHT+IEj5K6GTFvHCndPhN0MYaPo9MB9o97dB91wkUpE4Plh5cYFcqKVBw1gHn1tBPWh+MY0wtei X-Received: by 2002:a50:d696:0:b0:578:69ce:abf2 with SMTP id 4fb4d7f45d1cf-57869ceb411mr1494159a12.6.1716660095372; Sat, 25 May 2024 11:01:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716660095; cv=pass; d=google.com; s=arc-20160816; b=WAkpiehGLdqakUR2y7PDcnp7dI315NRXawziWPNDidqAs+h9pxsbRg5pmL0XAdoabD veprAC9SPnS40r+kSm0Ew833bOLOIEciI8URoB4hTxD8NGyXEPM506DiCsV6VkgXTr4Q abPfv7vnwRN9x77XtXqawey6zhJEDC3dlyQq26fR29ZWAzBIg7HCxcH+LWtZ0qF3EDvw ++WQLfaJ+dYWIA4zMBQNtuz/SKR19n1YEXKksGcOBPw/tdhv6BTPNNlw517/vHnIy0pv 3J69oaN92GEoWbFz7qEdW6xr3kpI08x8yS5MTfzPKjwdbWlJ6vb6bUu7qoq2oW+nXDOr mewQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=hVkbTTbJgsHcn6nDZbDCQX70CAH8R6c+fjifqIwCfA0=; fh=IGyJVnM8kE6PFE8VSxD4GjBPPX9ktAbYq9G7SEY6/ew=; b=OQx58xBrp5tR5cueoCD4mJo5B2Knez6gR+OwNvZTxKy72fyO7bCbZx2BPggk+gjVAj wApTUWH4kEbqmRkVzjKbZIdmqY707YiUVGsiSbCU6OWRa5RDYyrX0gTiEcikwoEKtSA/ zwB4sBOeY086yr+VLKqvrhFiOvKFnqDHHysxr6rive81NlK9mGp6WMo0wTWrtV+utvAq qmiHhPbMpvL6YHt1TFt2kdUIImtuaOpei5PmW5xE/LFWDWuHDpe1TAXNOwfz5HQw3vSL YSbDXlBxGM18dpQU7gNnkPRQC5PyCvD2i7aEr4R17Z6VaIjDrjaB6AIx0y0FvP8+b2wj kYig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NKxe4zYF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-579c39b4244si314149a12.657.2024.05.25.11.01.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 11:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NKxe4zYF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189496-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E033F1F21CA8 for ; Sat, 25 May 2024 18:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15F7712C558; Sat, 25 May 2024 17:59:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NKxe4zYF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30D3112BF14; Sat, 25 May 2024 17:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659957; cv=none; b=cgludtrOA7HWyG5FMChsgrU0s4TwcMLJqZ72lzKz1DYFTDdyvAqSsK4G109B0oxKf21ccVc6XbdkuA55t7tDi9rmSJzftno28QkA7uoMx3wYoiMgaOmtkIUpZN6Jr0440ZGB+AvF6qXwyvkAAVKibe6GaE1uxUXpa9PO1mnT5ZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659957; c=relaxed/simple; bh=o4kiKhxOwZs1Pl6joEEPNnwVtYuLg7fy0zk+ZBo5jEg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pr1le4qRsPwbWdf7L1KLltbKxF0ZbbepNepp0pAm+wPpREH6sElQNmTgx/WuR7C8J2g0TTwBNp4Zo9DnDEskqJjOskXTPBamBfA1Voj35TtB4wPlId9ly9FVrpfA0ilSSf5uyCAk3/1mgXatZHFBI22UfWLtmqLO8EMJ8JIoSR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NKxe4zYF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBB09C4AF0F; Sat, 25 May 2024 17:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716659957; bh=o4kiKhxOwZs1Pl6joEEPNnwVtYuLg7fy0zk+ZBo5jEg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NKxe4zYFCCM18q8ezxq5LJm8ltvq9pVyC+UFQ54t0Gy0AYKXPaYt2sgYq9SMk+BOG fgC/iwzOYTjunK9p7YGl1xoMnXOkm3glEfie8UIHXjCnbv9iEcuRjr/MMHlzLuTMhs yYgyci4SDd/jyU1TAGuyn8N8vB2tWBmmvN0pyqDq8zLR6Zmuwdkdm2+3abEMqj4jkA 1HeBsrRF5/BCxz70eCT/jBH057BzaQySLbebrl9Yd1QjERLm8io9XoUh8SYzIP/njv 8nYbWflp74GnXk77AvOi5pyqWG7ghAwF/cU2VJRZRW+4FKUEa3F6Ofidsa9VDY5Ftd qV+a/U+mhRLLw== From: Bjorn Andersson Date: Sat, 25 May 2024 11:03:59 -0700 Subject: [PATCH 06/10] arm64: dts: qcom: sc8180x-pmics: Add second PMC8180 GPIO Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240525-sc8180x-usb-mp-v1-6-60a904392438@quicinc.com> References: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> In-Reply-To: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Wesley Cheng , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1634; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=Fz7ILqf97xUvsYbsDXAR0+z9Xlwkl6S2Ykmd3P7Brak=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmUigMTRCju33i/vPFcthH2BUPrpcbaeiyCTtom b7DoTuGRkKJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZlIoDBUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcX0PRAA1Ad557RN9sy4ojGO8VytMOeFuvBiPoYLB6mqF+/ j24eHnPnr7vewgEWItHxNaxwF3ToG1WaTQb5B8KiXX6bus2T0H3XG/ypjVBG1hfNciXtGx5bomR e8YY4wc2zjBudbNwD1KgsXVVpVO4em7BpkGGtRlYYht8bgIUFM6AHbpShovwqcbVjQJz+qLFtVa DM6QyWmDqoPf0SV9EI08bx3AehOUAPwOJt48yl/IBPdnYM4DQ24P2G/fMxyDsgCz93TYzccV3VB 4NVTRgPjz1cCRGYJMnQgEn/svDOTJrO1I8BYvedv8PL/2lmx3Y0UPPav3iAtHh125KYnq2pKWar oZ7KEWjn8qO56VURK6m6Y0avvzBqA4R7dx/nGGywQSLJ9AaHFXjwkKByNQjO4LHbBQKD16r0R7Y IlUHiP7H5PIhOpetEV1uq7NUm7z0jOPjSBfYV5Pr6wviO027GixTZhJPCWcP8/Da886tSmMfg5H +U1k0wyUCO+7QXi+ZLvNXOLOYdS/Ni6qgfEn12yOWXNcnXiJf74gs72JOZL0ZEf3CtKydmizQMi 618YU3mOS1PdSQPJdIDVvk+MekE8A3KIih4hpSXO7YnVNa88Vzx1OSF4yjT5MpE48JhukZHcytl 1QK9WdYaYNBBaMraanRHO0/jkPPWr1VMgtEnuvGkG/Gk= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The SC8180X comes with two PMC8180 PMICs, with the GPIO block being used to control VBUS supply of the second USB multiport port. Rename the GPIO controller in the first PMC8180 to match the schematics and define this second controller. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi index ddc84282f142..95656b5ed481 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi @@ -141,11 +141,11 @@ rtc@6000 { interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; }; - pmc8180_gpios: gpio@c000 { + pmc8180_1_gpios: gpio@c000 { compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; - gpio-ranges = <&pmc8180_gpios 0 0 10>; + gpio-ranges = <&pmc8180_1_gpios 0 0 10>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -200,11 +200,21 @@ pmic@6 { #size-cells = <0>; }; - pmic@8 { + pmc8180_2: pmic@8 { compatible = "qcom,pm8150", "qcom,spmi-pmic"; reg = <0x8 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmc8180_2_gpios: gpio@c000 { + compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pmc8180_2_gpios 0 0 10>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmic@a { -- 2.43.0