From patchwork Mon Dec 19 19:10:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Chanudet X-Patchwork-Id: 34712 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2570132wrn; Mon, 19 Dec 2022 11:15:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtUJbqfrJs+Ps+vn8zivT6zK97WN5EnFw+FzebFZsnnbyp7n1eNG6o1Kvb0mWIeWgduxgdn X-Received: by 2002:a17:906:7808:b0:818:3f54:8df7 with SMTP id u8-20020a170906780800b008183f548df7mr7238619ejm.2.1671477308011; Mon, 19 Dec 2022 11:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671477307; cv=none; d=google.com; s=arc-20160816; b=xgKJTHLNTKFPKX3hMO6H4BE6MIOeyjSVBF672QzUF/oaKrcX2/5oiPpLCtw/CCjYjX kSiW1GjxfcCrUCLo2qiZhY5HPGpxYi3F/uNnjXDRhRTVXpS+QigKJ9FXdTcbxODWgNeS S+qyh4K6SyrPhI5rchj1R2FHFblNRDxKZmivBX2UoZWvynen6lTL+50XJlBUhzF27fgG nobMgBuuQkRUE6eqhqQRgy8ykGHpaW6mn29lGwsmhWmPICYXJ+L9E1sKN18RDBIgEUJM 19T4ZWJhuTBaEzZDX8JEuDMdrLe3Gxk4Fx74MxkKpWp3aggjWqVf6houfJp/fCskxROv 73UQ== 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=DYlcVMZxZ7sfT1YBoo0lGgFw3p0ugJ1rt2fQWCu4fB0=; b=u6nqfY2vvzd17NQYxGoGEI/f9eMhRysc6IOGYlScPLS39mp3UlwsSTPJYBnsTKTZRy eMWLhvCtZ1Nbzxke7CG0LGFg9rTmWy5w05ISxdVn3LS9lRR6fsnIFAPIGsVd6Ao+cPqp xYHdSb2brzInDdd82idq/W3D8j7fzmf604oN/nGP+Z3gzRVy2RVGnSNVy54zLZXUjLER blaTMFOeyNFdDszpEK8Osu36SoptOVIBI316+5XakceT8vDx++xQ5TjRcUoHMHYfXfDK Dd/0WiidSAiMvY6lLFADmBex/l5SRdaUrtjuDe8M/PCjulIokvWZ63ZN+6I3FWWt/xul qB6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ah8UnNL1; 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 a21-20020a1709066d5500b007acc6769292si8150156ejt.365.2022.12.19.11.14.44; Mon, 19 Dec 2022 11:15:07 -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=ah8UnNL1; 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 S232399AbiLSTNa (ORCPT + 99 others); Mon, 19 Dec 2022 14:13:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbiLSTMv (ORCPT ); Mon, 19 Dec 2022 14:12:51 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E03C11C39 for ; Mon, 19 Dec 2022 11:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671477129; 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=DYlcVMZxZ7sfT1YBoo0lGgFw3p0ugJ1rt2fQWCu4fB0=; b=ah8UnNL11wxcc1BtzKX8aixnh2xWUzObgSFiR5RLCHR4uNcUI74u332mxwepoSv2KvTYFU 4xjwu9imoAXcV5AJZ3gobPeLgL5RzIzUIv4nNJrtASfsEfFwnVt+z8K2IEBFwTNMY0O5xH IcKrI3/ZIRLFZBvffP7nqOWUiZkD02g= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-223-2lg5Yb0LMWS8kKccEivXfA-1; Mon, 19 Dec 2022 14:12:08 -0500 X-MC-Unique: 2lg5Yb0LMWS8kKccEivXfA-1 Received: by mail-qk1-f200.google.com with SMTP id v7-20020a05620a0f0700b006faffce43b2so7818250qkl.9 for ; Mon, 19 Dec 2022 11:12:07 -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=DYlcVMZxZ7sfT1YBoo0lGgFw3p0ugJ1rt2fQWCu4fB0=; b=7ttNB2YqRtMlDQAOKIjtJ0s8qCCa73oGIspj7PCUKQaTZmJ7J0ktJUu+qCoyqjdfyR C+jzvvthrozlTKB3E2wqcW9QmL7q6cCuVlgFEpofzzp0bZuP4z010I2vm3ppcne7cqDN xSSjJ6z2EfEda7WPARr3DEIyZcR0XLQi9Kd5o1dK/QjCLQ9AI1+Nf3G3PFAvTi2jWudQ BmA0blPxPRUYFcBSUshaX9PwHx5IohE6Kc75ji1B2ccaE43peTLSEvBZloaEpqC9ALRQ 2zHoIW1bv11jNdlD6rask0kcA12ze6rf2vSxiPiePBX4kPtQgOR7cJCZzg6zXK0gP8XO feKw== X-Gm-Message-State: ANoB5pk5qJ7p5TLXdbijZe8g3XFYe8QVXoscIWvRTe0YMOoYDobYGP9s xv+k671YtryUXYog+jw7+W8gg3/IXB1YUxmlq+CyULDKCYEayQoPN1LQE6YwS72lB1ZWrYF+8f/ 7B633dnqwShLijZ2yCCT8iM6g X-Received: by 2002:ac8:5f93:0:b0:3a7:ff9c:3f92 with SMTP id j19-20020ac85f93000000b003a7ff9c3f92mr66970866qta.22.1671477127502; Mon, 19 Dec 2022 11:12:07 -0800 (PST) X-Received: by 2002:ac8:5f93:0:b0:3a7:ff9c:3f92 with SMTP id j19-20020ac85f93000000b003a7ff9c3f92mr66970838qta.22.1671477127286; Mon, 19 Dec 2022 11:12:07 -0800 (PST) Received: from localhost (pool-71-184-142-128.bstnma.fios.verizon.net. [71.184.142.128]) by smtp.gmail.com with ESMTPSA id y6-20020a05620a44c600b006fcb4e01345sm7694158qkp.24.2022.12.19.11.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 11:12:06 -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 v4 3/4] arm64: dts: qcom: sa8295p-adp: use sa8540p-pmics Date: Mon, 19 Dec 2022 14:10:00 -0500 Message-Id: <20221219191000.2570545-4-echanude@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221219191000.2570545-1-echanude@redhat.com> References: <20221219191000.2570545-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=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?1752670989894945433?= X-GMAIL-MSGID: =?utf-8?q?1752670989894945433?= 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 Reviewed-by: Konrad Dybcio --- 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..c8437efe8235 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 "sa8540p-pmics.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>;