Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5684205pxj; Wed, 23 Jun 2021 06:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywqgwlYpuZ3fdVCSJSEaHNBioRRny6xCQhk89N+xQxyzNGsFgM1h9GZEWLbAWOMLUATV8t X-Received: by 2002:a6b:d61a:: with SMTP id w26mr7384737ioa.204.1624456460648; Wed, 23 Jun 2021 06:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624456460; cv=none; d=google.com; s=arc-20160816; b=JJNa0HTvTTQKVpjl3JPL08tRuXQj0KsxQPJscodPqlx7qCWzfcsOTLEbRMX3/LCwkL paF5eh7CHwuOkDCr9I1KN9Z/nU63SZSQFqPYPMyrlfE30JOQBycsFrdZSuBDzW+ywFfO 4wjOJvac/cvFQwy7xN2hBAeZU3OV61gQ0Xjz0KvuNl1QC7PTaUitNoau6L2QL5exJYu2 w1Y4kd1KgnHEAn5EwGHXQSFhrYMOaL4sCYTYntBj26IgCCBL2unGq+mRV+eBjWFkmMF0 tsr0nngfql701nrgfL9ztjgAuEPmLKW2+LPWTnHv8hcznexit+AnPE6dhcsmZA401ZJK +sug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=pKJo2zfQJAto+H7on6ydNnW2a5qzcSImZ5tu6Hz8SPs=; b=g2Yz6gVIzQx+OcNmRvwiGWakX4H5i1wHpPWqkL779mX1ONKjDdDCo5K5ntqhg3jPev UzFVU1+j7hKoJeTad54CdQ9+G0P6GtfkwxXWTOCstrv5sc89FtkhzKC+RylUVXH3Fx1w HAi+EkFv0SlSmw5Ho1e/8b3qC5dtLQL2nXpFnuVrG77leqRjJTXKf37iPzsKzDeCftnQ kKs0aAIIPGqb5z6AU8ei0POpe6atH1Jf0ZCZuEVFO6jR252imgFkIUmHn4NMFXs4jOeH crINhHSMYYk/UkVsF+JHmLSD/z9kh2CM//QDRGv6N0BUgXcWbxILZgG7ShaP1501oGom jRQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ax5amtes; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si6120331ilo.95.2021.06.23.06.54.08; Wed, 23 Jun 2021 06:54:20 -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=@gmail.com header.s=20161025 header.b=Ax5amtes; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230499AbhFWNzk (ORCPT + 99 others); Wed, 23 Jun 2021 09:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230243AbhFWNzj (ORCPT ); Wed, 23 Jun 2021 09:55:39 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 311ECC061574; Wed, 23 Jun 2021 06:53:21 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id u5-20020a7bc0450000b02901480e40338bso3273031wmc.1; Wed, 23 Jun 2021 06:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=pKJo2zfQJAto+H7on6ydNnW2a5qzcSImZ5tu6Hz8SPs=; b=Ax5amtes4QHAh5hFHrs1nlkfPyuUGwzzAv1QPZ+CsoH50Xgyw/7JKR+P+GtUWWaSgA LiGgeYD93qjaZ9qlcD8BQYq3AbD/B6XtbKuu+CLCzjyKzUbz5/GGDF/zoXXSwVVOGF1y UnJBK3s0JXaeEYup+j5MgnOxc5tg5IJ0VSPPiiXkxll3ptUcEABrWbKu+trMyHnvn5SI 7aqoE23wqwLp8KgTj4uV3ib+W7KRpVMDmKZeM95amRPuVRWF/NBuQDLqFYnaiJUq5dEu N3DNyMno4cj84YUSDj7vdOMlIswvYpmHq6E/6umWyWlzBabP5RLPpcbiwu3SEVLCwLp3 IWyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=pKJo2zfQJAto+H7on6ydNnW2a5qzcSImZ5tu6Hz8SPs=; b=mL4khqoFTMlQNOd6iLQYKaLlnXebrZJ7IVakhO4WeeAuEYtMBjnJKbKwJmq2x+1k18 gTmrCcK0kzzTzZ37mPPbJ7uzoBQw817HbZe2Z//+tQm0Y0Ng+Aau22rmynW6ZDqMrOgg 47D9qMUk4mP4g646UK+NgAUtI5wxtaRFiBf5TUipkhLHAWPlVsYEy/aXiqTFVfo+bNIG uVqPGIPv4U/harUQZYdCUg5cB+AGawiGtbyxr60GhUo0bgWx4lEp4S77MaqNuW0ptZtE DtRbL5Da614ojlANlSgxS38A7v4ojGFPUnTG6q32agnaG3XbYJwTfSswLg9gqUq6mj1a DWJw== X-Gm-Message-State: AOAM530ocVy48go1N3foKkHogpwMZ85vS+KPc5wrpqp71IHWBdO5yMr9 yd8Y9tEaBjnkaBiImDV3/A8CjfWLR6oc X-Received: by 2002:a05:600c:ada:: with SMTP id c26mr11165067wmr.189.1624456399786; Wed, 23 Jun 2021 06:53:19 -0700 (PDT) Received: from [192.168.200.247] (ip5b434b8b.dynamic.kabel-deutschland.de. [91.67.75.139]) by smtp.gmail.com with ESMTPSA id t82sm36707wmf.22.2021.06.23.06.53.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Jun 2021 06:53:19 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: rockchip: Add sdmmc_ext for RK3328 To: Johan Jonker , Heiko Stuebner Cc: Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210623120001.164920-1-knaerzche@gmail.com> From: Alex Bee Message-ID: Date: Wed, 23 Jun 2021 15:53:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Am 23.06.21 um 14:53 schrieb Johan Jonker: > Hi Alex, > > make ARCH=arm64 dtbs_check > DT_SCHEMA_FILES=Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml > > On 6/23/21 2:00 PM, Alex Bee wrote: >> RK3328 SoC has a fourth mmc controller called SDMMC_EXT. Some >> boards have sdio wifi connected to it. In order to use it >> one would have to add the pinctrls from sdmmc0ext group which >> is done on board level. >> >> While at that also add the reset controls for the other mmc >> controllers. >> >> Signed-off-by: Alex Bee >> --- >> arch/arm64/boot/dts/rockchip/rk3328.dtsi | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi >> index da84be6f4715..c13fa2f3f4cd 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi >> +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi >> @@ -858,6 +858,8 @@ sdmmc: mmc@ff500000 { >> clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; >> fifo-depth = <0x100>; >> max-frequency = <150000000>; >> + resets = <&cru SRST_MMC0>; >> + reset-names = "reset"; >> status = "disabled"; >> }; >> >> @@ -870,6 +872,8 @@ sdio: mmc@ff510000 { >> clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; >> fifo-depth = <0x100>; >> max-frequency = <150000000>; >> + resets = <&cru SRST_SDIO>; >> + reset-names = "reset"; >> status = "disabled"; >> }; >> >> @@ -882,6 +886,8 @@ emmc: mmc@ff520000 { >> clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; >> fifo-depth = <0x100>; >> max-frequency = <150000000>; >> + resets = <&cru SRST_EMMC>; >> + reset-names = "reset"; >> status = "disabled"; >> }; >> >> @@ -980,6 +986,20 @@ usb_host0_ohci: usb@ff5d0000 { >> status = "disabled"; >> }; >> >> + sdmmc_ext: dwmmc@ff5f0000 { > /arch/arm64/boot/dts/rockchip/rk3328-evb.dt.yaml: dwmmc@ff5f0000: > $nodename:0: 'dwmmc@ff5f0000' does not match '^mmc(@.*)?$' Argh: I submitted the pre-dtbs_check version. Thanks for checking. Alex. >> + compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc"; >> + reg = <0x0 0xff5f0000 0x0 0x4000>; >> + interrupts = ; >> + clocks = <&cru HCLK_SDMMC_EXT>, <&cru SCLK_SDMMC_EXT>, >> + <&cru SCLK_SDMMC_EXT_DRV>, <&cru SCLK_SDMMC_EXT_SAMPLE>; >> + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; >> + fifo-depth = <0x100>; >> + max-frequency = <150000000>; >> + resets = <&cru SRST_SDMMCEXT>; >> + reset-names = "reset"; >> + status = "disabled"; >> + }; >> + >> usbdrd3: usb@ff600000 { >> compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; >> reg = <0x0 0xff600000 0x0 0x100000>; >>