From patchwork Tue May 7 09:01:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 13656429 Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 B099E14D2B6; Tue, 7 May 2024 09:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.155 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715072514; cv=none; b=E1AbetJm+xW7SIfgneXPER/gEK/EBoHOt5pla9bz4HXXIoK7OyxcKi6YihMLAcecGcEj4nlv6cZzNtrg2iqe7JJrg0fZhMtDxx3OVSwYoZGKP8ySryKTt82islY6iBqP4oVgelzTTFxF4Duxs2t12fAMYqDyQGmtee/eJvzinXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715072514; c=relaxed/simple; bh=MkHue8S4BQIxwK+1JsfuYcgFlqMXjlm73/q8bJJv11Q=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rQZSCawsPQL4U+J1BuGKkCFISsDSUM7xXNAokMIcIMOk3BoW5VYTJjmSto6zdRBbvKGWTY9B7vWlGkDAjJQERYqT8Cx5fUp6cv66mpA3FOPGo2icOuOPwt8AAbSCRoKV72exEImUazIeg3yrdsi6lJAfygsoyzzQqKfyS3U/rtk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=GbrVqsw7; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=OtNW7qJz; arc=none smtp.client-ip=103.168.172.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="GbrVqsw7"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="OtNW7qJz" Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B423A1140174; Tue, 7 May 2024 05:01:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 07 May 2024 05:01:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1715072511; x=1715158911; bh=Hi hTRv1yZ67xb/WPLADRRBZMZzkOnW5oUxtfEvjFXJM=; b=GbrVqsw7nz5In3SnjO sNAKbNzGemUcOR1Z2HPBVo6xNCOVbS1p8XVuOVHbSxke/OZkgg0vHt9MfcEWKC41 OCthxJaiPb/D+vTq5Ksjf7BvzZrTR79eryuILY7UFjbBJJ8VEQJL//bFnfxx7pIU fjOqT0YyCNQMT9wzn1b+1nHKkmy5b7AMERo2TxoWzO92/G/7Z76GZV16tXWhoIUz Qp2S9UUuHVmk1j5n0l6VAqsB+XqEFUTjnBbf+m5gT4NGbWL4q8dXIHexx5O/5i0Z n1vOTW4PokoFRfyx7SjzcsBjMUSp+W6Rl+X3KMAjL5UStDVmxWHhC+xup0HrpGgm mk5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1715072511; x=1715158911; bh=HihTRv1yZ67xb /WPLADRRBZMZzkOnW5oUxtfEvjFXJM=; b=OtNW7qJze4EbCIht+75D7ShE92HH7 16Lo2VRFrAsT8m5g1+BM3i8/G8vxgceowWWiv7Do5B/k9mxAmI1POPD/KmrkEa26 /e8nVz5onnTJs8LScFUshvuupWUZB78mCgJFLh9fvw28pZPqNNEClk01P2Y7onl9 llrIjGAdAm9ZI0gKIELZGz9n40uOtP5cnmrHJ+6x8I2+Jtr6tEVcVz0rXnVaQu+T cK7NYAcWezN/XIU02exLiFNLMOORsuPtqQbxWNo6i9UIDaBVg1XAgcONHUE5z82a C/vWpS/07vs1XCzMZExbVTETAKjxG2Gbg3VSCeOCt1fF27mltMBZ8rhvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvkedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepudffffffhfeuheevhffgleevkeeugeetfeegieeijeehfeekheek veduveeigeeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 May 2024 05:01:50 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH 0/5] MIPS: cm: Probe GCR address from devicetree Date: Tue, 07 May 2024 10:01:48 +0100 Message-Id: <20240507-cm_probe-v1-0-11dbfd598f3c@flygoat.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPztOWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUwMz3eTc+IKi/KRUXYNkMzPzZIskM+OkNCWg8oKi1LTMCrBR0bG1tQD ymTllWgAAAA== To: Paul Burton , Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1161; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=MkHue8S4BQIxwK+1JsfuYcgFlqMXjlm73/q8bJJv11Q=; b=owGbwMvMwCHmXMhTe71c8zDjabUkhjTLt//P21bd2hWk6yKzs2/VC/vlWnoZc3x6rimEcDZ4L Lz+1T6ho5SFQYyDQVZMkSVEQKlvQ+PFBdcfZP2BmcPKBDKEgYtTACZy/g0jw0QrSzExt+Pnk6tO f/H82nRin/vWhTLsP/cEXjkiWGvqLsfI8Ed+xpeDLGEMq1lPnZv3Qtku7enk0E9W3jHT5ojF3Zz hzQIA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Hi all, This series enabled mips-cm code to probe GCR address from devicetree. This feature has been implemented in MIPS's out-of-tree kernel for a while, and MIPS's u-boot fork on boston will generate required "mti,mips-cm" node as well. Please review. Thanks Signed-off-by: Jiaxun Yang --- Jiaxun Yang (5): MIPS: generic: Do __dt_setup_arch in prom_init MIPS: cm: Prefix probe functions with __init MIPS: Move mips_cm_probe after prom_init dt-bindings: mips: Document mti,mips-cm MIPS: cm: Probe GCR address from DeviceTree .../devicetree/bindings/mips/mips-cm.yaml | 37 ++++++++++++ arch/mips/generic/init.c | 9 ++- arch/mips/include/asm/mips-cm.h | 4 +- arch/mips/kernel/mips-cm.c | 66 ++++++++++++++++++---- arch/mips/kernel/setup.c | 2 +- 5 files changed, 100 insertions(+), 18 deletions(-) --- base-commit: 2b84edefcad14934796fad37b16512b6a2ca467e change-id: 20240506-cm_probe-0c667c8b63bf Best regards,