From patchwork Thu Jan 28 17:52:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 372618 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1485203jam; Thu, 28 Jan 2021 09:55:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkAZNuG1SBiiU+9An+QJM2PJOUGh6uTsHpFDlwj6W/I/bA8OxuspT0i3RdZARruFcjbplZ X-Received: by 2002:a05:6402:318e:: with SMTP id di14mr778787edb.223.1611856535222; Thu, 28 Jan 2021 09:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611856535; cv=none; d=google.com; s=arc-20160816; b=HJifCe5EohFa77LaX2ftne6rr/4RdfAtmsVQuL6Vqprx5RrOqEg+++s+Xtjzs3+Lqe 8ytYDsY5CWDyd1pxMVEBcoNOTbOZLoLLat6XS7KTZzPXZHMOAlxKiBXuzolIPME3kBMA 3NB3PEeD0EPT1E18/qg7doyvvaDLw2mT05B+CmJaQWQ5g6VawBunxXcHBm17TLXp6j+P FUmaS7zG4u0xG/t15hsPyjkL3CEbc39oN+jtX1AD8Apt46P7MN1zlI41IS8RoVpO/jBz 5P8xfEGcQdC1c6g34Yh+j4tjuSWbU23PcmdefRIjIDwMopEIY3NlQc2obNuFI+3vx9cB 9jcA== 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=kXIYIWOunXUjcWL7Qp+RVBAXkAFNksvup6VJ/C+XqQ8=; b=VLlxLbSo1MaHRRk4PAbh5sQM7pP1OI3aS4/4Psgbf9hvy3RBYg+RKqG2xmUgw0ewpP rzjJCUvjhym8rNEB9NI7gRePDadYn2RQmsnARyDxaNSd9NcuhZ/U4L9fPItdoj5iPNdZ tTLdZbwTyKHvxEyGbZ3fmAuz/zH1ubtLgP4GsoS4nlr7d6XanY7z7YiPq8WVUyIV1TDM uxLmKJyF6Hay6U5u1TeWjrwka1JR7YXV4TkDJZUEP3uBTVQ4FUciSL/TX/j9IFe3ncil MCVoViI8+X9j5iUu/kgU+ahWsisCYFHXNKLa6QF7i7Hx0s+oy0Ggt9DkedTBHvkmgnHR 5l0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RaRlNAgw; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lc20si3071079ejc.253.2021.01.28.09.55.35; Thu, 28 Jan 2021 09:55:35 -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=@linaro.org header.s=google header.b=RaRlNAgw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbhA1RyP (ORCPT + 15 others); Thu, 28 Jan 2021 12:54:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231231AbhA1Rxx (ORCPT ); Thu, 28 Jan 2021 12:53:53 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2700BC061797 for ; Thu, 28 Jan 2021 09:52:36 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id f1so8774942lfu.3 for ; Thu, 28 Jan 2021 09:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kXIYIWOunXUjcWL7Qp+RVBAXkAFNksvup6VJ/C+XqQ8=; b=RaRlNAgwMhO+EerI7xJzT/PTK/SN8To09PUyTnVIk/FuvmO6E7kSc1wym9J9fEfXq9 ovbwkqP9d3ZMS5QyA7jpp0FczPXCoTd1VliX7Bl7dMkiGPoabsXVASnd6fPyTpK/Iafc fqaozUnv5rcFeSH+RuiT0Kjy4Q0QyEmhhNmVNCTJX5mw13RKwKPzuKMtnqBilCiytRza uGPov7+OYFDyBEXG7lZnXChI1hWZUr9r7sMNmZPDUmRGq3bClyf9t521t+MQOMrb7avD U9WR3JK3S88mwA2fQj0OLIlfkyljSxS3TjwR2UH021UeswTWa5JyH/JHp3JmJtSqwWrq pzCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kXIYIWOunXUjcWL7Qp+RVBAXkAFNksvup6VJ/C+XqQ8=; b=mIK0LBv97d26EVkFuZ5F+2b8b0S9WHJjsQtjqrU2LnnGt24TaoYmf0ixrWQS82gLvG 2irrz/ZihLusmQ3FauLodDBjcw4OqLALP5I8rKk38jd6BCzX2DZlEDTKjKRU2Vwgef3L XIF9mIHcIULZ3zQvh0AX0m9zzlr6WekslfEIhwy/lxDPOkESoO6A2Nxw68PA6wEhpzqp beq1Gk8e1g8nAL74tmu/J0ex+WrFsbrlylH9N9cZbr4TgnY/TckxzxC80ZnsRidgHjoV 6qsQZqfX5EPpfdH2d2x2foOHVjLxESvCaxJwwPnhBtvFMtC1EBQTzUlMW/HFJks0Um3P iJtw== X-Gm-Message-State: AOAM531iGjtrMK+9MjUpse9VX2GX4LbhSQOUSxfeQJPlYf1jiX5/xaaU g6u5uRgxWt3xgvaDdoekwxsbGA== X-Received: by 2002:a19:488c:: with SMTP id v134mr101677lfa.229.1611856354679; Thu, 28 Jan 2021 09:52:34 -0800 (PST) Received: from eriador.lan ([94.25.229.83]) by smtp.gmail.com with ESMTPSA id w10sm2216119ljj.37.2021.01.28.09.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 09:52:34 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Arnd Bergmann , Greg Kroah-Hartman , Stanimir Varbanov , Lorenzo Pieralisi , Bjorn Helgaas Cc: linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v2 2/5] arm64: qcom: dts: qrb5165-rb5: add qca6391 power device Date: Thu, 28 Jan 2021 20:52:22 +0300 Message-Id: <20210128175225.3102958-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210128175225.3102958-1-dmitry.baryshkov@linaro.org> References: <20210128175225.3102958-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add qca6391 to device tree as a way to provide power domain to WiFi and BT parts of the chip. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) -- 2.29.2 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 8aebc3660b11..2b0c1cc9333b 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -151,6 +151,23 @@ vreg_s4a_1p8: vreg-s4a-1p8 { regulator-max-microvolt = <1800000>; regulator-always-on; }; + + qca6391: qca6391 { + compatible = "qcom,qca6390"; + #power-domain-cells = <0>; + + vddaon-supply = <&vreg_s6a_0p95>; + vddpmu-supply = <&vreg_s2f_0p95>; + vddrfa1-supply = <&vreg_s2f_0p95>; + vddrfa2-supply = <&vreg_s8c_1p3>; + vddrfa3-supply = <&vreg_s5a_1p9>; + vddpcie1-supply = <&vreg_s8c_1p3>; + vddpcie2-supply = <&vreg_s5a_1p9>; + vddio-supply = <&vreg_s4a_1p8>; + pinctrl-names = "default", "active"; + pinctrl-0 = <&wlan_default_state &bt_default_state>; + pinctrl-1 = <&wlan_active_state &bt_active_state>; + }; }; &adsp { @@ -1013,6 +1030,28 @@ &tlmm { "HST_WLAN_UART_TX", "HST_WLAN_UART_RX"; + bt_default_state: bt-default-state { + bt-en { + pins = "gpio21"; + function = "gpio"; + + drive-strength = <16>; + output-low; + bias-pull-up; + }; + }; + + bt_active_state: bt-active-state { + bt-en { + pins = "gpio21"; + function = "gpio"; + + drive-strength = <16>; + output-high; + bias-pull-up; + }; + }; + lt9611_irq_pin: lt9611-irq { pins = "gpio63"; function = "gpio"; @@ -1119,6 +1158,28 @@ sdc2_card_det_n: sd-card-det-n { function = "gpio"; bias-pull-up; }; + + wlan_default_state: wlan-default-state { + wlan-en { + pins = "gpio20"; + function = "gpio"; + + drive-strength = <16>; + output-low; + bias-pull-up; + }; + }; + + wlan_active_state: wlan-active-state { + wlan-en { + pins = "gpio20"; + function = "gpio"; + + drive-strength = <16>; + output-high; + bias-pull-up; + }; + }; }; &uart12 {