Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp749315rdg; Thu, 12 Oct 2023 22:46:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcvQs6Ved2+HlFyFOu+WCFKUs6WEuKKUmjBCgUhqgTZ0jr4Hu6AhP0jqZBuhZwyvkS76Mq X-Received: by 2002:a17:90a:e286:b0:27d:886:e2d2 with SMTP id d6-20020a17090ae28600b0027d0886e2d2mr9735212pjz.7.1697175993059; Thu, 12 Oct 2023 22:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697175993; cv=none; d=google.com; s=arc-20160816; b=O0iB34Xb7eKOX6GlSSET3Vs+Onhk3RDdLNYtm4YkB7P7OBparE5in/lKLlC8rHKkre q2itsAji63DAD9SYmUDwmwx84NbOtZrFL7fPayj1Wi0qfyXmpk2f/avJMYT493i39llF ZgxoHVcagZK4cGWrWkhtb5gA09ZcwhcZ7L/8X1/HRRpSlQTjgtvy+0Fn6/Tivjbrmzn6 OS+Tpyo1f9rpx6BS3po1YEV1K2mu9uBo0/R+spz5F/uhkqf+xl7VGpd21tl/x1bRP4hP 3JuZrMiuJZD64mOa9NTuZbfrmvtumBVByPoYpjfVxfHdEUyGKQMus/eE8w2XTPMjUtUF nVIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OxZEgbxCg5FDJLZd0opb0NR1i2vaQaa75X9YgsS3o4g=; fh=3vT62+64D9wLbVBU5fKIiSte7LOPCwixPsSLw8rV3hU=; b=aaH6P4TAp9oPPfpawSC8gFv+F4zyfRFJc1al3MjOwQgtfMptbS3pgxbuRPIuVrwATT ANsJptyEzUf3j0AkxRxfRW8uXRI+YleQVNbAO4HjBef3JiG/IaDrT4EJL3hrzNE9QxrW dArolCIbXtda1LNGcGqlSVmYa8OUmYHGS/p1Bjhdn5Xt5jsClj84PWTRZKbuMW7+4YCY 0aGNwzyhiAeQeSCN3ZRRTg3wODJuApeFA5pm1tiQ5cQhCUfM2LrYs0qgb7pOPYcClqg0 H/8kFM9r73QbO+F0dGbrVhelzLDfxjoZT0nobQOHWcyLrfMU0zvyJuq2XDdFuX6IiXWo 6Mfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=fc2PHm0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id pq8-20020a17090b3d8800b0026829a94587si3654597pjb.176.2023.10.12.22.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 22:46:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=fc2PHm0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DA25C80FD8B7; Thu, 12 Oct 2023 22:46:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjJMFqG (ORCPT + 99 others); Fri, 13 Oct 2023 01:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjJMFqE (ORCPT ); Fri, 13 Oct 2023 01:46:04 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E1FC0 for ; Thu, 12 Oct 2023 22:45:59 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-53de8fc1ad8so2958066a12.0 for ; Thu, 12 Oct 2023 22:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1697175957; x=1697780757; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OxZEgbxCg5FDJLZd0opb0NR1i2vaQaa75X9YgsS3o4g=; b=fc2PHm0IL2c6Zhq39zqnqxfE8WqxyzCVBMBy6I9C0VQuIx5H5qIISsxvu0TSNcjIbX uNTqDzPMLgiboajiuQ8yf6oFWqFJgj2B7asTxI0nKYXQILVCX79M1xrtOx8YkFTguO0I 26W3Pecp6YCyq+zdWNbfn2QKoZH5cOHPC9aOwKkVlY19xgI3ftrB4p2levQhxhSlGV2F 5Ps7G90XLcHSArTX5iZufZf5MiT7E4gYO1ZYLvaIlrdLaxTnT8Lx998MGJ2maaPAa1A0 TcwDAzGDSXl9z92LeEwnXEOXG8bkKDghevgPsqM57qzBkbhpqKp1HcNLFDXmnqzaGS8P 12ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697175957; x=1697780757; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OxZEgbxCg5FDJLZd0opb0NR1i2vaQaa75X9YgsS3o4g=; b=Ox4c9ggr92/WWeAnF7mWGU2LxaIFNEs5e+OBSMxq1bMWQBBPGwivKFcGqSMsZJ+XmO 1Kw4bC1EEMS3HRMwFScifF/UQLVRxJShQdUXMJ71AL9jvEmLKc1Mg2KmbOyH+xuqcsis W7jqHnxL465g2LNQHlGTUQnCcASWjhXkDZJvkS5eYAWXhZfK2/WoxCMUOVJpi5hm/5Hy haejYqG4T1Lze5+Mgz6JtJkL7x3a2nENZYNEsVDRcLUqPVrCNYd4/57bcJ/a7MA+pBie yYxk6l6Z3c/uEnvOJRffO6n17fROaKniYWbPsS8Ku5FVzk/J46Phtqihopded7kwK1i1 wx/w== X-Gm-Message-State: AOJu0Yxbfdg2VwjjdnHszwdkZgwnU7BVNQdKFr+OmrhVKmQqos17sIWV rUcau5DEOV0Y47ZS82tVPVZGlw== X-Received: by 2002:a17:906:3086:b0:9b2:765b:273b with SMTP id 6-20020a170906308600b009b2765b273bmr25027063ejv.70.1697175957346; Thu, 12 Oct 2023 22:45:57 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.133]) by smtp.gmail.com with ESMTPSA id kt13-20020a170906aacd00b009a5f1d15644sm11761505ejb.119.2023.10.12.22.45.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 22:45:56 -0700 (PDT) Message-ID: Date: Fri, 13 Oct 2023 08:45:52 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/6] arm64: dts: renesas: rzg3s-smarc-som: Enable SDHI2 Content-Language: en-US To: Geert Uytterhoeven Cc: magnus.damm@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Claudiu Beznea References: <20231010132701.1658737-1-claudiu.beznea.uj@bp.renesas.com> <20231010132701.1658737-5-claudiu.beznea.uj@bp.renesas.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 12 Oct 2023 22:46:31 -0700 (PDT) Hi, Geert, Thanks for reviewing! On 12.10.2023 17:36, Geert Uytterhoeven wrote: > Hi Claudiu, > > Thanks for your patch! > > On Tue, Oct 10, 2023 at 3:27 PM Claudiu wrote: >> From: Claudiu Beznea >> >> Add SDHI2 to RZ/G3S Smarc SoM. SDHI2 pins are multiplexed with SCIF1, SSI3, > > SSI0 > >> IRQ0. The selection b/w SDHI2 and SCIF1, SSI3, IRQ0 is done with a switch > > and IRQ1 (twice). Or just say "The selection is done ...". > >> button. To be able to select b/w these a compilation flag has been added >> (SW_SD2_EN) at the moment being instantiated to select SDHI2. >> >> Signed-off-by: Claudiu Beznea > >> --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi >> +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi >> @@ -13,14 +13,21 @@ >> * @SW_SD0_DEV_SEL: >> * 0 - SD0 is connected to eMMC >> * 1 - SD0 is connected to uSD0 card >> + * @SW_SD2_EN: >> + * 0 - SCIF1, SSI3, IRQ0, IRQ1 connected to SoC > > SSI0 > >> + * 1 - SD2 is connected to SoC >> */ >> #define SW_SD0_DEV_SEL 1 >> +#define SW_SD2_EN 1 > >> @@ -100,6 +125,19 @@ &sdhi0 { >> }; >> #endif >> >> +#if SW_SD2_EN >> +&sdhi2 { >> + pinctrl-0 = <&sdhi2_pins>; >> + pinctrl-1 = <&sdhi2_pins>; >> + pinctrl-names = "default", "state_uhs"; > > Do you need two states if there is only a single voltage? > AFAIK, UHS needs 1.8V. I had the impression that driver needs them both anyway. I double checked now and it seems it is not the case. I'll update it in the next version. Thank you, Claudiu Beznea > >> + vmmc-supply = <&vcc_sdhi2>; >> + vqmmc-supply = <®_3p3v>; >> + bus-width = <4>; >> + max-frequency = <50000000>; >> + status = "okay"; >> +}; >> +#endif >> + >> &pinctrl { >> sdhi0_pins: sd0 { >> data { > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds