Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp664361imm; Wed, 18 Jul 2018 08:37:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcpIKmLFNlic+PZkFD1RCHayX/rXAyTIFzdX8mlVyfTcA0wC6HNSN2WqsMFQy0guJlNdBzb X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr6394595pld.205.1531928232783; Wed, 18 Jul 2018 08:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531928232; cv=none; d=google.com; s=arc-20160816; b=nxy0MdmjUcDueG7W2/gCdllD6tI4YxoSxW18dhWUSFAsffbTUoqnntWK3VW6yD1noi qjMeUb6kyuswFn4ezeDEqwpsaYjrVH8ykrVJ6Rp7tvbT4K383Jqv0/f+prdCP2NcltkZ 3bb27swH6GVg3BgIpDuw9LtII2FpXLYV/4nKQ0oIWpYbQ/CC/7INnHGi7MvW9iExWb/h lmOdz638KrGm0AMrtbIYG7EQ5+Cca3Nf4v/O0jwJe+Hxj+FbqIddUwu6CP9uXOy2rEjt vc7dnN1lsSwTh70jIm1noeBJBthc05//o5O8WRvbCyLfkEypk8PnGvzORZ/yKNj7RyI/ MSxA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=+euYpnY9E+pJQl4eU3CJx4PsaZZwxCaw3dYXgpSUowo=; b=H5tlKxbOb4d9geg79DwlrV7lDgouaP1zPJYxGf6QUj3+aT1W/R9x11cBcXvnWeazXR fDlqc7luH0Ge/x0cFoPbbrngdE+mqGJq2Z5xasDOqpIc+mkOSJQGFpEH/bQLhbJZkXFm E9PdKl0psop78nQFkV4E1JKepAOx2IJ3rx7Jcx++mHlmSIubY/ukSSIJ+Qr+Y+8XZWvj LhcwWgEcAxeBfXi3+p1V8BclgTqhc1LEJLjfeFgh5WEZVckvQRszlBbvvKqQUq/fSeWS iB/tWHv987KNfiQ1sC4t5ZLSRt+te3s5uaHLqNpDsOBmlf8IN6EDUvxeNQcQ+SI3hJMs doDQ== 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 98-v6si3211158pls.430.2018.07.18.08.36.57; Wed, 18 Jul 2018 08:37:12 -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 S1731420AbeGRQNv (ORCPT + 99 others); Wed, 18 Jul 2018 12:13:51 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:40834 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731087AbeGRQNv (ORCPT ); Wed, 18 Jul 2018 12:13:51 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7133C8C598C6; Wed, 18 Jul 2018 23:35:19 +0800 (CST) Received: from [127.0.0.1] (10.202.226.42) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.382.0; Wed, 18 Jul 2018 23:35:19 +0800 Subject: Re: [PATCH] arm64: dts: hikey960: Clean up MMC properties and move to proper file To: Ryan Grachek References: <20180618181008.21831-1-ryan@edited.us> CC: , Rob Herring , Mark Rutland , Catalin Marinas , "Will Deacon" , , , From: Wei Xu Message-ID: <5B4F5E30.1080208@hisilicon.com> Date: Wed, 18 Jul 2018 16:35:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20180618181008.21831-1-ryan@edited.us> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.42] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ryan, On 2018/6/18 19:10, Ryan Grachek wrote: > Certain properties should be moved to the board file to reflect > the specific properties of the board, and not the SoC. Move these > properties to proper location and organize properties in both files. > > Signed-off-by: Ryan Grachek Thanks! Applied to the hisilicon dt tree. Best Regards, Wei > --- > arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 27 ++++++++++++++++++----- > arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 27 +++++------------------ > 2 files changed, 27 insertions(+), 27 deletions(-) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > index abc991619c75..1c2a9a5d0477 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > @@ -602,20 +602,37 @@ > }; > > &dwmmc1 { > + bus-width = <0x4>; > + cap-sd-highspeed; > + sd-uhs-sdr12; > + sd-uhs-sdr25; > + sd-uhs-sdr50; > + sd-uhs-sdr104; > + disable-wp; > + cd-inverted; > + cd-gpios = <&gpio25 3 0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&sd_pmx_func > + &sd_clk_cfg_func > + &sd_cfg_func>; > vmmc-supply = <&ldo16>; > vqmmc-supply = <&ldo9>; > status = "okay"; > }; > > &dwmmc2 { /* WIFI */ > - broken-cd; > - /* WL_EN */ > - vmmc-supply = <&wlan_en>; > + bus-width = <0x4>; > non-removable; > + broken-cd; > + cap-sd-highspeed; > cap-power-off-card; > keep-power-in-suspend; > - #address-cells = <0x1>; > - #size-cells = <0x0>; > + pinctrl-names = "default"; > + pinctrl-0 = <&sdio_pmx_func > + &sdio_clk_cfg_func > + &sdio_cfg_func>; > + /* WL_EN */ > + vmmc-supply = <&wlan_en>; > status = "ok"; > > wlcore: wlcore@2 { > diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi > index 74c0509f99e9..fe4c9f321b70 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi > +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi > @@ -1114,15 +1114,10 @@ > > /* SD */ > dwmmc1: dwmmc1@ff37f000 { > - #address-cells = <1>; > - #size-cells = <0>; > - cd-inverted; > compatible = "hisilicon,hi3660-dw-mshc"; > - bus-width = <0x4>; > - disable-wp; > - cap-sd-highspeed; > - card-detect-delay = <200>; > reg = <0x0 0xff37f000 0x0 0x1000>; > + #address-cells = <1>; > + #size-cells = <0>; > interrupts = ; > clocks = <&crg_ctrl HI3660_CLK_GATE_SD>, > <&crg_ctrl HI3660_HCLK_GATE_SD>; > @@ -1130,16 +1125,8 @@ > clock-frequency = <3200000>; > resets = <&crg_rst 0x94 18>; > reset-names = "reset"; > - cd-gpios = <&gpio25 3 0>; > hisilicon,peripheral-syscon = <&sctrl>; > - pinctrl-names = "default"; > - pinctrl-0 = <&sd_pmx_func > - &sd_clk_cfg_func > - &sd_cfg_func>; > - sd-uhs-sdr12; > - sd-uhs-sdr25; > - sd-uhs-sdr50; > - sd-uhs-sdr104; > + card-detect-delay = <200>; > status = "disabled"; > }; > > @@ -1147,6 +1134,8 @@ > dwmmc2: dwmmc2@ff3ff000 { > compatible = "hisilicon,hi3660-dw-mshc"; > reg = <0x0 0xff3ff000 0x0 0x1000>; > + #address-cells = <0x1>; > + #size-cells = <0x0>; > interrupts = ; > clocks = <&crg_ctrl HI3660_CLK_GATE_SDIO0>, > <&crg_ctrl HI3660_HCLK_GATE_SDIO0>; > @@ -1154,12 +1143,6 @@ > resets = <&crg_rst 0x94 20>; > reset-names = "reset"; > card-detect-delay = <200>; > - cap-sd-highspeed; > - keep-power-in-suspend; > - pinctrl-names = "default"; > - pinctrl-0 = <&sdio_pmx_func > - &sdio_clk_cfg_func > - &sdio_cfg_func>; > status = "disabled"; > }; > >