From patchwork Fri Jan 28 16:10:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 537727 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 D0690C433FE for ; Fri, 28 Jan 2022 16:10:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237194AbiA1QKL (ORCPT ); Fri, 28 Jan 2022 11:10:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiA1QKL (ORCPT ); Fri, 28 Jan 2022 11:10:11 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5E08C061714 for ; Fri, 28 Jan 2022 08:10:10 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id h16so6232761qvk.10 for ; Fri, 28 Jan 2022 08:10:10 -0800 (PST) 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=BW9H3cFAMWnTD35c52x3Htxe4iYr3BTDYJAgx05lFMw=; b=TBVZz6piKgCTfaHky7qJRYb4OiK7aZajSS+/10TpPuPGxCBBcV2Gpx2LDqu/T/RWPt 8wwwxBBOd1n9NCyRISDPaAw6w9ZS+oXRQldKiJK8N/5x6LQaOZennOEBuLm92xovTIyn LgFDnyPRKU9tyd/PyCFIwvd4TxED+Is2rpigDaTIYdjZEoqa9t2sq/oUOl1ZQm3N89aP ulCGz4gf4DmelRR/K4Rqk+/D4xK60Zu0BUwL3vKbVdKq2rw9drInDSyFeKqdrneczPdY Aj6JjKbpb2RgfC0NoHG1itJEMbuHHZ2WfwtppjP4AZTGNxjRaPY/nsOwb4teHWVZuN3Z HnwQ== 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=BW9H3cFAMWnTD35c52x3Htxe4iYr3BTDYJAgx05lFMw=; b=40uYN52JtBfj6bykSEsv7T++HdUNw36RIrn7EowDGCxwVhy5fQ5EUFfq+sDbLCkQwI kxn7zAhL9AwT0o4BYLe6r9ljE2WP0vu94TY9PxpxY3berM3mEK+onjB3YtmiyiVIycAb oAhp2QNWtzQyK2ulkF+m+MwwYfyIKVSDchhvOHcUnsNMky57m1jjo7v0m2SZrwyjSL4U 0XS/MX7sXntc7kFKBZGLkbG3WYNdHp+BYLl6h+vVVh6IWpCzgnTIoqaGEg4+uvav/mwj iCH+GVS6kBwsKy7XL5xE7WMF0r24+tFLoHysXK0tu7nAtlVaulnLsWuN+Y6HWJmqmEdg 3fHg== X-Gm-Message-State: AOAM532O5k5ltwgYCuPmmWEoO6S1uJuEkZAvNFd2Mdzl2CJQLby2YUKW NoB0ItrW62W/3QksiZsTJKutLg== X-Google-Smtp-Source: ABdhPJwRIh3C849RZX6hS/6n8q0Ink9qCbIrYeEqnPMjrSUcDhgy8TDSRHB7tWPGDV/RoziOMkXrcQ== X-Received: by 2002:a05:6214:2261:: with SMTP id gs1mr7640225qvb.125.1643386209903; Fri, 28 Jan 2022 08:10:09 -0800 (PST) Received: from sagittarius-a.sqcorp.co (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id o21sm3339006qtv.68.2022.01.28.08.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 08:10:09 -0800 (PST) From: Bryan O'Donoghue To: djakov@kernel.org, bjorn.andersson@linaro.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org Cc: jun.nie@linaro.org, shawn.guo@linaro.org, benl@squareup.com, dmitry.baryshkov@linaro.org, bryan.odonoghue@linaro.org, Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: interconnect: Create modified msm8939-snoc description Date: Fri, 28 Jan 2022 16:10:00 +0000 Message-Id: <20220128161002.2308563-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220128161002.2308563-1-bryan.odonoghue@linaro.org> References: <20220128161002.2308563-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Subsume msm8939-snoc-mm and msm8939-snoc into the one device. Looking at the DTS description for this downstream we see that snoc and snoc_mm share the same address space, the same clocks, indeed the only hint at all in qcom documentation these to are separate in anyway is boxes drawn on a diagram. snoc_mm is in fact simply two higher performance points for multimedia devices tacked onto the msm8916 snoc which was reused for msm8936/msm8939. The various client IP blocks make requests to vote for either X0 or GPLL0 clock rates with the multi-media votes indicating a higher operating point. We don't need to model snoc and snoc_mm separately since the datasheet for this part shows snoc_mm is not a separate device. Breaking up snoc into two pieces is a mistake that was made downstream which we carried over into upstream. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Bryan O'Donoghue --- .../bindings/interconnect/qcom,rpm.yaml | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml index e4c3c2818119e..1110a242b2132 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml @@ -79,8 +79,6 @@ allOf: - qcom,msm8916-snoc - qcom,msm8939-bimc - qcom,msm8939-pcnoc - - qcom,msm8939-snoc - - qcom,msm8939-snoc-mm - qcom,msm8996-a1noc - qcom,msm8996-a2noc - qcom,msm8996-bimc @@ -182,6 +180,29 @@ allOf: - description: Aggregate2 USB3 AXI Clock. - description: Config NoC USB2 AXI Clock. + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8939-snoc + + then: + properties: + clock-names: + items: + - const: bus + - const: bus_a + - const: bus_mm + - const: bus_a_mm + + clocks: + items: + - description: Bus Clock. + - description: Bus A Clock. + - description: Bus Clock MultiMedia. + - description: Bus A Clock MultiMedia. + examples: - | #include