From patchwork Sun Oct 16 15:48:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Huang X-Patchwork-Id: 3051 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1068194wrs; Sun, 16 Oct 2022 08:57:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5H/Y3EkZvEs3Jxe6bMUWaZ1MGfe7dWNWICyoYcVaWBkKdpZPDH09epxI6rlwXGVvvfYI7D X-Received: by 2002:a17:903:11c8:b0:179:de93:bd7e with SMTP id q8-20020a17090311c800b00179de93bd7emr7678236plh.95.1665935853127; Sun, 16 Oct 2022 08:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665935853; cv=none; d=google.com; s=arc-20160816; b=GjHtuyc3lBBQxWr3eI6Apksk0vNC1uj3qSm56upKENXPI1rcGoOkBwJa3Hzj+oQpK7 IWfw5FS/4E72G0IfhzQBkCfAFBguJRO925II0ZSC7PBCzx3YwVndFnDAkdxGb8DXo05c 2HJMVfhrFEttlr/AP4K+auR4CiRX9XifQaezrO7sKCEU33LQ1NhKIj+c/Z4wjEU5SikW cryD7fLqcijztHbyiGVqwW6MesmLtO5TTvY17VaSU3+FcHxSafMQgW5m38pMuQj3hjyp kOS6VMbjBHN70qhK8dof4vtik9OHsL6umdthIv1oabzRRSG7QdvdiQ8BP66nT1SrmCzp gaag== 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=4QRChZnGSanUWZWAPSF22lD+n/i2JuoI0Xb2Ifg9orc=; b=VvmEH8XTyjMvxKu6yhRffSHlUYEZfAV05v5p2iAYsHhI3ByTzMAXIKl7JW2wXarbgx jHjySlemTnwuCTzrEqcEaZGvz0h8Vcf541G2krr4FT9l+s6dAljUKxbBKLkfT9PpRWCM WOeIihPCT3+2n6lHIQbidTjC2ZvYpGTqfD9AofRZ+dxARbT+Usom7l4ST+H9RKgSgRWd rykOqE9Yd8DD9aY88dd/QDfK5oLu1XkDPwZtvqC0WXH3F3IKb5IULIpCxnr1TooWn9zj MArBUixparLVS9vz8hu8qr2GpT8Od4mkqo2JChIKn1YeG5rja2K12RWOtvWgHcRl1bVC OxvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jId3Kosu; 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 b199-20020a621bd0000000b0056171a19036si8268932pfb.312.2022.10.16.08.57.14; Sun, 16 Oct 2022 08:57:33 -0700 (PDT) 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=jId3Kosu; 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 S229788AbiJPPtb (ORCPT + 99 others); Sun, 16 Oct 2022 11:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbiJPPtZ (ORCPT ); Sun, 16 Oct 2022 11:49:25 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FF36110E; Sun, 16 Oct 2022 08:49:24 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so12126778pjq.3; Sun, 16 Oct 2022 08:49:24 -0700 (PDT) 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=4QRChZnGSanUWZWAPSF22lD+n/i2JuoI0Xb2Ifg9orc=; b=jId3KosuWGR/wkRkz5i2dmWo4ffebdrnByoCqXpyUNoC4QC1np3eOgcbpdd5ueX8oN mwcjc8dj8eNOEOHPM862qYQnBsy7DPC4zyh2ItKBOXilrVcg/dI72APCJ7ZdxqFJCoyC osnAoYFSfytTGPjXnPKQBozSJ/gjdkGHjbbb5Wj3vHkYElYbzhilS1F4NxdhYI4vDyoO 9EVOw1J8g0HDAXFuXBnANjVsgtB12hJS/j3TUvrBRa03tZikeQ4iUzWXwHqQzJVYESMo QTsDh7NvAb7R5r66OO8IxFEH6KXT63viCEX2/cp+bAaTD74MBmtt+jGJLf7jb855vGTJ Gl1w== 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=4QRChZnGSanUWZWAPSF22lD+n/i2JuoI0Xb2Ifg9orc=; b=lhcBfn49+sjPaDBYLykrURcYnJM6PJRKWVeHKrUhVUWGbPvkLmXs8XguuyENKDeGuB na+91F9AaF0YsEUgqWe4pydJ+1HZ84G+nmNp8b6Ykl18bRfXdl0rUrXmOc7vAXz24kr2 6w86lS5vGEa10m8NB678LWUErQELng2LsuVmJflUIQ/LzBCvFVEOeH+iyRgoahHSFVns M3jcS9qWTp0UZ27GMG1NauY3fnZp9vvQosPu0bascoEboQ0y11M3mHDA0l5hyY0p76If kIIvY0t80iNgoX8zf3auCvFBuwv5J/lJ1bOzf5ZQuyOqqWEJawR7iGq4f9lsQq8mHAUC JPNw== X-Gm-Message-State: ACrzQf0xEiMdlNwgBEmZqlRiPYVx2PPfIGnIxYugtr4JLtLOnWq9y+q2 YEc/YBOCI1g/L9xee2CUqVo= X-Received: by 2002:a17:903:22c1:b0:185:5276:92e5 with SMTP id y1-20020a17090322c100b00185527692e5mr581858plg.134.1665935363787; Sun, 16 Oct 2022 08:49:23 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id w14-20020a63fb4e000000b0041a6638b357sm4595222pgj.72.2022.10.16.08.49.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Oct 2022 08:49:23 -0700 (PDT) From: Tony Huang To: tonyhuang.sunplus@gmail.com, ulf.hansson@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wells.lu@sunplus.com Subject: [PATCH v10 1/2] dt-binding: mmc: Add mmc yaml file for Sunplus SP7021 Date: Sun, 16 Oct 2022 23:48:31 +0800 Message-Id: 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?1746860353282125578?= X-GMAIL-MSGID: =?utf-8?q?1746860353282125578?= 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. .../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 fd768d4..cdd809a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18869,6 +18869,12 @@ L: netdev@vger.kernel.org S: Maintained F: drivers/net/ethernet/dlink/sundance.c +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