Message ID | 20230703-topic-8250_qup_icc-v1-3-fea39aa07525@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp529714vqx; Mon, 3 Jul 2023 06:36:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEnzOquZsrwLv4fesK3kMuHXbDsUzmwObU2H3O2XokTQ7pVRgLJGorPc8GZU2sn5Je+zxGB X-Received: by 2002:a05:6870:4187:b0:1b3:afdc:6c08 with SMTP id y7-20020a056870418700b001b3afdc6c08mr2310827oac.0.1688391399457; Mon, 03 Jul 2023 06:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688391399; cv=none; d=google.com; s=arc-20160816; b=r6tZhHG1r8+66k/1R9L5YU37tRneVK9xKgMJlS4JUvMPyhTvF909LT0ECkaS1ym7+N nvnURTsSzQSYoT80RgqEbtJzYWr9wZ3e7GbTxWo5uR86zll+B23k9cEvIdH78fCrAmZL EkxE1BMb94Z0os7Jt0nLbDikmJgOnEq4HhDrdpDZBWnC8W26Bpqnpfv3XChwyQ6hBzNy a1R9JKUafafs9O1+83vXlAjOAQUiFNWoucacjunG/PRZXAWREl27+Y/ffwTz0yAJje5c tGbUi0JiRtYOETpSvpIqOQM7bmounN4n7I+R2p4/pwjO2kHqNvm4P2MkUrBMc7McAHYu ZqBw== 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=renX9kOzKpMBUHmq5hZ3jekycYbJefUYz//61Td5O/s=; fh=EV+5bRVCKNG17q531vPQpoKiuN4tfzBrxhdEOIK2W5o=; b=V1yuC/ocAynM3DWhjjboev0UnJmRzmIdTpFGUIf68g3nnwzKTwuOs94uGgfszH0r+u JVJ7F0clXecasJKIkccaN87EBVaj+KVIDtznjvscDXti3LFwM9RvVCtsiuTIuKh0GWCL VBXcxX/unncIKSZMXeVIrjzIQlTw486WWFJ6L9rODbJiaqT6ODy5P5U5oeOKWHdAqaqU X1cE6AK9S619231U4J18qldsTVXjmY0+Qm4HGL49sM27XwMQYXQdTWibTo5NXwRGf7qK lcIiPlA0iaHitYFwkGULys+BUGT/8wSP/DDBDZoHMuHp94lWe4TLllNGMfDHcPLzZGu9 2iBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GQnx9pt3; 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 n6-20020a17090a9f0600b002631de09798si12697054pjp.53.2023.07.03.06.36.18; Mon, 03 Jul 2023 06:36:39 -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=GQnx9pt3; 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 S231682AbjGCNbf (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 09:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231613AbjGCNbX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 09:31:23 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA131E67 for <linux-kernel@vger.kernel.org>; Mon, 3 Jul 2023 06:31:19 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so6661756e87.3 for <linux-kernel@vger.kernel.org>; Mon, 03 Jul 2023 06:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688391078; x=1690983078; 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=renX9kOzKpMBUHmq5hZ3jekycYbJefUYz//61Td5O/s=; b=GQnx9pt3XPrNTI7bDhUV9shv8jqRedMVA93nw4QPRqm1n2msFv+zYB8ujsiGCdElPC t8IkSGHHArjdxfc3xppEsOSWHxvr4V+ec/3/0MnXAm3trjUCNMkkfa4X1f8Md8OM2elV 4/iAzcL+CuuTwYF2WykkblvIUycM5srNmsuyfx76DqZyonY55nLfcK4eOXiblsqqKs67 molg5OpuT+DoI46lFWFP+ocrmrQeRv2yptgr4hifTIxn5THLeizHxJO6wDeZamAG2jc0 3hpYTjGtZ89L93p9sNDLcL1BlKGvteqyQ5Cq7wk+XBUNRU2ADs1gfJI57SFzfpY4sbtq 48tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688391078; x=1690983078; 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=renX9kOzKpMBUHmq5hZ3jekycYbJefUYz//61Td5O/s=; b=drjwXLvla0m8492GZkKvBMkHiC9/RG9E/hLrCZRwmQZeRZajo8ZE7fInRwgQQ6sSwa 1yuKD/lSMSn42ekABBPAjq/QCJa70YKwQxlVWQE0j/mGZivgv3njoj1wx6u4PWbZVlSP cCViUoQtI+SaDpFL2Abk7u+/16mRk9WXSkQCeTBtCUxj72Cjm2iVYZ0OUM8Vnb0OaoSO Y0+esAzJOB8SBcLz88+oJFlWyMSkOndWjqLrDD9bvrDPWJOueoGRNvHdN7byzhVubRyo 5tTc8ZZqCUUdip0KdPpzQEFIRzUprWUWhaE0k1CFZ6SLMTIkk7/MrfNxOvwzENmaRYIM mApQ== X-Gm-Message-State: ABy/qLZcLxQ/6iRjt/LmAY9F5tkSrCYsr+hxd4Im6ppCCeKO9Vze14hF DisgpGhpFKe23LPPNh2Qp0UsgQ== X-Received: by 2002:ac2:5f77:0:b0:4f8:4255:16ca with SMTP id c23-20020ac25f77000000b004f8425516camr5813036lfc.38.1688391077959; Mon, 03 Jul 2023 06:31:17 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id ep7-20020a056512484700b004fbb1f70ceesm833417lfb.227.2023.07.03.06.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:31:17 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Mon, 03 Jul 2023 15:31:12 +0200 Subject: [PATCH 3/5] dt-bindings: i2c: qcom,i2c-geni: Allow no qup-core icc path MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230703-topic-8250_qup_icc-v1-3-fea39aa07525@linaro.org> References: <20230703-topic-8250_qup_icc-v1-0-fea39aa07525@linaro.org> In-Reply-To: <20230703-topic-8250_qup_icc-v1-0-fea39aa07525@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Andi Shyti <andi.shyti@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-i2c@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688391072; l=1429; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Efov7Nc3L7yYdK02wWwkMS19LIdgHhVcFqBbivRpHHg=; b=l/kFHoXLaDijhcPRgMraezLtExT+uw2/Dx6Ky5TCDCAYZRsOhWk4fguwnDe0BeiOpJwS8kMSZ UrlhHFlGtuPD0B9+mS/r23uC+zxZssYS+zHRdDknp1RU+G/ns8/x+oU X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770406699687138873?= X-GMAIL-MSGID: =?utf-8?q?1770406699687138873?= |
Series |
Add interconnects to QUPs on SM8250
|
|
Commit Message
Konrad Dybcio
July 3, 2023, 1:31 p.m. UTC
Some SoCs (like SM8150 and SM8250) don't seem to provide a qup-core path.
Allow such case.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
.../bindings/i2c/qcom,i2c-geni-qcom.yaml | 27 +++++++++++++++-------
1 file changed, 19 insertions(+), 8 deletions(-)
Comments
On 03/07/2023 15:31, Konrad Dybcio wrote: > Some SoCs (like SM8150 and SM8250) don't seem to provide a qup-core path. > Allow such case. > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Mon, 03 Jul 2023 15:31:12 +0200, Konrad Dybcio wrote: > Some SoCs (like SM8150 and SM8250) don't seem to provide a qup-core path. > Allow such case. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > .../bindings/i2c/qcom,i2c-geni-qcom.yaml | 27 +++++++++++++++------- > 1 file changed, 19 insertions(+), 8 deletions(-) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: geniqup@8c0000: i2c@a94000: More than one condition true in oneOf schema: {'oneOf': [{'patternProperties': {'pinctrl-[0-9]+': True}, 'properties': {'$nodename': True, 'bootph-all': True, 'bootph-pre-ram': True, 'bootph-pre-sram': True, 'bootph-some-ram': True, 'bootph-verify': True, 'interconnect-names': {'items': [{'const': 'qup-config'}, {'const': 'qup-memory'}], 'maxItems': 2, 'minItems': 2, 'type': 'array'}, 'interconnects': {'maxItems': 2, 'minItems': 2}, 'phandle': True, 'pinctrl-names': True, 'secure-status': True, 'status': True}}, {'patternProperties': {'pinctrl-[0-9]+': True}, 'properties': {'$nodename': True, 'bootph-all': True, 'bootph-pre-ram': True, 'bootph-pre-sram': True, 'bootph-some-ram': True, 'bootph-verify': True, 'interconnect-names': {'items': [{'const': 'qup-core'}, {'const': 'qup-config'}, {'const': 'qup-memory'}], 'maxItems': 3, 'minItems': 3, 'type': 'array'}, 'interconnects': {'maxItems': 3, 'minItems': 3}, 'phandle': True, 'pinctrl-names': True, 'secure-status': True, 'status': True}}], 'properties': {'clock-names': {'items': [{'const': 'se'}], 'maxItems': 1, 'minItems': 1, 'type': 'array'}, 'clocks': {'maxItems': 1, 'minItems': 1}}} from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.example.dtb: i2c@a94000: More than one condition true in oneOf schema: {'oneOf': [{'patternProperties': {'pinctrl-[0-9]+': True}, 'properties': {'$nodename': True, 'bootph-all': True, 'bootph-pre-ram': True, 'bootph-pre-sram': True, 'bootph-some-ram': True, 'bootph-verify': True, 'interconnect-names': {'items': [{'const': 'qup-config'}, {'const': 'qup-memory'}], 'maxItems': 2, 'minItems': 2, 'type': 'array'}, 'interconnects': {'maxItems': 2, 'minItems': 2}, 'phandle': True, 'pinctrl-names': True, 'secure-status': True, 'status': True}}, {'patternProperties': {'pinctrl-[0-9]+': True}, 'properties': {'$nodename': True, 'bootph-all': True, 'bootph-pre-ram': True, 'bootph-pre-sram': True, 'bootph-some-ram': True, 'bootph-verify': True, 'interconnect-names': {'items': [{'const': 'qup-core'}, {'const': 'qup-config'}, {'const': 'qup-memory'}], 'maxItems': 3, 'minItems': 3, 'type': 'array'}, 'interconnects': {'maxItems': 3, 'minItems': 3}, 'phandle': True, 'pinctrl-names': True, 'secure-status': True, 'status': True}}], 'properties': {'clock-names': {'items': [{'const': 'se'}], 'maxItems': 1, 'minItems': 1, 'type': 'array'}, 'clocks': {'maxItems': 1, 'minItems': 1}}} from schema $id: http://devicetree.org/schemas/i2c/qcom,i2c-geni-qcom.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230703-topic-8250_qup_icc-v1-3-fea39aa07525@linaro.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On 03/07/2023 16:36, Krzysztof Kozlowski wrote: > On 03/07/2023 15:31, Konrad Dybcio wrote: >> Some SoCs (like SM8150 and SM8250) don't seem to provide a qup-core path. >> Allow such case. >> > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Un-reviewed. Don't define properties in oneOf, instead use the syntax I pointed out in other patch. If you remove interconnects from this example, you will reproduce the error. This should be something like: interconnects: minItems: 2 maxItems: 3 interconnect-names: oneOf: - items: - const: qup-config - const: qup-memory - items: - const: qup-core - const: qup-config - const: qup-memory Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml index 9f66a3bb1f80..f92b6d7fc7c5 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml @@ -108,14 +108,25 @@ allOf: clock-names: const: se - interconnects: - minItems: 3 - - interconnect-names: - items: - - const: qup-core - - const: qup-config - - const: qup-memory + oneOf: + - properties: + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: qup-config + - const: qup-memory + + - properties: + interconnects: + minItems: 3 + + interconnect-names: + items: + - const: qup-core + - const: qup-config + - const: qup-memory unevaluatedProperties: false