From patchwork Wed Jan 13 16:00:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12017229 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=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 79B57C433E0 for ; Wed, 13 Jan 2021 16:01:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3CF9B23406 for ; Wed, 13 Jan 2021 16:01:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbhAMQBj (ORCPT ); Wed, 13 Jan 2021 11:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbhAMQBj (ORCPT ); Wed, 13 Jan 2021 11:01:39 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB371C061575 for ; Wed, 13 Jan 2021 08:00:58 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id x20so3469120lfe.12 for ; Wed, 13 Jan 2021 08:00:58 -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=/ANy3EnVb9IcVEdVPhsOA09k5SvZnXI3pFEuGXmbm50=; b=c1pxpyWbQJe20ivyenYuC0y6Q17/Y4RY9UJUqXw9nMrCwO7yVkkZGT0qTY/lly9gjE hNa2T6yByVeiZo5/ZvD2xicR/4LBWn+cs+Lhw/dAO1lJUSakFp78gF5XTtbSd1aE49iS LEfU2Y/vYc40dtgiw2WCRTjgmA4NwHjXBfJO07lJTWu3Zs+zIi7qHXdzzT1/G81oQRu7 m2/JA4xwoIWdkWlafIMu0XOjI+1iow0SSyC3dnfrSEHptX5PDUxsQJvr7r3Nd1kP6X+o SJCUgP9lzt81HDiDDYMVhSq2Az25H8iyAts1jwywv6sTOm30KWPMlpQGL0M6ZA/5h+FJ hyWQ== 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=/ANy3EnVb9IcVEdVPhsOA09k5SvZnXI3pFEuGXmbm50=; b=d4+g4tRcPnRGfF383foAmWjDoeJJQr5il5LLkL6EHG2hDYPwI2vOhtyO2NjnsyDyUX CDBofoiwap5w0pinro1ZYvmk55cSsNEDDBFEXbsQgcixD+7RwsIvdfOV1fmY7zKkSIP2 0oTfujPuEg1t+xcU0ZKWaRmxYkOxmoOxbYkiP3z7NYDjffgmKJeoNLFrEOS3+tsNYFo1 MEIq7202KEvUdTpd8JaaIvR2VhodhwxxxmQLByd+pv3+FcYP+abcDuM/RmgO6Uhc8h/r 6v+puI//pGfoLF6WRL6YKmPAhUTV79gxZspnzb2c//ixpAoBMkShd/LpiM5W701QMlfW aI5A== X-Gm-Message-State: AOAM531OF4Zw8a7Thea3nhIfPhSTLo3/gDpxELEBwrmSvF/MAcTVt/09 sj179sucs0hOhk+jo4RawZV1cjsjxe656g== X-Google-Smtp-Source: ABdhPJzr7xv7uPwvJjnXkDimoBn/HMV/NKUGPVdgw6bbPBFkN8nK6lUh8dcyAXtf613fgxpASab2rg== X-Received: by 2002:a19:6553:: with SMTP id c19mr1261458lfj.266.1610553657378; Wed, 13 Jan 2021 08:00:57 -0800 (PST) Received: from eriador.lumag.spb.ru ([94.25.228.189]) by smtp.gmail.com with ESMTPSA id m25sm248559lfb.144.2021.01.13.08.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 08:00:56 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Add support for Qualcomm QCA639x chips family Date: Wed, 13 Jan 2021 19:00:51 +0300 Message-Id: <20210113160053.3974229-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-arm-msm@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. While it would be easy to just add power supplies to BT device tree node, for WiFi it is not that easy. The chip has to be powered on before the PCIe bus is probed (otherwise it will be left undetected). Adding power supplies to the PCIe device nodes would require changes to the host controller driver. Thus it is supposed to be simpler to provide power domain via separate driver. Changes since v1: - Moved the driver from drivers/mfd to drivers/misc - Fixed compatibility string in device binding - Removed debug messages