Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1056793lqo; Sat, 11 May 2024 05:52:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5V0fm8YiAnx1ehIlO3noCK1cnI7sYBrWNKEQiV9a+aeD5W8TB3b4ybaPR9WPisq+4NwJcy0oc/IsL2V6uzwjhd0WmfqApktDKmGLaoQ== X-Google-Smtp-Source: AGHT+IErCceO8hUscopawIK96HXOMPl6KJygcT+FH5sbDJDsq6FI/rPq1/aIukBu9qUmTNe8wPJP X-Received: by 2002:a05:6808:8f4:b0:3c8:6543:584b with SMTP id 5614622812f47-3c9970d19a0mr5605657b6e.54.1715431950374; Sat, 11 May 2024 05:52:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715431950; cv=pass; d=google.com; s=arc-20160816; b=A5yzm+sN/vJeIlzNw+g7IgPkZr4QNwootE9CwEDaXseQyd8BG+bmVPdaSffZyysKAt wBhjWuH1Sr3yv7xdsqq6THCAaMHAztp1W0VJBygD4FGEvrLSU3EoiA838rb/fM1EUf8N FLU5yMlXTVifaVIpkR/A+gIov9t3mWW2Q2CK7wKE9Rsg8zAhSyfBhgI2dc2MeaSBdLQe QZPBqmeEIoxVYJHk4tSGV3siVlo8mdYYAH6xRItTMzz+5HJI9o9z4gj4Jheuz9BhwDcP If1Ibjj+Oxvon7VhOiYbB3tTtXnQxexIZC+CDrns7TyvcNfVWbTOHiRhxQRLUla4aPhI V1vQ== 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=lVJqGODIYcLG6L3aq+NW4osC290ylipJ90Iy/1IsJRw=; fh=uayRFp4J/nD2ZCBUiJwvfXCzK1SnD9mGE09m7G7eFcw=; b=Aq7Sd6Z7wGoRIp7fN2/SM/9QlUmcLrJFpbk73YnrCdfKVjurR7kKA/pdLe9gRUxQ4D xD2K1euv90Mns4WIPGC38gRTDUB8lAod5grqgLkpPzZP76se2CZ199rMebqgw3JCuwe+ kI9L/bToKjuW00KxZXtx8g14a1aXYzE4kDp/M5PS5W63sezal6l5V6sEDFw7UP+WGFSK YywW7R0DPXzxrJiEForBsUnQEctabCFj60p3Pqfozct3fWf2OVfJ9/30pl5DcGQnlDBi 5044fZ8VFuBxcnL+J7TnvdMoRZcgNZx8IFnnxDwFEQ2xS5MQxhZFaERv6bDvJITA35Ux /8rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KOELNPOd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2edb5esi57489216d6.473.2024.05.11.05.52.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 05:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KOELNPOd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176542-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 185531C20C59 for ; Sat, 11 May 2024 12:52:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 995DC5028D; Sat, 11 May 2024 12:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KOELNPOd" 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 BA1D28F6E; Sat, 11 May 2024 12:52:21 +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=1715431941; cv=none; b=mjpzUJTUhI2IwEiw0v28j953UCJIrHs43flN1CsvsfANLiEcmQ00Nrbsbsu2rt/jSUEabv/o5xZuWxY8UZ5Lm3PERMGrw4rQXXfSktsT8dv0+i5Hf7G0ALdqK6yWMr+f+wZCyNhLUTERRvBF7U4LCPt6D9rALtxO/vuvVaOLeYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715431941; c=relaxed/simple; bh=YJRfqmKQd6lGzj5EKLiRngfVUGj4xvtMtKPTFfitnjM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SwtmxSZrfbCnB+S0IE/oWUmA7XwzBpwiRdmESeCMw4yF+zbvDEoEYzWxq6BjfFm+dssSCzfpYkHIIJMyki056OPIpGdbAGrTKNV6pIin31cLyEzHW5VcSTtwRReOiI1tJX8GnOvNJiN5OyIKpPvk/mlm/wngJkj6yBavkcJn+zo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KOELNPOd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE868C2BBFC; Sat, 11 May 2024 12:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715431941; bh=YJRfqmKQd6lGzj5EKLiRngfVUGj4xvtMtKPTFfitnjM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KOELNPOdZKpZzvudiMZO5lxZnQpCzbtXr3zunS0M18GlKyQGGvZzwdOW7fm2euH3v Qb8mvx52NL9uXzXxoFYfcoo9kwEnFFEMpr8SvT+VDkbNytvcZaiTWPpvza0U/c5mAU VYDMwbGSiJ8jxtQhDmTrpfdcYvEw7KujhlOr+nGzX7gUtxZcM2nwnExclYM1I5luZ7 2yOCYOlGYaxh0Ao7Eu1QbbexuNN847TRNlPY4k4Lj7jqlka93v0zxWy75yA08YCYZR sTGmbGZmYbvcTYLgLj2LtVTlrdmOF13/eNYwaJoCNxlcERA3TP5G/MCRmDBnVEPKMl cteUuxeS8fVCA== Date: Sat, 11 May 2024 13:52:16 +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 v4 2/4] dt-bindings: mips: brcm: Document brcm,bmips-cbr-reg property Message-ID: <20240511-headset-self-dc2501b38a71@spud> References: <20240509204750.1538-1-ansuelsmth@gmail.com> <20240509204750.1538-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="sQaAowGBPlZjH5aG" Content-Disposition: inline In-Reply-To: <20240509204750.1538-3-ansuelsmth@gmail.com> --sQaAowGBPlZjH5aG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2024 at 10:47:46PM +0200, Christian Marangi wrote: > Document brcm,bmips-cbr-reg property. >=20 > Some SoC suffer from a BUG where CBR(Core Base Register) > address might badly/never inizialized by the Bootloader or > reaching it from co-processor registers if the system > boots from secondary CPU results in invalid address. >=20 > The CBR address is always the same on the SoC. >=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 | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/mips/brcm/soc.yaml b/Docum= entation/devicetree/bindings/mips/brcm/soc.yaml > index 975945ca2888..6b961b62aff2 100644 > --- a/Documentation/devicetree/bindings/mips/brcm/soc.yaml > +++ b/Documentation/devicetree/bindings/mips/brcm/soc.yaml > @@ -55,6 +55,16 @@ properties: > under the "cpus" node. > $ref: /schemas/types.yaml#/definitions/uint32 > =20 > + brcm,bmips-cbr-reg: > + description: Reference address of the CBR. > + Some SoC suffer from a BUG where CBR(Core Base Register) > + address might badly/never inizialized by the Bootloader or "be badly or never initialized" > + reaching it from co-processor registers if the system "reading"? Otherwise, Acked-by: Conor Dooley Cheers, Conor. > + boots from secondary CPU results in invalid address. > + The CBR address is always the same on the SoC hence it > + can be provided in DT to handle these broken case. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > patternProperties: > "^cpu@[0-9]$": > type: object > @@ -64,6 +74,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 --sQaAowGBPlZjH5aG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZj9qAAAKCRB4tDGHoIJi 0ovkAP9Wm2e/+UCnn4NvMtSAun5L6Cg/3H/9CP5QeIzfGa9z7gEAuMjsZsdC4gli Bh51+UOTgKQ8XRIRmMptXN7aQPbthQM= =uGJl -----END PGP SIGNATURE----- --sQaAowGBPlZjH5aG--