From patchwork Wed Jun 26 11:23:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13712755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB8A0C27C4F for ; Wed, 26 Jun 2024 11:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UHFAghzAoX9Bj9McLZuZq3fcUV6fdMaKdUsV7P8ymkQ=; b=KQPlUd4roypp6g7u39RRlV63Mf izN5FX/HSfXqdXs36PIcmwhJJ3d9TYi90V6PxFErkQPvqfWGde7wbau6FJQQ7sfz9Xkbfz09dX6ve tu/EqiYpzQGjoQqNrqNnbjgnN4WWviZa5UtyBMmLe43hdqGGd4ZtS2Q0qkO3J3F0UB/C5ETWfZN+c 0ma+GXCAA2uiwyW897QOnXg57JJlpP4wb+L/xqfLXqnFvNzyfj60XKvyioU44YGMecQIvI7jBVS7L wC4uMqqA9WMmiugY8BhT41A1GhifZW4n6cmIN/DNesgVftmqkjhglmfytYvgdk2sUAN8i7AWsuPij NPTyoWHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMQkm-00000006Wh8-1msD; Wed, 26 Jun 2024 11:23:56 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMQka-00000006Wdb-22aj for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 11:23:46 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a725ea1a385so356440066b.3 for ; Wed, 26 Jun 2024 04:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719401023; x=1720005823; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UHFAghzAoX9Bj9McLZuZq3fcUV6fdMaKdUsV7P8ymkQ=; b=GtGrJ2Lh04GftPmiUFxlLZe09Ia9bqChBc5lTPfoZh3USTnnDkM+5XLDay4OJdFnlV iMcVkr2wury8RJIzZHm0/UmPrJO+9Tb197eSAluxhLRXc+YiFcnTaGlo3M8Oq0jujG5C AdTvXDX+KT6mJQ987uOQEBOHSGw5r9Vm8syhEvYBujb5PQ4dSKiyENtQIwmce22lAca9 PvfoouESGW/mU5RzMqxiBHsFVX6E1P+kb/tm8ln73yu1jGF+1uJwnE48ZRh1PL4c2F5x C2DsvO+i2L4p5/siTdn0QM1fzL1k6Z9Qfb4i93Zh+vuqRv0YYTps/hLL6QHTn3nFl8ow kVuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719401023; x=1720005823; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UHFAghzAoX9Bj9McLZuZq3fcUV6fdMaKdUsV7P8ymkQ=; b=IzlkSW1mZ1XpV4X2rLfa3R1p9K8idyglYiiokv8F+65cuDgiynseiA9V/0pmD62hiR oawm/Dut9ftqMNvTaMFhziJJcXtlMNdCqaPSG5MJQQoEbsMWe7tHboDl1Oiru2jTrxEU 2+YRWvPClkeSqwO6YfBEikxOHOZp/qwmu0ihQuiiJAjNgdhUfPSQA+2cAAQQkXkM1sEN e0nOdDK5QpfZzwLrsJIw7NA3O+hCDt6AKBoNLX9xg5no2v1eDZCXsxMr302wqm4tNEdI QphzKHS9YbdjwOeSZ+b9JEEy1O85EodVC4SDJPeGJwQvpae3sA+nD7kQDNh/tBf1XSuI SpNg== X-Forwarded-Encrypted: i=1; AJvYcCWKzchg6ZlxEt+Ry9P3Vpg0VeCb/gegxaK0kZEb1KAJUjm57KbWLN83lO0x5j+Ch03OJSnGZOy+i8ukivcNIjtsJM9BW3C0Z6LyyGf/DvO68kzAR1A= X-Gm-Message-State: AOJu0YyMPZqRQE+uoFRPC659zAEkR4qN5QGeELzl89koH4j8RoLGcSZW 7VWsYn0QwDeDjSDKMjIKL6Kr90ZmJtPwFoFvT6/gEX6fsCO58Iat3lLVrkKIUuQ= X-Google-Smtp-Source: AGHT+IF+o9xL/rCN/q1fNqjVwtlLllTegQZ5VL+WhBeVkaD1yaS0lFWymqc51LELPvMepZKgvgcy8Q== X-Received: by 2002:a17:906:d8b8:b0:a6f:e54e:a259 with SMTP id a640c23a62f3a-a7242c9ca32mr677753966b.32.1719401023176; Wed, 26 Jun 2024 04:23:43 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fe03b4528sm497772166b.206.2024.06.26.04.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 04:23:42 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 26 Jun 2024 13:23:33 +0200 Subject: [PATCH v2 1/5] dt-bindings: soc: ti: am62-system-controller: add AM62 syscon MIME-Version: 1.0 Message-Id: <20240626-dt-bindings-ti-soc-mfd-v2-1-ee4d69017326@linaro.org> References: <20240626-dt-bindings-ti-soc-mfd-v2-0-ee4d69017326@linaro.org> In-Reply-To: <20240626-dt-bindings-ti-soc-mfd-v2-0-ee4d69017326@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kishon Vijay Abraham I , Roger Quadros , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2488; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=z8/LYFLL33ZSSC3LJWTKkBqBU3ELjAHLh3fkufZPhjw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBme/o4OBjgFiK83FMO1ABlrUKpTvg7aolNSs66x LJ/aIxj5r6JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnv6OAAKCRDBN2bmhouD 11DaD/0V0uUsrx/dRCVeyEQgxTd59UjtOj85U96i8UtJSrKzqHOZgCbBevSOpX54WJojqFhCoEM BDZBzsM0tCi18cxSngCKqOCPS1fR4ajhvnnm4x8QfDdwAe5MqgPrdO8UZqsLjAlQhK4Lsata7x1 Vt+nJQtHWSYMuWwu8Vvgly1FvBzrP447K1x4XxHqJorNBpjGI5PfKR8Fg4932fvRHBxR7My7kb1 1uT7jZMAJ/D7LnEQFTqcYjZ4BelB1UFsYrdvROsOwYkkCdBFRJWWwRqUg7yTLICN1pH+4LUNB3o xzjcqx8YgQxG4y4glWUx21ccCjfGzsOpWFx/jYFgm9gHefoH6LW1ywQVY8kF1g+vreILCHbDU3+ Z9R+B4lWSqHh2CHz7oY6Iy/4c9MJMOYBD3aErv+hh5xnrX/P9lF4uj6l06JEnIIMEnodAT1dYtn IZHSlgfh6GE0YIhGAtJB/Kz8lXHDDhXyLqOyTwswnEgymBVAlOyMWkwVGrRsYIzF6bMTon5R4Fr +EDnLXlFnqnzIvR89unwMEIQRmf1j4ZsnKV4mVSJ6AQBhPr5fPI+r1VQC3AUHgHaHQPryupMFai pCam2ZKqyJuoHsbNGvVu2Yf+Se71gop3yoFZ2eDXs31WkdP/TyD5O2L98qiPK66WOGlefBHKYo9 S9vUDeVGqLCEBSQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_042344_576704_E24C0117 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add dedicated binding for AM62 and AM62A wakeup system controller registers, already used in the DTS to properly describe their children. Reviewed-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski --- .../bindings/soc/ti/ti,am62-system-controller.yaml | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/ti/ti,am62-system-controller.yaml b/Documentation/devicetree/bindings/soc/ti/ti,am62-system-controller.yaml new file mode 100644 index 000000000000..0cea0de5716a --- /dev/null +++ b/Documentation/devicetree/bindings/soc/ti/ti,am62-system-controller.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/ti/ti,am62-system-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM62 System Controller Registers + +maintainers: + - Kishon Vijay Abraham I + - Roger Quadros + +properties: + compatible: + items: + - enum: + - ti,am62-system-controller + - ti,am62a-system-controller + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^chipid@[0-9a-f]+$": + type: object + $ref: /schemas/hwinfo/ti,k3-socinfo.yaml# + + "^syscon@[0-9a-f]+$": + type: object + $ref: /schemas/mfd/syscon.yaml# + unevaluatedProperties: false + properties: + compatible: + items: + - const: ti,am62-usb-phy-ctrl + - const: syscon + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + +additionalProperties: false + +examples: + - | + syscon@43000000 { + compatible = "ti,am62-system-controller", "syscon", "simple-mfd"; + reg = <0x43000000 0x20000>; + bootph-all; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x43000000 0x20000>; + + chipid@14 { + compatible = "ti,am654-chipid"; + reg = <0x14 0x4>; + bootph-all; + }; + + syscon@4008 { + compatible = "ti,am62-usb-phy-ctrl", "syscon"; + reg = <0x4008 0x4>; + }; + };