Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1689709rwn; Fri, 9 Sep 2022 02:28:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR4iNM2VehVqEKuTrmtq79Ghpc7u+clVvzxRk6Fa3mRPNElvcrPAa/Acg78IkBJ1klOqYptY X-Received: by 2002:a17:90b:4a4c:b0:1fe:24ac:2bb3 with SMTP id lb12-20020a17090b4a4c00b001fe24ac2bb3mr8742932pjb.79.1662715729161; Fri, 09 Sep 2022 02:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662715729; cv=none; d=google.com; s=arc-20160816; b=j9nTPrytLRmbP7eckxIGKC5DE4LYXPJeF3dPDo035vFpL/vGWnup4wb9XBnz4P77ib TcHfKSGZqSCsCKjGLVS54u6Mm/uLW98Z4+lMPhsGG1UKUl2R8IT72bHKNbj3YlovxJbC r/63KcRpR0hXa5ts74VXEeSuUzPwe3vV4/G84PdjoNFO3EB2/etjIQYEUw2cpQ68UWQj eKiy8Afzu5Jp2U5Mmc/Bb3WhAgQdGMIs71kBBVuOb4tFWtDY2NKxszBMU3v2bA4VcXXE LjeFpY7i4kveYbYlL7+OAu3XhQq7cM7NXGA0k+ZThnJYd6MnD0j1jc6V39nfeqwXRNwm qprQ== 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=ylRikkO/bjiVr6cfpMQukwsajH9gmB7MCgQxpA3FZjg=; b=OneEyuayMwkOALkOqNIMmAVLsG1mtcz4qYtZOEnLAIf68GIHLR1QzetInpXE4d5ngW txDu7YrXkeRA6A3cqzXZaj9yqBt67pbFKLsomh7TsGsCE7hfYDzSV4+DwSoKYGiJQRAW btXzcDKAds68KNBXktvlHrn/s57bWsLIz34J1yUCjfrT73yfk4C3rMo0Ck6X9c8RM5Nl fgtF8inclvoGJHVP0B582JaJwkVLg1dpMohApZMv9+DHmhcvK5BVdsEK27G4SvnO8eJO TkSErCPdrEfNo16v0dcnVO60VN69XH4Wb5pxhJE+rOijyH3Fzuph2eRC5OJogDkdS3vv DfZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rbp6s+HH; 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 t3-20020a170902b20300b0016bf0216b67si14672plr.401.2022.09.09.02.28.37; Fri, 09 Sep 2022 02:28:49 -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=Rbp6s+HH; 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 S230368AbiIIJUv (ORCPT + 99 others); Fri, 9 Sep 2022 05:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230252AbiIIJUp (ORCPT ); Fri, 9 Sep 2022 05:20:45 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4493B2DA4 for ; Fri, 9 Sep 2022 02:20:43 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id i26so1639040lfp.11 for ; Fri, 09 Sep 2022 02:20:43 -0700 (PDT) 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; bh=ylRikkO/bjiVr6cfpMQukwsajH9gmB7MCgQxpA3FZjg=; b=Rbp6s+HHlty2tiIFVglQ/FRKyD5ATqB4XPHjipBAH8TzeUvX+65H7CX+s0YbT6FH26 9TwT92id9gqKOir2zehfw4IlRI068GaYXzKmkGG+5PvDZSBmIrK6oEW1TR7lfr5SB03S nV0wymd5Aq3e0GP1Z8wRnZ5eeK/WswjAVc4layeXIfV0MP742IA7RtJ9LHNDdDTTUFzA qksspnOEmImqHOjWNcnX5qOSlQAgUFjqQJOqcM6Wg+RzAnkat0CPmANd6o9Lyyq2CqrF fuu9w5fV/Qa3klgUhAGtGUx9naCWwsrh17UU5cj1b6VF0W0MmN6wJi4vPQAzGWqcSdoQ dUtA== 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; bh=ylRikkO/bjiVr6cfpMQukwsajH9gmB7MCgQxpA3FZjg=; b=S4aDlXyWUlyYi8LKiOgm0uevp2uGDjAgiiAAeihZTxjLoYfITdA7fW2Sp/JuYABd+X 8hpiQousHl9ePjVAdwaRPT2jwsiQvUBEUW8F1pAWPPbRkJH1hxOOR3zpfI8nYnNvQBEt 8kncymLBdSPKEdwT3i6UWvBi+9lyV1jL+1M39+bx/Y9bco8XCtPEhuXJW6/abJ/AvRAq xqO3WNuyQ6ZGnlslXXgYYTbajJ4f6VHRjqACkDIfgwHgIpYHdde0aoI9L2EVs33Qk5E+ ETuyD6eaoK1Erv4Gxs0Oa1Z5pk498YjNu1iijbFl7KYOe0AYsWuXaFC0XFPGLUUwBkpE jB5A== X-Gm-Message-State: ACgBeo3nLXwTjRVisdEcTogLETwtcQvIIktHCq80FeymVNgynbgggVjt ogfrVnWC1A1AEdF05GFMByL2uQ== X-Received: by 2002:a05:6512:1087:b0:494:a011:2752 with SMTP id j7-20020a056512108700b00494a0112752mr4520199lfg.2.1662715241954; Fri, 09 Sep 2022 02:20:41 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b00498fe38ea0fsm2170lfr.174.2022.09.09.02.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 02:20:41 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ohad Ben-Cohen , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 01/15] dt-bindings: hwlock: qcom-hwspinlock: add support for MMIO on older SoCs Date: Fri, 9 Sep 2022 11:20:21 +0200 Message-Id: <20220909092035.223915-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> References: <20220909092035.223915-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=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 Older Qualcomm SoCs have TCSR mutex registers with 0x80 stride, instead of 0x1000. Add dedicated compatibles for such case. Unfortunately the binding started using a generic "qcom,tcsr-mutex" compatible without specifying the SoC part, thus it looks now quite inconsistent. Signed-off-by: Krzysztof Kozlowski --- If anyone ever says "I want a generic compatible because I am sure all devices are compatible", that's one more argument they are wrong. :) --- .../bindings/hwlock/qcom-hwspinlock.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml index 1c7149f7d171..de98b961fb38 100644 --- a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml @@ -15,9 +15,18 @@ description: properties: compatible: - enum: - - qcom,sfpb-mutex - - qcom,tcsr-mutex + oneOf: + - enum: + - qcom,sfpb-mutex + - qcom,tcsr-mutex + - items: + - enum: + - qcom,apq8084-tcsr-mutex + - qcom,ipq6018-tcsr-mutex + - qcom,msm8226-tcsr-mutex + - qcom,msm8974-tcsr-mutex + - qcom,msm8994-tcsr-mutex + - const: qcom,tcsr-mutex reg: maxItems: 1 -- 2.34.1