Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp588447rwb; Tue, 29 Nov 2022 02:45:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Bxjnyh1ufj+asEIfnw2wAGD8k+rpNUZM3xFQpRIUKkSIVd3o+SJgTEricxC/yQbBEKdaG X-Received: by 2002:a17:907:cf92:b0:7bf:7a65:b242 with SMTP id ux18-20020a170907cf9200b007bf7a65b242mr8774763ejc.356.1669718749138; Tue, 29 Nov 2022 02:45:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669718749; cv=none; d=google.com; s=arc-20160816; b=TouXCM2lkHUlFIHqTSwCL5gP9tAE3OPU6Wda+i8Lnyj16KZ4TTNM1CAtNRyow6K9W3 Ac35PZl721inLKc5vRvzXFTB2vKzXcBl6AvoF7fxN3412uWr602Rwt1pfGOtkbSrmbWu s1VTSL1bRwz7zCSofUHqoBOVgcjjLpq+luWDUeJrg6wn4IHWJ0+Q7qStLtjyjPiM/Yd7 lFWMWV+tzKJmquWwU/E0Y961O9ZpOufl/Ff1eUbefixO2t4Zta/G6KE3yNvaT9JrwI5Q 1SHdpJCmAcbVDkorE+t25JqhPdjjWWUeIBEIG+NM7z8vjhPn0+vfYnqfGl6ct7po8Kon Iamw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402270800b0046abe65b8f7si9612599edd.159.2022.11.29.02.45.20; Tue, 29 Nov 2022 02:45:49 -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 + 83 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 Content-Transfer-Encoding: 8bit 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 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>; + }; + }; -- 2.25.1