From patchwork Wed Jul 1 13:42:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 11636439 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 9D09B13BD for ; Wed, 1 Jul 2020 13:45:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 853C1207D0 for ; Wed, 1 Jul 2020 13:45:05 +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="D8NDGEVJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731070AbgGANpE (ORCPT ); Wed, 1 Jul 2020 09:45:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbgGANpD (ORCPT ); Wed, 1 Jul 2020 09:45:03 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 607A9C08C5DC for ; Wed, 1 Jul 2020 06:45:03 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id j10so18382090qtq.11 for ; Wed, 01 Jul 2020 06:45:03 -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=CBva2wqaXiuBAspU81cFB5iwS5pTK1fm/Up07VFpyA0=; b=D8NDGEVJFrBF/1L5SAm6ntpFWhRP1sZReXLJFSlhkfofKTgCUPINDpqHFgxb0iqLSf JPsQaKEN4RxKXtFlYEsNspb7xf28aMALonIa7UiskxK42WoepoaOz/EzZBKdGyy/Wovh baYJ08l6pebhf2W6A9MRB4C3IVvYX4QClj6hDtBLB39gjm2QCYCAk8HbybxNCwvqkaFq T6+Unvvl8iMtD8Wu1TVeJ+4o+JbXOEqdp/bkz7UFHaWOOm2oS1wG1XF5vvbn69RYBgL0 AozYsQabDIM6fTZQDMmyLVfAl/QFV1DfSJnsODkFXfn8xH1SkSTgIdlsDDZAb2KzOnN2 wPBw== 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=CBva2wqaXiuBAspU81cFB5iwS5pTK1fm/Up07VFpyA0=; b=mDdxaDv5J8RcT5/06RmnxH657Zgbl7YU5RbQ11JYojfC22ScXmqXdtBYOJJ59luRmW yj57BAOJLCewsjjzite6wVyVEUVjlEaojEpfa4Ppt4QG7CQfaT3Y7qEFoAxz7cpxFurY xRDitZIbVmcjRcax8Ic/chQU4zwiy0mWOukEigR4UGJpwY6bUcvQtvrhUI1vUWIzZevV QBlk5c7JvjRAYoRM05yzrdyXGUlPnIsWis3GAB39RGNwrMF5M3RNCijUsSgy+1QE5PwA smceLDjoENW8mPZX8WGaDcy2dwZ1W6AdvIHYhInPYsmcebUfnGIKcFkKSxkdn0SRFWQw QawQ== X-Gm-Message-State: AOAM531iupl5jrN08LY53UgWO6uz5CSdg/TLR8vzV7yV+dU5nr1Eh+J9 TuD08eA2pkjPbozzUnaoUXJDWg== X-Google-Smtp-Source: ABdhPJzfHrQ0xxPZuwDY8lRZSrWPkCFEL5E3c1dwoMyW9k3YhRPk8dqcpMUxlcBsjEXZN4MmrFddHA== X-Received: by 2002:ac8:4d5d:: with SMTP id x29mr26514755qtv.358.1593611102546; Wed, 01 Jul 2020 06:45:02 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id d136sm1444345qke.47.2020.07.01.06.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 06:45:01 -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), Rob Herring Subject: [PATCH 0/6] Add SM8150 and SM8250 interconnect drivers Date: Wed, 1 Jul 2020 09:42:49 -0400 Message-Id: <20200701134259.8055-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Most of this is generated from downstream dts using a script. There are a couple things I'm not sure about: * When to set keepalive in DEFINE_QBCM macro (set to all false) * Address/size for the reg fields - the "display" nodes have the same address as the non-"display" nodes. For the size I just used 0x1000. reg field is unused by the upstream driver so isn't a problem functionally. Jonathan Marek (6): 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 .../bindings/interconnect/qcom,sm8150.yaml | 86 ++ .../bindings/interconnect/qcom,sm8250.yaml | 86 ++ arch/arm64/boot/dts/qcom/sm8150.dtsi | 118 +++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 118 +++ drivers/interconnect/qcom/Kconfig | 20 + drivers/interconnect/qcom/Makefile | 4 + drivers/interconnect/qcom/sm8150.c | 719 +++++++++++++++++ drivers/interconnect/qcom/sm8150.h | 163 ++++ drivers/interconnect/qcom/sm8250.c | 733 ++++++++++++++++++ drivers/interconnect/qcom/sm8250.h | 173 +++++ .../dt-bindings/interconnect/qcom,sm8150.h | 176 +++++ .../dt-bindings/interconnect/qcom,sm8250.h | 186 +++++ 12 files changed, 2582 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sm8150.yaml create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sm8250.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