From patchwork Thu Jan 26 23:03:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEC66C61D97 for ; Thu, 26 Jan 2023 23:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233270AbjAZXDc (ORCPT ); Thu, 26 Jan 2023 18:03:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233206AbjAZXDb (ORCPT ); Thu, 26 Jan 2023 18:03:31 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF89C4F851 for ; Thu, 26 Jan 2023 15:03:30 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id s26so1188762ioa.11 for ; Thu, 26 Jan 2023 15:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=BQXELW2Do44btByeSJJTILU+sMVZVBVp+PBgWqh0iPQ=; b=nJw+DUTuQVLOvRz1HyscPLmtu2IerGNqddKZ1FOVXITdFDXtG4bbvVyjK343q2XMAh WdJ+QzKGM53Wepv6E3ojcLezJQuvDDeXF+XurvAjhINj8MUU6Gbw1AD3sPBZxK6QCk55 GoANUAOcWSQY6AwT2VZZ3RUynOJyLTe5cTXA4oPrA6UetAByhIFJXBwfL6NYMMkBT1vT Q18mN13y4idZlUrMhKJNSRRQoh/bpRGJyZ9XfDV3IBQF77KMKD1XT+S2nHAMGE2SWAhJ ti9RpzbOxyCmNAYwV8fca4SZHUQtCFCPCAeBplogm1hS6zCEUIUdKD/v3fZSRiiHyvgi 5Q/w== 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=BQXELW2Do44btByeSJJTILU+sMVZVBVp+PBgWqh0iPQ=; b=hnrOejdhk5pyD/19SLDC4NDGjZhl6Cp43gYkkkGBGIkyc5AmY/uwzWElhkqOyp95fH /bRO1KDjjWjy3Ujlt7goKB49rsAs831ALA6e+x3jC6N0igshKHj5qjaWGnwmHtQEBQzK gRE3SUo9E4LxxnAq/bYb9YorSSdNypxmifFL5cDF8X0+0sF7mhOdZr7NkxsgEB5ZLv1D bDQB1diDsnF+cLRFsiU8vctYZDZmkNSgyS/dRnrq1QUJldnnPbHDyYjIZi48IYYdlJj/ qjaY7a5i+s/8DnAWhBsGVrVlz+7+4JFlPtPcay1BM7wDHLpnoPL/4V/Skyth7GxAbN86 jV7Q== X-Gm-Message-State: AFqh2kqHI3wEtKCjbarsb7hnE0SzFGdzULpiB2xyxLIi7hB8vPz0vRTB 5QhdxePtpUBM1M7hwWpz5JYfRg== X-Google-Smtp-Source: AMrXdXvphCStfkzdhH5mxfm28KLN/HVvq8n/TNZxgZ6w6uE1XwDEsrJLYnwCwxvmH3W0q6nw92XU6Q== X-Received: by 2002:a6b:7210:0:b0:704:d931:45ec with SMTP id n16-20020a6b7210000000b00704d93145ecmr25938852ioc.20.1674774210025; Thu, 26 Jan 2023 15:03:30 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:29 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v5 1/7] dt-bindings: mailbox: qcom: add SDX55 compatible Date: Fri, 27 Jan 2023 01:03:13 +0200 Message-Id: <20230126230319.3977109-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The commit 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") added SDX55 compatible string to one of clock-selection conditions, but failed to add one to the main schema's compatible list. Fix this omission. Fixes: 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 943f9472ae10..36deddca1524 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -39,6 +39,7 @@ properties: - qcom,msm8953-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,qcs404-apcs-apps-global + - qcom,sdx55-apcs-gcc - const: syscon reg: maxItems: 1 From patchwork Thu Jan 26 23:03:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647158 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07AC0C61D97 for ; Thu, 26 Jan 2023 23:03:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233340AbjAZXDm (ORCPT ); Thu, 26 Jan 2023 18:03:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233310AbjAZXDf (ORCPT ); Thu, 26 Jan 2023 18:03:35 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B258521FC for ; Thu, 26 Jan 2023 15:03:34 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id r71so1205044iod.2 for ; Thu, 26 Jan 2023 15:03:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=60xbViVesinnCs8Gq9usNvmq6jftqqElQdF+JDe/eCU=; b=tWTI6bI6hZY8GKUxqEourUhIoJzGkInywP019Kc+1c/UouuWQXNB5z/ULI4PqMaJmq QJbV9rYsSN51haZU0EXpb237eM4Tpyzj+lpAebR5TGJwAL+TkeqbIryYZGWew5gaQiFt F2icF3dF0C/N/fkcjmypIcFmPjSny/jOGw/o54TQXiKWMXufecNZ4MttUOt2IyYNFaSW L3YNK38rCA/5P4Ci3fIaBOraV26ATBvTJr18GYNmYHoYS28J6NQPmzxP4sdx3bdrwgNO 4rV/oYxfXjQfgs0tJyGoMcD0qtvFrtAihxJGVgVkDWIGrxVMoY/JyCljLuPU4ULHQ7fF ngcw== 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=60xbViVesinnCs8Gq9usNvmq6jftqqElQdF+JDe/eCU=; b=OxC/5pfGQGniSHdAqcYukxmNnWzjAh+/EZz0wrejdu1nbVeEUuH0eU1KpEFPbiV3zt RdwHNUP5YikolFHMg2fNUNBNktiFp5pbtmgPGahgfvm68NBHGhGRW6tqgb9ONLDWrxSR bjCgjuUypunq6yRONnAsAgrYNUwAUnl8n2dSrGdE8k0eKV2FIYagjhPFbfjhbSjSOPp/ 2XY+ZqcebKLloxBVOERvIzm7FffeNYa47NpE3ciApBze5S2dqOOMbsl+QuPkypfgwNMQ oKHJLnMwZFMEyrrguNUrgr2uS/BM0j+896Xo6QdzsgfjScgOg0wf9kPz/+nkne8Rf1lP 7tSA== X-Gm-Message-State: AO0yUKWLxwMIgUu7mMWbEWkXx0Tz/jwqGhj6eCHrIajm0Bv0IjIVwfZw rqVlq/kFYP2Tcko5dXNbhxKMyQ== X-Google-Smtp-Source: AK7set9QmGuL4g3+bJHs80N+f87Y8dv1O2X1wGPkwhEF+Iy0Oe+D2el+Fwqjt5SHhGQrYi8E5Ep4dw== X-Received: by 2002:a05:6602:341d:b0:707:f268:989e with SMTP id n29-20020a056602341d00b00707f268989emr8918107ioz.16.1674774213988; Thu, 26 Jan 2023 15:03:33 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:33 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v5 2/7] dt-bindings: mailbox: qcom: enable syscon compatible for msm8976 Date: Fri, 27 Jan 2023 01:03:14 +0200 Message-Id: <20230126230319.3977109-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On msm8976 platform APCS also uses syscon compatible, so move it to the block of compatibles using SoC-compat together with syscon. Fixes: 60545466180e ("dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries") Acked-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 36deddca1524..ecc286ab49ef 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -20,7 +20,6 @@ properties: - enum: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global - - qcom,msm8976-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global - qcom,qcm2290-apcs-hmss-global @@ -37,6 +36,7 @@ properties: - qcom,msm8916-apcs-kpss-global - qcom,msm8939-apcs-kpss-global - qcom,msm8953-apcs-kpss-global + - qcom,msm8976-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,qcs404-apcs-apps-global - qcom,sdx55-apcs-gcc From patchwork Thu Jan 26 23:03:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647616 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04D23C636BD for ; Thu, 26 Jan 2023 23:03:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233326AbjAZXDo (ORCPT ); Thu, 26 Jan 2023 18:03:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233341AbjAZXDm (ORCPT ); Thu, 26 Jan 2023 18:03:42 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9865856EFE for ; Thu, 26 Jan 2023 15:03:38 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id 203so1184157iou.13 for ; Thu, 26 Jan 2023 15:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=tFnQgKzi9ppV9VJGiOBnjcyAOZNDcLdMdaXWIYNXwKk=; b=qP3mU1xo+I9XVJ0stpRWLHeDB2WmZpVioBz59JrMezSkVQtQvFmt8iFGczec50RPpU sOkNcZBmrJTe/57CDT1J3YsJ3FwzeuxM0bOMikRL/s2aXLQBYF/3sG9qN2TSu8zYjBkU ZI394Ghw7zhV8brdQqTpJfCawXIdZ9yk3qJqRFuF85ic04O/0oLl3JNEZhkxJe6OZdFT whuvxyQtsczusxbxXRXxl0KlAaWugV6rJMHxC4LJBfGHpTedbNCn5iH8Bb39+qeDVV3U G9agmnEdmWbWc/1xoeGC54DuCuR0Hw7Lqa9hbL4tm/ck7D6hiYTpfu46A2Z326wYsVBC /cMA== 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=tFnQgKzi9ppV9VJGiOBnjcyAOZNDcLdMdaXWIYNXwKk=; b=EdI7nkginpYrrULTygaJzjDXD/VbECuqe6uSRK9d0AW33AS+3BnyjudO6uwq2OZ1Mi ggl0a5qRRMiYszh5wHkkw6PgvRwwAkZighAyRWP5o56W+W5OnLY2tFB+nyRbKzFYgvgo X1JDVxXF8C4gqfgNckUXkH6O26fhXmgUi1CAaYeRu8PkacFq/jcaToN5Uv1CzV5UZLGm YD5dV2rXUcNLe3C/8rcxJpQ8vyomS7IkAiKHC1epoU6tMsltByUwIlo4BorsoeCZHl0U 3EesfG0HU0cuAysZ2dyCLsmyTdx63pr2q4+PZDPolsYTHrFuQlZCswzBrYQTpaKGBBDh 0EmA== X-Gm-Message-State: AFqh2krnqS2HwjxQfQzSXbHVTsvIn6K9J+wqb3ZRIxO6yyX/eGJNBzrc j8g+SfGTYFAwyOGaR+I/YkKHtw== X-Google-Smtp-Source: AMrXdXuldKyzHGiATIRaGkEyt82ilHxZbn9uVkWvXwoP6vEP97st0wkVuQbXmP2WBKd+5U1bZ1klGA== X-Received: by 2002:a5d:8190:0:b0:707:6e91:e866 with SMTP id u16-20020a5d8190000000b007076e91e866mr20134681ion.15.1674774217714; Thu, 26 Jan 2023 15:03:37 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:37 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v5 3/7] dt-bindings: mailbox: qcom: correct the list of platforms using clocks Date: Fri, 27 Jan 2023 01:03:15 +0200 Message-Id: <20230126230319.3977109-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The schema incorrectly lists some of the platforms in the statement requiring clocks/clock-names. Correct this by moving platforms not requiring additional clocks to the separate clause. Fixes: 0d17014e9189 ("dt-bindings: mailbox: Add binding for SDX55 APCS") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../mailbox/qcom,apcs-kpss-global.yaml | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index ecc286ab49ef..5f7770036fed 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -72,15 +72,7 @@ allOf: compatible: enum: - qcom,msm8916-apcs-kpss-global - - qcom,msm8994-apcs-kpss-global - - qcom,msm8996-apcs-hmss-global - - qcom,msm8998-apcs-hmss-global - qcom,qcs404-apcs-apps-global - - qcom,sc7180-apss-shared - - qcom,sdm660-apcs-hmss-global - - qcom,sdm845-apss-shared - - qcom,sm6125-apcs-hmss-global - - qcom,sm8150-apss-shared then: properties: clocks: @@ -124,6 +116,24 @@ allOf: items: - const: pll - const: xo + + - if: + properties: + compatible: + enum: + - qcom,msm8994-apcs-kpss-global + - qcom,msm8996-apcs-hmss-global + - qcom,msm8998-apcs-hmss-global + - qcom,sc7180-apss-shared + - qcom,sdm660-apcs-hmss-global + - qcom,sdm845-apss-shared + - qcom,sm6125-apcs-hmss-global + - qcom,sm8150-apss-shared + then: + properties: + clocks: false + clock-names: false + - if: properties: compatible: From patchwork Thu Jan 26 23:03:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FB32C05027 for ; Thu, 26 Jan 2023 23:03:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233358AbjAZXDw (ORCPT ); Thu, 26 Jan 2023 18:03:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233264AbjAZXDq (ORCPT ); Thu, 26 Jan 2023 18:03:46 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A779568B8 for ; Thu, 26 Jan 2023 15:03:42 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id y69so1200298iof.3 for ; Thu, 26 Jan 2023 15:03:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=c0817b8QuSi7hdYOROCPDeMWfXlDnjhdy6HTg+NWqT4=; b=mubW0yFBRNRRB/VvHHPAlaCWIMZKyNdR5xOeTOY8/ni1uYMXxzi7pzNV9t3cFgSW5Y FotiU4Btx110lE1+UCIYAUOF264i/LxOaU1iw2Obz6ZwBft2mxffoSdDJviHdGboHHL+ 5GgpbyoSHRws5IUhpudUPx2+THUuMODad/IAgdn3TW+EzQBsQe/inCevGHTbe5vduefT tGubaTNwUn9q2iSaOT6gDoIyfvPQbovlpb4EXSxJ6AyBNsN7cUnccXnBiiH6wbVw9muj Ltj/36xxHnkxK64B6dH0EocpbRN+0KFUMqTb4y7+NMZ8WJvjYSUskLoytUXSS3R7moQ6 Onhg== 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=c0817b8QuSi7hdYOROCPDeMWfXlDnjhdy6HTg+NWqT4=; b=LRxPYKNFcOKMe6A7cTiFweD8hrSyFHBF1nvHryYsxZAjNqwdEr5ciAwByFxOuf+l8R S8bBkwzziptaMIeBhSyN5cA7uutWi+idKm/e9CGhX1B2Su0Pdxfqwt8ZcxHK5jzenDRg 5EvG0agcv/TLDCV37V8BQDaDrFCyKNzBEGraHevrg/qp0x6DJoOQkCQRRX6HwmAyeT3L NU5oz8Z1l43gToqe40U1tryxk5LWZ5SubD2Koq9EjtTyHqX9zuI1gXdrer+o8aKuq2N5 mTl28bIB8K8CtcMN8hW8FJen1RLTbZYRiMhopI4mm4MKFHjNlgiBBZ99uiA4QU9Bjbjc 7Ieg== X-Gm-Message-State: AFqh2kqRuhxZdQayyu3V3sTMqCRsdN0SfsHwlVSz/9UGfVRvxv6Z7DI8 WkV55HT7sVV0yr08X7sqWqr76g== X-Google-Smtp-Source: AMrXdXtKAXX3oS9Pnk9NtCBhAAYZsbkGo0kVhxqgs6+MnSb6gGZedzmqEAIRil9QHRGoUCWCOyyeCA== X-Received: by 2002:a05:6602:1253:b0:6e3:19f:b3c3 with SMTP id o19-20020a056602125300b006e3019fb3c3mr27906809iou.0.1674774221562; Thu, 26 Jan 2023 15:03:41 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:41 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v5 4/7] dt-bindings: mailbox: qcom: add missing platforms to conditional clauses Date: Fri, 27 Jan 2023 01:03:16 +0200 Message-Id: <20230126230319.3977109-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add missing platforms to the conditional clauses selecting whether the clocks/clock-names properties are required or whether they must be omitted. Acked-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 5f7770036fed..7d8de7a16984 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -72,6 +72,7 @@ allOf: compatible: enum: - qcom,msm8916-apcs-kpss-global + - qcom,msm8939-apcs-kpss-global - qcom,qcs404-apcs-apps-global then: properties: @@ -121,12 +122,18 @@ allOf: properties: compatible: enum: + - qcom,msm8953-apcs-kpss-global + - qcom,msm8976-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global + - qcom,qcm2290-apcs-hmss-global - qcom,sc7180-apss-shared + - qcom,sc8180x-apss-shared - qcom,sdm660-apcs-hmss-global - qcom,sdm845-apss-shared + - qcom,sm4250-apcs-hmss-global + - qcom,sm6115-apcs-hmss-global - qcom,sm6125-apcs-hmss-global - qcom,sm8150-apss-shared then: From patchwork Thu Jan 26 23:03:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A32B9C05027 for ; Thu, 26 Jan 2023 23:03:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233355AbjAZXD5 (ORCPT ); Thu, 26 Jan 2023 18:03:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233310AbjAZXDw (ORCPT ); Thu, 26 Jan 2023 18:03:52 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94FC04E533 for ; Thu, 26 Jan 2023 15:03:45 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id q130so1200919iod.4 for ; Thu, 26 Jan 2023 15:03:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=QXnOHOh5QfaalI7LSXB28OMKjzgZCCU/t1AphNsWkmU=; b=dvEKsQU/LwU8I5TvPnNA4/w/fSwdXqRmIHCf1lIY5usyAnONTT58PMQCB3ifzkmP3R fi8sQn/nQ5Y5OP7RyluH+vC+uCESbnVsg50lvkuSRPPAzCqOXcGtPjjyyTIP2hOXpbpj sQj1r3jV7owKnyHcVw69WbldPQbGdOjlbv0LjAHC1UG0JfAs4b3EiL7Y4W1Q35OCRUQH sJU4w4A1jeXBV81lNSgxCSxkrZ0NetYvR4Zzv7ut/CbFXOR0hxHrXm4tzfviSv63gaLW 9fNu3jnI9aOB7J7uIWkoAp06UmTuScvpB4L3h45QPJS70zm0aVCCugzl/COjEDmPahi8 pCtw== 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=QXnOHOh5QfaalI7LSXB28OMKjzgZCCU/t1AphNsWkmU=; b=339lzgNdNxsLZTxLVfRod4ZGL8HwkYtBCe9Of2dNcPkItOKp3oSP8IaKDtjSik+K9i 2nnL1NiK0eXRDTOxGZ5yT+g6CreLpJ3PU6VofWslIoyXb0YvCreRfrq+pG0RDmSRB7WV 10SlY72SLMZ0WWnNoek7k6mMbMJdEIM9dSHRDwvBlQtt9wxBZlqNYf0ThfketJ101ElZ Dhi6yl/4YLnKTDmTOwJ+bwWaM1MV2Vu4U6FzT3u3YWWbeutj3gZlqIxAXpc2iipw9Unb +hYcTmvPlYpjtnRKbPWk+24UYDuhmJDXQn3mluJM+gQvI+silspR7ub51A4JGCINhayL 9CEg== X-Gm-Message-State: AO0yUKU4x6vn6B1cHj27XD5LcnXtfOMffdxrux0uj1CFLr1MbCW6vGPM uAZGwTlo1UtIZuVfmfXana13jw== X-Google-Smtp-Source: AK7set+MzHTZGoUtc4NYmN9ISFzRwN+Fg/fAOc8m3YcGzKZszaAHAj3SgihizV4/BI5an4rIk3JZoQ== X-Received: by 2002:a05:6602:2aca:b0:704:9e64:971 with SMTP id m10-20020a0566022aca00b007049e640971mr2846658iov.20.1674774225225; Thu, 26 Jan 2023 15:03:45 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:44 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v5 5/7] dt-bindings: mailbox: qcom: add #clock-cells to msm8996 example Date: Fri, 27 Jan 2023 01:03:17 +0200 Message-Id: <20230126230319.3977109-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the #clock-cells property to the MSM8996 example, as the APCS block is going to provide the `sys_apcs_aux' clock to the consumers. Acked-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 7d8de7a16984..1633aa82fc84 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -166,6 +166,7 @@ examples: reg = <0x9820000 0x1000>; #mbox-cells = <1>; + #clock-cells = <0>; }; rpm-glink { From patchwork Thu Jan 26 23:03:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647156 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 005EFC05027 for ; Thu, 26 Jan 2023 23:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233310AbjAZXEB (ORCPT ); Thu, 26 Jan 2023 18:04:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233356AbjAZXD5 (ORCPT ); Thu, 26 Jan 2023 18:03:57 -0500 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 140A456EDA for ; Thu, 26 Jan 2023 15:03:49 -0800 (PST) Received: by mail-io1-xd2c.google.com with SMTP id n85so1198308iod.7 for ; Thu, 26 Jan 2023 15:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=60yxEW22hoAOOhOWGOTH5M2hZiABdMD97947KesUJto=; b=poqn1L3NeJ8Bshdxo0CekTCXbHJ2lRle49Zm7WY/4/v/A7MHCjEZ6WqbXd+6t3AS5S 902/CCuzt+mjQoVQp5LdS19P/+RolWfy+KLlJCHv3pdk3bPDZu1/4hJmVYFqTE5cXLk9 qk+37IWGdPc2PkyqNRd2ByMdns5+8IPtMlejGHaCL1MKhaW9yd7ZwKXo0P0qXf/m2Gb5 3E+//uMPwO836UORt6QuNGLicUszWv0N6RUKnJfoCeh2kyz4niuVqrPzMUhpLnDhBFzd w3hrht37nPOEM9XR7dsT7+TThR6ZodoUNaS2oU04AWpLtvdVR0WAx/fUQpbqJvG7e4v1 HlmQ== 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=60yxEW22hoAOOhOWGOTH5M2hZiABdMD97947KesUJto=; b=bEd2QfKjHVbFZ8EtQcZzgBDMMwrn622eqAJnBExvbA+I0c1g2h+vGzz2ATnlNFPJDi V0zmRSht6ZSzR+m1DI0fW1ITMhIMIWsVlV9OqpHja/+p1dYsu5+V0hFo+BHCtj7InBD+ SGhjkZGOgQ4m5AlHmPfhwHrCWc9XgCI0GUUvR3OEpnj2hHncueOQtcUT7TajAfcxwZ4R VQmGARywbXOYNojf2Oq5d+NoRkAwpQZiEvVaDTPLlRVjBhBINUEbznhCxg5FWYV/LDg+ gIiuVussj7N54/cMW3SRfD5QLY3R3L9jxqndq0+PTm8kCB78N7J5M+pUQi/rV364V/LG RANQ== X-Gm-Message-State: AFqh2kraXjF1NJvXW7HO9n1eUqFkR9l6D3JCuGtRttQvroC4Wi/ZD5hN 1Kohg7tcbRtg27X0bLu791mJuw== X-Google-Smtp-Source: AMrXdXuAuaDVbBJKaExmyvsT8vI+dU4w26RIO0s+cAnOk/hzXXDGbqW1tGqBiFkvX9ufmtw6RTWfKw== X-Received: by 2002:a5e:cb42:0:b0:6df:e4f7:8c20 with SMTP id h2-20020a5ecb42000000b006dfe4f78c20mr28877020iok.14.1674774228807; Thu, 26 Jan 2023 15:03:48 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:48 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 6/7] mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996 Date: Fri, 27 Jan 2023 01:03:18 +0200 Message-Id: <20230126230319.3977109-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org MSM8996 also has the clock-related part of the APCS mailbox device. Follow the usual pattern and create a child device to handle these clocks. Signed-off-by: Dmitry Baryshkov --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 0e9f9cba8668..bd61dacb44ba 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -42,7 +42,7 @@ static const struct qcom_apcs_ipc_data msm8994_apcs_data = { }; static const struct qcom_apcs_ipc_data msm8996_apcs_data = { - .offset = 16, .clk_name = NULL + .offset = 16, .clk_name = "qcom-apcs-msm8996-clk" }; static const struct qcom_apcs_ipc_data apps_shared_apcs_data = { From patchwork Thu Jan 26 23:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 647614 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240F1C54EAA for ; Thu, 26 Jan 2023 23:04:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233306AbjAZXEK (ORCPT ); Thu, 26 Jan 2023 18:04:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233360AbjAZXED (ORCPT ); Thu, 26 Jan 2023 18:04:03 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC7A268120 for ; Thu, 26 Jan 2023 15:03:52 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id c66so1186621iof.12 for ; Thu, 26 Jan 2023 15:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=N26PEPApLYbpGz0qyKTlI8x1Z7NNwGnlm+O7zvpxGcs=; b=jV3sjLex1kbpEc3GWpAMPWdMaIdlA7yEzjz4a9asfMWv3NL6RKXXBEo8SN5LWeZsEM l+EGsnMNpnsEr5cSbQP+9OF/fca+U1XIRgOzcbCOgJ5X4KjGcYhDqN/0Kt3jy1MrhyrL QjPtf/Th8PXUZYciux58kxjxfeQSwRbC9U7qlEDB74v2vzn8/dBoCf0TyNIdOdLZlsju 9SrpKufFhkPMMLIgEV6z8UuzuqFWdcdiLxIigki7UJuDgC2YcpGcvWNjx5EEQVIyVeXl HAfYSGb6APRJ85OgAxoEFdjjVRuPrQnQk8uU+5CU5cFUiv/EeLQgsgUqZeprRQYsUC1j Hj1w== 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=N26PEPApLYbpGz0qyKTlI8x1Z7NNwGnlm+O7zvpxGcs=; b=UMjhJLp8WKo63qSZvW1fWceWijYruEadaWZfaWT7pgv63+7lJzGEaBamqlhi9HVfQz u+i7cHYuYREo2U9DNYBYov3TSjv4NqIrprBKB3HhX2v71oSBe2gQ7MzrHDJn1X1Nf7TR JvJu/HP3NaWD7uAghUm15HCbN6bCm4ckK7rAhuGKwzmF7yF8qBgqfKiGdYmJcCzdylgY jJrx4ULvtWw8Sqjir2S1gldMjwGofcyBgO+Db8IlCV0ina8ASQivuKyvguskuf3J/jx8 G9HED5Kr4F95aqSSIJcs9L1s9MEcnF11JytFrDVmp+Sr3EUkM7KCDWqGJkAKUCzgxJQZ 6Rqg== X-Gm-Message-State: AFqh2kowjGKr3IEU8DHkCtrm3hc5/1dBWxSjLObupMKy43b+k5ameQCv sP4dKbdNWwMaEhLkzciHWpIZyA== X-Google-Smtp-Source: AMrXdXtIdkarRoDNgD4GrQZClYf/mKVXlQGJSrx6jyDSeVaoioXe8qOIGzVme9t4KANLslPXpjHEFw== X-Received: by 2002:a6b:dd11:0:b0:704:67aa:57b0 with SMTP id f17-20020a6bdd11000000b0070467aa57b0mr26056011ioc.2.1674774232392; Thu, 26 Jan 2023 15:03:52 -0800 (PST) Received: from eriador.lumag.spb.ru ([194.204.33.9]) by smtp.gmail.com with ESMTPSA id l4-20020a6bd104000000b006f8b7d869a0sm670924iob.1.2023.01.26.15.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 15:03:52 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Stephen Boyd , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Taniya Das , Jassi Brar Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 7/7] clk: qcom: add the driver for the MSM8996 APCS clocks Date: Fri, 27 Jan 2023 01:03:19 +0200 Message-Id: <20230126230319.3977109-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> References: <20230126230319.3977109-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a simple driver handling the APCS clocks on MSM8996. For now it supports just a single aux clock, linking GPLL0 to CPU and CBF clocks. Note, there is little sense in registering sys_apcs_aux as a child of gpll0. The PLL is always-on. And listing the gpll0 as a property of the apcs would delay its probing until the GCC has been probed (while we would like for the apcs to be probed as early as possible). Signed-off-by: Dmitry Baryshkov --- drivers/clk/qcom/Makefile | 2 +- drivers/clk/qcom/apcs-msm8996.c | 88 +++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/qcom/apcs-msm8996.c diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile index 3194465dd02c..a8ed1f38b2f7 100644 --- a/drivers/clk/qcom/Makefile +++ b/drivers/clk/qcom/Makefile @@ -52,7 +52,7 @@ obj-$(CONFIG_MSM_MMCC_8998) += mmcc-msm8998.o obj-$(CONFIG_QCOM_A53PLL) += a53-pll.o obj-$(CONFIG_QCOM_A7PLL) += a7-pll.o obj-$(CONFIG_QCOM_CLK_APCS_MSM8916) += apcs-msm8916.o -obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) += clk-cpu-8996.o +obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) += apcs-msm8996.o clk-cpu-8996.o obj-$(CONFIG_QCOM_CLK_APCS_SDX55) += apcs-sdx55.o obj-$(CONFIG_QCOM_CLK_RPM) += clk-rpm.o obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o diff --git a/drivers/clk/qcom/apcs-msm8996.c b/drivers/clk/qcom/apcs-msm8996.c new file mode 100644 index 000000000000..48d22572b6ae --- /dev/null +++ b/drivers/clk/qcom/apcs-msm8996.c @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Qualcomm APCS clock controller driver + * + * Copyright (c) 2022, Linaro Limited + * Author: Dmitry Baryshkov + */ + +#include +#include +#include +#include +#include +#include + +#define APCS_AUX_OFFSET 0x50 + +#define APCS_AUX_DIV_MASK GENMASK(17, 16) +#define APCS_AUX_DIV_2 0x1 + +static int qcom_apcs_msm8996_clk_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct device *parent = dev->parent; + struct regmap *regmap; + struct clk_hw *hw; + unsigned int val; + int ret = -ENODEV; + + regmap = dev_get_regmap(parent, NULL); + if (!regmap) { + dev_err(dev, "failed to get regmap: %d\n", ret); + return ret; + } + + regmap_read(regmap, APCS_AUX_OFFSET, &val); + regmap_update_bits(regmap, APCS_AUX_OFFSET, APCS_AUX_DIV_MASK, + FIELD_PREP(APCS_AUX_DIV_MASK, APCS_AUX_DIV_2)); + + /* + * This clock is used during CPU cluster setup while setting up CPU PLLs. + * Add hardware mandated delay to make sure that the sys_apcs_aux clock + * is stable (after setting the divider) before continuing + * bootstrapping to keep CPUs from ending up in a weird state. + */ + udelay(5); + + /* + * As this clocks is a parent of the CPU cluster clocks and is actually + * used as a parent during CPU clocks setup, we want for it to gegister + * as early as possible, without letting fw_devlink to delay probing of + * either of the drivers. + * + * The sys_apcs_aux is a child (divider) of gpll0, but we register it + * as a fixed rate clock instead to ease bootstrapping procedure. By + * doing this we make sure that CPU cluster clocks are able to be setup + * early during the boot process (as it is recommended by Qualcomm). + */ + hw = devm_clk_hw_register_fixed_rate(dev, "sys_apcs_aux", NULL, 0, 300000000); + if (IS_ERR(hw)) + return PTR_ERR(hw); + + return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, hw); +} + +static struct platform_driver qcom_apcs_msm8996_clk_driver = { + .probe = qcom_apcs_msm8996_clk_probe, + .driver = { + .name = "qcom-apcs-msm8996-clk", + }, +}; + +/* Register early enough to fix the clock to be used for other cores */ +static int __init qcom_apcs_msm8996_clk_init(void) +{ + return platform_driver_register(&qcom_apcs_msm8996_clk_driver); +} +postcore_initcall(qcom_apcs_msm8996_clk_init); + +static void __exit qcom_apcs_msm8996_clk_exit(void) +{ + platform_driver_unregister(&qcom_apcs_msm8996_clk_driver); +} +module_exit(qcom_apcs_msm8996_clk_exit); + +MODULE_AUTHOR("Dmitry Baryshkov "); +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("Qualcomm MSM8996 APCS clock driver");