From patchwork Sat May 18 20:07:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13667692 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 A032FC25B74 for ; Sat, 18 May 2024 20:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=TP/7NbMh7ARvNgmKSSCa6jZgyi7CZUdjqmsU8I4RKM4=; b=1/5Q6u70ZCdUYa LeWYZvgwIEoFr4xeGplrs4H1ckxqw+rUR3k/AbxX0aIA0FAGWDuvrKf02Z/Ccu5MTLqCoYzvKhQ1n 37ZdaPD/Dmet67hHe6N9vLpYH1OfsxMZEjdyuT66MMxiSA+ryBKYpCR8ofBjm9V7q7ygwFsebEfhl HvoueQCGk1K/jXvIp+BZUh+umgw91JGj+5SMn0IJkvZg7Qhdcd40lusARdtwiXfBI9VY2coBS5boF TPRMI6IsR6E+7dno2KkIGhY29/54Puf9fx3mFS//sGLMCm29hpiKesbiJQSYo3X8gm9dPIBWC8B3v EyQrT/asY4aL8JVJqwoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QL8-0000000AgDy-2Swa; Sat, 18 May 2024 20:07:34 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QL4-0000000AgCL-3IjV for linux-arm-kernel@lists.infradead.org; Sat, 18 May 2024 20:07:32 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a599a298990so630269166b.2 for ; Sat, 18 May 2024 13:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716062848; x=1716667648; 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=8r0qi9fgvEcatCTq39mBPtkcdMrmYE9qm2uVd5HyY2I=; b=TzaJSnv5XdhrhsMRMH+C3JYJhaQcOF0AkdXJIib7ZCEfAW1FjCZ2NELkGBFKtmi0Wp QmGYonBbEVp+H4VgHwDJNRwUjqBeAy2XtCuAdpBNgFzuJ24SerNfvb2G0yg38sEme3oZ hxBwdaE+MCGWEd/t7AtxtoXfdMEzyjFbkutHYv1P3ONi1zRVSMKycojqHXRTCpfpJWrH w56GeRpklpsBQSpt3HkAWfBvFmhNZJGQ+UY6LGySybz8gxsosquJ8eUHv/WriYzmNGuB 4MjyFOJMehGG6lYUsMjLO87jEi9slj3xIJd1wOg70VRlKsu10OSHU7z3GC5/3iwzzHvw AFWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716062848; x=1716667648; 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=8r0qi9fgvEcatCTq39mBPtkcdMrmYE9qm2uVd5HyY2I=; b=HgpxLMVryyt/4irtSYxFZLNK/JyyVHMfrdf8HNchIH6ZejciGELjRz0t0GTn15ZkKc 0X+7Ib+sU3fMHVa4Sq8QxIXavo2Lvtxm+WOCQS+q+gUVJcPvlgjk9fOt0bufXa5uf9RM vKOjTY39dsBIC1IqoEAPHDRH97mZWA5K9BnE+xtmWDFyIUIzTo5dqs4Q0zlXeS7jQGmQ TP9efgdTnZy7mRCec4pLac4o6GSJgNpIU7gcwxijusWaVJ9915nQUiL7s+Vb9MCOIYt7 z88+Nt8+BUFoEPK6tMGZo4rVBhO0U8vZR2hbvGQyNMERuzifvgfRE9QOFDmrHH7wu8NN JlJg== X-Forwarded-Encrypted: i=1; AJvYcCXnYq5IdXxf33l5+pmSGUPHHV0OE2ccAk1uHCy1JKrzn6R+ez/xJVaQzLDux8ZoL+z2PAdNLr8R2H88+KZkdddMxoWZEYrRiKpA4kUC5lbVVPJa+bo= X-Gm-Message-State: AOJu0Ywf3el0SvDzEfp82eI6SFKjb17TartqLuooCAzyDFruXwz3u4e+ +pMXN5bZDW1py6d0+n4FnOd7wu+eI6bLWHSYp5AmQfGZwMEOI3HHOiTl2sDAAcQ= X-Google-Smtp-Source: AGHT+IEHCODDjaPwTArsRQrvZfZuNbb65R3cbwTxJ2J4zkECbd7xfSOjCeOgjtDNlQG9Z6ddQ1GqvA== X-Received: by 2002:a17:906:f296:b0:a59:c833:d272 with SMTP id a640c23a62f3a-a5a2d5356eamr1746724966b.13.1716062848416; Sat, 18 May 2024 13:07:28 -0700 (PDT) Received: from [127.0.1.1] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b177desm1248364566b.207.2024.05.18.13.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:07:27 -0700 (PDT) From: Krzysztof Kozlowski Date: Sat, 18 May 2024 22:07:16 +0200 Subject: [PATCH 1/5] dt-bindings: soc: ti: am62-system-controller: add AM62 syscon MIME-Version: 1.0 Message-Id: <20240518-dt-bindings-ti-soc-mfd-v1-1-b3952f104c9a@linaro.org> References: <20240518-dt-bindings-ti-soc-mfd-v1-0-b3952f104c9a@linaro.org> In-Reply-To: <20240518-dt-bindings-ti-soc-mfd-v1-0-b3952f104c9a@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, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2432; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=15jEglbukv2ugS4zICaV+xZ4WeKIM9pGcVmSwBDonSE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmSQp5hw6p1m7pWomaToge5nIi+Ug1KhR9WOA2h UZfcB8EesSJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZkkKeQAKCRDBN2bmhouD 183OD/0SrGw4HcmmjCKMp5SxWOAs4UO9Zbob0YY5sB/vdCccrQGo1JM9+dk3xfOSg2Nig4wGxPJ sYs7qxUt1FLNfHjp+d6W6dHvDLY4arH3NtRMG6eNZ2pSOUIVu72CV17ulvxMStmyujiYMURB7JY F4vqZOVZYZLP0sjd5s8ln8fjqPvLJeUyP7/+QpOfSYGc17KwSz7mgeqxi8gRCDS3Ffsb91edCLK UjTfgPzOYNyHt71iCB4aNoqv8jCq3ucZ0fdndynFuSQ8fy+cGh6Umidu2+f6nxKc8A2UgNUPQOt Fu1UXSYfZCdHwlKCR8EMbiPYNor+vus0DHXUu/Tm8DW6NTlL6//XVeRuQYtuzzRhvTiEcPH7GMa FS1qHlcqYYVQ4P3KQgCY14EKZJNoGpeOwFpKgk0xxF92DC17qoNE5WTzKmdFFbqUF9BSZ1l5Cuf z8cfKZPpILqsN3Aojl1rE2I22kh/Tpx50OAIR2PkGWItOiN9jGgg3oVd8WbJHoBAm5eINK28tif FelHsnjoc/4s78p0YmU+cqNEH5UXoZuceESe3owCejzKUjLhDOcN6SZZQboRz51KqJa7CEg6RLb ucp7sMl0oXfBdjfrlVS3NhBffRy+o4tu/2PUFPvCn3OsqcDt+7bXj0AfMflF6sKXLRQUsVHSElN 2AX6WUoWdUXWukQ== 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-20240518_130730_870057_EB46AB58 X-CRM114-Status: GOOD ( 12.13 ) 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. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley --- .../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..d3bd67717999 --- /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 R/W + +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>; + }; + };