From patchwork Wed Jun 12 11:56:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 1946829 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.a=rsa-sha256 header.s=fm2 header.b=u3G+S7iF; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=AZDfayA8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-74987-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VzkZy1pxVz20Wd for ; Wed, 12 Jun 2024 21:58:34 +1000 (AEST) 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DD0B9B23EFC for ; Wed, 12 Jun 2024 11:58:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B36B17B408; Wed, 12 Jun 2024 11:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="u3G+S7iF"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="AZDfayA8" X-Original-To: devicetree@vger.kernel.org Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 D37DB172BB4; Wed, 12 Jun 2024 11:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193418; cv=none; b=edRY01zaFcRqA7wm3Qc+NZMxH5Miio1H9VHY8Z7NK1m5AUPOC9M6uGXyMM98ESaIhNZWUn8Klg33UCzgpkgpX5x+ijp0RThzYIqwg8XCZ9AN9HBGpTkHl/iOeTAeLdB8lTpEdO76Y3fSEP1sw7calg+kXCn3NmHRQRW61dmPi9s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193418; c=relaxed/simple; bh=xIKhElFln1GNY1e3nvWaQfw4rZsPQq3ewLLglogAcgM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YyUkWoDZbM5ruRU8ilsBwtaySo3nmYV/PlOv/HakyjkCm5Y8CwT0YMkiAnKaFYSNwk+W2xuUf3rGjn6s13kARMYFZY+HpPSOGGvGZmJvlvT8c5zyC8xOcNdCHXY/qWpXyLDSjqNmJES9M9Y4eSfAna++LEzvsLWtKdcBfnC4lGg= 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=u3G+S7iF; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=AZDfayA8; arc=none smtp.client-ip=103.168.172.150 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 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id E18481380125; Wed, 12 Jun 2024 07:56:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 12 Jun 2024 07:56:55 -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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1718193415; x=1718279815; bh=nXzfjl2EQ86nuLKlCuSCdAS8RjNMqJC4JS4BtvMz088=; b= u3G+S7iFKj0/OxBPrJZOlW6kLNF1U1cxgtQXd1btq0cpt4EclV3Sm1WIFEcXYM6P xDs8pgJr5UTCivk7hC7SeKyyB0otB6DpMVXw6VpAn/7Bygk/EEl76orQaFXtJRbi Dyr2RKIbnwQdz1MGOxRkUNLjdm7okMhuxAwwHg3rpd76dhreQ0oihalCMO9Kr9P4 noznUNNiqUJL1RQs9j7NrDIRvvcyTC98C0Nnh2cU/+TiQ9oXEpkIZw6FRb1fUYff KZcUwiIAOPna1iiyfgy3of+Y9IxQzF65w7K4HPl1tg16x1fPT6IfoIAIRxSC133h dIo7wTsrgVeYGsI76sNIMQ== 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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1718193415; x= 1718279815; bh=nXzfjl2EQ86nuLKlCuSCdAS8RjNMqJC4JS4BtvMz088=; b=A ZDfayA8yNWeX5BxIyXNCItSSzevpWrIRJjKUoI2hOao4jZHNM0OT1WrXgQI7mgBn /8DksenPX3w5a2qhFw7DjnIPUcsZNzsdZsUbq/liCX4VsrF0HtEhRZTMYG1YLcvL mmEjC/GZ8bgX9BQLI+n+yKg4bTUbAU4uqOv5v7XVEimIaVLVNkys60xy1K600pls 9mJvbM1K9TlkTysV5xs2F5ajH9/wo8OAymCvOE3e/aRP+RP1ASzc12lgtPh8IU0v C4WEKJ/f90ebS9yQJQrtlUXFU8BaeQA9jJgFUeXfYc9ijtH8USpoBZAGHWc6qspg fSnoUUK3MGNTmvvnSdnTA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnheptdffudefteeijeeljedtvdekteduvedtkeetheefkeetkedu tdetkefhfeeuffdvnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdr higrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 07:56:54 -0400 (EDT) From: Jiaxun Yang Date: Wed, 12 Jun 2024 12:56:25 +0100 Subject: [PATCH v2 6/8] dt-bindings: mfd: Add img,boston-platform-regs Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240612-boston-syscon-v2-6-9f8e1a07fa63@flygoat.com> References: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> In-Reply-To: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Burton , Thomas Bogendoerfer Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3725; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=xIKhElFln1GNY1e3nvWaQfw4rZsPQq3ewLLglogAcgM=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrTMnj+f/f5lOsYUmc54GfR64ZUdx36duNZmsrCJsdHp+ jKRZ/NWdpSyMIhxMciKKbKECCj1bWi8uOD6g6w/MHNYmUCGMHBxCsBEIt0YGS5OyDXiVlt5kqfy T9iey4ss9lqvSs/c9q3gae7Zg83OT20Y/gq9+tDX+CjBqepxbj6fjf4hWymP/7evTK/N6Wp80vj hExMA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 This compatible has been used in arch/mips/boot/dts/img/boston.dts for a while but never documented properly. Write a new binding for this device. This also covers old img,boston-clock binding so remove that binding. Signed-off-by: Jiaxun Yang --- .../devicetree/bindings/clock/img,boston-clock.txt | 31 --------- .../bindings/mfd/img,boston-platform-regs.yaml | 74 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 31 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/img,boston-clock.txt b/Documentation/devicetree/bindings/clock/img,boston-clock.txt deleted file mode 100644 index 7bc5e9ffb624..000000000000 --- a/Documentation/devicetree/bindings/clock/img,boston-clock.txt +++ /dev/null @@ -1,31 +0,0 @@ -Binding for Imagination Technologies MIPS Boston clock sources. - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -The device node must be a child node of the syscon node corresponding to the -Boston system's platform registers. - -Required properties: -- compatible : Should be "img,boston-clock". -- #clock-cells : Should be set to 1. - Values available for clock consumers can be found in the header file: - - -Example: - - system-controller@17ffd000 { - compatible = "img,boston-platform-regs", "syscon"; - reg = <0x17ffd000 0x1000>; - - clk_boston: clock { - compatible = "img,boston-clock"; - #clock-cells = <1>; - }; - }; - - uart0: uart@17ffe000 { - /* ... */ - clocks = <&clk_boston BOSTON_CLK_SYS>; - }; diff --git a/Documentation/devicetree/bindings/mfd/img,boston-platform-regs.yaml b/Documentation/devicetree/bindings/mfd/img,boston-platform-regs.yaml new file mode 100644 index 000000000000..bf94de38a89f --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/img,boston-platform-regs.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/img,boston-platform-regs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Imagination Technologies Boston Platform Registers + +maintainers: + - Jiaxun Yang + +properties: + compatible: + items: + - const: img,boston-platform-regs + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + clock: + type: object + + description: Boston Clock Controller Device Node + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. + See include/dt-bindings/clock/boston-clock.h for the full list of boston + clock IDs. + + properties: + "#clock-cells": + const: 1 + + compatible: + const: img,boston-clock + + required: + - "#clock-cells" + - compatible + + additionalProperties: false + + syscon-reboot: + $ref: /schemas/power/reset/syscon-reboot.yaml# + +required: + - compatible + - reg + - clock + - syscon-reboot + +additionalProperties: false + +examples: + - | + #include + + plat_regs: system-controller@17ffd000 { + compatible = "img,boston-platform-regs", "syscon", "simple-mfd"; + reg = <0x17ffd000 0x1000>; + + clk_boston: clock { + compatible = "img,boston-clock"; + #clock-cells = <1>; + }; + + reboot: syscon-reboot { + compatible = "syscon-reboot"; + regmap = <&plat_regs>; + offset = <0x10>; + mask = <0x10>; + }; + }; From patchwork Wed Jun 12 11:56:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 1946830 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.a=rsa-sha256 header.s=fm2 header.b=iDsqp/x/; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=j0r0TO/O; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-74988-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VzkbC1NBSz20Wd for ; Wed, 12 Jun 2024 21:58:47 +1000 (AEST) 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 3C9FA1C23481 for ; Wed, 12 Jun 2024 11:58:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25A7A17BB37; Wed, 12 Jun 2024 11:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="iDsqp/x/"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="j0r0TO/O" X-Original-To: devicetree@vger.kernel.org Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 77B8017A938; Wed, 12 Jun 2024 11:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193419; cv=none; b=C7YDKyj93nHQItbfVDb047u0PliUGGZjKvxHUz2UCyMlI3+7Y9E/JTq/+Y0ZhgtQdkUkNVOuVKZlwgrfz2lIPFbGbWzdVExxdLXUcS3/4biChMcMu1aB/VLf299hkFV/dA93sxp9kOm0y90raS6UtPAQPZvTyv/Exow0dcmVEWM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193419; c=relaxed/simple; bh=jkqxI6PbI0hUQw47CPV9RIjGp8vijtIrG9xlbAho1TU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l4emHrRil0cxj1u0FBYovLiQiHHsQzzNuPCfT1GqKYcS3kvKrc+Gl/5lV+KJ+B/r0o1N4c0elRQVoEehmMLBE47v6KfcY9FTc5Ncqq7kdFHzxKpC+E8Leh/6jHXOEnjn3Eg/L1NuYGLxmWxSCC/ctDLvTxTUyBWvhftdfEcp3Zg= 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=iDsqp/x/; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=j0r0TO/O; arc=none smtp.client-ip=103.168.172.150 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 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id A262C1380117; Wed, 12 Jun 2024 07:56:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 12 Jun 2024 07:56:57 -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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1718193417; x=1718279817; bh=XIwMv/JMo9KCDBO8sLopAav1EVkrxT/f9KRd242gTwk=; b= iDsqp/x/cOZB0J5zJ/uvvfjXlLmPgl2tDhXUz5r3wexhmtWvNpjJ2iDVptFAe8wU g688UVJwUa1hC6Y4BnvkXEGkg9J09qCGZpSJ/VnVYFjiY+l1ctGWvP75H1xXQbd5 nW3nrNkQ9fB9oarVZ5v0wQ3mKwqL5j+AuABwUvnJqTFQvRC1o9r86X3DjnwUGzbH IaVX7IWqUz59VRomvb6XB8z6VA4A8lnj3fwGxkdyIzMSJPOPINo1wwPFZ3Sbdnvz sUSn73g2UG1JmGhNK1EOcLsX0i632D+q3qNlVtSrvIYMNh6rTaEDHIbGVeGiddJS 63ipN1nYZ5jlZj8gfZLAPg== 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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1718193417; x= 1718279817; bh=XIwMv/JMo9KCDBO8sLopAav1EVkrxT/f9KRd242gTwk=; b=j 0r0TO/OHWSS6BaQjieVSmfZQaqSQlnrf+tJThzrHQsfMvj/3/Y3Bs+EVm5d9Bh0k 1Dn7O5umt82vH3bRA/OpNxSqSiSCz4nHqH271ENDFMwHOuBuzlyTI5hq5k4PXbkS HxrXKjvmiI1T8VpMa5gWNtHBX5KgYuYYw58pmt+EYViV4DwxWp9hLWx5Aq382v1L pkT8E0nXIYbV1ldgfMw1V0joXAFusJnZbUwEe7LJ9gjXLshAoDgh3xSgoLOdpGbx DhG/Tr0o1kZ0H0X2GzF3NfHycN3tDeHfdz1WF2C30UW8CN1L5Ci/ryP3mE28ZjBU the/TY8ZAgOfeqIqboJNw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfeelffekgedugefhtdduudeghfeu veegffegudekjeelnecuvehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 07:56:56 -0400 (EDT) From: Jiaxun Yang Date: Wed, 12 Jun 2024 12:56:26 +0100 Subject: [PATCH v2 7/8] du-bindings: mips: cpu: Add img,mips compatible Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240612-boston-syscon-v2-7-9f8e1a07fa63@flygoat.com> References: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> In-Reply-To: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Burton , Thomas Bogendoerfer Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=886; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=jkqxI6PbI0hUQw47CPV9RIjGp8vijtIrG9xlbAho1TU=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrTMnj+hE/YG3axdW7bvx2Pp3lhODs0/+nWq7363RLeJ3 /kwrVuno5SFQYyLQVZMkSVEQKlvQ+PFBdcfZP2BmcPKBDKEgYtTACYS0cPwm/1p5MQInr8ZB6r3 7O64sWKTyaKQw9Lcwm0bBD/IND/Pm8PIsP/Hjm06U/rTC/ocrzx87HvktNH7Xw2zr7UHhrJ+Tea JZQMA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 This compatible is used by boston.dts. Signed-off-by: Jiaxun Yang --- note: This is a wildcard compatible for all MIPS CPUs, I think we should use something like "riscv" for riscv. Should I add something like "mips" or "mips,cpu"? --- Documentation/devicetree/bindings/mips/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mips/cpus.yaml b/Documentation/devicetree/bindings/mips/cpus.yaml index a85137add668..7f9513f2a540 100644 --- a/Documentation/devicetree/bindings/mips/cpus.yaml +++ b/Documentation/devicetree/bindings/mips/cpus.yaml @@ -24,6 +24,7 @@ properties: - brcm,bmips5000 - brcm,bmips5200 - img,i6500 + - img,mips - ingenic,xburst-fpu1.0-mxu1.1 - ingenic,xburst-fpu2.0-mxu2.0 - ingenic,xburst-mxu1.0 From patchwork Wed Jun 12 11:56:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 1946831 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=flygoat.com header.i=@flygoat.com header.a=rsa-sha256 header.s=fm2 header.b=eVEegoCh; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=je75aGZ8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-74989-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VzkbT6skyz20Wd for ; Wed, 12 Jun 2024 21:59:01 +1000 (AEST) 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 51FC51F26833 for ; Wed, 12 Jun 2024 11:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0C8B17D34F; Wed, 12 Jun 2024 11:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="eVEegoCh"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="je75aGZ8" X-Original-To: devicetree@vger.kernel.org Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.150]) (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 301B017C206; Wed, 12 Jun 2024 11:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193421; cv=none; b=iUPnvouXQSxhMwokEvnfdDLEt+awORFSvJtFA/GWYQo8m1Unpidwx2BY1xxQLnT7Nb66RWsTz/o6M4X1Cj02NyhpD0D2DHM8DeRsX9SpN0FOqPgPepB59tcOSD/ZXs4R0ajIA/HG22iFxJ6TlFuFJB3scGd3/he3R95492GpjH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718193421; c=relaxed/simple; bh=FqYFcbHWrq35Q20DJGtu08zhvYZISHWayM6Dshw2k94=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c/abcaj/jiy7hhHGuXD5PybXl98imC0qmstXV+aj0vnwDmVg9YDH87NtigjhEz50tskTP/NjdF68tFF4o99CC3nbWNGCYhCwaZZoKE+/OmpjlkydXjzG3iF12BMLsM+aB06tRB9Ze4gbSMCezOPYtZz83E/LQFKFUvnXWKvyz/k= 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=eVEegoCh; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=je75aGZ8; arc=none smtp.client-ip=103.168.172.150 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 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 489DC13801C8; Wed, 12 Jun 2024 07:56:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 12 Jun 2024 07:56:59 -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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1718193419; x=1718279819; bh=dEkQj1pEyhcYOVI2l79QHwfWgHUy/egfEwBVNSft4zY=; b= eVEegoCh9hQ3BjI7EsYqCQmYZbFh923aoJxBynMKJ1FF84gJAN6Vn5MO1wKxAcZM 6UFOnRw799gE0KBlf5XruDPHFq0oW7fOjuXD0kAKovP3XmYadYUT6o2yA241sSwR x4QaR5pB/uWCJTBeBMoiuATZLuMxklJgk8VPwGyIZY14dnpRRVO+5d+sSXrE1hFF M7KramaojSfb9nUM1xNECiP56DAdhtXpOkgBVXjfpZEGyiaez446/tiF2W/DZ2Av 2hVYyut2I/VQcCagV3yYNsl3spbwgtN7kfB9+UpUZH7oGX8djeXCqVpJpoN7FmDA 8ADFNDadT5/z/+dCbDURSQ== 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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1718193419; x= 1718279819; bh=dEkQj1pEyhcYOVI2l79QHwfWgHUy/egfEwBVNSft4zY=; b=j e75aGZ8g09uTzmtYolyYKG+vG4Xx6SVJuw2Twy+f3wmw7ZkYfsMJuuyNTAJuIzcK bKwxOPu9/04OOj+dQumSDQam2bNOZC7QXBc2j1nLbvJocv4IDpqjX/1WAbKbOkt1 91SAr0/UR2vvWJqWCQORpNmumTCoJ7PRXi7KRzAeKMVZPdnF+HUW2z2i37aAwwRM H74TT5q3IFBwQAt52TcTczN2f5YNGB3x5rtEdGRqxkrvKCtH8LaA0EEJQjZzAqqd kIrh69YyQ31xJCxtgm2QeAK3vQ1AEYckP5ilr/D5U2yA3X8O8j1pxjrBNWuYWWDI kRUDw7pp7aLIgG0kSOvdQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnheptdffudefteeijeeljedtvdekteduvedtkeetheefkeetkedu tdetkefhfeeuffdvnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdr higrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 07:56:57 -0400 (EDT) From: Jiaxun Yang Date: Wed, 12 Jun 2024 12:56:27 +0100 Subject: [PATCH v2 8/8] dt-bindings: mips: img: Add devices binding Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240612-boston-syscon-v2-8-9f8e1a07fa63@flygoat.com> References: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> In-Reply-To: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Burton , Thomas Bogendoerfer Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1356; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=FqYFcbHWrq35Q20DJGtu08zhvYZISHWayM6Dshw2k94=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhrTMnj8/Loavfi4+j+PEhbtxpbUX1Voa69tFRW0OFZsnC TYEnNvQUcrCIMbFICumyBIioNS3ofHigusPsv7AzGFlAhnCwMUpABNxNGH4Z/XXyuLoeVtTG8vn jGVMP291TJtaM1/ubgTLlSbtGY88zRn+ac0oXZQjncK/NaZy0bPewFlKk4zSe4tj1s1T0izh81z IBgA= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Add devices binding for various Imagination Technologies MIPS based Platforms. Signed-off-by: Jiaxun Yang --- .../devicetree/bindings/mips/img/devices.yaml | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/mips/img/devices.yaml b/Documentation/devicetree/bindings/mips/img/devices.yaml new file mode 100644 index 000000000000..460ca96577ad --- /dev/null +++ b/Documentation/devicetree/bindings/mips/img/devices.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/img/devices.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Imagination Technologies MIPS based Platforms + +maintainers: + - Jiaxun Yang + +properties: + $nodename: + const: '/' + compatible: + oneOf: + + - description: IMG Boston + const: img,boston + + - description: IMG Marduk (Creator Ci40) + items: + - const: img,pistachio-marduk + - const: img,pistachio + + - description: Imagination University Program MIPSfpga + items: + - const: img,xilfpga + - const: digilent,nexys4ddr + +additionalProperties: true + +...