From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 376CBC433B4 for ; Fri, 7 May 2021 01:15:18 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5B4D610F7 for ; Fri, 7 May 2021 01:15:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5B4D610F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wtwqMtR12yhl7fJ11HNlCrmElZ4QT2Lcu6/qrIuRQEo=; b=TOcqpL/4PyXeDUXKzhdtwJfd1 xnKqHYkVQ40sDpp9fp+uBo2Yl622KaqkZqvOFP8nVEZRsDQN5Dm1hIMb26xf2pjLhbLglotSlsmoO A/+LyFCpwS5NOTup5Jh6wepGr40SZ2rjLSYT5wGia7I0hcgnzY3QaKqfMlIedJwe6J5RkCjN60kEI dqggMKkWoRHQpGuz6ZNf7xm+3uiR1rKd+bx9Wct1Q05mI0L1uzk2Ilzh3WQpHw6DxXlS7B2qt1RJY QAEVny3zfIAPkVZvnUIykkILfJhHX7e4WTm80tEfTkXZgAV2Bk0C/vi1bB3EfOb+gUI22DLpGj/RH ZQ98+whtg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lep3f-005jIQ-MP; Fri, 07 May 2021 01:13:36 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lep3a-005jHI-Dt for linux-arm-kernel@desiato.infradead.org; Fri, 07 May 2021 01:13:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6+SbgXWxY1gSEdIUiXJS8BiZpv/UGkcHHXtFb/TCI+A=; b=cw8V8PtZMJQ3X2uwayqj7q6Unl Z2KxxhMZBGzdpmThUADLXFwRj+rvVacHeRE6NKAj/x4DN9VuiWuPZbAdlglqGCmYf7pCPeA7i1WZ/ Simd99sIcYTNIi6aOqcOo0F9ipG2zVpw/7eCndcmg1rCXCMBbeS1DVtmpjCU0bWPmz3ZdU7BX/NUK 9xHXCxTJm4tLqIDRQR/Ro/WMEP7jn3IWl/DLG0VBF4m2SV3cESa9NpUK1Ko2ZYf7j7aAtyNSoZpb0 GyIjcgWmRW+5wZiipw/F1rnOULuU5q7Tke4IGbPfJDBuCdI+4+8GVaLm/eT7wY/cjaDp4VeolOjRd VsN4TmIA==; Received: from mail-ot1-f45.google.com ([209.85.210.45]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lep3X-006V9l-GM for linux-arm-kernel@lists.infradead.org; Fri, 07 May 2021 01:13:29 +0000 Received: by mail-ot1-f45.google.com with SMTP id q7-20020a9d57870000b02902a5c2bd8c17so6619696oth.5 for ; Thu, 06 May 2021 18:13:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6+SbgXWxY1gSEdIUiXJS8BiZpv/UGkcHHXtFb/TCI+A=; b=PK/YAvzGI2F5Z+nsdwqoDWXZ4NMTRv3NbJzvV3uIYHSWiMbe2gjGMxLPAZX/qFIMNA AB6v802AAS1FzCF0zM3ShYgdg1wSbJJkMj7SNTMY1aFMQNQ3uMyGnGUNkFI88oxcODjD 0+mWK5ZWSIb/2i64M6cnUJeAyx4FUDvTsZ2A/pWDNWD57jjcvNV/mnahKffzdn3pcvoK k19Dpq7AkJ3NGVk6Mw4DNFjFrgc7ZpRIkqsxQsXdglgzmn21Nr6xXjjkLsPhFMM8QUZe YIWdr06z6Y73PBZDagOiKmMOaOfFuBPCHPU/RCXo4OusxIf52NNK41zoD4sJ2G4rhZq0 SVPA== X-Gm-Message-State: AOAM531H3N4gZFU+ZyIidD/LMmOA03Rilssu0vOj1kY4qs26noDKZPbJ PzRNGJ/L0N1/N8bOD70jZg== X-Google-Smtp-Source: ABdhPJwprZcJkifPHv8l3JVb9xsBJ7fjNDgXUBwbZFhFrpcupUfUM5N35itbxcoRLv515J42Jwkdcg== X-Received: by 2002:a9d:5f0c:: with SMTP id f12mr6055681oti.258.1620350006471; Thu, 06 May 2021 18:13:26 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id v19sm920949otq.35.2021.05.06.18.13.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 18:13:25 -0700 (PDT) Received: (nullmailer pid 1125071 invoked by uid 1000); Fri, 07 May 2021 01:13:24 -0000 Date: Thu, 6 May 2021 20:13:24 -0500 From: Rob Herring To: Steven Lee Cc: Andrew Jeffery , Ulf Hansson , Joel Stanley , Adrian Hunter , Philipp Zabel , Ryan Chen , "moderated list:ASPEED SD/MMC DRIVER" , "moderated list:ASPEED SD/MMC DRIVER" , "open list:ASPEED SD/MMC DRIVER" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , Hongweiz@ami.com, ryan_chen@aspeedtech.com, chin-ting_kuo@aspeedtech.com Subject: Re: [PATCH v3 1/5] dt-bindings: mmc: sdhci-of-aspeed: Add an example for AST2600-A2 EVB Message-ID: <20210507011324.GA1119409@robh.at.kernel.org> References: <20210506100312.1638-1-steven_lee@aspeedtech.com> <20210506100312.1638-2-steven_lee@aspeedtech.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210506100312.1638-2-steven_lee@aspeedtech.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210506_181327_577114_467FFEFC X-CRM114-Status: GOOD ( 20.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 06, 2021 at 06:03:08PM +0800, Steven Lee wrote: > AST2600-A2 EVB has the reference design for enabling SD bus > power and toggling SD bus signal voltage by GPIO pins. > > In the reference design, GPIOV0 of AST2600-A2 EVB is connected to > power load switch that providing 3.3v to SD1 bus vdd. GPIOV1 is > connected to a 1.8v and a 3.3v power load switch that providing > signal voltage to > SD1 bus. > > If GPIOV0 is active high, SD1 bus is enabled. Otherwise, SD1 bus is > disabled. > If GPIOV1 is active high, 3.3v power load switch is enabled, SD1 > signal voltage is 3.3v. Otherwise, 1.8v power load switch will be > enabled, SD1 signal voltage becomes 1.8v. > > AST2600-A2 EVB also support toggling signal voltage for SD2 bus. > The design is the same as SD1 bus. It uses GPIOV2 as power-gpio and > GPIOV3 as power-switch-gpio. > > Signed-off-by: Steven Lee > --- > .../devicetree/bindings/mmc/aspeed,sdhci.yaml | 101 +++++++++++++++++- > 1 file changed, 97 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml b/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml > index 987b287f3bff..de7e61b3d37a 100644 > --- a/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml > +++ b/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml > @@ -45,10 +45,16 @@ patternProperties: > > properties: > compatible: > - enum: > - - aspeed,ast2400-sdhci > - - aspeed,ast2500-sdhci > - - aspeed,ast2600-sdhci > + oneOf: > + - items: > + - enum: > + - aspeed,ast2400-sdhci > + - aspeed,ast2500-sdhci > + - aspeed,ast2600-sdhci > + - items: > + - enum: > + - aspeed,ast2600-sdhci > + - const: sdhci Why are you adding 'sdhci'. That's not useful as a compatible given how many quirks different implementations have. > reg: > maxItems: 1 > description: The SDHCI registers > @@ -104,3 +110,90 @@ examples: > clocks = <&syscon ASPEED_CLK_SDIO>; > }; > }; > + > + - | Why do we need another example? > + #include > + #include > + #include > + #include > + vcc_sdhci0: regulator-vcc-sdhci0 { > + compatible = "regulator-fixed"; > + regulator-name = "SDHCI0 Vcc"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpios = <&gpio0 168 > + GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + vccq_sdhci0: regulator-vccq-sdhci0 { > + compatible = "regulator-gpio"; > + > + regulator-name = "SDHCI0 VccQ"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + gpios = <&gpio0 169 > + GPIO_ACTIVE_HIGH>; > + gpios-states = <1>; > + states = <3300000 1>, > + <1800000 0>; > + }; > + > + vcc_sdhci1: regulator-vcc-sdhci1 { > + compatible = "regulator-fixed"; > + > + regulator-name = "SDHCI1 Vcc"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpios = <&gpio0 170 > + GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + vccq_sdhci1: regulator-vccq-sdhci1 { > + compatible = "regulator-gpio"; > + > + regulator-name = "SDHCI1 VccQ"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + gpios = <&gpio0 171 > + GPIO_ACTIVE_HIGH>; > + gpios-states = <1>; > + states = <3300000 1>, > + <1800000 0>; > + }; > + > + sdc@1e740000 { > + compatible = "aspeed,ast2600-sd-controller"; > + reg = <0x1e740000 0x100>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0x1e740000 0x20000>; > + clocks = <&syscon ASPEED_CLK_GATE_SDCLK>; > + > + sdhci@1e740100 { > + compatible = "aspeed,ast2600-sdhci","sdhci"; > + reg = <0x100 0x100>; > + interrupts = ; > + sdhci,auto-cmd12; > + clocks = <&syscon ASPEED_CLK_SDIO>; > + vmmc-supply = <&vcc_sdhci0>; > + vqmmc-supply = <&vccq_sdhci0>; > + sd-uhs-sdr104; > + clk-phase-uhs-sdr104 = <180>, <180>; > + }; > + > + sdhci@1e740200 { > + compatible = "aspeed,ast2600-sdhci","sdhci"; > + reg = <0x200 0x100>; > + interrupts = ; > + sdhci,auto-cmd12; > + clocks = <&syscon ASPEED_CLK_SDIO>; > + vmmc-supply = <&vcc_sdhci1>; > + vqmmc-supply = <&vccq_sdhci1>; > + sd-uhs-sdr104; > + clk-phase-uhs-sdr104 = <0>, <0>; > + }; > + }; > + > +... > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel