From patchwork Thu Dec 6 23:31:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10717241 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 0D0C8109C for ; Thu, 6 Dec 2018 23:32:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFDBF2EF3E for ; Thu, 6 Dec 2018 23:32:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF3BA2EF53; Thu, 6 Dec 2018 23:32:16 +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 B62382EF3E for ; Thu, 6 Dec 2018 23:32:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726069AbeLFXcM (ORCPT ); Thu, 6 Dec 2018 18:32:12 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44050 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbeLFXcM (ORCPT ); Thu, 6 Dec 2018 18:32:12 -0500 Received: by mail-pf1-f194.google.com with SMTP id u6so929689pfh.11 for ; Thu, 06 Dec 2018 15:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=J+thtozG+VIwbvwMC4BGUpsaChxCrbkm//cZCBKZ+y0=; b=VqWlnJe+FJUR2hCcmJ7r/sh0nK82BTVFUsHG7i2Dn4ZaWwf7VIh+2na51vBJ/ND6+c 5QxLvcPgpBZm0fvcPM5VO4yL+RRdEc29QBzcTThWd/f0bh6bWlusYQt/i9hdZ24jqu0s ZI4u15DtdtgKgwX8Fa5PTsJLTkgzWyYY9VOJ0= 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=J+thtozG+VIwbvwMC4BGUpsaChxCrbkm//cZCBKZ+y0=; b=btTwHpL1/RDi/khg5u4VAfLzeFw9M+V8mba7zA28xa6R+ALS8sWAMXBSxr3UEQ2w4B 9wKBbWXrfkdQ6BQ5VJSZgzPOUedaKXRCL2/Z02DmpDDNBj6kBDBWYdSChqaSxsNAK/pj 3xhvv3wd3O+Ei72ZDJpRYmnCjSLjJKklp+nxmWdPSGKzxOGdHrVh71c4Th/9QKZlanhl ikR5q0zYwyMV0liEXdBTAGYeHL8g2By4IiuwPWW43uIAu9iL092OCNh76iOCcwsoQ24n y+yQmqmOK/byWkqrDMSRob+LPKZKNtB7IWhlo5m6BJMHACWw4zfMtt5dZQrKfBAGvS2d 7d+A== X-Gm-Message-State: AA+aEWackViqnxUuCh7xMYWs5Fi0XZeP7NChtq78NAHdDg89wdaejQni Hu0jFn5Wx08TMcNMb/K0DakZTA== X-Google-Smtp-Source: AFSGD/XE6iYik5lMWnowCo7JHhYSsApifeev+NAnOHPh/eJ90M/BBIlav6/sNlCx5STEPmqAat1UFQ== X-Received: by 2002:a63:451a:: with SMTP id s26mr26112759pga.150.1544139130812; Thu, 06 Dec 2018 15:32:10 -0800 (PST) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:ffda:7716:9afc:1301]) by smtp.gmail.com with ESMTPSA id s190sm2100875pfb.103.2018.12.06.15.32.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Dec 2018 15:32:10 -0800 (PST) From: Evan Green To: Rob Herring , Andy Gross , Kishon Vijay Abraham I Cc: Douglas Anderson , Stephen Boyd , Evan Green , devicetree@vger.kernel.org, Grygorii Strashko , linux-arm-msm@vger.kernel.org, Can Guo , linux-kernel@vger.kernel.org, Vivek Gautam , Manu Gautam , Rob Herring , David Brown , Mark Rutland Subject: [PATCH v6 0/5] arm64: dts: qcom: sdm845: Add UFS DT nodes Date: Thu, 6 Dec 2018 15:31:59 -0800 Message-Id: <20181206233205.193244-1-evgreen@chromium.org> X-Mailer: git-send-email 2.18.1 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 Update the device tree bindings for the QMP PHY to properly specify the registers for dual-lane PHYs. Update the driver to use those new registers. Add the DT nodes for UFS on SDM845 and MTP. Finally, fix up the USB3 PHY on SDM845, which also has a dual-lane phy Andy/Kishon, Just a heads up that these changes stack on top of each other, and if taken through separate trees might break things a little until they come back together. Changes in v6: - Removed resets and reset-names (Bjorn) - Renamed nodes (Bjorn) - Fix renamed nodes in MTP (Bjorn) Changes in v5: - Fix incorrect register value in example, copied from real life! Changes in v4: - Remove "status" from DT binding example (Rob) Changes in v3: - Removed erroneous fixup for USB UniPro PHY, which is not dual lane (Doug) Changes in v2: - Added dt bindings change, corresponding driver fixup, and USB PHY fixup - Renamed ufsphy to phy (Vivek) - Removed #clock-cells (Vivek) 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 | 70 ++++++++++++++++--- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 14 ++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 68 +++++++++++++++++- drivers/phy/qualcomm/phy-qcom-qmp.c | 51 ++++++++++---- 4 files changed, 181 insertions(+), 22 deletions(-)