Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp219808ybh; Tue, 21 Jul 2020 21:49:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/ctTAbfa0Ww65sJwMQRIM70IdsqOwp+us2iESiLaLHuz+OuB8MbgSS7ciq5JyL2vuJChl X-Received: by 2002:a17:906:b74e:: with SMTP id fx14mr27373622ejb.202.1595393368725; Tue, 21 Jul 2020 21:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595393368; cv=none; d=google.com; s=arc-20160816; b=A6My3o+55b8z4G6OenOE6V+A/oSPNacF4krbwqDNeXCGuUWAMZcH7PwVldf35Gmv2i vESvwXmbb4divzRIKqF2qvnaPFeMARv1KMNYclYjB+kjdPtCBv90LpppNAa+ykpU/dpg fVjeK9fJ7Lt6ewe9qPCQB5bjmcUGZv66tP6stUdtRqT8TpJna6ExNOrSVoUp+VhnbSZo yIiJMag8Pae59iobxy6c1+MCDdztk30OckVEdnW+8IPDzZdOdSG+pPkLBAqPMc/sOkPV fSEIyXbiOB1Lco1jX4HfqjnQT4Jg8iPg996lt+56LKWN1EgRmgYTyv5Mgh5mSEaEWRSW p45g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=58zKMZOPt1u3jpGyc+egvpdxr0peyatL+Nyz70ratxs=; b=ldCA2elg6tgxqPWkh264ljp++8cJXaA2BqoWv16TcV/kX98X6wMGSfcKEW2S1sfv5z eDGCDC0xueHmNLck3iXiv9Zx9EbmUVj0BYliU9az8MbTWyRMsFIx8f8OZOxLLNwgBhBJ UPDTVRw1JqZ3XN+Vt29hevhVU2RHp3rEnIt2EEDa/SmNOQMh9e2oLIxmi4oOyu0sgucP rT3VG4aazdQOYZCadyizgOhOz0gg+tEZ4/9vP7iBOiKC2zkh1TrjQNAHdzrPpB/NBbkk YPma4oGAUx3A0xexMIWf+fg0/xHB63AQphb18YF+F2Rx0jqWwmSQTeAkwp5CpIGj0kmm 0bFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nG39IMDj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si14434364edq.546.2020.07.21.21.49.06; Tue, 21 Jul 2020 21:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nG39IMDj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726726AbgGVEsK (ORCPT + 99 others); Wed, 22 Jul 2020 00:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgGVEsK (ORCPT ); Wed, 22 Jul 2020 00:48:10 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECFEDC061794 for ; Tue, 21 Jul 2020 21:48:09 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id u185so543029pfu.1 for ; Tue, 21 Jul 2020 21:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=58zKMZOPt1u3jpGyc+egvpdxr0peyatL+Nyz70ratxs=; b=nG39IMDjujMeRh/4sbcvRxIPQSNRe2DOZ6Nx2FVG6gFBmEZfpbR8IHnABB/ZFmmuYq L9xik+zNqwLx6t9ltZtPjSlPzGwW8BnJ3U4QayiLDdViWAIAJtsky0WxIHPn26ocOqWy goPjV8dCAOoFOA+8R4dlu0BP0LN9LKT5QfYZbL1Csgi59vmx1OEuQghm6E6wBeBB15Vz UlJEiHxgOpMI29wi8Rh60WgwyBr33qFbpArVhR2gW4+hsSu0SntQMTQn8yTNYF78DY8o AlyXxwIlq39XaWwhHYmo8npE5Bw4Lb0yEBUd0I9rhSUOKy+6rR2KbHStwZl1SRblTPt6 qjww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=58zKMZOPt1u3jpGyc+egvpdxr0peyatL+Nyz70ratxs=; b=tkKfFVByDHqJazdXjlJLL5+ulcrZUZnluXMIfmIWGpJE3X/eAr7t+MfgC/jtZjPBAT AwyVpSh9kbs1cqhqAV7XnLkrj90aMM2OrItuET9XiRRz7M8IexQtFVxIoRQSEYp2UaLH vEZYkC2vuXN3qOPl5vdDruznRWcaaQUlU/A09UznSoFf2Nt8EsCQ2B/V1mn+rThmKv9p y8t+83wjpaTHuL1p+QROgB+ImbXAdqmewbNpjJfWlw2i8+3MXYcCNgQ5s9T/sA3pRPYA xHumEebbFxDs0imCYNJHGaYkwp92ux5WqArhy1tJYmmboVGaUigTuvDxVGsXxrYksqNa UZqQ== X-Gm-Message-State: AOAM5338hoDS8AkFt4UUYeznLuKCuxvE6KWGgqnGCQQ/WSI56xAV3WHO vmWG5qO+K1eco03PyoGZBeNzug== X-Received: by 2002:a63:f806:: with SMTP id n6mr24931192pgh.346.1595393289326; Tue, 21 Jul 2020 21:48:09 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id w1sm22555353pfq.53.2020.07.21.21.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 21:48:08 -0700 (PDT) Date: Tue, 21 Jul 2020 21:46:15 -0700 From: Bjorn Andersson To: Rob Herring Cc: Andy Gross , Ohad Ben-Cohen , Baolin Wang , linux-arm-msm , "open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Vinod Koul Subject: Re: [PATCH v2 1/4] dt-bindings: hwlock: qcom: Migrate binding to YAML Message-ID: <20200722044615.GR388985@builder.lan> References: <20200622075956.171058-1-bjorn.andersson@linaro.org> <20200622075956.171058-2-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 21 Jul 08:13 PDT 2020, Rob Herring wrote: > On Mon, Jun 22, 2020 at 1:59 AM Bjorn Andersson > wrote: > > > > Migrate the Qualcomm TCSR mutex binding to YAML to allow validation. > > > > Reviewed-by: Vinod Koul > > Signed-off-by: Bjorn Andersson > > --- > > > > Changes since v1: > > - Actually remove the old binding doc > > > > .../bindings/hwlock/qcom-hwspinlock.txt | 39 -------------- > > .../bindings/hwlock/qcom-hwspinlock.yaml | 51 +++++++++++++++++++ > > 2 files changed, 51 insertions(+), 39 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt > > create mode 100644 Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml > > [...] > > > diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml > > new file mode 100644 > > index 000000000000..71e63b52edd5 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.yaml > > @@ -0,0 +1,51 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/hwlock/qcom-hwspinlock.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Qualcomm Hardware Mutex Block > > + > > +maintainers: > > + - Bjorn Andersson > > + > > +description: > > + The hardware block provides mutexes utilized between different processors on > > + the SoC as part of the communication protocol used by these processors. > > + > > +properties: > > + compatible: > > + enum: > > + - qcom,sfpb-mutex > > + - qcom,tcsr-mutex > > + > > + '#hwlock-cells': > > + const: 1 > > + > > + syscon: > > + $ref: "/schemas/types.yaml#/definitions/phandle-array" > > + description: > > + Should be a triple of phandle referencing the TCSR mutex syscon, offset > > + of first mutex within the syscon and stride between each mutex. > > + > > +required: > > + - compatible > > + - '#hwlock-cells' > > + - syscon > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + tcsr_mutex_block: syscon@fd484000 { > > + compatible = "syscon"; > > 'syscon' alone now generates warnings. Can you drop this node or add a > specific compatible. > In the binding examples or in the dts files as well? The hardware block here is named "TCSR_MUTEX", so the natural compatible to add here would be "qcom,tcsr-mutex", but that already has a meaning - and the syscon node here doesn't carry all required properties... Should we perhaps just remove the split model (syscon and qcom,tcsr-mutex as different nodes) from the example and dts files? (While maintaining backwards compatibility in the binding and driver) For the platforms where we have other drivers that needs to poke in this syscon it seems to work fine to say: compatible = "qcom,tcsr-mutex", "syscon"; Regards, Bjorn > > + reg = <0xfd484000 0x2000>; > > + }; > > + > > + hwlock { > > + compatible = "qcom,tcsr-mutex"; > > + syscon = <&tcsr_mutex_block 0 0x80>; > > + > > + #hwlock-cells = <1>; > > + }; > > +... > > -- > > 2.26.2 > >