From patchwork Mon Jul 19 21:24:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 480071 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4531770jao; Mon, 19 Jul 2021 15:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa8ShMDO30h2Uwka8BibDMh8OZ+7fsG5uRS8CSSD8sLNMcFmO14vrfT/aVGMgGzN7hiJ0c X-Received: by 2002:a17:906:4a0a:: with SMTP id w10mr29342688eju.371.1626732241980; Mon, 19 Jul 2021 15:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626732241; cv=none; d=google.com; s=arc-20160816; b=U9Qx3Mh8vfrsRTVfFyK2PMTyndTrw/si1eo2xp4ptdEd34cbaKEEPPBGoTti2TaLdz jaFbyj/560KaSeUizq8ICu5S1yFiwJoAEPWGpgfvSXOIrYXIwwgCmXdBpMuNnXVnWwkT GK8rforRxUj3zKPsxqNl9kg/afHqudnf1Smo3ZYpIZBiaIyenMJtP9tRhNcYSPNT4HfR 3eiLeWzAdKlmrzXBwrICFF0GW1hyG+Nhup9K4kU4of4IpJoBbXRMRqp9mABz/Xae5d8D ymeB0jsIvOpMIiZoXB4uP/m2wQatK9kcKu/vhL2aSImxw/Ax23+C/DXsu4t1vQe9/pwE l9TQ== 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=r7IIwcEFnbBJbVXSjVGGdfTr8FW2F9zozHrzizCnu6k=; b=t07gtll+JyG4Og5ETmtiwLKr0sE9ge/DGRZ0bUoJbXYJC30xG9GODLNBhRCySRVH+X XJgQCSwROIL6xWZxaCkKkgqEVexbc/dyC4geUGWSMC5PydOcjRzDNY0B/B4HNTT4lxHB 8Cbe426JqiaBAVgEynV67T1Yu/naAbMvzk9NappjngLw6eR0oFN+tXMKRA/ugYFFbQmJ gTGIN4w1A38O9sBrT97VoGS0PHIVFb0K6+Ruqa2tQczwv3j1xDCgFFtnimPsDPorr3u4 NRobJS1lAFe3DcP/RJRudkYtYVaYP4BftLKJ3G0PfsDaU1GAcm31WwGxFlz7V5ihCasz Icvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvBTIiql; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si22115036ejf.481.2021.07.19.15.04.01; Mon, 19 Jul 2021 15:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvBTIiql; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1389212AbhGSVSI (ORCPT + 7 others); Mon, 19 Jul 2021 17:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388279AbhGSUsq (ORCPT ); Mon, 19 Jul 2021 16:48:46 -0400 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 D0D4FC0613E0 for ; Mon, 19 Jul 2021 14:25:00 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id k16so21668147ios.10 for ; Mon, 19 Jul 2021 14:25:00 -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=r7IIwcEFnbBJbVXSjVGGdfTr8FW2F9zozHrzizCnu6k=; b=jvBTIiql8PFue/rA4X4a5i0OBg/MWU98DiyH2cQFL3yXPuMamFrPc9D3/BAf7qd0o2 AzECrBNxvgTZ1TxSKR9ja2rgBEWWsa2bi2jafFIvjyi90ko7WIFbpE9aOql4s811XfRW PWNxYthe6qX+XNvyPU/DEkUS2P3ktojibjOTP0BD2NvE1HBzYilFue8gSS3UNIPubikx +73cwSy+X39VK7FY9vqb3GMvgb2gM1f1LfciCQAnAy4m7oykkTsymP4pzE5IpmIoRdw7 HIAx/5VaTpcTy1MiIjpUaEfeGgLOlOZQHpn7hAct6K8kqshZ9N0Vv0wtP5m086G5ZOdI 9OHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=r7IIwcEFnbBJbVXSjVGGdfTr8FW2F9zozHrzizCnu6k=; b=NUoVNnN5OYvT3a128UI8J/5YCr3+WZP7sUHZ4ISPymLwnEMuEpe9GvKhv8Z7N4Yhb7 BP+DD2/tacdw38OfFnuSSidvCTEEgiyBlHGIvMU5y0jdgGUYCsUJexqsCuhpCZxvt69f YZO6xj7vBYAbZUiqtzbqGY+Ib9fEBP5rxicMMPQd5Gm2dfzgpN2hMkwahuw3w1AcTZMB Ma0RHWOt6ue0SHD6kxmQp2LdEJP/LOkuLlmWR4QaQOprNxFoVRDXzzIVWjExf79zg05Y WZ/C0qDoif4XsGW+eNFlYElf0ebswHarAVcZrNNPLGavkmOfpCWkRxh1V1R11n2oNIPp 5SxQ== X-Gm-Message-State: AOAM5313L736LO8eaIM2FGJICcyRWyFqeQDcTTyeg42RTH0PnwKNwuCu XDtzJPkgn87fwL3MDiohm5PfxQ== X-Received: by 2002:a02:9626:: with SMTP id c35mr8345598jai.84.1626729900198; Mon, 19 Jul 2021 14:25:00 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id f16sm10365634ilc.53.2021.07.19.14.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 14:24:59 -0700 (PDT) From: Alex Elder To: robh+dt@kernel.org, bjorn.andersson@linaro.org, agross@kernel.org Cc: davem@davemloft.net, kuba@kernel.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/3] dt-bindings: net: qcom, ipa: make imem interconnect optional Date: Mon, 19 Jul 2021 16:24:54 -0500 Message-Id: <20210719212456.3176086-2-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210719212456.3176086-1-elder@linaro.org> References: <20210719212456.3176086-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On some newer SoCs, the interconnect between IPA and SoC internal memory (imem) is not used. Reflect this in the binding by moving the definition of the "imem" interconnect to the end and defining minItems to be 2 for both the interconnects and interconnect-names properties. Signed-off-by: Alex Elder --- .../devicetree/bindings/net/qcom,ipa.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) -- 2.27.0 diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml index ed88ba4b94df5..4853ab7017bd9 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml @@ -87,16 +87,18 @@ properties: - const: ipa-setup-ready interconnects: + minItems: 2 items: - - description: Interconnect path between IPA and main memory - - description: Interconnect path between IPA and internal memory - - description: Interconnect path between IPA and the AP subsystem + - description: Path leading to system memory + - description: Path between the AP and IPA config space + - description: Path leading to internal memory interconnect-names: + minItems: 2 items: - const: memory - - const: imem - const: config + - const: imem qcom,smem-states: $ref: /schemas/types.yaml#/definitions/phandle-array @@ -207,11 +209,11 @@ examples: interconnects = <&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_EBI1>, - <&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_IMEM>, - <&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_IPA_CFG>; + <&rsc_hlos MASTER_APPSS_PROC &rsc_hlos SLAVE_IPA_CFG>, + <&rsc_hlos MASTER_IPA &rsc_hlos SLAVE_IMEM>; interconnect-names = "memory", - "imem", - "config"; + "config", + "imem"; qcom,smem-states = <&ipa_smp2p_out 0>, <&ipa_smp2p_out 1>;