From patchwork Thu Mar 16 11:16:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 70740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp423649wrt; Thu, 16 Mar 2023 04:24:32 -0700 (PDT) X-Google-Smtp-Source: AK7set+Nztnf2Kjyag553w3zbErtqD/u6qAGVkBQhUpFW+y0Tbg6LOhXBKMyOp5kesGvurQKILOE X-Received: by 2002:a17:903:283:b0:1a0:4341:4cd9 with SMTP id j3-20020a170903028300b001a043414cd9mr3729249plr.31.1678965872475; Thu, 16 Mar 2023 04:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678965872; cv=none; d=google.com; s=arc-20160816; b=TpN2+OMEjY/3VHTdMxEVAPOmUf8Mo8M/3yw2dNFZ+Fxh/pNzjZll90P2AU5YB6oxsF PvA5eFeojmmZDoSkw+cYCSkHY52lJpYhIM+OAj6YFZbZoCij/yDnouHFKVyiPNesW4Wh napliiV3Ek1UpBefbkE3zrOJZetsl+PCt/H5fwdjF7MPxzl+i1Tgp4CHi0nWZOzAMabg 0vHML3zM+tAutlzmTJadIyyURCvuydv0MQr4jZp1+oWsHfxMYULriV8JNvvHOZsyIaTW IGllsfsYdAmaiDMDhZt6kBDMV7WBTxKQ8Mf4oC6Y2hxvGvMKRX5wEkwuD0PVWTpEzfKr ayAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Dqo3vqQkgXO2XmX0zU0XEpyQvAGwKwkDhhmGh4mUlEA=; b=S8wo/bJlsuGcWc5FGx9m4bEO8H0DSqozOVdd+naVipmpDEDXeg6lcf8AhC+At+sh7t CTWznRIWvvhe6ZrI+fyNDfFS37GJl+5JYXsIUiPqri4HzX/htHkwNfkJ2CYNH3IsBKn+ RZrMFKceWtzueodpYg0AWtr2I6io/cVteb41Rx5iC+Vo8IV5gK8SKMWOAjsJsFk6Y4AK 8+nvxkC+NFtf83Ll9xGNKXBRlFO0UIOopIDXO/P5KqcAkxfz4qtY2k/Dm4nEUVnpZxCd tSDVmsonPgkgd50O9mnOFz87r5xNrCd/L5/DxchDwu4YHKGWYXxAz8NEDDCVbFyAlSyh nVBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=geHOA6N6; 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 e17-20020a170903241100b001a05a690032si8486394plo.44.2023.03.16.04.24.17; Thu, 16 Mar 2023 04:24:32 -0700 (PDT) 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=geHOA6N6; 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 S230260AbjCPLRX (ORCPT + 99 others); Thu, 16 Mar 2023 07:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbjCPLRT (ORCPT ); Thu, 16 Mar 2023 07:17:19 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52216C48B0 for ; Thu, 16 Mar 2023 04:17:11 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id j11so1815820lfg.13 for ; Thu, 16 Mar 2023 04:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678965429; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Dqo3vqQkgXO2XmX0zU0XEpyQvAGwKwkDhhmGh4mUlEA=; b=geHOA6N69cOMKOp54uqlnmS/qoOCmqDT2CG0MwTgEj1bifzrn5sdU57I9jydF2ESN/ JatgKPbVtpux/pUFTodcSJLAS8d+rVOkb7mMAoF8qr+rKArpe6RQYzcN1k8sl5gokWrp bTYxhZzule19Mm4I2IGjeWYg9X9zUZCjNyPl1bPaohzTH5IEESaXNTo15Si8FG+/uc55 tg8RtNe5rDC+iuXBmE8O1ZklDAL1OZI35vTQFPME0sa7H+6sGZq4p7rR9dm3neCqPc/2 3Uip2TW8T08TVMHRPe77WIcHIT/OINZwZZu2HZDRVrWN/mliqgdsSIqg6uwIcCHB1pd4 0PAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678965429; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Dqo3vqQkgXO2XmX0zU0XEpyQvAGwKwkDhhmGh4mUlEA=; b=ifj58avTL5cgnpJ1kL6PoFwZgt5nlRP8XXN8zTFTR2mBRApg1ZEILEStC7BbLNfoLD EmqrMrK1M3R+1DK9Hib3v6DUCEGgTs5fDN/RS8yb2RN5MBOQS9YaSqAuC+l5LLnknu+M 2oPZinRkz01T3QMp0yzmuzf/c2CaHSrsHZQcIzSoGC8B6nxEbAzORrOtFar4L/yYYsLo AJ/88ipDfxQSw9td54rRj9WaMj2CeEDkPl/MD3LSiW88Sj9awMzMm8zjnj88ueMbIYWD U2d/mAxT2BBjaoq6nL/IKhvZz7G4M1hvu3MWcdbM2Ab990q8IugMorp6Y6H57PTz7rD7 fwDQ== X-Gm-Message-State: AO0yUKV40SrduaeUgk8xkEBXNssH4DTfNHh/RBMDhXLYMIIrwsHOhoO/ Ccx+T/Mav6WODcHsBNkqnUIbzA== X-Received: by 2002:a05:6512:39c4:b0:4dd:9eb6:5b4c with SMTP id k4-20020a05651239c400b004dd9eb65b4cmr2390052lfu.0.1678965429243; Thu, 16 Mar 2023 04:17:09 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id u28-20020ac243dc000000b004db2978e330sm1194222lfl.258.2023.03.16.04.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 04:17:08 -0700 (PDT) From: Konrad Dybcio Date: Thu, 16 Mar 2023 12:16:56 +0100 Subject: [PATCH 1/5] dt-bindings: clock: qcom,gpucc: Fix SM6350 clock names MIME-Version: 1.0 Message-Id: <20230315-topic-lagoon_gpu-v1-1-a74cbec4ecfc@linaro.org> References: <20230315-topic-lagoon_gpu-v1-0-a74cbec4ecfc@linaro.org> In-Reply-To: <20230315-topic-lagoon_gpu-v1-0-a74cbec4ecfc@linaro.org> To: Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: Marijn Suijten , Rob Herring , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678965426; l=1659; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=bpaAXA5y4g96VwCAJK9chz5FYE16LKwf+GCJo/Dh+04=; b=Jild5AY0GLW3IlK/0sO5nZu7MvhQrlDmN5ABPy6VIRbq5sH0zdDzJyWVgYFZkV1dqSaHbcjDa8ah 60eKja2ND5+/d/+W42zSyRGM0uDlHxgiIq4CiB4Jr8+5kd3WG32y X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1760523318363366118?= X-GMAIL-MSGID: =?utf-8?q?1760523318363366118?= SM6350 GPUCC uses the same clock names as the rest of the gang, except without a _src suffix. Account for that. Fixes: 7b91b9d8cc6c ("dt-bindings: clock: add SM6350 QCOM Graphics clock bindings") Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/clock/qcom,gpucc.yaml | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml index db53eb288995..d209060a619d 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml @@ -43,10 +43,8 @@ properties: - description: GPLL0 div branch source clock-names: - items: - - const: bi_tcxo - - const: gcc_gpu_gpll0_clk_src - - const: gcc_gpu_gpll0_div_clk_src + minItems: 3 + maxItems: 3 '#clock-cells': const: 1 @@ -71,6 +69,29 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + items: + - const: qcom,sm6350-gpucc + + then: + properties: + clock-names: + items: + - const: bi_tcxo + - const: gcc_gpu_gpll0_clk + - const: gcc_gpu_gpll0_div_clk + + else: + properties: + clock-names: + items: + - const: bi_tcxo + - const: gcc_gpu_gpll0_clk_src + - const: gcc_gpu_gpll0_div_clk_src + examples: - | #include