Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp644616lqo; Wed, 8 May 2024 10:15:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAexvmKOLMmQa26tR0XpqkU8dHHAFbba5qivKPQ+MzKkStXxaf5SgM6Y+i8AfbbzT+w2HwmomxqEo6MAvrOPQCExwFyxb8i5jmzVWmXw== X-Google-Smtp-Source: AGHT+IHp7XjTZ8cuI0YY5KUzOTSKluaJfZVaXX+C5M1qcVfD9uqWijeYQHMXPWk25IP913BSvwYI X-Received: by 2002:a17:906:1955:b0:a59:cc26:ceaf with SMTP id a640c23a62f3a-a59fb94d75bmr199320666b.26.1715188513707; Wed, 08 May 2024 10:15:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715188513; cv=pass; d=google.com; s=arc-20160816; b=fBtAAo4z1OtPI/pCqOFvZnz8sG9h1cGmf/yBcjygXHdiJcr3cVoSZIAO02gyv5Wam1 hBiCt3QU/RC/o5KytNExM72MAWETR4MbJm9YY29ZE8uZS+ZeZ5MpQ0nmyb2Yhys7lcVf CKsbVzwbP9Ybxub3b1h+WSucZHEkqsyvI0ZCYBXI2uMEtFGeuQxyX5SN4AZdoW8d4S3J CJXN0dwHCYUKuMHKKkOBYuY6EuC8R5BJOVImeYU0QyIabe8POESZzI3fvoHYD6DSlKwE O+GzPzdBC2H8+le0t15zUBVMgTFuj2VxIQUtNytDbyPIN5n/XQSJ61r+shj4Ul494ERn TYzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=r2ftwF4wF4ddQ6ERwAZgI6VGWun8WREdRUqjYZz5OJI=; fh=uayRFp4J/nD2ZCBUiJwvfXCzK1SnD9mGE09m7G7eFcw=; b=Ve/EBU6HeWmJE+Tn6T1vJ1W7bGdRJAaSyM+KaO0MWttiqw+vllq4A9RMoFL1XPEozQ iIoSo87T5m1EsLvGqQbpSB46yf7mxoXzgc85T+ysB2MoFrLqZVbhQhwtyqPPTVod0+iD Hihuv3Z6LMozFol0m3/RJyIdJbOKE485fdluIT0fwWWqRBJ4Wj+wGmx4XGgJ9Fu5O6lN p9WRiFhLs10EPXRP6ufQtfaquCFjOGwG9BlNwYhmZzZhddaUg3MbWQxdP9CYKdR/B9tq cA/evw9ORBXEXagP69Xnp5NVsy8lwJrn+i8Hsoxkere1RmatlH3acazTTt7H0T1rUPCW 05tA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f3F7OSAP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qk15-20020a1709077f8f00b00a59c6b0028esi3917781ejc.880.2024.05.08.10.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 10:15:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f3F7OSAP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 71EC21F23C30 for ; Wed, 8 May 2024 17:15:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9637712AAE1; Wed, 8 May 2024 17:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f3F7OSAP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58B0886643; Wed, 8 May 2024 17:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188479; cv=none; b=jBzPY7oy9XrohNtD93Kpw079Aq20FSbuLmjAthDyTZ/nCenpV90jJOtnSix/pcLM9zvvlEK8+QlzbQQ+Zv1vqhd/FWOb7Nr6It2cSoFgpY6lE3eLcH2x413x6eJ/KxSqVxR5BvfTJCkbl2Bh4KGxC//keOpzB5VKkQz7y59F9bg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715188479; c=relaxed/simple; bh=XSgaEyCzeNF9SkxYds1YfiZ5UDt/BaJ3Qv4zS2ndpxg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bEqAY5YZq2QMdlmRr0oivxTfsSvpI2mBHxK5oU4IkY7vkTRHxnf7cs8btSkVoFAnUOIYFfCvc+lfRrIJlUEkfTPfO9YaEDXLF+bRzNLxloQ04qoxhUMADXuU0V6R6zCdRNa2vAtb0VemfVhzln2+G6wg9zIcSl1xNRvgEnUZzQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f3F7OSAP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7730EC113CC; Wed, 8 May 2024 17:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715188478; bh=XSgaEyCzeNF9SkxYds1YfiZ5UDt/BaJ3Qv4zS2ndpxg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f3F7OSAPT4v2lUwpBQoIMsce8QcQZgJDb9Jhu3nZJhtB04v3ntV6TuIMjB6g2RXls /LcryR2ZaCqT9KLZPievhSccTF4SOxmQz1Yl2oDZQZouwSy+yil771YGPuI7SCsfxE VPbeeGv5kyEXycWt+WQEy9kDHH+vosuPRPnBHHetdUY+jJkGmirx1YSypYMyDznX+T SDq6DOYK7595cZwVB0SZ6fETnNL1AnN0r1jX+4x1HMgWNXq1hJAeHsGioJLyBkF8tA Ddtk90gQcqGk4EGb6KrVrYgjcEzcqoyZVHeaqjS/s3jTr5QOk+JYyU4BfTmvM+jB5N Cb01xtIbnvDiw== Date: Wed, 8 May 2024 18:14:34 +0100 From: Conor Dooley To: Christian Marangi Cc: Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/4] dt-bindings: mips: brcm: Document brcm,bmips-cbr-reg property Message-ID: <20240508-prong-serving-660e6046621d@spud> References: <20240508170721.3023-1-ansuelsmth@gmail.com> <20240508170721.3023-3-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3T0eXEEj/GfP9EAy" Content-Disposition: inline In-Reply-To: <20240508170721.3023-3-ansuelsmth@gmail.com> --3T0eXEEj/GfP9EAy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 08, 2024 at 07:07:18PM +0200, Christian Marangi wrote: > Document brcm,bmips-cbr-reg property. >=20 > Some SoC suffer from a BUG where read_c0_brcm_cbr() might return 0 > if called from TP1. The CBR address is always the same on the SoC > hence it can be provided in DT to handle broken case where bootloader > doesn't init it or SMP where read_c0_brcm_cbr() returns 0 from TP1. >=20 > Usage of this property is to give an address also in these broken > configuration/bootloader. >=20 > Signed-off-by: Christian Marangi > --- > .../devicetree/bindings/mips/brcm/soc.yaml | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/mips/brcm/soc.yaml b/Docum= entation/devicetree/bindings/mips/brcm/soc.yaml > index 975945ca2888..77f73ab48c11 100644 > --- a/Documentation/devicetree/bindings/mips/brcm/soc.yaml > +++ b/Documentation/devicetree/bindings/mips/brcm/soc.yaml > @@ -55,6 +55,15 @@ properties: > under the "cpus" node. > $ref: /schemas/types.yaml#/definitions/uint32 > =20 > + brcm,bmips-cbr-reg: > + description: Reference address of the CBR. Pretty sure that Rob commented last time that there's no definition anywhere here of CBR, but I don't see either a response to him or an explanation in v3 as to what CBR means. > + Some SoC suffer from a BUG where read_c0_brcm_cbr() might > + return 0 if called from TP1. The CBR address is always the > + same on the SoC hence it can be provided in DT to handle > + broken case where bootloader doesn't initialise it or SMP > + where read_c0_brcm_cbr() returns 0 from TP1. Why is a ?linux? function name in the binding? Surely this is just "or in SMP systems where reading CBR returns 0 from...", no? Ditto above. Thanks, Conor. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > patternProperties: > "^cpu@[0-9]$": > type: object > @@ -64,6 +73,20 @@ properties: > required: > - mips-hpt-frequency > =20 > +if: > + properties: > + compatible: > + contains: > + enum: > + - brcm,bcm6358 > + - brcm,bcm6368 > + > +then: > + properties: > + cpus: > + required: > + - brcm,bmips-cbr-reg > + > additionalProperties: true > =20 > examples: > --=20 > 2.43.0 >=20 --3T0eXEEj/GfP9EAy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjuy+gAKCRB4tDGHoIJi 0qVMAQDuVWWj+vEUXNkj/tXEtwvj2RZ6t8pKRp7szq5BGLRp3gD+N+FBalhu+8dG Im2poiIXGxI0tEoyutCeF6HaXJM63gg= =GVnj -----END PGP SIGNATURE----- --3T0eXEEj/GfP9EAy--