Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1511971ybi; Sun, 30 Jun 2019 17:49:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5NuIafAlN/YwoVGZH4xUb2IH7Yysi7qBe6GHCctYTcPve/qDCNyC/3P14w7sgrVBsrQq/ X-Received: by 2002:a17:90a:bb8a:: with SMTP id v10mr28029708pjr.78.1561942197448; Sun, 30 Jun 2019 17:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561942197; cv=none; d=google.com; s=arc-20160816; b=JxPGiGBzXzcnmQJg10RUre94tFCJPgBBQXeo5vzQkkatTJYWcusYsjxcinqp+sxis9 F0CvkWD10wx8X93E7IwNPvtU8eykv0nP5nmKjXexopMLTcv46CiBHL4p+gtlEtm0Kw3s WyqwAKb+CZplUNzoWL3ICQ6th6zFJMs0EIuYjk+uPu1caqbEKFhMKBMcvEtXNJcj3zZ1 ArrJMqHTrKK0r1kvlEDyguDQP8+GGW91kFCXVz16rS/xX9yJGWiOk7zBxrmHuxJ28OKH iX0fEVfcL8dOypa7OwdKmlLGGFhaeioj2JwSW3ascNmHA+iDUDtag7IXngPaasc0nw56 EflA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:cc:subject:date:to :from; bh=YJXaiyfP1Xyf9LQ639oOTeNrjbU2YUEdXKndYtEpPqA=; b=ioLT3DG3AXHODLlQCtf/q/+SdhO2dJCHGNKpvDNItTHEyRAnNVZQb3Qh1QX4R0up0n 3sucHRF7Q7FuL0Dkv6bDa+LnudZogbIWkmut09lJv8hEbBK+nk3O9W6E+3tMlBUDpOyl dWO9c/8cqZHzu1gZVhcP/kOhBzO6TwMOgkariF7Fq1IO4Lfi6wQ8mzWbPfooISPDwo8T udu/tmHgrHjeZKT2/b99S3fNcG5oHVNNfKy6VL796OlQsh0au9lSi/Mhh1MqaCYitdAe zlFd4WCq6DfTq9v/nDzt8atc/RNCyai/arnYo9Pg7AtKHFjpX/WAV4z/kZ/EDHyQ9XcN QflA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si8469318pgi.56.2019.06.30.17.49.41; Sun, 30 Jun 2019 17:49:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727114AbfGAAni (ORCPT + 99 others); Sun, 30 Jun 2019 20:43:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:53048 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726472AbfGAAni (ORCPT ); Sun, 30 Jun 2019 20:43:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2396EAE07; Mon, 1 Jul 2019 00:43:37 +0000 (UTC) From: NeilBrown To: Greg Kroah-Hartman Date: Mon, 01 Jul 2019 10:43:07 +1000 Subject: [PATCH 1/2] staging: mt7621-dts: update sdhci config. Cc: devel@driverdev.osuosl.org, lkml Message-ID: <156194178761.1430.1625105851941268306.stgit@noble.brown> In-Reply-To: <156194175140.1430.2478988354194078582.stgit@noble.brown> References: <156194175140.1430.2478988354194078582.stgit@noble.brown> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mtk-sd driver has been updated to support the IP in the mt7621, so update our configuration to work with it. Signed-off-by: NeilBrown --- drivers/staging/mt7621-dts/mt7621.dtsi | 41 +++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi index 9c90cac82efc..549ff5a0699e 100644 --- a/drivers/staging/mt7621-dts/mt7621.dtsi +++ b/drivers/staging/mt7621-dts/mt7621.dtsi @@ -43,6 +43,30 @@ clock-frequency = <220000000>; }; + mmc_clock: mmc_clock@0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <48000000>; + }; + + mmc_fixed_3v3: fixedregulator@0 { + compatible = "regulator-fixed"; + regulator-name = "mmc_power"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + regulator-always-on; + }; + + mmc_fixed_1v8_io: fixedregulator@1 { + compatible = "regulator-fixed"; + regulator-name = "mmc_io"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + enable-active-high; + regulator-always-on; + }; + palmbus: palmbus@1E000000 { compatible = "palmbus"; reg = <0x1E000000 0x100000>; @@ -299,9 +323,24 @@ sdhci: sdhci@1E130000 { status = "disabled"; - compatible = "ralink,mt7620-sdhci"; + compatible = "mediatek,mt7620-mmc"; reg = <0x1E130000 0x4000>; + bus-width = <4>; + max-frequency = <48000000>; + cap-sd-highspeed; + cap-mmc-highspeed; + vmmc-supply = <&mmc_fixed_3v3>; + vqmmc-supply = <&mmc_fixed_1v8_io>; + disable-wp; + + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&sdhci_pins>; + pinctrl-1 = <&sdhci_pins>; + + clocks = <&mmc_clock &mmc_clock>; + clock-names = "source", "hclk"; + interrupt-parent = <&gic>; interrupts = ; };