From patchwork Mon Nov 21 10:06:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Huang X-Patchwork-Id: 23637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1492904wrr; Mon, 21 Nov 2022 02:14:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bADfSEn1nC2kUWeD5nl9DADuN/WyM4SsQNiuDeaeorBcgCPm9373cbaiVbq/8K59SuAjg X-Received: by 2002:a63:de4a:0:b0:429:983d:22f8 with SMTP id y10-20020a63de4a000000b00429983d22f8mr16614230pgi.165.1669025697129; Mon, 21 Nov 2022 02:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669025697; cv=none; d=google.com; s=arc-20160816; b=l+Yh3ED438x3cHAvJPPT/nucMoOQTKHYEwHADtdCU8Uh9KbPAW1h0a35K1L+HJVl97 tFdjtzEHPql5FyBxk7cd/gz87/r3U+eZZ8VGxfcokzwj5YDC7H1u1gSx//BAbWAZg+q+ wdsQuCtZqC+uFM93+1nRCdoF9GO7flPTyKkfxN4sJEknZalQfZPzSa/GKsdg7cW8zhZb SRf48inE0CSC0bYKfll3hczv90gNWvIoyxMuRCWzIM1uFX5KQXGOAd7Uje11LcO3UXXM e/VisxrcLiauQZUqxJeys8qrUTyQdBPYCHhVkdUbvN5DkFxoCPlc/a+OtHbuD9I5SyfW LtYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=eVx5B9anLi6E4Dp71/Pau4amxek3Q2B7q9d4r++NqTE=; b=jrfkHRBSBkRpNDojgpXSZLbnWDcPatqB14E0omalU2DYaZE54lz8D6OJv/Q4S1nOXz yQ78fozj6wOtGIW2cRuLKtKJHCiI2z/oHaJlTeHQzIn7EdBfArRA36UnY1z8tMknbqBt +d90ZkDpqFaUu0oiQ7praCYunG1yDQ9cSlodypAgwAJHr198ljXHrpxnMny2GWAMcciV HJ5hCriWO+gBHL3KcK+GMi/f/lxlRALRWF0v2MrXSoR4T3R45wTMebQe1TE3tCJkF1u6 ROFyoGLaZIuSSRjNIcV+IBwHu8HZ32gh0QHiwqdI7snzyfnVo3VFtUWzLnlwf3p0aXUB MdEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H5Evf/Jz"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq9-20020a17090b380900b00218890f4874si9115880pjb.116.2022.11.21.02.14.37; Mon, 21 Nov 2022 02:14:57 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H5Evf/Jz"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231297AbiKUKHe (ORCPT + 99 others); Mon, 21 Nov 2022 05:07:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbiKUKHJ (ORCPT ); Mon, 21 Nov 2022 05:07:09 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C1B5A342F; Mon, 21 Nov 2022 02:07:08 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id a22-20020a17090a6d9600b0021896eb5554so4915092pjk.1; Mon, 21 Nov 2022 02:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:references:in-reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=eVx5B9anLi6E4Dp71/Pau4amxek3Q2B7q9d4r++NqTE=; b=H5Evf/JzuswLRVBqeMs6gTbGSzHSqlFlIGUGcdR97UJRTbEv0ixRRxCBYNxMymaR2L +MGClYYZIF/Tl9etPLkUOxjGOD1+/9mB2CqUNej/Uu4zWd04G/B2izRzqDPnToxhDBBV 3HfCbAWWq633yvyn+RPJkjBKvj4XMvd6etlJTDhpkkG5rEZstGS8pyA8IedM0+xNsMTb 3DbJyiGARk1M9QVNPj9qLyXSfBUuewnR1qYKEDvTGb71gwvia8EI1Jg55qCVSdjp5Cnq SMXvAAGVffhMBbuaTExdiVR7b7gkEwru0Eh9yJdU+GqOe3ehwO5AC0CRkMmEH+vZgeIC PbhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:references:in-reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eVx5B9anLi6E4Dp71/Pau4amxek3Q2B7q9d4r++NqTE=; b=5GpspkjaQLXhlTATbKTWUNRcW7Ivdlcb83iYkYNU8aNN83Ybd5EDrrp3nUXOWQHcF4 JqKz77ySbr19mHAOjvh+571l4N1mEUzMlErUVwHbN+rWcZFLrS5JCDl9OfMr5Zf9y5mM 2vNfdzf51NYDWn+OYfW/liHmbV6mkx1priH9FYZxwB8DedHXwHoT9wimrVDvNurkuozn Ng9r9mDDUYywNJtS9X9yoKM4Jar+5Plw9BbottDxiREUmDjWJXnSAopt1VO5tOTl7HQK Dd4ogerU3YWS0qpU6cc6A+qYBa/Vs+iFEWviqoXBzA1NxKO+LkC/N7CVsl/zYdVcrNun 8Qqg== X-Gm-Message-State: ANoB5pm/Kiah7v67qi5TWCU4R4crkqvRSJ4YSOANdJ5vfn68LFvXD7jx /tN+vLe6gms7cehP8RxAmySLfQUDR8c= X-Received: by 2002:a17:902:a9c6:b0:188:52df:769e with SMTP id b6-20020a170902a9c600b0018852df769emr775763plr.30.1669025227878; Mon, 21 Nov 2022 02:07:07 -0800 (PST) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id oj8-20020a17090b4d8800b001df264610c4sm23069042pjb.0.2022.11.21.02.07.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2022 02:07:07 -0800 (PST) From: Tony Huang To: tonyhuang.sunplus@gmail.com, lhjeff911@gmail.com, ulf.hansson@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, wells.lu@sunplus.com Subject: [PATCH v12 1/2] dt-binding: mmc: Add mmc yaml file for Sunplus SP7021 Date: Mon, 21 Nov 2022 18:06:48 +0800 Message-Id: <8c8fbc29524819d8ab45a4fe75311b3b7b567650.1669023361.git.tonyhuang.sunplus@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1750100289451932549?= X-GMAIL-MSGID: =?utf-8?q?1750100289451932549?= Add MMC YAML file for Sunplus SP7021. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Tony Huang --- Changes in v5: - Addressed comments from Krzysztof. Changes in v6: - Addressed comments from Krzysztof. - To substitute MMC for mmc. To substitute YMAL for ymal. - Remove max-frequency. - Fixed wrong file name. Changes in v7: -No change. Changes in v8: -No change. Changes in v9: -No change. Changes in v10: -No change. Changes in v11: -No change. Changes in v12: -No change. .../devicetree/bindings/mmc/sunplus,mmc.yaml | 62 ++++++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sunplus,mmc.yaml diff --git a/Documentation/devicetree/bindings/mmc/sunplus,mmc.yaml b/Documentation/devicetree/bindings/mmc/sunplus,mmc.yaml new file mode 100644 index 0000000..50f2119 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/sunplus,mmc.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) Sunplus Ltd. Co. 2021 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/sunplus,mmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sunplus MMC Controller + +maintainers: + - Tony Huang + - Li-hao Kuo + +allOf: + - $ref: "mmc-controller.yaml" + +properties: + compatible: + enum: + - sunplus,sp7021-mmc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + mmc0: mmc@9c003b00 { + compatible = "sunplus,sp7021-mmc"; + reg = <0x9c003b00 0x180>; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clkc 0x4e>; + resets = <&rstc 0x3e>; + bus-width = <8>; + max-frequency = <52000000>; + non-removable; + disable-wp; + cap-mmc-highspeed; + mmc-ddr-3_3v; + no-sdio; + no-sd; + }; + diff --git a/MAINTAINERS b/MAINTAINERS index 2585e7e..2d90fe6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19748,6 +19748,12 @@ W: https://sunplus.atlassian.net/wiki/spaces/doc/overview F: Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml F: drivers/net/ethernet/sunplus/ +SUNPLUS MMC DRIVER +M: Tony Huang +M: Li-hao Kuo +S: Maintained +F: Documentation/devicetree/bindings/mmc/sunplus,mmc.yaml + SUNPLUS OCOTP DRIVER M: Vincent Shih S: Maintained