Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp281951lqp; Tue, 11 Jun 2024 04:39:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVs2Li0FfKrcjzANputq7mBKpx7QRG6Va7ffwn4hMPYjzQVsz5fz4ZtMv6OixXkXhjV9nwdzU/YZ/1HLbEtX3aGAArdmjIy8C2J2LaE1A== X-Google-Smtp-Source: AGHT+IF+Oyz05B7dFpjh6dM9SImqapJsUcHfQjTKu/mxHNMFaA/gb+LXL9lstf14T4KwVO8p2RuP X-Received: by 2002:a17:90a:ba86:b0:2c2:db3b:9f09 with SMTP id 98e67ed59e1d1-2c2db3b9fdemr8727001a91.0.1718105952179; Tue, 11 Jun 2024 04:39:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718105952; cv=pass; d=google.com; s=arc-20160816; b=ZA9aaNrnW1tTBwAOKLEUyxGGWUBKTyDOL0ud9b/KeP3N5uavoHYFgt0OTigJCtCuOE YsKHYX7j/erED5HuZPUfNZCp0Mn4PsssHsKfcYEn9NhZapR0kt6SyN5Yog0YVgg/Xoz9 +rryUrSWH65JxYYMlfE8G9t9XWZUvj51zoa56yaeexLvrziEnOySKlwbECAkLw2pJsvn 5zE/dJft1ieJT06/gjJ/VmZPsEC5NkfOhU0FFaknS/tibBrFVwjzup2nQvdJghYkz+AS xs6nXwlXPJL5TVijfyoii1FelfJY67A8bJ2drNVigfzWiEVQOtHWFdmQnLJJnuORG8g0 T/rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=CtbIuDbi1rFp385y8o4NUYKHVeIOAyZ2XdjR6SSW7u0=; fh=cKE9efR5MNEQFXexudVC2zKGtPkTbSHttjaosNwCP1k=; b=QpWvgZPKUzwge6Sv4hxILjEl9GSXjO1q/HMKwfko/jadhAOz5cNtfsaesUJW9PDo+z z4gUmq679z4rITWl2rqFF3d31fFj2iRebQ04o7qqU1vR01jU7kJ4ixQLWsf3n94DjGWP NUNH4wuYMyBdEPCsUwYS1ZFqFwbA1gmwoYCvQI3Dx3Y4bue5euK/pH0veZRBtnod7VFF TqPATLrAxn9nwhyLf9awdwXRKDQ8jUSiJLKqXfjbWcyCmf3aBahEFWdaLMca/Tiwq43v Rc9VhbYMuFkjQJaGShd4eUdUUsjeCx6IRiljFvr9kjDmRQWgL+tKXjHKZ9/JDGWLFDth lspQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NRM+dW2A; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6f73d4d95edsi836157a12.530.2024.06.11.04.39.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:39:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NRM+dW2A; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C9AC5281A9A for ; Tue, 11 Jun 2024 11:39:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1686E17D368; Tue, 11 Jun 2024 11:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NRM+dW2A" Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA69B17D34B; Tue, 11 Jun 2024 11:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105768; cv=none; b=rJxrD6n9X3Qz2WQ/4fWJM9BN9ecjwwI+0wHfkEGyWGAXwy719nDB1T96jm5De4cmYWUkw+asO4L9cx4a3igolsajQG4+9Xe0T2zqitDCzivPu9cm+JqqoFUNWc1uE5sOjtZ/3zLTIDWCu4qBBT7l0CPcTCi7cOv6udISK7TeALo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105768; c=relaxed/simple; bh=h+vhXAhkOCpSj5Kv8dcb58y7LBKSabqi9wb7z+oKe4A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UdE4Kzpxa6Z8aXR0qfcT+1l3XPx0PbGcBwXtB39KwGAv8VcxKBGxY2OtV5DYMjDUjaP6swzTT9osjKdDlX4rURS6XcxvWqacwOpDBvqAjQlMmhPkcqnoYzxarvuZiy0wHqkOREFn2V7lsry9HtsM2Rqky7//6LBPnZA4eucL9N0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NRM+dW2A; arc=none smtp.client-ip=209.85.216.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2c2ecbc109fso2194255a91.1; Tue, 11 Jun 2024 04:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718105766; x=1718710566; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CtbIuDbi1rFp385y8o4NUYKHVeIOAyZ2XdjR6SSW7u0=; b=NRM+dW2AjGpItINxXwdXZHvZvCwZUkhwR1SFwn9UFfnufAbAdBvQsWGcF1JvOa2W5i 99ATOJH+Nu1ThgttrEiQvsr9NFt/6J+uM1dDtQWqGmy17v2bCErH1p9VEUBKU9sZnon8 sCZCgP41dA41DSHc6zfsavMsEx72aA+Bk+sNKrsE8FJoCqCzsaAqUdZwBZh9St2fAVv6 HToxQxU1CzrdUSLw/VdKhe8E9ErbR6RzRuGMi2gguO8zmCGNa329v9WdoNIV3StMQ7m6 n5a+poCDNoYRG/7O/I32fRJNcONB3XrZ1iztVqdmqMmuTjv3PaKJl8E827z3X1NCPwRx VQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718105766; x=1718710566; 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:message-id:reply-to; bh=CtbIuDbi1rFp385y8o4NUYKHVeIOAyZ2XdjR6SSW7u0=; b=TUeNjeIiA2kUuRBE2fJMbGGvYQycDhZnlTS0kfX9LmFdcRFQeo0uilYuIlZjP2w3j3 e8ecBKzQrsaWQL0ESNJh0BS/Nk87c8lb5TANYjC5XE7dE6H5fhfAKp8w8QNtmkIdUAg5 a9ZjTw/S0i4fsKAcFmuQk8SiVh/dbWMbrTyFntFsa19Q9gILy08cM5eusMfz+zK9GRqW 0BOzPZqt+u9Ws6bknI5N5BG14wxFE43Q4z+/zqOR9iJyY0cDOaKJeqFZjN2HrljbOf89 FqhQhNz9oJzWoNrk9gXrDwva/oWCslJGq+daFLHvPuGsYRQD7I8RPzgVVD6mF2mIaYCd LIrw== X-Forwarded-Encrypted: i=1; AJvYcCUi9H3Pwruhz4APVis7YwKwK/RCM+CIVGiFKSlU7X56ehpNLoCv3HoVGqd2bPEdv9vEqDCHjko6Y91zOmSdW3yE4UbHNiRSLfQbkXua6vttmyUTYWn819yiG0Z7lO1kCorfWIM2Q3ATolt3+TgwGme47Xf2U+yZccVtjhyJA8skIhhZprU= X-Gm-Message-State: AOJu0YxIsmksNSvsHZBXF439MuU1vXwjySGrIGLPCqNfS4PDQ0TYV8V0 dWGE0X9luuMfNFGSKq4CTQ2SzBo82tELJ3bqTyXyMjciqynaDDzE X-Received: by 2002:a17:90b:515:b0:2c2:792c:b618 with SMTP id 98e67ed59e1d1-2c2bcc6335dmr10568487a91.33.1718105766139; Tue, 11 Jun 2024 04:36:06 -0700 (PDT) Received: from localhost.localdomain (93-34-90-105.ip49.fastwebnet.it. [93.34.90.105]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2c2dd785762sm6705086a91.37.2024.06.11.04.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:36:05 -0700 (PDT) From: Christian Marangi To: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Christian Marangi , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Conor Dooley Subject: [PATCH v7 3/5] dt-bindings: mips: brcm: Document brcm,bmips-cbr-reg property Date: Tue, 11 Jun 2024 13:35:35 +0200 Message-ID: <20240611113538.9004-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240611113538.9004-1-ansuelsmth@gmail.com> References: <20240611113538.9004-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document brcm,bmips-cbr-reg property. Some SoC suffer from a BUG where CBR(Core Base Register) address might be badly or never initialized by the Bootloader or reading it from co-processor registers, if the system boots from secondary CPU, results in invalid address. The CBR address is always the same on the SoC. Usage of this property is to give an address also in these broken configuration/bootloader. Signed-off-by: Christian Marangi Acked-by: Conor Dooley Reviewed-by: Rob Herring (Arm) Acked-by: Florian Fainelli --- .../devicetree/bindings/mips/brcm/soc.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/mips/brcm/soc.yaml b/Documentation/devicetree/bindings/mips/brcm/soc.yaml index 975945ca2888..0cc634482a6a 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 + brcm,bmips-cbr-reg: + description: Reference address of the CBR. + Some SoC suffer from a BUG where CBR(Core Base Register) + address might be badly or never initialized by the Bootloader + or reading it from co-processor registers, if the system 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 +if: + properties: + compatible: + contains: + enum: + - brcm,bcm6358 + - brcm,bcm6368 + +then: + properties: + cpus: + required: + - brcm,bmips-cbr-reg + additionalProperties: true examples: -- 2.43.0