From patchwork Tue Apr 11 13:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 81978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2600242vqo; Tue, 11 Apr 2023 07:04:53 -0700 (PDT) X-Google-Smtp-Source: AKy350aw+zuk7xGJQz+vz4enwKFSVJSm5H0Jnu2FBv0pKuab1sjhhbYc01ICUsyAnrkjhGejFOHh X-Received: by 2002:a05:6402:1806:b0:4ac:b6b2:1233 with SMTP id g6-20020a056402180600b004acb6b21233mr11324164edy.30.1681221892804; Tue, 11 Apr 2023 07:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221892; cv=none; d=google.com; s=arc-20160816; b=zGtXxvJYnUzpTk/bkjO6b3Ds5UGTIHxExbd301w2yThYqJF/2GdBZ8pHpVCy7XmRR4 KISYgkry/r8xPhAc8SzS40a0nowns1IRGpR/7Bqd5LRe+C4ECIWufXTJK2InkCbNE3A6 RoomyKnKvOMxc1B+rEwU7t14I1VG4VNpZDvsH5tfsQzz3hU8kxjH5adjO6Uroaqa+MJs QNmTEx6alK8kiFyHCS/W4ysblrLJWSmiGBL3Jfqdy1PtQ4DurIR6pc0T691aFE69SQwy oF6CoWVnRpqugN+67xYMC7ddlKr5SjIB91inUzJr5ezjNS7DrE5S48JtN4Re7aVnF/Tn jvzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=7u3cWIrv9ii7tk7AluAyAc28Sz76nQ4EdYUWb/87faI=; b=B+kUqMDLHJtVR5hYAtG6evDx3I4C1r+nBl9n7wH9yg+doW0ZHpJ8tNP2PfKg91q6Rt bP1Iaw65GjniAG4tYW+zuRZyTivZKuI0AYJTbB+UGBJ6nahirpZQ1soEhJBEKzvyRUQr CKUTpZ4scS0Wda2z0ZuSVpaYifWfNfejTUP2CrOoQ0/UqbI2VRbqrP7EcnFiW0/Gn4Qn V1N1+Jz9ez7WBVGdTokvvcN9ZEGXYwHUoq5VrVV3ZkSrvRNjVo51n9LGtIrjcRxsRAdm On4hTcuLCAzGdmeaw54cvb/Tfu5VXIUw+4Za4zYI/BXjTBFEwb6JbU55JPotDVNG2xjH mGMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jFgb4agX; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020aa7d80f000000b004ab162a8415si12512596edq.283.2023.04.11.07.04.16; Tue, 11 Apr 2023 07:04:52 -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=@linaro.org header.s=google header.b=jFgb4agX; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbjDKNr0 (ORCPT + 99 others); Tue, 11 Apr 2023 09:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230347AbjDKNrW (ORCPT ); Tue, 11 Apr 2023 09:47:22 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D89192D4E for ; Tue, 11 Apr 2023 06:47:21 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id b33so4208080ljf.2 for ; Tue, 11 Apr 2023 06:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220840; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7u3cWIrv9ii7tk7AluAyAc28Sz76nQ4EdYUWb/87faI=; b=jFgb4agX4lazt4/ZszyG08ELsETbvW3xLfgM0i1ouStqSP+Y9JAqhQoEJTrvSt438F FOmWYogsRPjMbzL6YUfgpUW1Olfo6C6I38OQq2hHrFm+L9c7NiEPB6YwEabMc2LJUOV9 o7cLSMREy8g3A5Dip9viKPO4t7XiVYL16IJ61tPrVmcLiyVbh2EPhaXzhuGgh1oL0Qzr m83uDro7GKL2aLlOhS1O0j51QekunK/Ur2DUp9ICMDZLp+czYGbvaYNcFTLNlnGHqLA+ 8R0gSWs4D0r3507poUVxpYLjxWckZBpSNqf+oaOPGYLS6mpBXZuyJdtyEDUTPOvaliHP pZ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220840; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7u3cWIrv9ii7tk7AluAyAc28Sz76nQ4EdYUWb/87faI=; b=s+gPLHA3rg2Qg21KFpjEmJbeHcuMOtnu0JwBPiU0z6o8PTb/27YnJetT4Fw9+/dyPt qL4lYhGbKaQA5lc7NyzjxuKWmIYzCx4a/vy+GkKMM7Mst7wC1ZR9hI5PciDNN63CtrHr OJdplKjEcnqEaTvKZpP6Jk0+LkUJD9u7BEIqbrlQuBFtE+wOC6fmxz/cxEAtBV0/hHAJ 9i4GtOAd/O1ovAEHWe2Sg+XqJ9LVUSBwfI54wn7Z17s1GIqPDy3TrQbxK581zel0BDUO LRvUKNWaxfpKEIYfzlz0qa+AE5aGEQEi/HFWgZgQPNkJtnIixrA27xClSoBbgtrgIFpW NtJQ== X-Gm-Message-State: AAQBX9d/Q4qIcK+40pvoy1WVAQlkYotAJEEkS1s0agkz6tQUKWfPi3YN lLQ39tgt7Xx74WECvs9w4MYc0A== X-Received: by 2002:a05:651c:86:b0:2a7:8544:1e71 with SMTP id 6-20020a05651c008600b002a785441e71mr1007706ljq.3.1681220840146; Tue, 11 Apr 2023 06:47:20 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id c10-20020a2e680a000000b002a77583b718sm1245887lja.12.2023.04.11.06.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:47:19 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 15:47:15 +0200 Subject: [PATCH v2 1/3] dt-bindings: power: qcom,rpmpd: Add SA8155P MIME-Version: 1.0 Message-Id: <20230411-topic-hanaau-v2-1-fd3d70844b31@linaro.org> References: <20230411-topic-hanaau-v2-0-fd3d70844b31@linaro.org> In-Reply-To: <20230411-topic-hanaau-v2-0-fd3d70844b31@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Bhupesh Sharma , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681220837; l=1558; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=oNW0CgFyxBXeievXT87JHE+KppSisz4HMgd5P1GQgyc=; b=1gOb3wAz8sBLrYX3/bS5JEeK4J5PuGFWkLeVjGnuGJoLuky+eOYnSAc6VULEQjLEUBTpPCf8JMUF Sh/t7bqlDncO5N7MseZ90ARv39biQHBUWccpuA55CBT4K+ihKTin X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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?1762888927394454137?= X-GMAIL-MSGID: =?utf-8?q?1762888927394454137?= Add a compatible for SA8155P platforms and relevant defines to the include file. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index afad3135ed67..f9c211a9a938 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -29,6 +29,7 @@ properties: - qcom,qcm2290-rpmpd - qcom,qcs404-rpmpd - qcom,qdu1000-rpmhpd + - qcom,sa8155p-rpmhpd - qcom,sa8540p-rpmhpd - qcom,sa8775p-rpmhpd - qcom,sdm660-rpmpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 1bf8e87ecd7e..867b18e041ea 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -90,6 +90,15 @@ #define SM8150_MMCX 9 #define SM8150_MMCX_AO 10 +/* SA8155P is a special case, kept for backwards compatibility */ +#define SA8155P_CX SM8150_CX +#define SA8155P_CX_AO SM8150_CX_AO +#define SA8155P_EBI SM8150_EBI +#define SA8155P_GFX SM8150_GFX +#define SA8155P_MSS SM8150_MSS +#define SA8155P_MX SM8150_MX +#define SA8155P_MX_AO SM8150_MX_AO + /* SM8250 Power Domain Indexes */ #define SM8250_CX 0 #define SM8250_CX_AO 1