From patchwork Mon Mar 27 12:53:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 75414 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1493150vqo; Mon, 27 Mar 2023 06:03:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bymeXgoLnvAcOnpFW+ogc1SSZAkI3jWKN7QkjJ5rh4W4pBpravqrgPHjmMjZk5aNeTe/lS X-Received: by 2002:a17:902:d48b:b0:1a0:4046:23f2 with SMTP id c11-20020a170902d48b00b001a0404623f2mr14129971plg.56.1679922201003; Mon, 27 Mar 2023 06:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679922200; cv=none; d=google.com; s=arc-20160816; b=aW2EQSiODxr8EvashcMRnNKTNlwmfFAer48epY81C3NqQQrmY3Mw/YN/W5CrywaEnh /H5rMhK1wyTH8na/2yRV3LSPssS6eM0PScbqXRx4GgAc9N0mCzyDIjykx2X9W+GDDKGA Kq5DZO0TNOAaWUPN+XWaYXv4IR7B1IP9QV2P+ib85sTxvo1sXgzfStr+2vaHVdCLd3Qe ne60hQu3E6M8QXsCQdqhhR/20v+tG0iL6UVILsqJWt1X+Y8UGPA7X+9lvbPwdLtkg2hc riZ5O000uqbRjbgAjH9W+fl7kQ4zUQ7LvlNhpvEAiqZ8vXXgQ59bdin7Fl4atmN+q7CL qUVw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EER6tqhI6vUHVYjj6AGxC6PvPaE4KpffK80o6d6UVhA=; b=vG0tplJVlS0FHOVFKXHNvURZ1alQH1P07wN5jebdvKsWEX+OzhvH1wSs03EkhwIw2X gjuZ6elwCQsgIUCfAUuAVw4nHGNaFfcxuNX0ZfM1Cf6ZRvz8TnLBLo3ACmIFQIxrxPeg PftX6axWnOqskcBzVc0qt6Ot4a8UkD5T2XV4zowwjY6kGcOeCTwjcFSeRW5a1rju05AE bZDxN68mqLVYjZPlIva7S1oEzK6+7vdrr+ldK9WZYG7rOJP1tpDkfCBuGc8MG30H6nS0 dpeOCLb0UUx4vu/l31ZGjA5lPlxIcuUHq9xkWvOTVrNPMse47hBtTIlrOLROGonphpta Golg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=1Ly8lNpA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z24-20020a63e118000000b004fc21da0340si25182890pgh.129.2023.03.27.06.02.56; Mon, 27 Mar 2023 06:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=1Ly8lNpA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232861AbjC0Mx6 (ORCPT + 99 others); Mon, 27 Mar 2023 08:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232336AbjC0Mx3 (ORCPT ); Mon, 27 Mar 2023 08:53:29 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FCAA19A0 for ; Mon, 27 Mar 2023 05:53:27 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id l8-20020a05600c1d0800b003ef6708bbf6so3157918wms.5 for ; Mon, 27 Mar 2023 05:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679921606; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EER6tqhI6vUHVYjj6AGxC6PvPaE4KpffK80o6d6UVhA=; b=1Ly8lNpAV9k1UhP7Su28XfdkCDmVuHTha78ZXjqHRst1E6offaBB+HPOczENpuglyV bn5sbgYf/3YJzcodYOmF/G/d+aqm4+cQL9sY2Oh3AMaTfm5FUd4oBcMVD5XN6hHwrp5l uVaHAwFKM7IhUD4I80QGJM5G8qe/YicqF5HgzxX8vvqhdYrXre81UPwz7OEIFVDon5YX 7+wdHq4bPV0bo4DARk2cqOIPvsfp+FqxbKI/VS3qreU4ygZAtrbCGaQZbA+Tb77hcmI8 e/2mY/qwbgh3ESzt/gKzsEhZzAwexZ6/CB4xLtVbUxkfoVduLeRXUR4XLRs/i+B7fgKf q3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679921606; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EER6tqhI6vUHVYjj6AGxC6PvPaE4KpffK80o6d6UVhA=; b=KxYzTSSlJxGJvEEdaqVFtMntmHSOaBZKwnW0BUp4DJzmiOTcUlb22iLcL4Z1aCxuSd izCk/J/Z5YpH04MNpxgfFjre7Yh5Gcq56dmywuUUul5r+VcBZ+on41katAC+RG+sb3eO xRs/B/Snod7CUBnylxlNzAYjgAKek0D8O7jDr8IO04ajOGWwMVwsyUO9sujBoUmIBGc8 VqwOQ3+UyTtIpVREykUTii/YoA4IoNdpK2jl/nrYl3KKjkubQiRNsBJPboWAgaLeCLAh fWkwjrwiAzFYJ7xIufFdnQWBdBRCrIDqxHGRSDYhsxRIeKr6hwlsqr96yonuZpBJXW81 AIjA== X-Gm-Message-State: AO0yUKVuJqyHnGW1oxZIZsAIQeinWCYQHBVXHO/rc9T30nz+rp7lz3wC 44PhvC2lpYiPQ4y3IYbL7JDesQ== X-Received: by 2002:a7b:cd10:0:b0:3ee:672d:caa4 with SMTP id f16-20020a7bcd10000000b003ee672dcaa4mr9085581wmj.17.1679921606041; Mon, 27 Mar 2023 05:53:26 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:313d:a304:2790:a949]) by smtp.gmail.com with ESMTPSA id q25-20020a1ce919000000b003ee58e8c971sm13572220wmc.14.2023.03.27.05.53.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 05:53:25 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 07/18] arm64: dts: qcom: sa8775p: add support for the on-board PMICs Date: Mon, 27 Mar 2023 14:53:05 +0200 Message-Id: <20230327125316.210812-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230327125316.210812-1-brgl@bgdev.pl> References: <20230327125316.210812-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761526101557829724?= X-GMAIL-MSGID: =?utf-8?q?1761526101557829724?= From: Bartosz Golaszewski Add a new .dtsi file for sa8775p PMICs and add the four PMICs interfaced to the SoC via SPMI. Enable the PMICs for sa8775p-ride. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 37 +++++++++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 + 2 files changed, 38 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi new file mode 100644 index 000000000000..afe220b374c2 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Linaro Limited + */ + +#include +#include + +&spmi_bus { + pmm8654au_0: pmic@0 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmm8654au_1: pmic@2 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmm8654au_2: pmic@4 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + pmm8654au_3: pmic@6 { + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; + reg = <0x6 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index 1020dfd21da2..b7ee4cc676b5 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "sa8775p.dtsi" +#include "sa8775p-pmics.dtsi" / { model = "Qualcomm SA8775P Ride";