From patchwork Tue Dec 13 00:55:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Chanudet X-Patchwork-Id: 32592 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2564076wrr; Mon, 12 Dec 2022 17:13:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf47U+gW36Edy1wKSr8Zpk3e3rPcKZ39kqzPY+3bPkBJTvKeDf1MfTIv+xsZFxn1QVyg86qK X-Received: by 2002:a17:902:ed94:b0:186:b1bf:be87 with SMTP id e20-20020a170902ed9400b00186b1bfbe87mr19661925plj.51.1670894016774; Mon, 12 Dec 2022 17:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670894016; cv=none; d=google.com; s=arc-20160816; b=kJcuEvbs6UGl6SKbYWgOLntOpUGj/T4pc85v2awYJA4hHNX1HvqKLuyW4A+z44CzRy oS4yJQ/NWqKbwrR6UYOSAVVtAMWxtoxCZERo56DefvL0KkgExRZPezraq7CDFQgQxv0+ wssC5+YfVLfgo/yQWpVOg9HLHK7bx8plT6Vm81lyzyXBqM4vv6cpnTuQAL+Yr0IMvvKc 12AwpcVuDDBYG6bK4PEkgOXQ6PQPqUIxcPSz5RkqATy/74/bzZ63JI477CLEAM1WN+eE 8w1Wgf0rW8sYOUW5kf8VJ4jj3KFCYJQh1O4lN+CkKAvmm8oNMWbZp7SyrmX+fJeB+x5w f9gw== 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=LmjUSyg67D39D4GXwHdsjU8ybX4fVmhyxG/436wX9C0=; b=Hdzn4NtFavhnDVHbsYxV4AyAJoesM1jCcBaNy9WHGLCS9q1ss/fKd389U3Gol2QOdk jqAUlxNGSfiNi9749MZXDsH6uHzaWwtdgsOg9PMv0Fe8H9cHanwr9RqwZoxNm9hUGcXz D5rcpWv8I4iJVCTey8UfGEZ7nGnOEngJyQDliXGNz9VjMPlDjVvxny5LaWpe+JPHkEzX lYpKVzYNZ3a8mjNIXArZnEIEnUPZhfxYyS2mrHwuYf1E3LaTOiXN8PKdiZCiQn0DEe8j Pce+8e05x2Qy42gD1tlvSnKbeF7i3/pKd0+tunueOQA+6Mk1IG5Uq26Y/1V2kgBNGLG+ 0QeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Algvt+AO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a1709027ed000b00182c510591asi9838467plb.246.2022.12.12.17.13.22; Mon, 12 Dec 2022 17:13:36 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Algvt+AO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233250AbiLMA6J (ORCPT + 99 others); Mon, 12 Dec 2022 19:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233100AbiLMA6F (ORCPT ); Mon, 12 Dec 2022 19:58:05 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81771F591 for ; Mon, 12 Dec 2022 16:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670893025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LmjUSyg67D39D4GXwHdsjU8ybX4fVmhyxG/436wX9C0=; b=Algvt+AOEF6WT6t/1LyxWBv4AOiK58liF75wQ+jvdendVQliLL/BNmPaTNscrKP+gC+qwt Qgobrd9HCO5wroaeFucZijGc8f9zka7ta0s0x9Bamkn2CRjrfjgwRqxeV64ZhkZDlZaNgN hOLpgz51/a8bG1GY8ekLQNnzFCDpjfU= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-416--R18CR1YPFKQV162VsiW4Q-1; Mon, 12 Dec 2022 19:57:04 -0500 X-MC-Unique: -R18CR1YPFKQV162VsiW4Q-1 Received: by mail-qk1-f197.google.com with SMTP id i4-20020a05620a248400b006febc1651bbso15845428qkn.4 for ; Mon, 12 Dec 2022 16:57:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=LmjUSyg67D39D4GXwHdsjU8ybX4fVmhyxG/436wX9C0=; b=7Clf9V4pZ2d9QaX3bVy1lAhEO/yG2JZi97BDfqEWXmW9lCiMsiecigdD6SxdvCImEf MZhYTc8uSMzQaPpe7Mv5le/agkMY8IIHrGE6zKpPrT2Khtd7pke01GzWBHqoxoC2P8FC Uq3OKDnnuTfDMDZPZ2Nzxg6TL2PE22yH7olGV98RSIiXOnZbczAj+eezySaAIbY+4Q1J pVxHLO4LhKMr4zoXwGkTQ4Xcj194ngiieSYyczeyY5NQgj3160vK2K+7nU8ax+UWveja XzmEi2Ifmk9Km0HfgLnK7B43ZAnQCjvbTTDVqozFouN6QCN0iuo9H1S2d91ee2nMzEbQ 4EeQ== X-Gm-Message-State: ANoB5pk3AS+Hqb7cB+gJ1cPUDFhS/d2B50cg1ZbHKAYo3BLK6SUa8EpS cylIUFzU5KYKFcXY6XPiRcdmCGLQKcgKHsqKy5V9wpONLalPAT4qOsj3JhcSH00hiUejHIP95SC MH0OYyyBirTPe4jJCVPF1tV75 X-Received: by 2002:ac8:774b:0:b0:3a6:8f7c:5936 with SMTP id g11-20020ac8774b000000b003a68f7c5936mr1754134qtu.25.1670893024248; Mon, 12 Dec 2022 16:57:04 -0800 (PST) X-Received: by 2002:ac8:774b:0:b0:3a6:8f7c:5936 with SMTP id g11-20020ac8774b000000b003a68f7c5936mr1754116qtu.25.1670893024030; Mon, 12 Dec 2022 16:57:04 -0800 (PST) Received: from localhost (pool-96-230-116-121.bstnma.fios.verizon.net. [96.230.116.121]) by smtp.gmail.com with ESMTPSA id m11-20020a05620a290b00b006fc6529abaesm6829570qkp.101.2022.12.12.16.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 16:57:03 -0800 (PST) From: Eric Chanudet To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Brian Masney , Eric Chanudet Subject: [PATCH 2/2] arm64: dts: qcom: sa8295p-adp: use pm8450a dtsi Date: Mon, 12 Dec 2022 19:55:39 -0500 Message-Id: <20221213005539.1133443-2-echanude@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221213005539.1133443-1-echanude@redhat.com> References: <20221213005539.1133443-1-echanude@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham 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?1752059364613584584?= X-GMAIL-MSGID: =?utf-8?q?1752059364613584584?= Include the dtsi to use a single pmic descriptions. Both sa8295p-adp and sa8540p-adp have the same spmi pmic apparently. Signed-off-by: Eric Chanudet --- arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 79 +----------------------- 1 file changed, 1 insertion(+), 78 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index 84cb6f3eeb56..889259df3287 100644 --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts @@ -11,6 +11,7 @@ #include #include "sa8540p.dtsi" +#include "pm8450a.dtsi" / { model = "Qualcomm SA8295P ADP"; @@ -260,84 +261,6 @@ &remoteproc_nsp1 { status = "okay"; }; -&spmi_bus { - pm8450a: pmic@0 { - compatible = "qcom,pm8150", "qcom,spmi-pmic"; - reg = <0x0 SPMI_USID>; - #address-cells = <1>; - #size-cells = <0>; - - rtc@6000 { - compatible = "qcom,pm8941-rtc"; - reg = <0x6000>; - reg-names = "rtc", "alarm"; - interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; - wakeup-source; - }; - - pm8450a_gpios: gpio@c000 { - compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; - reg = <0xc000>; - gpio-controller; - gpio-ranges = <&pm8450a_gpios 0 0 10>; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; - - pm8450c: pmic@4 { - compatible = "qcom,pm8150", "qcom,spmi-pmic"; - reg = <0x4 SPMI_USID>; - #address-cells = <1>; - #size-cells = <0>; - - pm8450c_gpios: gpio@c000 { - compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; - reg = <0xc000>; - gpio-controller; - gpio-ranges = <&pm8450c_gpios 0 0 10>; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; - - pm8450e: pmic@8 { - compatible = "qcom,pm8150", "qcom,spmi-pmic"; - reg = <0x8 SPMI_USID>; - #address-cells = <1>; - #size-cells = <0>; - - pm8450e_gpios: gpio@c000 { - compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; - reg = <0xc000>; - gpio-controller; - gpio-ranges = <&pm8450e_gpios 0 0 10>; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; - - pm8450g: pmic@c { - compatible = "qcom,pm8150", "qcom,spmi-pmic"; - reg = <0xc SPMI_USID>; - #address-cells = <1>; - #size-cells = <0>; - - pm8450g_gpios: gpio@c000 { - compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; - reg = <0xc000>; - gpio-controller; - gpio-ranges = <&pm8450g_gpios 0 0 10>; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - }; - }; -}; - &ufs_mem_hc { reset-gpios = <&tlmm 228 GPIO_ACTIVE_LOW>;