From patchwork Fri May 20 07:03:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 12856383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DB1BC43217 for ; Fri, 20 May 2022 07:05:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346482AbiETHE4 (ORCPT ); Fri, 20 May 2022 03:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346484AbiETHEp (ORCPT ); Fri, 20 May 2022 03:04:45 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF4C9163291 for ; Fri, 20 May 2022 00:04:18 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id i27so13877007ejd.9 for ; Fri, 20 May 2022 00:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q4W2mlHMm7D4D6zpDAgpFZVHJykHhfaywFhVOppDvGc=; b=uo6AdawZi5mY/RA1vAXpaBRBH9HMA9BwJvqnadJDTA6NJy2DJ2UGbVKtPxzj8PRlkY rrDq67SFEWdSbEmaRy4PpTtczqbwEZTaO5s50y5KNuO49NCHUFkHxDfoYXGYNat4GRMF IldyxwEfItwP3Rrz2LKZnB7/Wp/OojYl6K7uq/vrpuCedlBOH9mLMR0Vut4HOAnwFrtF xWEKepQU6SuLqSuAs/L+YKEGDH3v0FLFZgWmh5TCdkqGS6AaauFRCS4ceL2/2iP0FXY4 3pqCLTnW3nA9U7AmVSytP/rLDWqDqtDmaH8RkCZcD2DQautIq7TG8XlfmK4uC6Z55+q5 w6kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q4W2mlHMm7D4D6zpDAgpFZVHJykHhfaywFhVOppDvGc=; b=c85fEzMD2fgj/i1q1jTLdTVJ20/LvIw70gse/g968TGSaog8snA8qG8LJDfYNkACI5 bUjo2oVIpp65grrwVjsO/5MBYRIXhX/eZYGS+cRCyCm1OTZeYsGDq5M1HKBq8Zxidx0j fp7kRZnqU5GV5P0ffau5tPwI7gQzsK5VbpP/WJUYehC4Zu8V8n16AG4tDAGd8MEtLY93 mhKbFQk+llh5hnOQRILeapQYBRpIUi/pSNlkkGQ+6P8dKRRIZpV4oJfuenUIm2N45ZZE VTDdxUR8uIrwP23vgDhNIIpjlU7fZbk3d0xarpm98lSINMbiXgl8c4YuqCVz8yZr5BJd TxPQ== X-Gm-Message-State: AOAM5317DVQJOMPTDHcUBvqbskw537V8ZMxf2+OwRwU3+Byn4gwvWcHB DBJdzM+A4hMtNRbsXm5WNgurDUHOLRfy2QlB X-Google-Smtp-Source: ABdhPJz+v6eSW7qxIRcGH5AHDwjyrQqMDNDa3Xne7+maU27t+DbcIZdGTv6G5dtkjmi4aTYuVKzziA== X-Received: by 2002:a17:907:720f:b0:6f8:5e72:d8d8 with SMTP id dr15-20020a170907720f00b006f85e72d8d8mr7215439ejc.541.1653030257105; Fri, 20 May 2022 00:04:17 -0700 (PDT) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id md17-20020a170906ae9100b006feaf472637sm336092ejb.53.2022.05.20.00.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 00:04:16 -0700 (PDT) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , devicetree@vger.kernel.org, Georgi Djakov , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Odelu Kukatla Subject: [PATCH v2 0/5] Add interconnect support for SM6350 Date: Fri, 20 May 2022 09:03:12 +0200 Message-Id: <20220520070318.48521-1-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series adds interconnect support for the various NoCs found on sm6350. A more special modification is allowing child NoC devices, like done for rpm-based qcm2290 which was already merged, but now for rpmh-based interconnect. See also downstream dts: https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/tags/android-11.0.0_r0.81/qcom/lagoon-bus.dtsi Luca Weiss (5): interconnect: qcom: icc-rpmh: Support child NoC device probe dt-bindings: interconnect: Add Qualcomm SM6350 NoC support dt-bindings: interconnect: qcom: Reuse new rpmh-common bindings interconnect: qcom: Add SM6350 driver support arm64: dts: qcom: sm6350: Add interconnect support .../interconnect/qcom,rpmh-common.yaml | 41 ++ .../bindings/interconnect/qcom,rpmh.yaml | 22 +- .../interconnect/qcom,sm6350-rpmh.yaml | 82 +++ arch/arm64/boot/dts/qcom/sm6350.dtsi | 109 ++++ drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/icc-rpmh.c | 4 + drivers/interconnect/qcom/sm6350.c | 493 ++++++++++++++++++ drivers/interconnect/qcom/sm6350.h | 139 +++++ .../dt-bindings/interconnect/qcom,sm6350.h | 148 ++++++ 10 files changed, 1032 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-common.yaml create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sm6350-rpmh.yaml create mode 100644 drivers/interconnect/qcom/sm6350.c create mode 100644 drivers/interconnect/qcom/sm6350.h create mode 100644 include/dt-bindings/interconnect/qcom,sm6350.h