Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1452975rwi; Thu, 3 Nov 2022 05:35:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40sHUMIWeQ/pCtK679srNJ237Kip3iBSi0j/KljNhAsczLgw/dMH+teTKrMrdvnHJlIzdN X-Received: by 2002:a17:906:3607:b0:7ad:a798:cdc0 with SMTP id q7-20020a170906360700b007ada798cdc0mr28337160ejb.357.1667478943674; Thu, 03 Nov 2022 05:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667478943; cv=none; d=google.com; s=arc-20160816; b=JGhL6jVimsaXGCoMZieGEjORyqyLzreKu6grmTWSgidTFF7jNdMbIkzViWjJHtUuRI YHxMyAC9nAQWy1TQjNq0+fVkIelwEzaqhyqJqZvZZO9BKAts/FuV23OZq2b1E6IUtY4/ F2TAzVbqMaRaU2WuQ/TBQf63NvX/ipOhSWY5806Oqh5XsVHjcTD+hmsYWSx1jyk/Ln6v m33W1HFw78vltwv8pHAZKrxigNogEhtBmzx2XQzpxmjeGVBIi/TJEW8sgat6thN3zcQu WRu85JFWWVNUfvSlgORPrRb04V3OE9/wwtP8zVnz+CaOHLHP3zLfdUbkUdVU8Hr5SJZM t7wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hRtDVEtEJgnK5NxWnfZSm9MvUkIMouJgLknprK5+P84=; b=MWNq5h0FhlHnM7OvhvselPusproHOJYpM/gV/hfyWSCVfhWzchQzrfKD4rLgIrUVkK 4soOGs/u1i3MpqqipFo+yH1O0oecnAHhDZn3fRe60ruB4oCFEn1ZEMoO11iduSZN3CjO TAk+cxcx6VemPxqE7eIcwvzUKSHeyIaU2OodXWO/SdWmqpuAhRKH0P9sErtN07nqhxCm J4QRX76oXML4h6pB+dlm0CVYu65vJ4gwiyggFkJCH9x4aFx1gU6kvOlyoWN3JraF6Y6i ye3B5glb4VFmYTLS4u/lP6aYs7IrvlwoJaw0jxifqhzixiH0WnnhihU3Yt5gZSRIpTAp t3rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ur8/ynw3"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id co11-20020a0564020c0b00b004617bf36c3csi453353edb.308.2022.11.03.05.35.12; Thu, 03 Nov 2022 05:35:43 -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="ur8/ynw3"; 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 S231653AbiKCMZX (ORCPT + 98 others); Thu, 3 Nov 2022 08:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbiKCMZW (ORCPT ); Thu, 3 Nov 2022 08:25:22 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BBEDAE68 for ; Thu, 3 Nov 2022 05:25:20 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id w4so1095722qts.0 for ; Thu, 03 Nov 2022 05:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hRtDVEtEJgnK5NxWnfZSm9MvUkIMouJgLknprK5+P84=; b=ur8/ynw3HXinZs1DmR4SXuNVzVzNs4UKeVq9ononjq5bkbXJ4OXTLOk309F0/luInH LMyvSU1TCa8zjcMmSgxl9m5L0tnM/hpOoCHSrTj2kkIkBjSdTQT8pmEf2MCQvV4ECPTL yjxKN9S8yOENOtaoc6Pd2Ks+gqQKbpQQ6voipg01qcx4oyJFOGnuHes7wfKXrZZiO9D0 QhzAFcUvY6CHaSm+rbUAIYO5FAGz92FGl+Mt33+AnueGSELdBoT29BZtFnn8+Aypr/u/ P3YF2NGdhQXfJmTc/YVXxM6fONTcZkeKmkzq2nx/GDgEL/pOeDkTC4mhESjWjWR/+1sL kWAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hRtDVEtEJgnK5NxWnfZSm9MvUkIMouJgLknprK5+P84=; b=vYCf1qJ6d4qJSKz157RV4DCzPqRsSLg0PV8545R0r6fRlnwFN/6fDaliy4SX0xyLBB fSqaqGaXs/78/HUOxfzY8ZEwgFAgMumnDfCZHk4PGmsEF9PXGytWUNNsji6jMpRFTSQt 62kTZtntmm28EkFv73ikVIrsnalD0r1aXArTg5sFhWO4pCu2LdS/CSQF9T+DW75HfOYi aBMLmixmqgQLq4dmL4SGAvtqUlILWzKooIlr7hAggoozhI64sBviNPMEXkcYeKUkEZli y+VAzrkU93eU1LOtVzfRM4LGqYKSpSmoG0HRWWQkfbYgqYgh0//OStxMCB75/7gAmc32 ZYzg== X-Gm-Message-State: ACrzQf2G+ETDIOIsiBl4tFqdKDVbJaLQ7m9LRWmq8jCmznsI9Qrynh9M A8rCkllC67PaIdSLfI/Tl83JvHBCegqj5A== X-Received: by 2002:a05:622a:99b:b0:3a5:1984:bdc4 with SMTP id bw27-20020a05622a099b00b003a51984bdc4mr22290699qtb.239.1667478319231; Thu, 03 Nov 2022 05:25:19 -0700 (PDT) Received: from ?IPV6:2601:586:5000:570:a35d:9f85:e3f7:d9fb? ([2601:586:5000:570:a35d:9f85:e3f7:d9fb]) by smtp.gmail.com with ESMTPSA id b9-20020a05622a020900b003a4c3c4d2d4sm446560qtx.49.2022.11.03.05.25.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 05:25:18 -0700 (PDT) Message-ID: Date: Thu, 3 Nov 2022 08:25:17 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 05/10] dt-bindings: interconnect: Add sm8350, sc8280xp and generic OSM L3 compatibles Content-Language: en-US To: Bjorn Andersson Cc: Georgi Djakov , Rob Herring , Sibi Sankar , Bjorn Andersson , Konrad Dybcio , Mike Tipton , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221028034155.5580-1-quic_bjorande@quicinc.com> <20221028034155.5580-6-quic_bjorande@quicinc.com> <20221103034410.GB5525@core-thresher1.qualcomm.com> From: Krzysztof Kozlowski In-Reply-To: <20221103034410.GB5525@core-thresher1.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 02/11/2022 23:44, Bjorn Andersson wrote: > On Fri, Oct 28, 2022 at 06:12:29PM -0400, Krzysztof Kozlowski wrote: >> On 27/10/2022 23:41, Bjorn Andersson wrote: >>> Add EPSS L3 compatibles for sm8350 and sc8280xp, but while at it also >>> introduce generic compatible for both qcom,osm-l3 and qcom,epss-l3. >>> >>> Signed-off-by: Bjorn Andersson >>> --- >>> .../bindings/interconnect/qcom,osm-l3.yaml | 22 +++++++++++++------ >>> 1 file changed, 15 insertions(+), 7 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml >>> index bf538c0c5a81..ae0995341a78 100644 >>> --- a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml >>> +++ b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml >>> @@ -16,13 +16,21 @@ description: >>> >>> properties: >>> compatible: >>> - enum: >>> - - qcom,sc7180-osm-l3 >>> - - qcom,sc7280-epss-l3 >>> - - qcom,sc8180x-osm-l3 >>> - - qcom,sdm845-osm-l3 >>> - - qcom,sm8150-osm-l3 >>> - - qcom,sm8250-epss-l3 >>> + oneOf: >>> + items: >> >> oneOf expects a list, so this should be " - items" >> > > Ahh, thanks. Must have missed running the dt_binding_check on this one. > >>> + - enum: >>> + - qcom,sc7180-osm-l3 >>> + - qcom,sc8180x-osm-l3 >>> + - qcom,sdm845-osm-l3 >>> + - qcom,sm8150-osm-l3 >>> + - const: qcom,osm-l3 >> >> The concept is good, but are you sure all SoCs will be compatible with >> generic osm-l3? > > Per the current implementation yes, worst case if one or more of them isn't the > more specific compatible can be used to alter the behavior of that platform. > >> Why not using dedicated compatible of one soc, e.g. the >> oldest here? We already did like that for BWMON, DMA and few others. >> > > Because if we say compatible = "qcom,sc8180x-osm-l3", "qcom,sdm845-osm-l3" and > there is a quirk needed for "qcom,sdm845-osm-l3" we're forced to add a "special > case" every other *-osm-l3 in the driver. > > This way we can have a generic implementation for the qcom,osm-l3 and if we > realize that we need to quirk something for the oldest platform, we can do so > without affecting the others. True. This also means we do not really know which one is the generic implementation :) Best regards, Krzysztof