From patchwork Fri Oct 26 17:35:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 10657693 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 85C09109C for ; Fri, 26 Oct 2018 17:36:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D5E32C991 for ; Fri, 26 Oct 2018 17:36:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EC612CA89; Fri, 26 Oct 2018 17:36:00 +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 061F42C991 for ; Fri, 26 Oct 2018 17:36:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbeJ0CNw (ORCPT ); Fri, 26 Oct 2018 22:13:52 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40000 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbeJ0CNv (ORCPT ); Fri, 26 Oct 2018 22:13:51 -0400 Received: by mail-pf1-f195.google.com with SMTP id g21-v6so884439pfi.7 for ; Fri, 26 Oct 2018 10:35:58 -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=4NWRFN4cz+yL5BRB4m6RPmVKgri9C3X/yu85aJ7rb80=; b=dA+QkIdq3KUv9vS6P5R+LQCLmhEA0BT6oqa4TgQCEuFLI+KW2L0PtGuR7+/WW5msvy tHVG26mwhPdhvwj4vE9YU1RMzkm341MLvwg4f4tmPCn0dFYk7FyYRuPPIUrOPcf2qdX4 wDts6Hiq8YVh4ZCu7V5HC1Bw+Qhy0Gda5scck= 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=4NWRFN4cz+yL5BRB4m6RPmVKgri9C3X/yu85aJ7rb80=; b=tvQniobg6j0oNPpYT8KkoeWHZ36Zu/fhDJhBryUtANq3UXdz6ZQiF7rM5LUM6gr6/f oynFgSfjH8n7x15UNkD6GHx2r1uO14vdF19FnfSBpGdQzdkeH2s3uVpEoqyG9B+Wca7T LYRrXSf8e7FbVr78DFL1M5hiV8kUB40T+4e4ZIB7sAMXz4Aq/MxEruHMPA/Glzh5Wofr xi7+7PpACfbFJlfum3Kn3PaATcCVPzUvoB4byVlRipYOD3Y5hMHLCm4jR+z3ePNdlKsu 3NR/NVjN2wDRG0r8RBM4HbOluT9RVDsSHvFuHqTdMeHjDOBcc8MaHwurgitamVB1L4GJ otGQ== X-Gm-Message-State: AGRZ1gJE379Ge2VKKhcV1yyJBwFxw2HaRSAjAvDu4ctD8fkdi0ROkEx9 3BFvj1qNdA6MRRzkVU/UZZKa2w== X-Google-Smtp-Source: AJdET5erOL+ozhE7dpie8sMeJ3Yo9Aii6GbLz1+twJJK8CvKdi2f2ycueNkiRX5Uqsziy4PTBeth8w== X-Received: by 2002:a65:5103:: with SMTP id f3-v6mr4361049pgq.54.1540575358167; Fri, 26 Oct 2018 10:35:58 -0700 (PDT) Received: from evgreen2.mtv.corp.google.com ([2620:15c:202:201:e418:c825:76cf:5f64]) by smtp.gmail.com with ESMTPSA id b29-v6sm20164448pfj.183.2018.10.26.10.35.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Oct 2018 10:35:57 -0700 (PDT) From: Evan Green To: Rob Herring , Andy Gross , Kishon Vijay Abraham I Cc: Douglas Anderson , Stephen Boyd , Evan Green , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Can Guo , linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Vivek Gautam , Manu Gautam , David Brown , Mark Rutland , Rob Herring Subject: [PATCH v5 0/5] arm64: dts: qcom: sdm845: Add UFS DT nodes Date: Fri, 26 Oct 2018 10:35:39 -0700 Message-Id: <20181026173544.136037-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 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, I believe these changes are ready to go. 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 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 | 71 +++++++++++++++++++++- drivers/phy/qualcomm/phy-qcom-qmp.c | 51 ++++++++++++---- 4 files changed, 184 insertions(+), 22 deletions(-)