Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4225733imm; Mon, 18 Jun 2018 11:12:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKLNVMKXQK5UikfTUbW2aEaKmsaPPskdz4YiF6lPUazsx58zMbtz0u5nYUOV8iKDz0aiC6o X-Received: by 2002:a63:6e44:: with SMTP id j65-v6mr12178231pgc.14.1529345533479; Mon, 18 Jun 2018 11:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529345533; cv=none; d=google.com; s=arc-20160816; b=p1qQ4MNl2gp+mtA9o6GsKAnQungM1NU0bWL+SC7NvYr3WyPQc85JKCeA+MKYhaFkhL 8b8RbYQL8omAWn0VYeMMUjFxXnCjPaKd/nH4/xh3vCymMUGsFhW4oahhoCLgfl2N2puz lhjqqc/sn86mSwaZ7xTL7aV6eb61+j22Q4qfAK3hOQoEFtFV16mtNBlM92Ucwt8N5LZV d+2kXMlVCPW+fgMDTYobwqcah+GQmtbWkDETzKETwZJ+G4THGlEinwteNp7G5nuOLFja joTMTt9Udq28Cldy6qclujsPInx/VDp3xrVk28dxLwA8PFKVI4wXi1JC4PLYdjpQSsv3 8YcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature:arc-authentication-results; bh=JqrnX7gisdu8gqS3KN9VfZpqg6hrQYOdExt4OP21obg=; b=iHvQHZ3zcc1jaqV/DAvVr0Vk5OMRku8GyoI699KVP9v+/M3nGb2W2VqaDFVa/MXvjb 4SnqOGHEkJNp7mKemyUmpLJ5nRu3RawkeUbTkpeWWZvy2y2wh5nxYey6RSiW0StindA3 Au6sts4g2KkwkzvpFPGZaCDyvGM2P0y5AD90+fRVpkIzWWW6tbW8mQ4qP1OauVmBmdvG 6VPUhYtbC6Dj9e6EULCzIpBi1x0EokMbkQQDtgzAi8iLxh7ZIi6Dp0B9R8mj0xnR1t60 psZrmK6Hz0TSu5m2X6I1MVGaYsgHxmPgFdHrcmXExFxSGBWRIvHAph9/6qYEfbzbJofu vsEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@edited-us.20150623.gappssmtp.com header.s=20150623 header.b=qFEqbtax; 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 t9-v6si14962690pfg.199.2018.06.18.11.11.59; Mon, 18 Jun 2018 11:12:13 -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; dkim=fail header.i=@edited-us.20150623.gappssmtp.com header.s=20150623 header.b=qFEqbtax; 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 S935755AbeFRSK1 (ORCPT + 99 others); Mon, 18 Jun 2018 14:10:27 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:46979 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935537AbeFRSKZ (ORCPT ); Mon, 18 Jun 2018 14:10:25 -0400 Received: by mail-io0-f196.google.com with SMTP id d22-v6so17632122iof.13 for ; Mon, 18 Jun 2018 11:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edited-us.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=JqrnX7gisdu8gqS3KN9VfZpqg6hrQYOdExt4OP21obg=; b=qFEqbtax0CuchLwtgUuf6zCQIRTxPpuGPGXupxc8hYFoM9aaF3M1b+o4IB2F5xG4HZ 05RmsbIARKnV7mzGN8o5Wi6WkXW+4rxytenWClqzUa0Ye/nKcddNrVLo3inxI9z+KrF9 rln5xaUImnhhMkCyLPBXWUuVwrKHQrv8oa474rQGsEM38IStw6b75l8uTX24YdTTZXTu 36SIfZCWdF/+xH4VbjRNTS/7BPGnsGeKCXpTw7qysWgEMb0t6UXdLgllNzlnIR+w5jPk s94Yul2AQZP5BxaEJESQ4Y4rnoRfSKkm9Si24vw24arAEZNy4V/pEGmNjrWRhCyO5wlp vH7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JqrnX7gisdu8gqS3KN9VfZpqg6hrQYOdExt4OP21obg=; b=KgEtpquNop+A+uEu2T0HWADGdRSWSwwkogzDUa8IRBLkdw7V988ZymYY4Cu8hBn1c3 jwsJwNY6lT1DRiaECkpn+5PvWAAGheo512T/X0pxwK7crUm+s637khirf4m1WVwjMPYQ HqcRxtG6U43Z0MQbwn76lrL1WmXnzhZ0BxuNCNLm8ppF6lGKTDtVEeAoUiGtDFlzD2lj bR9mETEfXu8SNHgkITg9IbFAK3kgHydkQOKAVYCx2HnZ8Hg9+Sk2Q7f0CQa0CLWbqhPI USA2SZpsEjoRl75eYOoUIEg6iHKDjT2bRSz6ZQ4SY3D0Na9LuJoA0/gIr50/qYWR/GgG SiXA== X-Gm-Message-State: APt69E2Hp11OfGq8W1MrfhMVx6cS166jX4nONOW3JC/egHN71gT6sg32 w4ubWLKC0LBED6ZCIJQJO41qAQ== X-Received: by 2002:a6b:8dd8:: with SMTP id p207-v6mr11354089iod.303.1529345425008; Mon, 18 Jun 2018 11:10:25 -0700 (PDT) Received: from localhost.localdomain (ip-21-240-239-173.midwest.us.northamericancoax.com. [173.239.240.21]) by smtp.gmail.com with ESMTPSA id w124-v6sm4282751itb.3.2018.06.18.11.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 11:10:23 -0700 (PDT) From: Ryan Grachek Cc: john.stultz@linaro.org, Ryan Grachek , Wei Xu , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: hikey960: Clean up MMC properties and move to proper file Date: Mon, 18 Jun 2018 13:10:08 -0500 Message-Id: <20180618181008.21831-1-ryan@edited.us> X-Mailer: git-send-email 2.11.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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"; }; -- 2.11.0