From patchwork Tue Mar 14 08:09:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663778 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 616E9C6FD1C for ; Tue, 14 Mar 2023 08:11:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbjCNILQ (ORCPT ); Tue, 14 Mar 2023 04:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCNIKx (ORCPT ); Tue, 14 Mar 2023 04:10:53 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4FD98873 for ; Tue, 14 Mar 2023 01:09:26 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id j11so58458115edq.4 for ; Tue, 14 Mar 2023 01:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781362; 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=XiYe59K/JW84fiGlU+Xr8BHz4mzNfyCUd0UP7U7R+9g=; b=Oqor/XJwqHibojde+FBDU2dTKkGRM+AcLI0oYDIN/DgzIWQ5rw1+huz5c373gjSDsO KObw4HLJKYSIEEpyhG4Bf7cHBMpJkAtGAoakGBj/jme3m3j1xjW/5MJlIl5EtjyR+mfz go1pCH9nWTxkvBRy4nI13VqGPdUObPeAo1sL+AEurNH7DntfAGgx9I7G5q2XbKeKtOP0 kZxHjsZcDSPMKGxDXPhVAYQnGtikHJ/XroxP1cHO1su9u57vn+j2M5F8Lvvva5iithZ4 Ur49KgvTMta/KWMODxSyHGHYwUV/+xI5AGa7TaxlCJ4BtJxyRJNS9ny8M4swR8YurlS5 jPgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781362; 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=XiYe59K/JW84fiGlU+Xr8BHz4mzNfyCUd0UP7U7R+9g=; b=o63b3bKKG2rGZn8p0LFkJ2M/cg1on0BhCgY9hx4zEqG0IuvEDSmtA8QwP+iep37ziZ A/8L3AlC87KKxdHw7A3+FpRM9GEAW6No55tcmPNCywnmu+s6gAmy8qSIXYic8e6cgpsE 1XhyMJjMcANoN2Dk1gbMxYdK1Hu+K5cUGJow/4x329FOmGuPojbqBzjzPE11aGadii9o AmhuXQLKhVqRMk9ikbefZqGyh/KTqHeTDm1qgIz0+BvOVItGSwl3aaBYnaT3FJBTdFQ9 gqqSnImFH6m9qPRxC4hCliHVrx/3z7/tDHGVhO6HpRgzK1VmD/kdmMGioqdWc8iZffly JPSg== X-Gm-Message-State: AO0yUKXqx3YgoXu1f5UAf8L6iutdLvxHflzQZDBzda6yMQz8nBPCTZCx BL35gjeohW/ylNTjyACVD4ImfcYRjML4Ga6ucaI= X-Google-Smtp-Source: AK7set+LlV5CIyiauVOMC8t3dQe7Rg9cos5bcrkS51O2YfnuFIJ3dELTYBBXuTqJ5VVhAjSFk/QYzw== X-Received: by 2002:a17:906:9acf:b0:8b1:756c:1a30 with SMTP id ah15-20020a1709069acf00b008b1756c1a30mr1473562ejc.59.1678781362458; Tue, 14 Mar 2023 01:09:22 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:22 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 03/13] dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks Date: Tue, 14 Mar 2023 09:09:07 +0100 Message-Id: <20230314080917.68246-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> References: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Rework the compatibles and group devices which have similar interface (same from Linux driver point of view) as compatible. This allows smaller of_device_id table in the Linux driver and smaller allOf:if:then: constraints. Signed-off-by: Krzysztof Kozlowski --- .../mailbox/qcom,apcs-kpss-global.yaml | 58 ++++++++++--------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 4d2f408a5efb..792778924eb3 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -19,32 +19,46 @@ properties: - items: - enum: - qcom,ipq5332-apcs-apps-global + - qcom,ipq8074-apcs-apps-global - const: qcom,ipq6018-apcs-apps-global - items: - enum: - - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global - - qcom,msm8996-apcs-hmss-global + - qcom,msm8939-apcs-kpss-global + - qcom,qcs404-apcs-apps-global + - const: qcom,msm8916-apcs-kpss-global + - const: syscon + - items: + - enum: + - qcom,msm8976-apcs-kpss-global + - const: qcom,msm8994-apcs-kpss-global + - const: syscon + - items: + - enum: - 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,sm6125-apcs-hmss-global - qcom,sm6115-apcs-hmss-global + - qcom,sm6125-apcs-hmss-global + - const: qcom,msm8994-apcs-kpss-global + - items: + - enum: + - qcom,sc7180-apss-shared + - qcom,sc8180x-apss-shared - qcom,sm8150-apss-shared + - const: qcom,sdm845-apss-shared - items: - enum: - 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 - const: syscon + - enum: + - qcom,ipq6018-apcs-apps-global + - qcom,msm8996-apcs-hmss-global + - qcom,sdm845-apss-shared + reg: maxItems: 1 @@ -74,10 +88,9 @@ allOf: - if: properties: compatible: - enum: - - qcom,msm8916-apcs-kpss-global - - qcom,msm8939-apcs-kpss-global - - qcom,qcs404-apcs-apps-global + contains: + enum: + - qcom,msm8916-apcs-kpss-global then: properties: clocks: @@ -88,6 +101,7 @@ allOf: items: - const: pll - const: aux + - if: properties: compatible: @@ -106,13 +120,13 @@ allOf: - const: ref - const: pll - const: aux + - if: properties: compatible: contains: enum: - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global then: properties: clocks: @@ -129,19 +143,9 @@ allOf: 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: properties: clocks: false @@ -153,7 +157,6 @@ allOf: contains: enum: - qcom,ipq6018-apcs-apps-global - - qcom,ipq8074-apcs-apps-global then: properties: '#clock-cells': @@ -188,7 +191,8 @@ examples: #define GCC_APSS_AHB_CLK_SRC 1 #define GCC_GPLL0_AO_OUT_MAIN 123 apcs: mailbox@b011000 { - compatible = "qcom,qcs404-apcs-apps-global", "syscon"; + compatible = "qcom,qcs404-apcs-apps-global", + "qcom,msm8916-apcs-kpss-global", "syscon"; reg = <0x0b011000 0x1000>; #mbox-cells = <1>; clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>; From patchwork Tue Mar 14 08:09:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663777 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 7DFCCC6FD1F for ; Tue, 14 Mar 2023 08:11:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjCNILf (ORCPT ); Tue, 14 Mar 2023 04:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjCNILA (ORCPT ); Tue, 14 Mar 2023 04:11:00 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A069984DA for ; Tue, 14 Mar 2023 01:09:31 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id h8so14673199ede.8 for ; Tue, 14 Mar 2023 01:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781364; 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=/ueNaJ0XTotz6J2p6MR7byzx7hLWRSeF4YWSXmbAw8M=; b=Ydg45VO4USdBVbP+UqICzebHjPr9OYOcWR0yDnSt8a0J6OvFWw9xif8PqZLC0pwaov a3cxVhVBQmmsin17gcDbHvVThflOz5u3dl5itxhJvVDbbIch6PWZlnnwvYfY1Ct4unMd JTwYXYRnQc9yclIjfSHkWVyXjcMLk/qiQYpc9XV8vNesx9sgA02kp9w+Fur4gxyq4xtT BU1yUbdu/tqF7H9S47cmI2pInPg73nWUp4BmJh7ANHW+QMhXKX8SLA465p5NHg6Y/iGL kQhdIJih6a01v+rNFD0aij9QhH744mAKYeZfs25XfRhHSmbA/Gn7NUHdDqndwxF6etvr t3cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781364; 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=/ueNaJ0XTotz6J2p6MR7byzx7hLWRSeF4YWSXmbAw8M=; b=uTFibyLO/Hw4UR4ypwGBk33ZEV4N+/3fPgg8hTp2ufVZj780EFvAO7uGWjyhDnT/H+ G2peBoo6By0zx5hN5Sc89s+yQzH+tGIuVjQNvsa3I9L4t82oQwFFQfv5NMPN27eMGTRS XdHLVs/O6srAKigxhrFUaG3hGj6pUowg76YIGLMvhf88ekcfg/T2OSf+5DV+d0G0Tq5/ BmwfNVRtEPxXVV3M1LC//V8U8UYOUWet2pBi7gthm/UJpdGSJAYAStu56z5dzgLxfXk6 fIIz/vbdMoesGlOEHOXVaBpsRRTbaEhqM4ffrAUI4FjEvn8i9LZQuVnGwsB0XIzkqMNC BgLg== X-Gm-Message-State: AO0yUKUF3Poyp4lD8yCRhfYgwO1DopNySjq0yFZVxSkHXY5F80xz1c1S 3izgF+t3en7WBB0JN+2UCHECsQ== X-Google-Smtp-Source: AK7set83ncjzK4FqCufKrmZh8kygXiLTO/NzzCK1eucXjGn2OKBIaHsVmOTLOqTLTbjUwFI4o3Y9sQ== X-Received: by 2002:aa7:cd7a:0:b0:4fc:e605:556a with SMTP id ca26-20020aa7cd7a000000b004fce605556amr4656610edb.5.1678781364298; Tue, 14 Mar 2023 01:09:24 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:24 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 05/13] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Date: Tue, 14 Mar 2023 09:09:09 +0100 Message-Id: <20230314080917.68246-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> References: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org IPQ8074 mailbox is compatible with IPQ6018. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 62d05d740646..3fa7a63db74e 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -687,7 +687,8 @@ watchdog: watchdog@b017000 { }; apcs_glb: mailbox@b111000 { - compatible = "qcom,ipq8074-apcs-apps-global"; + compatible = "qcom,ipq8074-apcs-apps-global", + "qcom,ipq6018-apcs-apps-global"; reg = <0x0b111000 0x1000>; clocks = <&a53pll>, <&xo>; clock-names = "pll", "xo"; From patchwork Tue Mar 14 08:09:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663776 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 CEC0AC6FD1C for ; Tue, 14 Mar 2023 08:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbjCNILk (ORCPT ); Tue, 14 Mar 2023 04:11:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjCNILD (ORCPT ); Tue, 14 Mar 2023 04:11:03 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C6799261 for ; Tue, 14 Mar 2023 01:09:33 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id ek18so27299529edb.6 for ; Tue, 14 Mar 2023 01:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781366; 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=EycsgHsbwfkP3uIlxZJiJyuiX0jcH/aXlFkrPkIAzpA=; b=ltdo31t+YukuF1jA0QDI5UOjDY7Zq41+q9sLSGW58vF+U0OAsNSop9ZBxWw7XT9jVr RRkq9ksfmjpyVmYrjijuCs0+o70CQr1kfkj/tI2Pvf60U485d3B6Mg3mXKprOE/luU8s hZgIMkdHI6t5fCHzOtm/BuBAyn6xZL7jR/VbtsU2IO55bwVlm0ZN2m+MVMyCS7S+1B0v USfH7cGujglIfGeiu8UrWtI5WrR4NLiTirZ7y94uvU2Rinw9zsH6BOPT0zUlc1v48Fm+ J6hiSm5LzMixH6Lz8W4wn6DsG+22+Z8l+wzVOChZozc6KD+lDiCu9OQQE7z9Si/1duRU xO9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781366; 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=EycsgHsbwfkP3uIlxZJiJyuiX0jcH/aXlFkrPkIAzpA=; b=O2+QP/PkNgi6JcNooEJlvEHBel9s4OHEQ9+/nn0wz1eF9VbF1EUPv47Wqrm7qNe1k8 JLeTuGQJbucYFtdcZJPMpHS+cmv+jfxxbgZwQW507gRq7Vdn3lVEgGZILfTk8fEHeOH6 CpolDc2XtVSCHZis91nxMiNNAPgpc1hJzm4nKAPSZQaq2V2tNBntnYx4uA/nrb9940II LEOZRPDTqCvQKQHoOiz8LRrz1f9fNOMsdPsjt2/TuqJDeJXey2x9VoGrCk0ObCYr9GEJ QDJPKedKBgzNtE7+iUM2M8oxdFPV9jsioaauBqaGDkKTHpfZqyakXAVMQ7S4FBVJWk/F /Naw== X-Gm-Message-State: AO0yUKUI32s3l5udiqXz6Clt+TZtb2SCsKkRYkj/eip0ZgxiswZ5oh7V R40dwl/hPGWhbcZJQ19lwJZgkQ== X-Google-Smtp-Source: AK7set8gJGAdKEB2as08KnOMNccHrRK4wo2g00p2D9mwzTP5RoHTb8yM9qZAkZEb8hSoU1weuCHi9w== X-Received: by 2002:aa7:db98:0:b0:4fa:3b3:c867 with SMTP id u24-20020aa7db98000000b004fa03b3c867mr10366202edt.17.1678781366151; Tue, 14 Mar 2023 01:09:26 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:25 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 07/13] arm64: dts: qcom: msm8998: add compatible fallback to mailbox Date: Tue, 14 Mar 2023 09:09:11 +0100 Message-Id: <20230314080917.68246-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> References: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org MSM8998 mailbox is compatible with MSM8994. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 8bc1c59127e5..65f9b56e1dda 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -2490,7 +2490,8 @@ glink-edge { }; apcs_glb: mailbox@17911000 { - compatible = "qcom,msm8998-apcs-hmss-global"; + compatible = "qcom,msm8998-apcs-hmss-global", + "qcom,msm8994-apcs-kpss-global"; reg = <0x17911000 0x1000>; #mbox-cells = <1>; From patchwork Tue Mar 14 08:09:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663775 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 46670C74A44 for ; Tue, 14 Mar 2023 08:11:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbjCNILx (ORCPT ); Tue, 14 Mar 2023 04:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjCNILF (ORCPT ); Tue, 14 Mar 2023 04:11:05 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 210869926D for ; Tue, 14 Mar 2023 01:09:36 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id x3so58394869edb.10 for ; Tue, 14 Mar 2023 01:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781369; 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=I1F9tu8q22e7TPnIRSmkbbzCKgmYN1GLyyizNdJqECI=; b=f2Eu63kaeQTRqeKNr+qOrOnkdgvaXs31dPYph5rXRTMv7MzDsdGetwEJQcv/Kaf11Z JbRLBfoYCCjqxx9ni8T1Lce798ZyHgOL1PIct2vGYmJWFr1DB1oBaujPd2gySKnibL3B BFPagEMgf5bMjaMCqnTMAiQU6+/BQSis8iDhqG1xEzes2V8h7ZVzwUKmC9ZfLo1ZGCCv nDdvlkFfHD30ldbA9BxkHfgIZ3FsFLjXsxJ1njXlLBu3CubELjhunv7pPGrlyu5dEE0x 2U2k1Sxu86ARKi5/RO1kbcmYg9y1rAcNUUBeD0K3ro/Xml9x4b6OdZ+VOZKk2BPOQWDg vnCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781369; 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=I1F9tu8q22e7TPnIRSmkbbzCKgmYN1GLyyizNdJqECI=; b=bbHde/x1PpVL0uTEthcFJhN4Np0fTc50xpQz8tgSqezrlYbJzcVb+TFXOcvJ8yvIZn L77EwWp4CUkP2t0v4q5GNN5JdCcFvPDbOi54yvAdyP4VFOMVWQGsJJVwjfgJ8E22lzD8 KVwd79vMk0U4Bgoamn1g7IDsL97C/vz3v3oboxP5kNS8MdFqVFtjnIaTG/iBstpQlsQy kQQPu3IGelGRHZoVrADA3DJhv70QT4lIZ7V52MCeDz2PfvtdZmE9JtGZiEZOjcTud/h6 8pOYF3jODOksrZt75YPT/At0nrNrnbjT4QnhV7lsBIpy7foQNponGNcdd7ntbN/LNxSV 7cFg== X-Gm-Message-State: AO0yUKX0mhhiVI7OzdNrM3K7gCQFXFkQBgO2xGNAh4p42X5pMc/ddTT+ HJ43KFCKghKzIXftE/Q+7cuAKg== X-Google-Smtp-Source: AK7set8iH2ppO0q2PrDDxIPXp9g3xP4JPLypCbgj5GShf9YEISBysI0K18ZHycE3J+/yRn8XMnA2yA== X-Received: by 2002:a50:ed06:0:b0:4fb:6523:2b38 with SMTP id j6-20020a50ed06000000b004fb65232b38mr8199416eds.27.1678781368954; Tue, 14 Mar 2023 01:09:28 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:28 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 10/13] arm64: dts: qcom: sm6125: add compatible fallback to mailbox Date: Tue, 14 Mar 2023 09:09:14 +0100 Message-Id: <20230314080917.68246-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> References: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SM6125 mailbox is compatible with MSM8994. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index 65033227718a..225c03f4e669 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -1211,7 +1211,8 @@ apps_smmu: iommu@c600000 { }; apcs_glb: mailbox@f111000 { - compatible = "qcom,sm6125-apcs-hmss-global"; + compatible = "qcom,sm6125-apcs-hmss-global", + "qcom,msm8994-apcs-kpss-global"; reg = <0x0f111000 0x1000>; #mbox-cells = <1>; From patchwork Tue Mar 14 08:09:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663774 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 2582FC6FD1F for ; Tue, 14 Mar 2023 08:12:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbjCNIL7 (ORCPT ); Tue, 14 Mar 2023 04:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjCNILG (ORCPT ); Tue, 14 Mar 2023 04:11:06 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0484987DB2 for ; Tue, 14 Mar 2023 01:09:37 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id cn21so28290024edb.0 for ; Tue, 14 Mar 2023 01:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781370; 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=VaFooc3ZqmiLvzci4fl/GeYapWLW5sp3t92Xl0ir5ig=; b=Yb6sdRjE21qgkIpYWILXnkm1lGY5yV2b+fgqw86+RykRblzHE1b0uF6MW8txOqzlPI SROLIDnX97wLME5XKT9Pp+u+E7mJUDrDBo6ftguehFvVY0kYq2o1tR4eMagsb+kZ4Exw egX4JnfAH3pv+gV6T8iinoTwlQJZyE8YBdimgQag0cj9cnKzWzirgFZQygwOBPlryAhq hOIA+qPlMjJ4LAUpRAyhfLi8IwE5JJVVUjBmBRjnVyQ+CA4h2lKiw9MA8xgFQLfQR+YH uM1X1WmG9rtiDburkS4DtVMyoz2yh0FrtonxnH8NH+LLlntxrQUFkwy5DJY4fYqFMn8n egzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781370; 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=VaFooc3ZqmiLvzci4fl/GeYapWLW5sp3t92Xl0ir5ig=; b=DmiR3UluwrI4E6kweub7r7nNub6/8wHq6KI2GRfdV4ASrRjR7SDKYsi0jQVIFlbLky 4C/wbT2JFlhIq2PMlgpmfqJ5Pc4Niyi/ypZ/zEnO6bdjSnWcrLACR1lVRWcTgwv5hy/R +2+w5xlB2YDHIFtE/IpK2TXJzkwcJMCFsHeQLowh7z2YOuRmYXlsHyIyQwVrRVP/Hl8m vqPOH1IN1cMKNB2qfA7fxrg8xQwGYaQfNJ2rx08J2gMzjdxFIjeRB/O8CEqwW2WVrTuK jgz1ou7/eO0LF0z8WHxCwY+jHxw0IvWgFuWIzwmQb2lRxVsRrDIQ0pbJzWFgSz/qWQtm K0Yg== X-Gm-Message-State: AO0yUKWbHenWWl2/5BQGzpQYE320K6VTMK62cmmSkw+KlFX/KAI/mIod 70BGpNuHL0usAVXReXbWntAot1/uc7rQZo07LMw= X-Google-Smtp-Source: AK7set/APHfoUuZWf2pafjAXejZ5leY1DkdX5DUsjX2PBOWYgQ4UfykW1CWAtP7k2shcSQrXc554aw== X-Received: by 2002:a05:6402:12d5:b0:4fe:1b62:4741 with SMTP id k21-20020a05640212d500b004fe1b624741mr762069edx.28.1678781369949; Tue, 14 Mar 2023 01:09:29 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:29 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 11/13] arm64: dts: qcom: qcs404: add compatible fallback to mailbox Date: Tue, 14 Mar 2023 09:09:15 +0100 Message-Id: <20230314080917.68246-12-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> References: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org QCS404 mailbox is compatible with MSM8916. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index bc2ed73afb74..e4fdc40be821 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -1302,7 +1302,8 @@ intc: interrupt-controller@b000000 { }; apcs_glb: mailbox@b011000 { - compatible = "qcom,qcs404-apcs-apps-global", "syscon"; + compatible = "qcom,qcs404-apcs-apps-global", + "qcom,msm8916-apcs-kpss-global", "syscon"; reg = <0x0b011000 0x1000>; #mbox-cells = <1>; clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>; From patchwork Tue Mar 14 08:09:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663773 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 0A1C9C74A44 for ; Tue, 14 Mar 2023 08:12:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbjCNIMD (ORCPT ); Tue, 14 Mar 2023 04:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjCNILJ (ORCPT ); Tue, 14 Mar 2023 04:11:09 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2E229927E for ; Tue, 14 Mar 2023 01:09:38 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id da10so58561025edb.3 for ; Tue, 14 Mar 2023 01:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678781372; 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=6YoLcTPZKVXftB08W3NbZhltu16S6sOPa/fbKkQopys=; b=XGGH1ywla1Mb5ywLax50yHGGFp2Is1ipAsNgMsIw7BBMYatGf4JGppE04+NR6t5Hez 8b9x5gh6IRFlcMzQ4QrRuHdOxjJ1sPdnKzxOg7s7h6Gq4JBHJGYJOElK7mo0s8O6aXAX mDYIhGOz9cxQyiMEEmBpZSIDkaPFVdABIwgEIgWLlyt6IDpZJSth/MM+HKqCkMf2GrFZ DynfJi5gkGRbKEoYsUQyYQ16od8MZ8t5h55ue54T6X4NOAJ4yBO5nwtOIq36kCnqsZ4T rZzm9DNGOwtY+vjrFirPzi5C1fkKPWIpQrkRa0IaTBQS+x6oG5wdMBUTdhhIdorMsr7Z WXCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678781372; 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=6YoLcTPZKVXftB08W3NbZhltu16S6sOPa/fbKkQopys=; b=XQaGh72wlzKLbTf0mhqk86pkSDuy9aMjEd2arK+5QLU4RzhLh6d1n1wEGGTM697y0x q0qRD47lj6W7xqqcYe96MK66iiZKlAdzN9XUnA4yuMxZT3TZMW3Z0gSmZSQLW6b4GwV2 ShZQczwS8EbhdQPU5awiVQtAKJ85PW+v/Pjsbc10ugx9zLRlREC3vlOBPaOKkRex0n67 z4YFTJQOOFKiUvg+xzQ5IlFIew7yQ5uVQtneH//npbYVGAUR4pHlgA7AsbttujsemaUV 2KhVzKsomVNj+L9+ediOUY4Q4nmFNCn9EsoJ+HwucyxdUa5hChn+/VPrFMxuFqkhW0Do 1+xw== X-Gm-Message-State: AO0yUKUg0UpTAdpMTX3nVn477Q3XclKGGF3EWqqncPco+Um/ousmaiio b1lmDCMZpXVeBmXvHBjpS6YqgA== X-Google-Smtp-Source: AK7set+l/fOeBJjsaXe+aijdE92TiVqaCiOwbagUPvNFlwz5aq86fTk4xUeW9Jz5vwtdU3F6Ok17zg== X-Received: by 2002:a17:906:6945:b0:907:9470:b7ab with SMTP id c5-20020a170906694500b009079470b7abmr1231609ejs.71.1678781371894; Tue, 14 Mar 2023 01:09:31 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:6932:5570:6254:9edd]) by smtp.gmail.com with ESMTPSA id co2-20020a0564020c0200b004fce9ff4830sm584872edb.88.2023.03.14.01.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 01:09:31 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 13/13] arm64: dts: qcom: sm8150: add compatible fallback to mailbox Date: Tue, 14 Mar 2023 09:09:17 +0100 Message-Id: <20230314080917.68246-14-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> References: <20230314080917.68246-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SC8150 mailbox is compatible with SDM845. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 13e0ce828606..fa58ba82faf2 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -4097,7 +4097,8 @@ intc: interrupt-controller@17a00000 { }; apss_shared: mailbox@17c00000 { - compatible = "qcom,sm8150-apss-shared"; + compatible = "qcom,sm8150-apss-shared", + "qcom,sdm845-apss-shared"; reg = <0x0 0x17c00000 0x0 0x1000>; #mbox-cells = <1>; };