Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1977068pxb; Sat, 22 Jan 2022 11:59:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmYszm6KA7tmZSi7lT3dZLJkuDwK+syDLVgm1Quj81Maihp9oauATOVgGHMdVpr+5uJCYK X-Received: by 2002:a17:903:300c:b0:14b:61:b1a9 with SMTP id o12-20020a170903300c00b0014b0061b1a9mr8719126pla.137.1642881542076; Sat, 22 Jan 2022 11:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642881542; cv=none; d=google.com; s=arc-20160816; b=QjAK+MCOTVAhnIjolwPSDustAZdwd/6BjdfZs73fiNMkOvVY0SlMzz85yDiwa3QhSN W3Kj726w4BNb2s4Jd/K9SzSngwXwGNfe8Smjces73CdvJpmsN+VrWy0eY7FpjlweS3Ou NCatrak4ExQZaSKBgosWEAM6SvJX6Fc9rrzOaPR3/+9udVSqpLCigeknJNjgbfk0SKiN aJfxJPqTH8cpqjY1F8GvYzNAygZOtHKcw1OaBCphowpiu5grS5Q6ppUJEyYTX9n3mgsI hOMaL7FxPhEfllomzZELMHKkecSenok8EMHPFPaBSlsUpXoTPAvQ9UcZNfLzHEMlVqIc C4lA== 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 :message-id:date:subject:to:from:dkim-signature; bh=oVxyJXWhy0tpu5DrmtdQpzgyw4D9rKCj49KBU5En5c0=; b=DUjBGkMnbWoznKCgZawfkgkJFLh+KDs8P8jcDH2vfFYfj2S2fesJyVFgZYUKsQsyVv T2Vh6/1SbaKS+QDRjbPEIu0/OlC/ehCvbJxsFkq7h8nxVqUzbHZF+7B/abVr10/R5LP7 c2S7VeceGKVHUQgC4qrn8sIaRDbwWR+lp0CXNQrXLSswoXKM3teJLJLWe99BgAFjtmKJ Q/ljeFGKD4M486Qh4oXmQXS87UZTNxTQKqCNscQ4XPdy+AID9kxb6UwkQ3PmH05KJln0 MT80kmrTeMEQMwyT/IY7hKeAzMSFZIQPl7tM/b+9chkDsjQTDEllAF7QROBM58W/6F8b QKkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YPgHxz4K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si10979113plg.68.2022.01.22.11.58.34; Sat, 22 Jan 2022 11:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20210112 header.b=YPgHxz4K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbiAVAQY (ORCPT + 99 others); Fri, 21 Jan 2022 19:16:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229951AbiAVAQX (ORCPT ); Fri, 21 Jan 2022 19:16:23 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDEAAC06173B; Fri, 21 Jan 2022 16:16:22 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id ah7so4286471ejc.4; Fri, 21 Jan 2022 16:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oVxyJXWhy0tpu5DrmtdQpzgyw4D9rKCj49KBU5En5c0=; b=YPgHxz4KYdEMjVZXsY40brCFiBjTCg7+LfPl/LB+1nzbrZrbQXaH3ZvYquTdwM3Fvx 3quIxLVTPFCEe/ihjfLfoVQwTxuN0fqios4CtQx9LriARL22G+o3gsXhEbeKnZkeAjtc aLMckvTwMo0MGNnXPN8iaeqC2qDp/Sfm7WBG10GgglYqEaW2uYfiwo9WePpM1LKBLc8r XDSN9EhssaUEhNwZv5cVy8r2BCIM5MG3n7Vx3BwgvyL87fOZl9Lhf/JYtNsBsaDUztFO zPa34idV5qyJyOTACmvkjHArxYyUe+RfySKOizyUqzHNgB4Y1yJiwj4egtojSfB0KRaV 5t6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=oVxyJXWhy0tpu5DrmtdQpzgyw4D9rKCj49KBU5En5c0=; b=rJfYLSzgPmNkzzhbaTGw8DMI+qk55ahh8rpg59wsUxP7IrV7/M3qTG7ny8v3bfvqXJ aKYi32zNi+HWaI1xtvYKxj0KcFy7aJyLUaWulUMck1My1i8pj3xks/246b5xlVqw906X Sr4Hlb+oZrscOhX/D/MFGpdOH3GI4MKZ+zsbgh/XjXiYeJ8h6hCZXIzeNfG6yzyU81MJ 1QZOCFnEbuVnnR5Hpm1AkLKxgWFKXEV8HjkffYaulkt7W7R2koAQK1yOgpN/bBsaVz8Y TAfJ33ZixsO27UqM3TPVzZiHPAQCluYpNVG73X1M0e9mIj+ipsLZbifCj6Hj3Q+k0rSl m+iQ== X-Gm-Message-State: AOAM533AHkKld9T0f61ceAF8A4BkFMdaeZAkDi9/BL275SeILSC9qWTH 9SvSsxBnpJFN1oPXT4Gz2h8= X-Received: by 2002:a17:906:3e8a:: with SMTP id a10mr4941679ejj.352.1642810581047; Fri, 21 Jan 2022 16:16:21 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id d8sm2445525ejy.107.2022.01.21.16.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 16:16:20 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , Ansuel Smith , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Add QCOM TCSR driver Date: Sat, 22 Jan 2022 01:16:07 +0100 Message-Id: <20220122001609.15904-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is another try of the long gone TCSR driver needed for ipq8064 and now also ipq4019. The first (and unique) proposal for this is back in the 2015. After that only part of this got merged, to be specific a variant of this got merged to support gsbi driver on ipq8064. All the "configuration" part was never merged and without this ipq8064 SoC and ipq4019 SoC require custom patches to be configured correctly. The driver itself is really simple. A syscon driver that configure the system based on the passed bindings. All this stuff can't be moved and handled by another driver (for example dwc3) as it's global and has to be set only one (we have 2 dwc3 port for example) This is necessary for some devices (especially ipq4019 based) that require some special configuration for the internal WiFi chip memory configuration. Ansuel Smith (2): dt-bindings: soc: qcom: add qcom,tcsr bindings drivers: soc: qcom: add TCSR driver .../bindings/soc/qcom/qcom,tcsr-ipq4019.yaml | 93 ++++++++ .../bindings/soc/qcom/qcom,tcsr-ipq8064.yaml | 47 +++++ drivers/soc/qcom/Kconfig | 8 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/qcom_tcsr.c | 198 ++++++++++++++++++ 5 files changed, 347 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq4019.yaml create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,tcsr-ipq8064.yaml create mode 100644 drivers/soc/qcom/qcom_tcsr.c -- 2.33.1