From patchwork Sat Dec 10 20:03:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 32091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1476940wrr; Sat, 10 Dec 2022 12:08:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cHHyZrx90oYpfXPRP8yTW+NH/qypMCUpm2AwyDZIEI3wKIWmbHpvdKhGHLm6Nmtyvlyc2 X-Received: by 2002:a17:90b:3c0d:b0:219:10dd:a389 with SMTP id pb13-20020a17090b3c0d00b0021910dda389mr7777715pjb.31.1670702928860; Sat, 10 Dec 2022 12:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670702928; cv=none; d=google.com; s=arc-20160816; b=WvtaA19l2n7ZUMF47v8/Eg5gSADHBCnqayZTwEcfQP8eyQ8ZXRdtGeg2hAJObi+VBL r3H1nsPjqvBJrI9x7e8vruXdQ+jWhySmxWf6QHOqNGgwMDNbEB/9huMayf9sdQScfEd9 0+7J3ewY10LV1v/ls5WPjiuil5sT9JLbqCeRy2JF9WXdblwyncKf0S3vRHguXmVcimp9 aSXhT9SuGWGxF9B0L0TQ8xMglEXLDGSlvxR+bHx+yXCf9n+8m+vzmz8TudxvP3M2gSKN GYKMwhfvJdmL1wJrML/LbGNb0L6os1Y95tgJ4gwOfAyWr5Xd/9N47CgUY5XbrRYfwq8Y FITQ== 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=OBRVlbrqRCLQh/hPYQMZj1j2VXHf/Xbb2WuXE+iQo4s=; b=YJbrZkDslyGNhFbjyZnd64PngPHtNK3zHNFqruRsUa4y+PQywGQqTbOUlj/n8vXp9w UgV8TuPswtXApIhQGL7jtx69SYkJOWSRU/ANO0AqMd3A05a7alrmcaW/pReOldHjCt0F LTOpC5MbHIJYDCVgUj3f3d8Yz+wr2FzobxUVXr1dR2xW8cNHO20a0VKQ9TaipQmofS4X u4W8Hc4rqvkrmH3gE7LHOz24CaNboKrE4k685LCC7Gt6Pkb07ufkR3YTz9n95tXXauXB f+AtRDIF5tGcJP4YtZj/PcHoLGY2tjG9lM606Hu5kr8X1gkCvWYswW46PwmiuJIRVYXV SgqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OVMoskt2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a17090a598b00b00219738f4d3dsi5456755pji.136.2022.12.10.12.08.32; Sat, 10 Dec 2022 12:08:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OVMoskt2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229779AbiLJUEJ (ORCPT + 99 others); Sat, 10 Dec 2022 15:04:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiLJUEH (ORCPT ); Sat, 10 Dec 2022 15:04:07 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AA8213F7E for ; Sat, 10 Dec 2022 12:04:06 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id 1so12246763lfz.4 for ; Sat, 10 Dec 2022 12:04:06 -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=OBRVlbrqRCLQh/hPYQMZj1j2VXHf/Xbb2WuXE+iQo4s=; b=OVMoskt21DvWG921R245YlH5xYu83EndxKpsNu/6SOS9yo9CCQi3wHGEMVYI5vTed0 puCgJbz0X7tScfYkgR20KfO/Yf0tb6IPESJb0xLtaGV1h92nKfnLMVhZnMoTJn9JScJd QXPvZMXHQbdT0Im2MBVxm7UWsaov7Jg2ehM6yHAt+huRWeQTnBIOYyqaKGh9m5PI6zQ+ kmn/6S5tg/Y/CAcKgkab9HEuM6tdkeBm2ZP+VhshFUwNm+gZj+n3NivgcaJdcqihkLFx ihlptI/KB3kl6Ohr0MEeVUKX7ZRE7+KyI6OHmhK5mr9Ngd6UmjqYonEVx8qgbmJyyYFi RtSA== 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=OBRVlbrqRCLQh/hPYQMZj1j2VXHf/Xbb2WuXE+iQo4s=; b=Eyhitaa0PMExZe4N/CY4l88wuEetsJYdz2OOd48dPuY4MNpG6xFcBc+Q0S4pXl810K Eg0rvUDF41Mdm0QqY0868oIW+3HUPZJacNyPt0gt+HBiGbCt6qMmMVfoStO1FbZWU4+L aW8qZsar4BU7axVu8x8ZAlc2JALVn+/RUof9yvJV2knqYpdYjKYjtLXU/lix7cm7EsGj WFd9fk17fAZnBI5mt4+S9bYg1MG4TJ1fd4oWrllaDN8Xy8YdQGdWcd3EtMTTbCrMlTvr 6iDpLHWwTZOOecNfkekZpA/oiM8mDF4qbeqgMUv/vq9h12B9mToq32GfPiP9IkePNN8m nQXQ== X-Gm-Message-State: ANoB5pkU3yQItFBVpeilpgFIcZ0giRXrCdStKhKQe0QUqmWpVabmDQsv 6gHnUMwL8laeuioLFV1RaUhSJw== X-Received: by 2002:a05:6512:340c:b0:4b6:e22f:51a6 with SMTP id i12-20020a056512340c00b004b6e22f51a6mr529683lfr.53.1670702644949; Sat, 10 Dec 2022 12:04:04 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id h28-20020ac2597c000000b004b4f1ea713csm839628lfp.73.2022.12.10.12.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 12:04:04 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: interconnect: Add UFS clocks to MSM8996 A2NoC Date: Sat, 10 Dec 2022 21:03:49 +0100 Message-Id: <20221210200353.418391-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221210200353.418391-1-konrad.dybcio@linaro.org> References: <20221210200353.418391-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751858993900717770?= X-GMAIL-MSGID: =?utf-8?q?1751858993900717770?= MSM8996 A2NoC contains a UFS master, which means the UFS hardware is accessed every time sync_state is called within the interconnect framework. It's all good on devices where this clock is already enabled (most likely from the bootloader), but devices with eMMC storage are rather unlikely to have it like that. Add the missing 2 clocks to the binding. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- .../bindings/interconnect/qcom,rpm.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml index 4b37aa88a375..5e6be4e79201 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml @@ -84,7 +84,6 @@ allOf: - qcom,msm8939-pcnoc - qcom,msm8939-snoc - qcom,msm8996-a1noc - - qcom,msm8996-a2noc - qcom,msm8996-bimc - qcom,msm8996-cnoc - qcom,msm8996-pnoc @@ -186,6 +185,29 @@ allOf: required: - power-domains + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-a2noc + + then: + properties: + clock-names: + items: + - const: bus + - const: bus_a + - const: aggre2_ufs_axi + - const: ufs_axi + + clocks: + items: + - description: Bus Clock + - description: Bus A Clock + - description: Aggregate2 NoC UFS AXI Clock + - description: UFS AXI Clock + - if: properties: compatible: