From patchwork Thu Oct 18 21:09:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10648241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A080415E2 for ; Thu, 18 Oct 2018 21:09:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DE9928D69 for ; Thu, 18 Oct 2018 21:09:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F7D628D70; Thu, 18 Oct 2018 21:09:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27D9C28D69 for ; Thu, 18 Oct 2018 21:09:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727377AbeJSFMb (ORCPT ); Fri, 19 Oct 2018 01:12:31 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36609 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbeJSFMa (ORCPT ); Fri, 19 Oct 2018 01:12:30 -0400 Received: by mail-pf1-f193.google.com with SMTP id l81-v6so15450578pfg.3 for ; Thu, 18 Oct 2018 14:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=LINvzFDuuhqWw+WYY84avy4pEtkPi+NFOQH5uypQgPs=; b=NR86EbcJwPVNHJUKHMtlHiibfQOUVytAPPIwGCIsuvAQzXV1mIPdplWLL/x6QmXDZR hKgINUQxp3qHKO2RuLlqS7+Kne5RTsIf6VgyOZLHY0oe/CLSMtfOSCVDVLx1dfa46PcU PbKwbEdIFi02rnbmq8XuXTeATZiggw5vDszIA= 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=LINvzFDuuhqWw+WYY84avy4pEtkPi+NFOQH5uypQgPs=; b=O7NK828CEHTbRaemuUx/MMX3pNhkZcDSTUWeMlm6byz1gTAHOZnlZsubAmA61KAPPQ 1Re8t37Khil5W3uytiVbIN4fqqlEzPFKIkX+ejZCzJD8CLTCayZ8+DP+/NyMOfVJ9FTt vAz+qe/74PwGn8vEzrA4uKiIu8Z+aSFVz2pLgxz1k4anqYq8lxcxSgk/xbiI2dnubLu3 7ghxfZHmOYgt5VDgwaCS8uCmPjzffP67RiOWkdWw6m5Ewt5535nyyVxxogBBv8EI0HX9 UG3xkMjqNUmEV/rtcaK9JdVecpodICG2ZdhO1jZu0DFHIoj3CwMdt3fC4FQKePkCR1aM 0qyg== X-Gm-Message-State: ABuFfoie3ZNyrFH3CzWDcyvslhxEkQEtJB1V3WqJ2I9p956QUfll2nM2 xS0ydbhc2N2j1Z12NtNrBoUJjg== X-Google-Smtp-Source: ACcGV63bCN6HTdK3iLIfRzFGc7owRuTuGSFU6bvcRSsFHAv6Zj981FiugB/wykfeEB7j9X0nHz+eAA== X-Received: by 2002:a63:9c12:: with SMTP id f18-v6mr393354pge.40.1539896978619; Thu, 18 Oct 2018 14:09:38 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:e418:c825:76cf:5f64]) by smtp.gmail.com with ESMTPSA id i29-v6sm35133678pfj.82.2018.10.18.14.09.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Oct 2018 14:09:37 -0700 (PDT) From: Evan Green To: Rob Herring , Mark Rutland , Andy Gross , David Brown , Kishon Vijay Abraham I , Douglas Anderson , Manu Gautam , Can Guo , Vivek Gautam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, swboyd@chromium.org Cc: Evan Green Subject: [PATCH v2 0/5] arm64: dts: qcom: sdm845: Add UFS DT nodes Date: Thu, 18 Oct 2018 14:09:28 -0700 Message-Id: <20181018210933.113592-1-evgreen@chromium.org> X-Mailer: git-send-email 2.16.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series updates the device tree bindings for the QMP PHY to properly specify the registers for dual-lane PHYs. It then updates the driver to use those new registers. Then it adds the DT nodes for UFS on SDM845, and activates them on the MTP platform. Finally, it fixes up the USB3 PHY on SDM845, which is also a dual lane PHY. The DT binding change is needed because it was discovered that the UFS PHY driver was reaching beyond its register region, which only happened to work by virtue of the page size granularity. Changes since v1: - Added dt bindings change, corresponding driver fixup, and USB PHY fixup - Renamed ufsphy to phy (Vivek). - Removed #clock-cells (Vivek). This applies atop linux-next 20181018 with the addition of Doug's changes [1] and [2]. [1] https://lore.kernel.org/lkml/20181012213632.252346-1-dianders@chromium.org/ [2] https://lore.kernel.org/lkml/20181012213926.253765-1-dianders@chromium.org/ Can Guo (1): arm64: dts: qcom: sdm845: Add UFS nodes for sdm845-mtp Evan Green (4): dt-bindings: phy-qcom-qmp: Fix register underspecification phy: qcom-qmp: Utilize fully-specified DT registers arm64: dts: qcom: sdm845: add UFS controller arm64: dts: qcom: sdm845: Add USB PHY lane two .../devicetree/bindings/phy/qcom-qmp-phy.txt | 73 ++++++++++++++++++--- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 14 ++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 75 +++++++++++++++++++++- drivers/phy/qualcomm/phy-qcom-qmp.c | 51 +++++++++++---- 4 files changed, 190 insertions(+), 23 deletions(-)