Received: by 10.223.185.116 with SMTP id b49csp2126821wrg; Sun, 4 Mar 2018 19:15:29 -0800 (PST) X-Google-Smtp-Source: AG47ELu7BTtr3uIM/TvVQKhkZPCangYxlwOyOxbKifckmYgrn+zdWrJ68li2A7pgNDY9s0epiDIt X-Received: by 10.98.71.210 with SMTP id p79mr11762446pfi.47.1520219729459; Sun, 04 Mar 2018 19:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520219729; cv=none; d=google.com; s=arc-20160816; b=CKk85ujNPAhCUpp9DS6qnYeWjOTDi88O1ZTdJyqQFx2ditz+FR9vuSV+13pV1wyMQu 6LMoNDA+MFgbgt3mys7OIZ+fGhwMhVSqW/wkv1fJAOGO+BBp8QXcJircox9t5aA+HzJ3 wu/vE7XeY+U+EEzOPyGSnvx/nevczuXCr6nepJfhFu0HXu3BejIN/gVCcDwzkp57brw1 uB5RLWq/OOt59oBVlrfRe7rD653wnZrv3+DwIIHX6J3E/5K0tvWDcmE1HZnNcUUGzjPq 6FMjNDbU8PavBqM8pqt6csw4qzx/uy7zEAvf1rSrFjX12pomp0QLZ7r0rKHal+dDAIEn bJJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=SJgoQu0xkou/4v0F5ar7cM1b6fg8lxzz6I20vLSzfvA=; b=NPPis/l8UwElJBN6q1UAabOut9J/mbcMXUD8QGecI7r+u4d84R0L1A0Kabr1b2FEEC kxi4w9fb2xinPegKreYArWadsutS+j/mHJjYwBdZsxUFbtUrrulJbq6TS8W7/GSb8guY CXRb7/BjB7YgF/8va7c3RScCEY1mz/YmaekYQL389Xx5P2oO1rbRBO29VmFSjKomVn2Y E+Uwn0VlFgYkpigEq4597NBOV9DWZyyy0Sv/D2dNzqb02SNaFKceX+rzUeLf/Bji9DU4 ScPsUFN9eyByQeSvN34lbvxJSWRekTimWTkxfaU7o+wmmR1JNrWvj12KHnOpukigVboV aNKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fwU2CAek; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si8719862plu.426.2018.03.04.19.15.10; Sun, 04 Mar 2018 19:15:29 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=fwU2CAek; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932663AbeCECk5 (ORCPT + 99 others); Sun, 4 Mar 2018 21:40:57 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:41871 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752025AbeCECku (ORCPT ); Sun, 4 Mar 2018 21:40:50 -0500 Received: by mail-pl0-f67.google.com with SMTP id d9-v6so1381726plo.8 for ; Sun, 04 Mar 2018 18:40:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SJgoQu0xkou/4v0F5ar7cM1b6fg8lxzz6I20vLSzfvA=; b=fwU2CAeky3F4548wBoZ1mbJaMEKrthRHtHgbQcnVL4SfyPph06WkDpNZ9nLn7CtK7t /tkrHmMl3MOOt9m6Yri/MU6kEdXtuxembIkJAbaDp8dEgsM6JZhiyx9uTDeeaZkPKM8J vHd7/J2bTQo0TKzkGRJWVrtFrjehtFpeY/Gso= 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:in-reply-to :references; bh=SJgoQu0xkou/4v0F5ar7cM1b6fg8lxzz6I20vLSzfvA=; b=N1StMVoUXGJLjmtfdQpZcx3G8uTrZNVoGOF6OFZfpNv4PISwQvIiQ3SD0AGRB7SoOX kIUJ/RkOJEWix/cNH5K4g//WPUO9zuo2S6Ry8LWxJ4E++h08VyDCKSEDa2i1JgjM+NxR 8JapBUJ8oTOsHaBBcVsMD+G1VdPaB8828iqZPsAJJth8pIzO+PGh0czmQOumS5Gz5LkB IcVGz8GfIHten4sk1LMyw44KiPzxtYvT73WDsLypIAy9DlRTERirS088ZI2CEG2XR53P cnnoe4Rsd3Oi0PTwzyrED4LlEYKJ3nL/1sX2Mz8NjoRprxPA7+gfe+7UBrAU686aqhda dRnQ== X-Gm-Message-State: APf1xPCgKbAPhzeWacgz+HaY8BTkGD6NyQO9xv/tI9l4u+xCYieI2ZeE +c6AWWdualipckf965YSF1BldQ== X-Received: by 2002:a17:902:7284:: with SMTP id d4-v6mr9697170pll.296.1520217649760; Sun, 04 Mar 2018 18:40:49 -0800 (PST) Received: from localhost.localdomain ([104.237.91.63]) by smtp.gmail.com with ESMTPSA id a13sm19820247pgd.1.2018.03.04.18.40.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Mar 2018 18:40:48 -0800 (PST) From: Shawn Guo To: Kishon Vijay Abraham I Cc: Rob Herring , Jianguo Sun , Jiancheng Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengcheng Li , Shawn Guo Subject: [PATCH v4 1/2] dt-bindings: add bindings doc for HiSilicon INNO USB2 PHY Date: Mon, 5 Mar 2018 10:40:04 +0800 Message-Id: <1520217605-9312-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520217605-9312-1-git-send-email-shawn.guo@linaro.org> References: <1520217605-9312-1-git-send-email-shawn.guo@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pengcheng Li It adds device tree bindings document for HiSilicon INNO USB2 PHY. Signed-off-by: Pengcheng Li Signed-off-by: Jiancheng Xue Signed-off-by: Shawn Guo --- .../devicetree/bindings/phy/phy-hisi-inno-usb2.txt | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt diff --git a/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt b/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt new file mode 100644 index 000000000000..4dbf87c70b96 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-hisi-inno-usb2.txt @@ -0,0 +1,72 @@ +Device tree bindings for HiSilicon INNO USB2 PHY + +Required properties: +- compatible: Should be one of the following strings: + "hisilicon,inno-usb2-phy", + "hisilicon,hi3798cv200-usb2-phy". +- reg: Should be the address space for PHY configuration register in peripheral + controller, e.g. PERI_USB0 for USB 2.0 PHY01 on Hi3798CV200 SoC. +- clocks: The phandle and clock specifier pair for INNO USB2 PHY device + reference clock. +- resets: The phandle and reset specifier pair for INNO USB2 PHY device reset + signal. +- #address-cells: Must be 1. +- #size-cells: Must be 0. + +The INNO USB2 PHY device should be a child node of peripheral controller that +contains the PHY configuration register, and each device suppports up to 2 PHY +ports which are represented as child nodes of INNO USB2 PHY device. + +Required properties for PHY port node: +- reg: The PHY port instance number. +- #phy-cells: Defined by generic PHY bindings. Must be 0. +- resets: The phandle and reset specifier pair for PHY port reset signal. + +Refer to phy/phy-bindings.txt for the generic PHY binding properties + +Example: + +perictrl: peripheral-controller@8a20000 { + compatible = "hisilicon,hi3798cv200-perictrl", "syscon", + "simple-mfd"; + reg = <0x8a20000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x8a20000 0x1000>; + + usb2_phy1: usb2-phy@120 { + compatible = "hisilicon,hi3798cv200-usb2-phy"; + reg = <0x120 0x4>; + clocks = <&crg HISTB_USB2_PHY1_REF_CLK>; + resets = <&crg 0xbc 4>; + #address-cells = <1>; + #size-cells = <0>; + + usb2_phy1_port0: phy@0 { + reg = <0>; + #phy-cells = <0>; + resets = <&crg 0xbc 8>; + }; + + usb2_phy1_port1: phy@1 { + reg = <1>; + #phy-cells = <0>; + resets = <&crg 0xbc 9>; + }; + }; + + usb2_phy2: usb2-phy@124 { + compatible = "hisilicon,hi3798cv200-usb2-phy"; + reg = <0x124 0x4>; + clocks = <&crg HISTB_USB2_PHY2_REF_CLK>; + resets = <&crg 0xbc 6>; + #address-cells = <1>; + #size-cells = <0>; + + usb2_phy2_port0: phy@0 { + reg = <0>; + #phy-cells = <0>; + resets = <&crg 0xbc 10>; + }; + }; +}; -- 1.9.1