From patchwork Mon Mar 20 15:48:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 72255 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1307168wrt; Mon, 20 Mar 2023 09:21:35 -0700 (PDT) X-Google-Smtp-Source: AK7set9IWvprzv5K1aPL+tOthHSKOYrh6iZ7U+dPVW7+uCHF8RGhaAcPRRIlbufN8iTDFc3FCbM+ X-Received: by 2002:a17:90b:4b01:b0:23b:3682:c899 with SMTP id lx1-20020a17090b4b0100b0023b3682c899mr19938897pjb.23.1679329295624; Mon, 20 Mar 2023 09:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679329295; cv=none; d=google.com; s=arc-20160816; b=xi2RdPVBkgpiiSysNElBA/AmvJmgciA2ZMdUgLUD3ScNgfKYSNcTpoIke+oOMee+CA TUuvIxicFwWHKQ/FXHUEJLyssbMvubjtcCiJad8YtMbwUEA0Imt0t4JKwZbF7UpKMwJu VvITr15TBfNDjGtb8pPMIoLyC9kpLViPsgB0NMTMRhCL7txZDr46mc26N4+GF72z34N2 HmWexLTP36hPhZz+YxbutwZ8Ak2myBHQc1Ny5zOndTPdthnDNnzZ76tsvbCbMAQvxxpE Po6Sgo+3STUR2Y2svVj6480FuzHdh9w4hSeKRelGW4yDrzOQpMtBCdzjoIR/JKj5y/BS DATA== 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=DOGGFNiRJEuMjhJtfyo06CFlZ9jQ7DwjlMMoJqx1/zY=; b=KwaWBOroPDbl71jvar0g4Uyc2JBUg6zsiJuBy8QwuC7IWA5bbaadM29ZU6sDT7Q8qM 4j5FwRjsVOduyS8lEs6B4vzAlt+aZIgMTiKng+upUg53UdbcI7pNVc1DDNEERuqHwm9U cT+z7l6rn/Ymz45ZptX6QJZR+68UDIco8NB0yYLZM3n0fMcfef6OfgAC3Y/CAU91JpE0 mKYUi3JQmNvJTbn0ys4crEBpT63OATSdYAzRrxsn/IqjSEA9YUYtQe2I1gcZaSLIAPyN svz/PxE3JBzO4U6J6idze4CdzmqM41tz4mNAB3L5jM/ggaQ1S3qGphPCM98GjiR3sQd+ /70A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=SnqRqAXL; 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 ot4-20020a17090b3b4400b00233d9add5bcsi11547970pjb.166.2023.03.20.09.21.20; Mon, 20 Mar 2023 09:21:35 -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=SnqRqAXL; 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 S233327AbjCTP6s (ORCPT + 99 others); Mon, 20 Mar 2023 11:58:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbjCTP5w (ORCPT ); Mon, 20 Mar 2023 11:57:52 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD6613A4F0 for ; Mon, 20 Mar 2023 08:49:08 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id y14so10820507wrq.4 for ; Mon, 20 Mar 2023 08:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1679327337; 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=DOGGFNiRJEuMjhJtfyo06CFlZ9jQ7DwjlMMoJqx1/zY=; b=SnqRqAXL6AK6aJJVnSr6uVSgZnneUYWZaDafiDfpI+ZuS6dbhMUsh1mxxXDhKRO5d+ vbKLnJyqlREz6EbbiyHVP4Hhsv4/x5l8fLTIyx2r6ninqqRWMK7sdBqagvA9pXCX8j8N +fUlHZvXyjVmJ1fANuowmw4ZVKFQSX5DOZ/ODX1EXJSFcZyQWn0dubXhxxWuiTcpuV1z IvYCxKjuFdqpqruvrtIm601irUzw4Y2A1T1efpAoRAeKFFbRDY7v8Jv+j1z2t7KfLYJS AXhiI7IBTw5PaBtcOBwL9xfWbGA+Ny04GB/H6xNZ7ZVGcoOedqvBmywNgVM9dZXXdwOl buMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679327337; 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=DOGGFNiRJEuMjhJtfyo06CFlZ9jQ7DwjlMMoJqx1/zY=; b=T8Ca037NPqPnV/qI8/tHk7caixCBb01osbb/EUCTOhq1+PkivnNVYdlj/ad42foGm0 LfwseBGdv5/u+rx+VoUNXm6lUj5EEUHPD6TgQz4S1n5g4jOYfBZ7Y18PMHpQkuHwCBPU wMPZc/TkArxhUkMmyAecuwsGOMmYRtqaZwKakFT3kaabzDDhP8GrU01hnKL0Ex4C0AHt fxx0X7ekVsn6k2nXRHOoVLDBYVH0cm4RX0tOyYBVnOz0GyNzkJog7UYhvdrY05WMqjvF BB6oP/dmMkjPDu6zKJozLR4n9Rvn/Evjzj2V+8o71F7EJjEjAI/60Rsm0t9VF5kQQbBB 6cLg== X-Gm-Message-State: AO0yUKV326/AgazN5TBW4jE/lvjuKxYBHp6yrJgXe7eDV8rQlYfDOufR 5YQ4TLKC1cnLAZcPbQfmZ96Dbg== X-Received: by 2002:a5d:4381:0:b0:2ce:a8e2:f89e with SMTP id i1-20020a5d4381000000b002cea8e2f89emr12788838wrq.46.1679327337601; Mon, 20 Mar 2023 08:48:57 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:d7d9:4f38:38b4:82b4]) by smtp.gmail.com with ESMTPSA id o6-20020adfeac6000000b002c71a32394dsm9202578wrn.64.2023.03.20.08.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 08:48:57 -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 v2 07/15] arm64: dts: qcom: sa8775p: add support for the on-board PMICs Date: Mon, 20 Mar 2023 16:48:33 +0100 Message-Id: <20230320154841.327908-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230320154841.327908-1-brgl@bgdev.pl> References: <20230320154841.327908-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1760904395450797604?= X-GMAIL-MSGID: =?utf-8?q?1760904395450797604?= From: Bartosz Golaszewski Add a new .dtsi file for sa8775p PMICs and add the four PMICs interfaced to the SoC via SPMI. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 37 +++++++++++++++++++++ 1 file changed, 37 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>; + }; +};