Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp386045pxj; Fri, 7 May 2021 10:42:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsXl0FcVN7MneOtVhwXwZnmqE3+zrvhfCfYBahWp/KtZEAvHYN6mEIKtpq1J7o5xElW01y X-Received: by 2002:a17:906:3b13:: with SMTP id g19mr11309336ejf.238.1620409359239; Fri, 07 May 2021 10:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620409359; cv=none; d=google.com; s=arc-20160816; b=MkYo9oa1WRqggkGeBN3jTY9foJNe/ylmh13YLC2CQubuAJY/QyNT6i7Yc6PP9zhzcS /R6tMeiEGcN2N27Wc+XCMRTb59DK2F+cCEBXZFqNc83ut7nwa9yOuaZe/upt3q7xanRd G0qk81WOexyZtgVLJY+/57/Ei7QFSQhpv8ISw7bWBtEf1XktUNuHEDaIhKxzBZteIIHB aez8KRRgQAqMrTA/k6zghWvWYLLnplRjg+iV8r2UADSIj5DozW0tG9YeR8ZFypCSllae Eg0sGjxN6r8kkvVntYaG8kFQ9wHvbgjWQdfJkqZuS2jQg6g1CN/SC8qKL4hNu46aJNyu Kgew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3hHfFRXVR05JAoq2Q7/AeatbuJrf5jqg6H8ay+H7sy8=; b=JV4S9fnsmQEzFX5VKypPQs/xHLvmW/52YEz5yz9jkri6yvfCJ5wGVOW/iF2mND+bJ0 ukqgPJxHQm81fez7GDPLMHJfDCea3d3BGCm/dWVArOAj8nkJYbWyaM0HA2sEYwbvM+4s n2kvCRsZ7MqiN+DSGLmMXpzK4UNuhsp5hg0/nIloB9smCHsRWpDR9uujx4z6zHCf5vyf 8bmloTGDi+CDQyj0N1wlbZGNhUkyXyApppH9jk1wW8hU/BtfKxuW3qT5ANuCb48tQNXU XKKnVSKvxHswEkOuEGqSBcDJ1eo9SaELVj2QFz0+nqgKbm2oOmg4Jn5CZqG8WJ/LnimH Didw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMWuPbnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si7026610edd.474.2021.05.07.10.42.14; Fri, 07 May 2021 10:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMWuPbnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232425AbhEGRW7 (ORCPT + 99 others); Fri, 7 May 2021 13:22:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:50750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbhEGRW7 (ORCPT ); Fri, 7 May 2021 13:22:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D44C61468; Fri, 7 May 2021 17:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620408119; bh=tAp8HMPCWwh+NHuRDeCEmS0cp+aQxiTRacpv+7HZQaA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jMWuPbnOx6U5JZ6lRhEBYIFqNUnKAwzdc5WQfVuFRGqAC2rekeI9FxYRtfcVBjKuM 97WoLmGZ1f1xezdG2Mm7GDXQkdgtPie37cHlyxL9E/d3wzas81leEO2jGQJfrcrRhb KMnBTLrq4TULos6RHk2OFJ8hDdyR7n71XyrFno4m3EGZkyLY2UtBu6XtEZYVn/YFIs qSdkZX5JN5kVDZCJS+nczGgDSWspBE1R0IFRCuHst3zdUpb/WuylLIZmfWww8BVmvf gZmhsm6y0H/21HbZdM+/lpZu4oq+aFbW0Neda4grx0UZ4qNgcsshKrMsuDKlwCUkqe 3dlNkERzA9Iww== Received: by mail-ej1-f54.google.com with SMTP id zg3so14734578ejb.8; Fri, 07 May 2021 10:21:59 -0700 (PDT) X-Gm-Message-State: AOAM530dUcU8tJvGu6A6BR8DKMZbvx6yS9b7b8DE4zNzjlpO77kd/M8q 2b+oTGn9SCLkXhoY+XUMadMlALZx5iBxHvPcpw== X-Received: by 2002:a17:906:a0c6:: with SMTP id bh6mr11119997ejb.359.1620408117401; Fri, 07 May 2021 10:21:57 -0700 (PDT) MIME-Version: 1.0 References: <20210506100312.1638-1-steven_lee@aspeedtech.com> <20210506100312.1638-2-steven_lee@aspeedtech.com> <20210507011324.GA1119409@robh.at.kernel.org> <20210507031348.GA23749@aspeedtech.com> In-Reply-To: <20210507031348.GA23749@aspeedtech.com> From: Rob Herring Date: Fri, 7 May 2021 12:21:45 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/5] dt-bindings: mmc: sdhci-of-aspeed: Add an example for AST2600-A2 EVB 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 , Chin-Ting Kuo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 6, 2021 at 10:14 PM Steven Lee wrote: > > The 05/07/2021 09:13, Rob Herring wrote: > > 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. > > > > > > It is for passing the dtbs_check of the second example. > Without this definition, many device trees have the following > error: > > ['aspeed,ast2600-sdhci', 'sdhci'] is too long > Additional items are not allowed ('sdhci' was unexpected) I would probably fix the dts files then. Does anything depend on 'sdhci'? Rob