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: 989685 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="dA+QkIdq"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42hWPD568Hz9sLt for ; Sat, 27 Oct 2018 04:36:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727041AbeJ0CNw (ORCPT ); Fri, 26 Oct 2018 22:13:52 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42447 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbeJ0CNv (ORCPT ); Fri, 26 Oct 2018 22:13:51 -0400 Received: by mail-pg1-f194.google.com with SMTP id i4-v6so848276pgq.9 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=W/s+gr1iOVJQdFW9cgAkTOEchL/DIA30HoBCJgfMFJaYkXSW+bTMYsaCyI1ac0dFJO 5kp+wQjua6mg+Nd5yX4EjWgCt3PKfU2dvQBGf1s5icTLA2Z9jUeZHIaiHDPimDUrkXFE COww6xYzcPlxiXnsGWQ9f3AmU9ZyDnWHIi/lL77kzgSpbPzrkKGcA0aQyN0a4gwj+54h 1cGp7umAIMUEtqCikXiScGvvQ/kO9oWgZQxK3rQDf62Naid6VuxA3JgdBYl0lbh64UwH KGyRebees1DyZzYsxd7s1OoNv+rSpw92DGRb1Y7IIfCR1cZXapw6nLJPIzChivDt9hv1 wQnA== X-Gm-Message-State: AGRZ1gJtmQ6OSxyeW+ZUxNVGWqAquCKKqBEAoxdngdHWo75TqE8xyy27 1bYIgMNcRFVXTVvnnEcXhtVskw== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(-) Reviewed-by: Bjorn Andersson Reviewed-by: Bjorn Andersson