From patchwork Wed Jun 26 10:09:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13712534 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 A8061C27C4F for ; Wed, 26 Jun 2024 10:10:59 +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=Zrd8K+qyBfVetpIrLm6qlKeNQKmHjz4ob0FFgn8jaII=; b=K6INMYcs7MMLI1AaM4i3l/+OoI gt3A1CPQ4c0nyAUyHbWwxWS+Hmj+8IOdTUQYm8lyc8I5Uyxx2calFO0DDJ9UTcDii646sxgb7MoL5 N1ongLmqjZMg+d9o+L10nHeaNQBOfFx5S07v7p5EwgDLJkuMzBmNYUeAqH9brH7JcwObnbDcyXFMS 7P+3IjgBUjX7Ubrdezq6+TmnaW8vlXmer04cCQHKbDiDotniUD1yCX/JcAyQ0d5r5Zs+0ZKFgWAIB q3OzIQqY+M8aIMbq/ccBH3feKH6wiBvo8NFH53EVv1tJbC0tjvtccorpoPEgFIX9LWzCR2M4BVnOs m0F92ktA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMPbz-00000006FkE-2T7p; Wed, 26 Jun 2024 10:10:47 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMPbK-00000006FKC-0lVX for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 10:10:18 +0000 Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-375f713a099so24182895ab.2 for ; Wed, 26 Jun 2024 03:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719396603; x=1720001403; 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=Zrd8K+qyBfVetpIrLm6qlKeNQKmHjz4ob0FFgn8jaII=; b=K8WMp/VJftulpaDBq0CMiQsErgzG4lrfaALiuc1pES193Y5FZeadmqp7D1TOMhprBl RrNDOyTKYUt5v3xfbQ/mj4B/xKPWGsEljkVeeETHqoaKm6/eTYm5AwOrFWK/9yTibrRW y3aEWSJxP9Qq0wrggq7R7wMmpmr0KYHe8DA5/JgpOiHf3fZ8SlBv0jGFhyAGNlYDv7/U 8cOUJI91y46eA6fSz21UH6DTnCF7XiDfIpX8o/bMdA6Kv44hZQunP38qzoCG7TnJwzig qBk7RIZ8jc/Qna5iqq/PSoFOGp9nkYLvsUT9admdFeHBwGz0nt0DwfD+k8qVADHjpNtW MKDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719396603; x=1720001403; 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=Zrd8K+qyBfVetpIrLm6qlKeNQKmHjz4ob0FFgn8jaII=; b=XVuMHpMN8c9CgRrDXGqzNMcZNvkKPixO8BO2PNARxp+eHDaSRWmnUmwFtPqK/elys2 IXQphdAg3uCJk/olm2sCxfuJ1YKxx/MVUxaDm3mT04QUFQINJXa+OU+r26jcR2Y6l/TW /kSIETCY2BacjML/QVW1lnAIsJcuwOFISyDHdIRnoRAJOaWFZGa0IYTUq1XHGbtJa11p xEYaNSP5Z8K8Ws5GmV+LZmfrFl/Kvn3Mp/bMoYJLel3YLDuxg5rbo3Sd7CrKfa5IQkjP kz4qMT8qgVKzf4k1+Q2mIgXmSbpRkTAfoQm3UZv8+rb+vnX8JEWMRfZUwU/OYGElGsno HCpQ== X-Forwarded-Encrypted: i=1; AJvYcCWfftbZMaWnmsdK98FJmmyGM2to9X5Gsxseplu22sHzLc1oYy8BfwUClt6JgUbPteNbbkGoVbkXw3jd2nND0ZmzV4Ttrt0H+Q2jgNRfLLLUKdmCQRE= X-Gm-Message-State: AOJu0Yy9Djn9SfbtzBopprwtNn9xLoxPLv3peOc8ARNt6+8OkBdBlMfB Ea6xm+La+of8tYnu+NgJu/EdzlewU00pbHorjDNwS/r9wSriZlfUHsLYA3WxdsI= X-Google-Smtp-Source: AGHT+IFUZzMErxpLYVEJfjbPiqJyGKvbDtnALq/jGvRL0oxC3s7sFwdWv/jSN7Scrt6aDPMiIQgoiA== X-Received: by 2002:a05:6602:6427:b0:7eb:eeba:5e92 with SMTP id ca18e2360f4ac-7f3a4e4748emr1288982739f.13.1719396603486; Wed, 26 Jun 2024 03:10:03 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4b9d121859csm3079108173.137.2024.06.26.03.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 03:10:03 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 26 Jun 2024 12:09:14 +0200 Subject: [PATCH v3 5/7] dt-bindings: soc: ti: am654-serdes-ctrl: Move to dedicated schema MIME-Version: 1.0 Message-Id: <20240626-dt-bindings-mfd-syscon-split-v3-5-3409903bb99b@linaro.org> References: <20240626-dt-bindings-mfd-syscon-split-v3-0-3409903bb99b@linaro.org> In-Reply-To: <20240626-dt-bindings-mfd-syscon-split-v3-0-3409903bb99b@linaro.org> To: Orson Zhai , Baolin Wang , Chunyan Zhang , Jacky Huang , Shan-Chun Hung , Khuong Dinh , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chuanhua Lei , Rahul Tanwar , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Nishanth Menon , Matthias Brugger , AngeloGioacchino Del Regno Cc: Jiaxun Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2452; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=dA2BvNuDdbIFKkStpUlyQC5zc7XFrh1545e/AvgMWBA=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBme+jRx0FlUKs9m7U74Cl3aRCoF9QLcGf9TXxW8 zEdB694ZDaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnvo0QAKCRDBN2bmhouD 17GeD/9ttG1wj0agCEdCp2J1UVba8gqRUHHk9HtrVHO0PJV3qgTr2zDrRQDq8umUBkbNKhvceRs j/B3B31vXhOrLr5Vxd0OEp9Y9rM+q89afgjdQysN1szBsGzd0465MObh6jRFyrVCuGINTxKpS8F yQE4dS6fgoIIJRfX5GoY/gGCk66GVE8mQiWj1E+ATc0tmGtw2Uz7pSUm+55Yu6cVqS4HLB7VwCX SFepNQvkCIYsxaacKdJNxkcDh8P2k5IcNgbEpCpe2s4eyZmcDYkcY3uP2PRzckYG9Svwwly2/VU sCCD5iiRyxY8M/waZoEHbcWfTYfiUCBcS88241a0t7MlKcYQq/FdVEGDX4H2KvpRDYJSonayugZ /3KR1xEfPG4UC6PizRklUScg5fP9voO/inXN4SiB8KQvqD7JaFpsRpn8SciEzcD3xniNHcqFMR7 Yu02tuZI38F65YkJrrGFL0bZLDcaUmRwfOo4d8LZNYC/qJGkmg9I4QIF+oDFtR4jIcZLl3aAC58 5kSdZ9qxXKHEE0zMQhK30NYVZSfSkBOsv3U53TXhjH9ibHu0uGIMif+QROwn2QukdH8wkXZeyd4 uWEwtdZ2VYO8Bzyx/9r4MNazK1IHpu9DPQ5lTl0ZBAjomrtvvTLe4V93mgQ02RhYKmSKbQBXHvG asVbvlvhTTM/b1w== 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_031006_851879_DC745C83 X-CRM114-Status: GOOD ( 15.59 ) 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 ti,am654-serdes-ctrl is not a simple syscon device - it has children - thus it should be fully documented in its own binding. Reviewed-by: Rob Herring (Arm) Signed-off-by: Krzysztof Kozlowski --- Context might depend on patch in Lee's MFD tree: https://lore.kernel.org/all/171828959006.2643902.8308227314531523435.b4-ty@kernel.org/ and also further patches here depend on this one. --- Documentation/devicetree/bindings/mfd/syscon.yaml | 1 - .../bindings/soc/ti/ti,am654-serdes-ctrl.yaml | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index abd3debe5faf..d6fa58c9e4de 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -117,7 +117,6 @@ properties: - ti,am625-dss-oldi-io-ctrl - ti,am62p-cpsw-mac-efuse - ti,am654-dss-oldi-io-ctrl - - ti,am654-serdes-ctrl - ti,j784s4-pcie-ctrl - ti,keystone-pllctrl diff --git a/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml b/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml new file mode 100644 index 000000000000..a10a3b89ae05 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/ti/ti,am654-serdes-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments AM654 Serdes Control Syscon + +maintainers: + - Nishanth Menon + +properties: + compatible: + items: + - const: ti,am654-serdes-ctrl + - const: syscon + + reg: + maxItems: 1 + + mux-controller: + $ref: /schemas/mux/reg-mux.yaml# + +required: + - compatible + - reg + - mux-controller + +additionalProperties: false + +examples: + - | + clock@4080 { + compatible = "ti,am654-serdes-ctrl", "syscon"; + reg = <0x4080 0x4>; + + mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x0 0x3>; /* lane select */ + }; + };