From patchwork Sat Apr 2 15:55:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12799371 X-Patchwork-Delegate: kuba@kernel.org 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 90CF2C433F5 for ; Sat, 2 Apr 2022 15:56:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357515AbiDBP56 (ORCPT ); Sat, 2 Apr 2022 11:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357511AbiDBP55 (ORCPT ); Sat, 2 Apr 2022 11:57:57 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5A517ABF for ; Sat, 2 Apr 2022 08:56:01 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id qh7so1659155ejb.11 for ; Sat, 02 Apr 2022 08:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EuVHQKj00KiyE/jfkOjZYn3vY7PV3FTcEesPbvXU4jo=; b=eiKtSHZaOzxi0xEi2h4siGI7VE6mBVjFN6OJR24q1WgvVZ6kSRaOUEDYuBaigafCPm zJJwX0s57Try+onBevGkRSMSRmMjtD2jnHEnGMA7LKBMXjK7P3pPp92V5LzK7crnLpka gNzmNC+uGs1cNb83fwTIhpyAsCze1i38mKbswtxQVju+eTgpR1OMheczD7S1Lro8XjKd F1it+0NbsGC9TPrDGfdKtPmpX5XwS64ATtDTieFE40f87SbPMhMZnflYrRgzPXrgYuYH ofePZTxy65EZlp8mPIp02snTHluS3UJDHZ/KiIN4N+GHk4Ab3R8TYdHC3M7KIdx3Z25h xSiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EuVHQKj00KiyE/jfkOjZYn3vY7PV3FTcEesPbvXU4jo=; b=RpY88TVlS35y7Mn6r8vaUChIsll0rUzDVu0U1MVwbqOfDPlCo4eJeATFUuwrD/0ifN oPiekDealJfeUgDxjS4BBZRhtEmfe9lcmdq/kFuGhRiSnSwyCbNStDYMCEWc1pHhEzte 6BasWVjfmEzP2MycUu1uaQ3rBZOnorR6Evk3XV3T48GtnSRmUwg5JWlI8Hk+9/vHh8X2 ovIJpwznFTVociP5hKX/wGW5CMOC4yH4b+IU/jC3TEyNyPKKKaGhPRwKGgLVUTHXi35Z mCAsOjccM31qIbks1/+2wFQxTZ4AEwZxYy2Cp8NK+CPNVmrt9xicqyzWlIFof9G4mJMp t5TQ== X-Gm-Message-State: AOAM533k6sFXywzy5KnGbqELg31vGbzY2NvLwwX6dmLPuIkP0jfaM6bC UdAwdW9PP8j2O5jQv5Mi+OagdQ== X-Google-Smtp-Source: ABdhPJxfLuqMATYwK9iSwU7NsddkjCUqupSmfKJN4fjzjdy/zsVfgOnyfdOxpAIE3kuLumpuxTC3uA== X-Received: by 2002:a17:907:1ca8:b0:6df:f192:cf4a with SMTP id nb40-20020a1709071ca800b006dff192cf4amr4469091ejc.620.1648914960455; Sat, 02 Apr 2022 08:56:00 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id b12-20020a170906038c00b006e4e48969d2sm1479331eja.88.2022.04.02.08.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 08:55:59 -0700 (PDT) From: Krzysztof Kozlowski To: Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Jassi Brar , Rob Herring , Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Alex Elder , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH 1/2] dt-bindings: mailbox: qcom-ipcc: simplify the example Date: Sat, 2 Apr 2022 17:55:50 +0200 Message-Id: <20220402155551.16509-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Consumer examples in the bindings of resource providers are trivial, useless and duplicating code. Additionally the incomplete qcom,smp2p example triggers DT schema warnings. Cleanup the example by removing the consumer part and fixing the indentation to DT schema convention. Reported-by: Rob Herring Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/mailbox/qcom-ipcc.yaml | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml index 866efb278813..dfdc72345a2a 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml @@ -61,23 +61,14 @@ additionalProperties: false examples: - | - #include - #include + #include + #include - mailbox@408000 { - compatible = "qcom,sm8250-ipcc", "qcom,ipcc"; - reg = <0x408000 0x1000>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <3>; - #mbox-cells = <2>; - }; - - smp2p-modem { - compatible = "qcom,smp2p"; - interrupts-extended = <&ipcc_mproc IPCC_CLIENT_MPSS - IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc_mproc IPCC_CLIENT_MPSS IPCC_MPROC_SIGNAL_SMP2P>; - - /* Other SMP2P fields */ - }; + mailbox@408000 { + compatible = "qcom,sm8250-ipcc", "qcom,ipcc"; + reg = <0x408000 0x1000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <3>; + #mbox-cells = <2>; + }; From patchwork Sat Apr 2 15:55:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12799372 X-Patchwork-Delegate: kuba@kernel.org 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 3B81FC433EF for ; Sat, 2 Apr 2022 15:56:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357541AbiDBP6G (ORCPT ); Sat, 2 Apr 2022 11:58:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357522AbiDBP6A (ORCPT ); Sat, 2 Apr 2022 11:58:00 -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 1C449140C7 for ; Sat, 2 Apr 2022 08:56:03 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id h4so6255057edr.3 for ; Sat, 02 Apr 2022 08:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LKc5FdjwpDoMw7w7QfhbUOTfH5HjW8+amGJXXlPtPLY=; b=fes0w8pFjREMmHb4hTlE478JWznIqhmcmZWiGifBg7F6l2m5Ups0rG6APcWzBfvSs+ OcH9HZAQpBaNqB6W34IGmaWf7X7Gn87sPbX7DvuEkDHrTJLq/acOAIj9wPtq5B4TH+x2 +tvV/nZTi32R3HgPer/OPqMDypkSjTAHEUUhDyA0ry1KDUAjYdH69urYxb4TLidm4Clf zf11qbv5Kcql3GsE1j0/1b2RGgsgqSDOpKq0s9JF/BrwL3MJYbr81/+pRuPzcytsuY25 b9TR3aYNoFU4ykuuBN42fDlnvwg39mta6YfGIlUUrBSFOqnigR8J1cZ3RZh+VwP4VZCq FyKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LKc5FdjwpDoMw7w7QfhbUOTfH5HjW8+amGJXXlPtPLY=; b=B4Liv/V7DwCsrO279bC48uCPYNLgdgR5h6sv2EFIF89nepegjlLbVWr3Q7FcGADyaY qHKnO6tY6tdCQaqcmfk/sDHTyFwx1TsOHT/lZvzQVQYMAkE7+dWNsT140iNbngiAxCsE Sl2J4dyEhVJYdG//UOewqL2Y2OTtu+18PVuLqmlYo2l5XtbFCGBJVqH4vY3CWQ527nWN cYZisrGSGZs5SYUf9ZQj0h45N+uutSHquZLJLzeGwDV76igIQxXDmSyQsv2KrDq/K2Cy Ndc9hJzFm3GY2wxsToywWVaV+dgPMQf2KFx4sb2rHG1iSkYEfid5p0L0vbCsI7Zh7phS v6fQ== X-Gm-Message-State: AOAM531ONl2ggzSBTnEIXaHi5P5oAlKJpPSWztR4X15ErcnKW/dPhMOD LmMiYitojw/Dj1mbptsB8bbxYQ== X-Google-Smtp-Source: ABdhPJzdPGT8eWpu4BWBTX82au/4ST23Yn0C/lTygHm4zuUqCLlRgVoo3LjSREOF4L4tr/CC1hpPOQ== X-Received: by 2002:aa7:c157:0:b0:418:f8e3:4c87 with SMTP id r23-20020aa7c157000000b00418f8e34c87mr25518835edp.271.1648914961560; Sat, 02 Apr 2022 08:56:01 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id b12-20020a170906038c00b006e4e48969d2sm1479331eja.88.2022.04.02.08.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 08:56:01 -0700 (PDT) From: Krzysztof Kozlowski To: Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Jassi Brar , Rob Herring , Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Alex Elder , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH 2/2] dt-bindings: net: qcom,ipa: finish the qcom,smp2p example Date: Sat, 2 Apr 2022 17:55:51 +0200 Message-Id: <20220402155551.16509-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220402155551.16509-1-krzysztof.kozlowski@linaro.org> References: <20220402155551.16509-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The example using qcom,smp2p should have all necessary properties, to avoid DT schema validation warnings. Reported-by: Rob Herring Signed-off-by: Krzysztof Kozlowski Reviewed-by: Alex Elder Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/net/qcom,ipa.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml index 58ecc62adfaa..dd4bb2e74880 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml @@ -182,6 +182,12 @@ examples: smp2p-mpss { compatible = "qcom,smp2p"; + interrupts = ; + mboxes = <&apss_shared 6>; + qcom,smem = <94>, <432>; + qcom,local-pid = <0>; + qcom,remote-pid = <5>; + ipa_smp2p_out: ipa-ap-to-modem { qcom,entry-name = "ipa"; #qcom,smem-state-cells = <1>; @@ -193,6 +199,7 @@ examples: #interrupt-cells = <2>; }; }; + ipa@1e40000 { compatible = "qcom,sdm845-ipa";