From patchwork Tue Nov 29 10:35:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 27160 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp253977wrr; Tue, 29 Nov 2022 02:36:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Tk77Tz6e7880qX2JD/ls1EN9BXSktkuWC8frbDUqdXJ9bBjgFkHke1+NxvDwXWRhNVf9w X-Received: by 2002:aa7:9282:0:b0:56b:d03d:fdb4 with SMTP id j2-20020aa79282000000b0056bd03dfdb4mr57804081pfa.79.1669718173452; Tue, 29 Nov 2022 02:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669718173; cv=none; d=google.com; s=arc-20160816; b=HmSyciV8pWzmBj8wibpgCYXUVZyFsis5poi4Pxh11182NoOhpbkv1fnud7D8Ko+C5Z MQAzLfGcaxNRFMtAzJFlybROIL3zvtWl97qnBlO0/0tHgpXPR0/kNit95I+YCNa7i/ov j0yoDfOg5KsqDifzs06eDlsY0637L5KZeT200J/klt+JcuVIty78hYuKtIAIhsGZyzTo fOaC8IUt6yhhiOk69rbsNBbYZdBQnpGEzlVDPrBDB7lWlCQwtwaWtkUuDlyLxjIJOFNZ 7TzpvQAscJeH7BPhrpm4wWODnMZ0YGqisDjDdIxxZk92EoNSU4W4i+3ALxTeMEM9cO90 eC+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=53h7qBQNr90u2yHmQliPaB3PCXCW20h3yinFzUCBzt4=; b=nltlUkgnfoD/aTvH2gPOH1v4J6LHsu7Vr4uULwkK8Gdu/Y2D/+ZvaGhexqoikqLxFQ G4gz6/aaE8gpyJXcvvMAeA+hUAJsTyY2Dup3Qr7GzxnZUUsP2Dtb/1ktm7T0bYy9fwmY dCq6graZJ0IEqxHpHqvg1pIIjIrNgVZ21F+kBBqS33s4LjOTFE7DGMlon1jf+4XwAxiT uXtxDAEiQF/JPj1HywK7MgojlBxGG3Nth2mCrzYHkIClDN7a4FU+9sHSWr9J/0aL5a/h VQoqItLHmqCIytkj1LV3dNQlHRhn2uj1lAaoVT6quae0dWPioCTqHnnHGoq7lSc1iN0K r0eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a636c06000000b004349119ea7bsi13679389pgc.401.2022.11.29.02.36.00; Tue, 29 Nov 2022 02:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231841AbiK2Kfn (ORCPT + 99 others); Tue, 29 Nov 2022 05:35:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230381AbiK2KfU (ORCPT ); Tue, 29 Nov 2022 05:35:20 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C98CAE43; Tue, 29 Nov 2022 02:35:18 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 29 Nov 2022 19:35:17 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 501282059054; Tue, 29 Nov 2022 19:35:17 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 29 Nov 2022 19:35:17 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 1A9E1C1E22; Tue, 29 Nov 2022 19:35:17 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 5/8] dt-bindings: soc: socionext: Add UniPhier SD interface block Date: Tue, 29 Nov 2022 19:35:06 +0900 Message-Id: <20221129103509.9958-6-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221129103509.9958-1-hayashi.kunihiko@socionext.com> References: <20221129103509.9958-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750826403526665533?= X-GMAIL-MSGID: =?utf-8?q?1750826403526665533?= Add devicetree binding schema for the SD interface block implemented on Socionext Uniphier SoCs. This SD interface block is attached outside SDHC, and has some SD related functions such as clock control, reset control, mode switch, and so on. Signed-off-by: Kunihiko Hayashi --- .../socionext/socionext,uniphier-sdctrl.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-sdctrl.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-sdctrl.yaml b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-sdctrl.yaml new file mode 100644 index 000000000000..f39da119aa55 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-sdctrl.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-sdctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SD interface logic + +maintainers: + - Kunihiko Hayashi + +description: |+ + SD interface logic implemented on Socionext UniPhier SoCs is + attached outside SDHC, and has some SD related functions such as + clock control, reset control, mode switch, and so on. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-pro5-sdctrl + - socionext,uniphier-pxs2-sdctrl + - socionext,uniphier-ld11-sdctrl + - socionext,uniphier-ld20-sdctrl + - socionext,uniphier-pxs3-sdctrl + - socionext,uniphier-nx1-sdctrl + - socionext,uniphier-sdctrl + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + +patternProperties: + "^clock-controller(@[0-9a-f]+)?$": + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + + "^reset-controller(@[0-9a-f]+)?$": + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@59810000 { + compatible = "socionext,uniphier-ld20-sdctrl", + "simple-mfd", "syscon"; + reg = <0x59810000 0x400>; + + clock-controller { + compatible = "socionext,uniphier-ld20-sd-clock"; + #clock-cells = <1>; + }; + + reset-controller { + compatible = "socionext,uniphier-ld20-sd-reset"; + #reset-cells = <1>; + }; + };