From patchwork Tue Jul 28 02:37:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 11687925 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 69EBE913 for ; Tue, 28 Jul 2020 02:40:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5155A207CD for ; Tue, 28 Jul 2020 02:40:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=marek-ca.20150623.gappssmtp.com header.i=@marek-ca.20150623.gappssmtp.com header.b="bqUQy7jh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbgG1CkQ (ORCPT ); Mon, 27 Jul 2020 22:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbgG1Cjo (ORCPT ); Mon, 27 Jul 2020 22:39:44 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09530C0619D5 for ; Mon, 27 Jul 2020 19:39:44 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id s15so4064909qvv.7 for ; Mon, 27 Jul 2020 19:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JpBwI5rh1VmR9dJCXKb+bJH00mu8Lm9wehnoKvU4jcQ=; b=bqUQy7jhnL0rGAZVXzl2pr3NWaTgdIriU12FTryPEPMVY5wt51fHrXJ0vbVkcfIr4d WAYoI66DcIz8Z2qRIvZ5yKiv5D8YgwxBTnylMztk4s16k5XUIlc/re9PODqvhvkRtB5B TVZSkva+UhquRQULicJzDN9icgzBm2blLaIyZTP9OL8mv9ugJTBJiyDe6iSjRBOZvOBv sA1vH0643u/pUW6E2y/lTzK2XhtF6fnFY5q02YCUSNgODaW+bprgm2eXlDdmxyLptMyH yBoE+/88gElgn3TEvFtyRfqbBLxv6nxBgMXkuxf+SNdXWTYMbOiK7VH6fSm1eh9enAGr DsZQ== 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=JpBwI5rh1VmR9dJCXKb+bJH00mu8Lm9wehnoKvU4jcQ=; b=q0tSmVRtABzepklkT0n5CzU/BR1vbo/fsNNDFMB+KpBo7C/ZVKrgvrhf9rJ3/iNmFy eJ1T/psr7fabifzSW/0Septtj2MQiMIgOU0ecpyKDXa88yHWfEBfQD/O0lcET3nrWiyn ptc/5fE/e0Q3eLwzQiBKfElQOC1zmgDbSEmXh4WUR661q6mddO6+N/ri5nvvAU33COVA W1WAx8cKt4F0UBD4tJX7eqXuR07oBe0sRRl4sXTDd6HVhxgvsSuS89FHttUOtF4oXK2E 6tOiWIDAyOg0OHe2uqIBSOZx5+Bwp0hvznsFwDv1Ayg2bOG3FlbX/72z1UXJhWVGm9V0 gwVA== X-Gm-Message-State: AOAM531sV+HdhVjYJn5dl8OQfAt6Z0rXXb0laYkB9FQSJ4lWjeHklswy IklSKHJ8H30fWomuRPl/eXTG7LjtfS0= X-Google-Smtp-Source: ABdhPJz9E9SJY8pj6+WMHEhK2Nhev880nCCsyeRYYub0FM05PwJIPJreA7LDFUu+Z4vWX3RN2jcOLA== X-Received: by 2002:ad4:49a1:: with SMTP id u1mr7434725qvx.245.1595903982912; Mon, 27 Jul 2020 19:39:42 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id z3sm13885548qkc.4.2020.07.27.19.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 19:39:42 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), Georgi Djakov , linux-kernel@vger.kernel.org (open list), linux-pm@vger.kernel.org (open list:INTERCONNECT API), Odelu Kukatla , Rob Herring Subject: [PATCH v3 0/7] Add SM8150 and SM8250 interconnect drivers Date: Mon, 27 Jul 2020 22:37:59 -0400 Message-Id: <20200728023811.5607-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Most of this is generated from downstream dts using a script. v2: single yaml file for RPMh interconnect bindings, drop display RSC v3: - removed the sc7180 example from the combined yaml file, two examples with conflicting includes doesn't seem possible - Removed MASTER_ALC and bcm_alc (sm8150 and sm8250) - Set keep alive for SH0, MC0, MM0, SN0 and CN0 (both) - Used Sibi Sankar's suggestions for reg base/size in dts Jonathan Marek (7): dt-bindings: interconnect: single yaml file for RPMh interconnect drivers dt-bindings: interconnect: Add Qualcomm SM8150 DT bindings dt-bindings: interconnect: Add Qualcomm SM8250 DT bindings interconnect: qcom: Add SM8150 interconnect provider driver interconnect: qcom: Add SM8250 interconnect provider driver arm64: dts: qcom: sm8150: add interconnect nodes arm64: dts: qcom: sm8250: add interconnect nodes .../{qcom,sdm845.yaml => qcom,rpmh.yaml} | 42 +- .../bindings/interconnect/qcom,sc7180.yaml | 85 --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 82 +++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 82 +++ drivers/interconnect/qcom/Kconfig | 20 + drivers/interconnect/qcom/Makefile | 4 + drivers/interconnect/qcom/sm8150.c | 635 +++++++++++++++++ drivers/interconnect/qcom/sm8150.h | 152 ++++ drivers/interconnect/qcom/sm8250.c | 651 ++++++++++++++++++ drivers/interconnect/qcom/sm8250.h | 162 +++++ .../dt-bindings/interconnect/qcom,sm8150.h | 162 +++++ .../dt-bindings/interconnect/qcom,sm8250.h | 172 +++++ 12 files changed, 2161 insertions(+), 88 deletions(-) rename Documentation/devicetree/bindings/interconnect/{qcom,sdm845.yaml => qcom,rpmh.yaml} (60%) delete mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sc7180.yaml create mode 100644 drivers/interconnect/qcom/sm8150.c create mode 100644 drivers/interconnect/qcom/sm8150.h create mode 100644 drivers/interconnect/qcom/sm8250.c create mode 100644 drivers/interconnect/qcom/sm8250.h create mode 100644 include/dt-bindings/interconnect/qcom,sm8150.h create mode 100644 include/dt-bindings/interconnect/qcom,sm8250.h