Message ID | 20230215113249.47727-2-william.qiu@starfivetech.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp142386wrn; Wed, 15 Feb 2023 03:44:56 -0800 (PST) X-Google-Smtp-Source: AK7set8aX2HCxFfNnKGuugwNmLDUOpLcudeb05mH5y7gbLw2YFS3aZOa/RRTtHcBSizhP/pfhOoT X-Received: by 2002:a17:902:e191:b0:19a:a43c:41b7 with SMTP id y17-20020a170902e19100b0019aa43c41b7mr1731161pla.21.1676461495988; Wed, 15 Feb 2023 03:44:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676461495; cv=none; d=google.com; s=arc-20160816; b=xB9eZuatzrh1y8GLnq1BtaTU48x40ID0xGIsR216eXn4lqqWZDo/4dFUfx5jj10C0E EKFxj9QzZcoem1vvAvITi/cvc4r9hv73mOHq04/IPHTuFkvvbyzlyAxSZUKfHj0joq8X SF9fMItDB0LVr2h+h5XH6E7MgbbFvBIVHiq9rZFczoJnmil3aJsFpWvMfNiPFoIO6Hv+ khEBWdzGo9CgfWM5TcDmIeioxUtW4byvOshcCyhv7XEsRQaDToVvVJa0mzXcaLr1unqf dBrTb+ZgUw/RqLitSHB2fTq1gg/CefOup6tMXsPJQ5hh4QJF9rjvv6K1Hx4dtUdjvQvi RQtQ== 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=ZjRNhA0WUgbwtHY1Kt8o0h3JqVroNqyALVfLTUC5LJQ=; b=N2stKw24Vi/KYsSD7e3lg3PKbzttPuY8fDdwVG3Eq3GZEbpkfJZNtYf59VBZ9SrIhj c9LvNuyAh9DClJr/3J2Qj+GyYhn4nVE6p1DmaoQ6h0g6AREjn27YfJdMPc8/XAwbyrLK PEBqVHrYD2Wlkn3CTcPKgf3c/mwgM2vY9gqBnuguSl4S9COh9q+7JEE8wuhm3ivz5yAG Qb22gfi5WB+kdkUWgJDYrTWxroc7daLdmY1JPylZhkwmULHTFEgPDfeba4ofTNQE4Loz yv4iMSZSAq91LW4ExABBdlOUciOYxYIwQeB8B4FGrIcj2u7c8nfHrmf05NNuZzSOb0YA ERLA== 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 b5-20020a170902e94500b00198f5dab2besi16914656pll.517.2023.02.15.03.44.44; Wed, 15 Feb 2023 03:44:55 -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 S233612AbjBOLdF convert rfc822-to-8bit (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 15 Feb 2023 06:33:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233545AbjBOLc6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Feb 2023 06:32:58 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E02CCC10; Wed, 15 Feb 2023 03:32:53 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id A845F24E2A9; Wed, 15 Feb 2023 19:32:51 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 15 Feb 2023 19:32:51 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 15 Feb 2023 19:32:50 +0800 From: William Qiu <william.qiu@starfivetech.com> To: <linux-riscv@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-mmc@vger.kernel.org> CC: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Jaehoon Chung <jh80.chung@samsung.com>, Ulf Hansson <ulf.hansson@linaro.org>, William Qiu <william.qiu@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v4 1/4] dt-bindings: mmc: Add StarFive MMC module Date: Wed, 15 Feb 2023 19:32:46 +0800 Message-ID: <20230215113249.47727-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230215113249.47727-1-william.qiu@starfivetech.com> References: <20230215113249.47727-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757897289742321735?= X-GMAIL-MSGID: =?utf-8?q?1757897289742321735?= |
Series |
StarFive's SDIO/eMMC driver support
|
|
Commit Message
William Qiu
Feb. 15, 2023, 11:32 a.m. UTC
Add documentation to describe StarFive designware mobile storage host controller driver. Signed-off-by: William Qiu <william.qiu@starfivetech.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml
Comments
Hello William, Are you sure changing driver is better than changing yaml bindings? All previous version sent was syscon and sysreg seems not consistent with other codes. Best regards, Shengyu > Add documentation to describe StarFive designware mobile storage > host controller driver. > > Signed-off-by: William Qiu <william.qiu@starfivetech.com> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ > 1 file changed, 77 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml > > diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml > new file mode 100644 > index 000000000000..51e1b04e799f > --- /dev/null > +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml > @@ -0,0 +1,77 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive Designware Mobile Storage Host Controller > + > +description: > + StarFive uses the Synopsys designware mobile storage host controller > + to interface a SoC with storage medium such as eMMC or SD/MMC cards. > + > +allOf: > + - $ref: synopsys-dw-mshc-common.yaml# > + > +maintainers: > + - William Qiu <william.qiu@starfivetech.com> > + > +properties: > + compatible: > + const: starfive,jh7110-mmc > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: biu clock > + - description: ciu clock > + > + clock-names: > + items: > + - const: biu > + - const: ciu > + > + interrupts: > + maxItems: 1 > + > + starfive,sysreg: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + - items: > + - description: phandle to System Register Controller syscon node > + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller > + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller > + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller > + description: > + Should be four parameters, the phandle to System Register Controller > + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register > + for MMC controller. > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - starfive,sysreg > + > +unevaluatedProperties: false > + > +examples: > + - | > + mmc@16010000 { > + compatible = "starfive,jh7110-mmc"; > + reg = <0x16010000 0x10000>; > + clocks = <&syscrg 91>, > + <&syscrg 93>; > + clock-names = "biu","ciu"; > + resets = <&syscrg 64>; > + reset-names = "reset"; > + interrupts = <74>; > + fifo-depth = <32>; > + fifo-watermark-aligned; > + data-addr = <0>; > + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; > + };
Sorry, forgot what I said. I didn't see Krzysztof's reply on V3 serires. Best regards, Shengyu > Hello William, > > Are you sure changing driver is better than changing yaml bindings? All > > previous version sent was syscon and sysreg seems not consistent with > > other codes. > > Best regards, > > Shengyu > >> Add documentation to describe StarFive designware mobile storage >> host controller driver. >> >> Signed-off-by: William Qiu <william.qiu@starfivetech.com> >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ >> 1 file changed, 77 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> >> diff --git >> a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> new file mode 100644 >> index 000000000000..51e1b04e799f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> @@ -0,0 +1,77 @@ >> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: StarFive Designware Mobile Storage Host Controller >> + >> +description: >> + StarFive uses the Synopsys designware mobile storage host controller >> + to interface a SoC with storage medium such as eMMC or SD/MMC cards. >> + >> +allOf: >> + - $ref: synopsys-dw-mshc-common.yaml# >> + >> +maintainers: >> + - William Qiu <william.qiu@starfivetech.com> >> + >> +properties: >> + compatible: >> + const: starfive,jh7110-mmc >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: biu clock >> + - description: ciu clock >> + >> + clock-names: >> + items: >> + - const: biu >> + - const: ciu >> + >> + interrupts: >> + maxItems: 1 >> + >> + starfive,sysreg: >> + $ref: /schemas/types.yaml#/definitions/phandle-array >> + items: >> + - items: >> + - description: phandle to System Register Controller >> syscon node >> + - description: offset of SYS_SYSCONSAIF__SYSCFG register >> for MMC controller >> + - description: shift of SYS_SYSCONSAIF__SYSCFG register >> for MMC controller >> + - description: mask of SYS_SYSCONSAIF__SYSCFG register for >> MMC controller >> + description: >> + Should be four parameters, the phandle to System Register >> Controller >> + syscon node and the offset/shift/mask of >> SYS_SYSCONSAIF__SYSCFG register >> + for MMC controller. >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - clock-names >> + - interrupts >> + - starfive,sysreg >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + mmc@16010000 { >> + compatible = "starfive,jh7110-mmc"; >> + reg = <0x16010000 0x10000>; >> + clocks = <&syscrg 91>, >> + <&syscrg 93>; >> + clock-names = "biu","ciu"; >> + resets = <&syscrg 64>; >> + reset-names = "reset"; >> + interrupts = <74>; >> + fifo-depth = <32>; >> + fifo-watermark-aligned; >> + data-addr = <0>; >> + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; >> + };
On 2023/2/15 19:59, Shengyu Qu wrote: > Hello William, > > Are you sure changing driver is better than changing yaml bindings? All > > previous version sent was syscon and sysreg seems not consistent with > > other codes. > > Best regards, > > Shengyu > Hi Shengyu, After discussing with colleagues, we decided to restore the lable name to sys_syscon, and sysreg was just a unique name for the functionality of MMC, which will be used in all future versions. Thanks for taking time reviewing this patch series. Best Regards William >> Add documentation to describe StarFive designware mobile storage >> host controller driver. >> >> Signed-off-by: William Qiu <william.qiu@starfivetech.com> >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ >> 1 file changed, 77 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> >> diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> new file mode 100644 >> index 000000000000..51e1b04e799f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >> @@ -0,0 +1,77 @@ >> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: StarFive Designware Mobile Storage Host Controller >> + >> +description: >> + StarFive uses the Synopsys designware mobile storage host controller >> + to interface a SoC with storage medium such as eMMC or SD/MMC cards. >> + >> +allOf: >> + - $ref: synopsys-dw-mshc-common.yaml# >> + >> +maintainers: >> + - William Qiu <william.qiu@starfivetech.com> >> + >> +properties: >> + compatible: >> + const: starfive,jh7110-mmc >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + items: >> + - description: biu clock >> + - description: ciu clock >> + >> + clock-names: >> + items: >> + - const: biu >> + - const: ciu >> + >> + interrupts: >> + maxItems: 1 >> + >> + starfive,sysreg: >> + $ref: /schemas/types.yaml#/definitions/phandle-array >> + items: >> + - items: >> + - description: phandle to System Register Controller syscon node >> + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller >> + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller >> + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller >> + description: >> + Should be four parameters, the phandle to System Register Controller >> + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register >> + for MMC controller. >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - clock-names >> + - interrupts >> + - starfive,sysreg >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + mmc@16010000 { >> + compatible = "starfive,jh7110-mmc"; >> + reg = <0x16010000 0x10000>; >> + clocks = <&syscrg 91>, >> + <&syscrg 93>; >> + clock-names = "biu","ciu"; >> + resets = <&syscrg 64>; >> + reset-names = "reset"; >> + interrupts = <74>; >> + fifo-depth = <32>; >> + fifo-watermark-aligned; >> + data-addr = <0>; >> + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; >> + };
Hello William, Thanks for your reply. So there's v5 series? Btw, please fix maintainer information: https://patchwork.kernel.org/project/linux-riscv/patch/20230215080203.27445-1-lukas.bulwahn@gmail.com/ Best regards, Shengyu > > On 2023/2/15 19:59, Shengyu Qu wrote: >> Hello William, >> >> Are you sure changing driver is better than changing yaml bindings? All >> >> previous version sent was syscon and sysreg seems not consistent with >> >> other codes. >> >> Best regards, >> >> Shengyu >> > Hi Shengyu, > > After discussing with colleagues, we decided to restore the lable name to > sys_syscon, and sysreg was just a unique name for the functionality of MMC, > which will be used in all future versions. > > Thanks for taking time reviewing this patch series. > > Best Regards > William > >>> Add documentation to describe StarFive designware mobile storage >>> host controller driver. >>> >>> Signed-off-by: William Qiu <william.qiu@starfivetech.com> >>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>> --- >>> .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ >>> 1 file changed, 77 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >>> new file mode 100644 >>> index 000000000000..51e1b04e799f >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >>> @@ -0,0 +1,77 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: StarFive Designware Mobile Storage Host Controller >>> + >>> +description: >>> + StarFive uses the Synopsys designware mobile storage host controller >>> + to interface a SoC with storage medium such as eMMC or SD/MMC cards. >>> + >>> +allOf: >>> + - $ref: synopsys-dw-mshc-common.yaml# >>> + >>> +maintainers: >>> + - William Qiu <william.qiu@starfivetech.com> >>> + >>> +properties: >>> + compatible: >>> + const: starfive,jh7110-mmc >>> + >>> + reg: >>> + maxItems: 1 >>> + >>> + clocks: >>> + items: >>> + - description: biu clock >>> + - description: ciu clock >>> + >>> + clock-names: >>> + items: >>> + - const: biu >>> + - const: ciu >>> + >>> + interrupts: >>> + maxItems: 1 >>> + >>> + starfive,sysreg: >>> + $ref: /schemas/types.yaml#/definitions/phandle-array >>> + items: >>> + - items: >>> + - description: phandle to System Register Controller syscon node >>> + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller >>> + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller >>> + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller >>> + description: >>> + Should be four parameters, the phandle to System Register Controller >>> + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register >>> + for MMC controller. >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - clocks >>> + - clock-names >>> + - interrupts >>> + - starfive,sysreg >>> + >>> +unevaluatedProperties: false >>> + >>> +examples: >>> + - | >>> + mmc@16010000 { >>> + compatible = "starfive,jh7110-mmc"; >>> + reg = <0x16010000 0x10000>; >>> + clocks = <&syscrg 91>, >>> + <&syscrg 93>; >>> + clock-names = "biu","ciu"; >>> + resets = <&syscrg 64>; >>> + reset-names = "reset"; >>> + interrupts = <74>; >>> + fifo-depth = <32>; >>> + fifo-watermark-aligned; >>> + data-addr = <0>; >>> + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; >>> + };
On 2023/2/16 0:49, Shengyu Qu wrote: > Hello William, > > Thanks for your reply. So there's v5 series? Btw, please fix maintainer information: > > https://patchwork.kernel.org/project/linux-riscv/patch/20230215080203.27445-1-lukas.bulwahn@gmail.com/ > > Best regards, > > Shengyu > Hi Shengyu, Here is v4 series, and I fixed the maintainer information in this series which Uffe would merge in his next branch. Thanks for taking time to review this patch series. Best Regards William >> >> On 2023/2/15 19:59, Shengyu Qu wrote: >>> Hello William, >>> >>> Are you sure changing driver is better than changing yaml bindings? All >>> >>> previous version sent was syscon and sysreg seems not consistent with >>> >>> other codes. >>> >>> Best regards, >>> >>> Shengyu >>> >> Hi Shengyu, >> >> After discussing with colleagues, we decided to restore the lable name to >> sys_syscon, and sysreg was just a unique name for the functionality of MMC, >> which will be used in all future versions. >> >> Thanks for taking time reviewing this patch series. >> >> Best Regards >> William >> >>>> Add documentation to describe StarFive designware mobile storage >>>> host controller driver. >>>> >>>> Signed-off-by: William Qiu <william.qiu@starfivetech.com> >>>> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>> --- >>>> .../bindings/mmc/starfive,jh7110-mmc.yaml | 77 +++++++++++++++++++ >>>> 1 file changed, 77 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >>>> new file mode 100644 >>>> index 000000000000..51e1b04e799f >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml >>>> @@ -0,0 +1,77 @@ >>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>>> +%YAML 1.2 >>>> +--- >>>> +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: StarFive Designware Mobile Storage Host Controller >>>> + >>>> +description: >>>> + StarFive uses the Synopsys designware mobile storage host controller >>>> + to interface a SoC with storage medium such as eMMC or SD/MMC cards. >>>> + >>>> +allOf: >>>> + - $ref: synopsys-dw-mshc-common.yaml# >>>> + >>>> +maintainers: >>>> + - William Qiu <william.qiu@starfivetech.com> >>>> + >>>> +properties: >>>> + compatible: >>>> + const: starfive,jh7110-mmc >>>> + >>>> + reg: >>>> + maxItems: 1 >>>> + >>>> + clocks: >>>> + items: >>>> + - description: biu clock >>>> + - description: ciu clock >>>> + >>>> + clock-names: >>>> + items: >>>> + - const: biu >>>> + - const: ciu >>>> + >>>> + interrupts: >>>> + maxItems: 1 >>>> + >>>> + starfive,sysreg: >>>> + $ref: /schemas/types.yaml#/definitions/phandle-array >>>> + items: >>>> + - items: >>>> + - description: phandle to System Register Controller syscon node >>>> + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller >>>> + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller >>>> + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller >>>> + description: >>>> + Should be four parameters, the phandle to System Register Controller >>>> + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register >>>> + for MMC controller. >>>> + >>>> +required: >>>> + - compatible >>>> + - reg >>>> + - clocks >>>> + - clock-names >>>> + - interrupts >>>> + - starfive,sysreg >>>> + >>>> +unevaluatedProperties: false >>>> + >>>> +examples: >>>> + - | >>>> + mmc@16010000 { >>>> + compatible = "starfive,jh7110-mmc"; >>>> + reg = <0x16010000 0x10000>; >>>> + clocks = <&syscrg 91>, >>>> + <&syscrg 93>; >>>> + clock-names = "biu","ciu"; >>>> + resets = <&syscrg 64>; >>>> + reset-names = "reset"; >>>> + interrupts = <74>; >>>> + fifo-depth = <32>; >>>> + fifo-watermark-aligned; >>>> + data-addr = <0>; >>>> + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; >>>> + };
On 15/02/2023 12:59, Shengyu Qu wrote: > Hello William, > > Are you sure changing driver is better than changing yaml bindings? All What do you mean - changing driver? This is new driver, new code, isn't it? Best regards, Krzysztof
On Thu, Feb 16, 2023 at 11:21:16AM +0100, Krzysztof Kozlowski wrote: > On 15/02/2023 12:59, Shengyu Qu wrote: > > Hello William, > > > > Are you sure changing driver is better than changing yaml bindings? All > > What do you mean - changing driver? This is new driver, new code, isn't it? Changing w.r.t. the v3 that was applied I suppose. The v3 was dropped and patches 1 & 2 here have been applied instead, so this request from Shengyu is moot now anyway. Cheers, Conor.
> On Thu, Feb 16, 2023 at 11:21:16AM +0100, Krzysztof Kozlowski wrote: >> On 15/02/2023 12:59, Shengyu Qu wrote: >>> Hello William, >>> >>> Are you sure changing driver is better than changing yaml bindings? All >> What do you mean - changing driver? This is new driver, new code, isn't it? > Changing w.r.t. the v3 that was applied I suppose. > The v3 was dropped and patches 1 & 2 here have been applied instead, so > this request from Shengyu is moot now anyway. > > Cheers, > Conor. That's my mistake. I misunderstood current situation :( Best regards, Shengyu
diff --git a/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml new file mode 100644 index 000000000000..51e1b04e799f --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/starfive,jh7110-mmc.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive Designware Mobile Storage Host Controller + +description: + StarFive uses the Synopsys designware mobile storage host controller + to interface a SoC with storage medium such as eMMC or SD/MMC cards. + +allOf: + - $ref: synopsys-dw-mshc-common.yaml# + +maintainers: + - William Qiu <william.qiu@starfivetech.com> + +properties: + compatible: + const: starfive,jh7110-mmc + + reg: + maxItems: 1 + + clocks: + items: + - description: biu clock + - description: ciu clock + + clock-names: + items: + - const: biu + - const: ciu + + interrupts: + maxItems: 1 + + starfive,sysreg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to System Register Controller syscon node + - description: offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller + - description: shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller + - description: mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller + description: + Should be four parameters, the phandle to System Register Controller + syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register + for MMC controller. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - starfive,sysreg + +unevaluatedProperties: false + +examples: + - | + mmc@16010000 { + compatible = "starfive,jh7110-mmc"; + reg = <0x16010000 0x10000>; + clocks = <&syscrg 91>, + <&syscrg 93>; + clock-names = "biu","ciu"; + resets = <&syscrg 64>; + reset-names = "reset"; + interrupts = <74>; + fifo-depth = <32>; + fifo-watermark-aligned; + data-addr = <0>; + starfive,sysreg = <&sys_syscon 0x14 0x1a 0x7c000000>; + };