Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5269642rwb; Wed, 17 Aug 2022 14:30:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QlHPyBoudcilikEpzxaB8ZV5u/YD5tPI6E5XCjCI1TaXYZZsAkjAwZh8JVROuvw+FxdSu X-Received: by 2002:a17:906:98c8:b0:730:7f77:9558 with SMTP id zd8-20020a17090698c800b007307f779558mr17830318ejb.467.1660771818456; Wed, 17 Aug 2022 14:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660771818; cv=none; d=google.com; s=arc-20160816; b=SPTnc3NOWUeM8LD4vGA0lJ8Zxp7eoqtRGqnP+VCWT3qJ0GlI7Fy/e+vjH+FzAOX8jS pUpA82MDXYgbsdaL7mkjUYVet62j9OEOb+XRA38ydZwSJsYGN5ysfgyrXXIJ5kpB3TAw ZMpsrTxRx1qGst7/yYu1e9lPoFw1NsLBpABc8MDAIZYEnbaiw/MrGGFIVY2GiFze5O3N HxUbBQm8uzDj8dMIokdyC+YIYAa+KXScv8tzqE0BWmAfpafu4g8hKn8OSEzfnnD3XFg5 57VIZbp83ZwbxZ1sNCJyum3RkPd6y+yOESK5FGwdoEt1272uInLUzXozxjl+7YI4ckWZ eQzQ== 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:to:content-language:subject:user-agent:mime-version:date :message-id; bh=1XKKuKDrD0MFM3o1EAWj3VyNOVert8IjLtIaIz0JZaw=; b=JHPlwbu3Zw77MQSphPs3+dbxMM5rOXxmVQ4CQK+NnjA/cTkcaYze5FAGq8snX4mZdw xXx1VPUUysKlilXDBsPhbUJfhj1AE05KTTNZawrKIvpBEIPZ34remv1FqgbgXtURl1kH NpiaXGrbz6vSVhOy5SuVHYVvAONZ6CgDmsHxT0ZsCt6XgD8MF4AUrgJyr9ZzuH5IH7l+ +xo+ypMrZ3w6SnAJ0D/nDRB39DMj9wlDPEzHyOssNeyoLYLnCg98JrlLpL6LOlHX7wg8 En9+N97CDwbwhwVdyfAp6v9FJGoGFvYDAnTp8OysbCTEy8m1Ofd76yc/Yt+wHaRB19y6 hwjA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j39-20020a05640223a700b00445db771c57si2260793eda.133.2022.08.17.14.29.52; Wed, 17 Aug 2022 14:30:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242243AbiHQVCq (ORCPT + 99 others); Wed, 17 Aug 2022 17:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242234AbiHQVCp (ORCPT ); Wed, 17 Aug 2022 17:02:45 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [IPv6:2001:4b7a:2000:18::163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E283AB4DE; Wed, 17 Aug 2022 14:02:44 -0700 (PDT) Received: from [192.168.1.101] (abxi168.neoplus.adsl.tpnet.pl [83.9.2.168]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 0BA031F65F; Wed, 17 Aug 2022 23:02:40 +0200 (CEST) Message-ID: Date: Wed, 17 Aug 2022 23:02:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [RFT PATCH v2 08/14] arm64: dts: qcom: sc7180: switch TCSR mutex to MMIO Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Lee Jones , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220817130342.568396-1-krzysztof.kozlowski@linaro.org> <20220817130342.568396-9-krzysztof.kozlowski@linaro.org> From: Konrad Dybcio In-Reply-To: <20220817130342.568396-9-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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: X-Mailing-List: linux-kernel@vger.kernel.org On 17.08.2022 15:03, Krzysztof Kozlowski wrote: > The TCSR mutex bindings allow device to be described only with address > space (so it uses MMIO, not syscon regmap). This seems reasonable as > TCSR mutex is actually a dedicated IO address space and it also fixes DT > schema checks: > > qcom/sc7180-trogdor-wormdingler-rev1-inx.dtb: hwlock: 'reg' is a required property > qcom/sc7180-trogdor-wormdingler-rev1-inx.dtb: hwlock: 'syscon' does not match any of the regexes: 'pinctrl-[0-9]+' > > Signed-off-by: Krzysztof Kozlowski > --- Not tested on a device, but looks good to the eye: Reviewed-by: Konrad Dybcio Konrad > arch/arm64/boot/dts/qcom/sc7180.dtsi | 11 +++-------- > 1 file changed, 3 insertions(+), 8 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > index 5d2dd21da79c..e8debb0da411 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > @@ -555,12 +555,6 @@ scm { > }; > }; > > - tcsr_mutex: hwlock { > - compatible = "qcom,tcsr-mutex"; > - syscon = <&tcsr_mutex_regs 0 0x1000>; > - #hwlock-cells = <1>; > - }; > - > smem { > compatible = "qcom,smem"; > memory-region = <&smem_mem>; > @@ -1462,9 +1456,10 @@ ipa: ipa@1e40000 { > status = "disabled"; > }; > > - tcsr_mutex_regs: syscon@1f40000 { > - compatible = "syscon"; > + tcsr_mutex: hwlock@1f40000 { > + compatible = "qcom,tcsr-mutex"; > reg = <0 0x01f40000 0 0x20000>; > + #hwlock-cells = <1>; > }; > > tcsr_regs_1: sycon@1f60000 {