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: 12054305 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 7E919C433DB for ; Thu, 28 Jan 2021 17:53:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B8D864DEB for ; Thu, 28 Jan 2021 17:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbhA1RxN (ORCPT ); Thu, 28 Jan 2021 12:53:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbhA1RxM (ORCPT ); Thu, 28 Jan 2021 12:53:12 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6490C0613ED for ; Thu, 28 Jan 2021 09:52:31 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id q8so8736285lfm.10 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=QVKvRi5deb1NIL+lz+UYgXhCpk12z2CwzjPUXpTwVU2vhU+qbO3CG45hrfjfuNiv6D 1x9INv47WbtxPitjwbYaDPtPSCquCBhO+J2eV3l+xAw24IJxSp+/0M9r+sM+kkHSY5Xb 47os3o2YERCzWy47Vha7d3tqCPHHWZVXiIucPnCpFY+zOx117fbGYQWlwU70bg7dWAce OwHKzT+BdWY8Ei57ZfgXl+P/75901tmlq78HBdcjWlny7d1SszSDqrvAEQspqkPPaHWt acZfF+kTECGcX8I9lh3mNPPGmK27WnH2eJbSMlqOH0CNx19rnpThhFO9SGU4zE3qAb9f aEDQ== X-Gm-Message-State: AOAM533V40Zh1f92hMn4DwotYRtlWiIjsrgIor+2HUBAq730qKa9o/xZ zI9dfNEN2tlT1yVY5T3heyuwTw== 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: linux-pci@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