From patchwork Tue Jun 17 07:58:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4364881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2397E9F36A for ; Tue, 17 Jun 2014 08:01:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F300202F8 for ; Tue, 17 Jun 2014 08:00:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0BA120256 for ; Tue, 17 Jun 2014 08:00:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WwoHx-0004jW-Oo; Tue, 17 Jun 2014 07:58:41 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WwoHr-0004ez-Fd for linux-arm-kernel@lists.infradead.org; Tue, 17 Jun 2014 07:58:36 +0000 Received: by mail-pa0-f45.google.com with SMTP id rd3so4833135pab.4 for ; Tue, 17 Jun 2014 00:58:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GlPQLyRAXJ+L4taS+KN5qK7BbCXmFHJmSr7vxnFA6Xg=; b=Q0DgqdR0GqXABvC1BAXHqfN/epc55V+fhixeYZ3slNFkgD8GsFD2CSUneWk2vXaf97 rBG+3hcI2jQAo+uLcZmPeZqIoZlUwGrwr5p3Z8oST4yjCG3XZSuVT3U1eFeQRMl3vGz8 XIhaqbjxzAzjMurIikenS9eryT9LSMZCXbbK2lasbyiHxJLLltFBa1FB1Mi2YiKdF3QA IjWDasTdo0t8hMIbjCKLtZy2wAqiUEXST8cZkbxStUHusqMZ5o8X2XGuoc1dJZ8u7B5r eW3wcqa670DiKQTZGyG3f35MQyA8J8VlOkHJtphB7uhMVzzsJ8/4tfZXsquXm3nwsXGZ L5TA== X-Gm-Message-State: ALoCoQlEdQh8yTbSULVRLvXekIUSEh5BpmLV2eEhsbf+FyRLnmR//H63ZJWqjuzDCNQjQIfz6knX X-Received: by 10.66.131.39 with SMTP id oj7mr30411233pab.20.1402991894381; Tue, 17 Jun 2014 00:58:14 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id ox3sm22555577pbb.88.2014.06.17.00.58.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 00:58:13 -0700 (PDT) From: Zhangfei Gao To: Kishon Vijay Abraham I , arnd@arndb.de, mark.rutland@arm.com, haifeng.yan@linaro.org, jchxue@gmail.com, zhangfei.gao@linaro.org Subject: [PATCH 1/2] Documentation: Document Hisilicon hix5hd2 sata PHY Date: Tue, 17 Jun 2014 15:58:00 +0800 Message-Id: <1402991881-27676-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402991881-27676-1-git-send-email-zhangfei.gao@linaro.org> References: <1402991881-27676-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140617_005835_577546_B701D8D4 X-CRM114-Status: GOOD ( 10.59 ) X-Spam-Score: -0.7 (/) Cc: Jiancheng Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jiancheng Xue Add necessary binding documentation SATA PHY on Hisilicon hix5hd2 soc. Signed-off-by: Jiancheng Xue Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/phy/hix5hd2-sata-phy.txt | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/hix5hd2-sata-phy.txt diff --git a/Documentation/devicetree/bindings/phy/hix5hd2-sata-phy.txt b/Documentation/devicetree/bindings/phy/hix5hd2-sata-phy.txt new file mode 100644 index 0000000..ed15123 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/hix5hd2-sata-phy.txt @@ -0,0 +1,26 @@ +Hisilicon hix5hd2 SATA PHY +----------------------- + +Required properties: +- compatible: should be "hisilicon,hix5hd2-sata-phy" +- reg: offset and length of the PHY registers +- #phy-cells: must be 0 +Refer to phy/phy-bindings.txt for the generic PHY binding properties + +Optional Properties: +- hisilicon,peri-syscon: phandle of syscon used to control peripheral. +- hisilicon,power-reg: offset and bit number of the sata power supply register. + Only effective when hisilicon,peri-syscon is supplied. +- hisilicon,reg-init: one of more sets of 4 cells. The first cell + is the register offset address, the second cell is the start bit in register, + the third cell means the bit width, and the fourth cell is the value to set. + +Example: + sata_phy: phy@f9900000 { + compatible = "hisilicon,hix5hd2-sata-phy"; + reg = <0xf9900000 0x10000>; + #phy-cells = <0>; + hisilicon,peri-syscon = <&peri_ctrl>; + hisilicon,power-reg = <0x8 10>; + hisilicon,reg-init = <0x148 0 32 0x345cb8>,<0x14c 0 32 0x20545>; + };