From patchwork Thu Jan 28 17:52:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 372751 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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 24887C433E6 for ; Thu, 28 Jan 2021 17:53:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E68CB64DEB for ; Thu, 28 Jan 2021 17:53:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231165AbhA1Rx3 (ORCPT ); Thu, 28 Jan 2021 12:53:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbhA1RxZ (ORCPT ); Thu, 28 Jan 2021 12:53:25 -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 EFE44C061786 for ; Thu, 28 Jan 2021 09:52:31 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id m22so8754744lfg.5 for ; Thu, 28 Jan 2021 09:52:31 -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:mime-version :content-transfer-encoding; bh=NbK71zkHFE6KyfVBTn33eAqZ7sZK9c/eEF1/aOohtXs=; b=z6XGXtbj5Lik//wIcDpxAkabUgKmtO1PJApFI7TuIgR5skxYw+lQm89sFiNwCfWdki gmtife6i9YrmTYdtxmQJJ3qvTQ9jtDeHpZny1gxvDwfTO423Nc5Yvhjh3n+Ss6H86HO0 0XXoTnOShJX0cJBtffL12BYegVE05kxRjW/zsE1kUSEBjIG4brnAxKvA69jdKpC/U2+f EEtGVVykeJuPeLMZlfcAPaDr07XCZI3ApPjiCVGA9jE9NOOrEvk0BmpkdvN50Ziei55i p8OuwvKrjAEvcRd2WcJM+8EqYPIG+eECmeKFxOODgqBqF43zcF5uPiZ2wNV06AgfQO5i TF7Q== 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:mime-version :content-transfer-encoding; bh=NbK71zkHFE6KyfVBTn33eAqZ7sZK9c/eEF1/aOohtXs=; b=hILJkLEXnHjeQ5QQfXrfvcsHRa2vfacHJpbBpFKpklVh8XefbhW15kUYH8G1+c0cwN zoBNbkQorqi+n4BuICXQ8A8n0TX6kUvfqybEw77V26mulinwb+nEa1S4SbvVU8JZ2Om4 SmceHmu6khJbHdyJvvJDqur7ZXng+cg/bkRewgxYkXdhGab4I2yDyiwDjPjF78RlpKlY HoAwqPUi+Y9fNIETbJ/KgIngtCmiMvDf1SDJnin1b4GNkOrm1Sc2YJTzHbJcVoXTQvpj uznTn1d/1NFoE+KUnPwB6uJrjMFVit4AyqTL5zbBZbHaTgNx51tMz3vb3CorBmMkk6Od WeVw== X-Gm-Message-State: AOAM533sQqDUq4VnI+ptTmdYDfsdAww3CLI7ih880Zo0F/s/eBqcOyms XppSF/af9qN0R7upyeQWgO6M7w== X-Google-Smtp-Source: ABdhPJw0TxpNgpcAn0O3X8/1z1fRsQfD1q21HK7RY7dPssNYpcPsyivXvE5Naui+R5qtmI6PWESz2A== X-Received: by 2002:a19:7ed2:: with SMTP id z201mr126736lfc.310.1611856350370; Thu, 28 Jan 2021 09:52:30 -0800 (PST) Received: from eriador.lan ([94.25.229.83]) by smtp.gmail.com with ESMTPSA id w10sm2216119ljj.37.2021.01.28.09.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 09:52:29 -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 0/5] Add support for Qualcomm QCA639x chips family Date: Thu, 28 Jan 2021 20:52:20 +0300 Message-Id: <20210128175225.3102958-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Qualcomm QCA639x is a family of WiFi + Bluetooth chips, with BT part being controlled through the UART and WiFi being present on PCIe bus. Both blocks share common power sources wich should be turned on before either of devices can be probed. Declare common 'qca639x' driver providing a power domain to be used by both BT and WiFi parts. Changes since v1: - Stopped using wildcard in the dts binding, stick to qcom,qca6390. - Stopped using pcie0_phy for qca639x power domain. - Describe root PCIe bridge in the dts and bind power domain to the bridge. - Add pci quirk to power up power domains connected to this bridge. ---------------------------------------------------------------- Dmitry Baryshkov (4): misc: qca639x: add support for QCA639x powerup sequence arm64: qcom: dts: qrb5165-rb5: add qca6391 power device pcie-qcom: provide a way to power up qca6390 chip on RB5 platform arm64: dtb: qcom: qrb5165-rb5: add bridge@0,0 to power up qca6391 chip Manivannan Sadhasivam (1): arm64: dts: qcom: Add Bluetooth support on RB5 arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/misc/Kconfig | 12 ++++++++++++ drivers/misc/Makefile | 1 + drivers/misc/qcom-qca639x.c | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/pci/controller/dwc/pcie-qcom.c | 21 ++++++++++++++++++++ 5 files changed, 300 insertions(+) create mode 100644 drivers/misc/qcom-qca639x.c