Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2820881rwl; Mon, 27 Mar 2023 05:54:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YEywdLGtMZ6/5j97cUHBaBsRM4gsK6jhxCjh+bJs/E6ViQaufl9ju6I2k0XUB4Nz6xYdlI X-Received: by 2002:a17:906:c2cf:b0:939:4c86:d47b with SMTP id ch15-20020a170906c2cf00b009394c86d47bmr12683040ejb.19.1679921679007; Mon, 27 Mar 2023 05:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679921678; cv=none; d=google.com; s=arc-20160816; b=wudK74idbE5zZVevfaiavehEMwBBH7cD4deLoHiN/Tp2v0rt1WWKfu7B/MW8phcId/ Z8+k0bey5PMZT2py8P11e+uFL2UlCnImn9d15zCz76hO2KazZeCxZZElDWcgSOcKzjsk MS4YUx1AeQevywXEJLFHJDKL2vwkjrbjdp7g6mSlr092HBFBpkkmKTegjnLSjAgvbROP MhH38ZD2bJwg6VU5eDntdgjmEEBIWETbDk7qTYwX6bMN+jqWPIuMKxIxU0yj8ZkQ5jbF vhZFP1E8UmI2SWWe8R6EBp+brAdfyU6SUG5oBH88kYRA1CmKsi0RVOIC+2cXBLBZQz4Z SNFA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy31-20020a1709069f1f00b009327a2315a7si26021217ejc.470.2023.03.27.05.54.14; Mon, 27 Mar 2023 05:54:38 -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 S232853AbjC0Mx5 (ORCPT + 99 others); Mon, 27 Mar 2023 08:53:57 -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 Content-Transfer-Encoding: 8bit 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 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"; -- 2.37.2