From patchwork Wed Oct 16 12:06:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 3052321 Return-Path: X-Original-To: patchwork-linux-sh@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 B94F39F243 for ; Wed, 16 Oct 2013 12:06:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9822920250 for ; Wed, 16 Oct 2013 12:06:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 06BF020266 for ; Wed, 16 Oct 2013 12:06:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933953Ab3JPMGK (ORCPT ); Wed, 16 Oct 2013 08:06:10 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:52844 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934006Ab3JPMGH (ORCPT ); Wed, 16 Oct 2013 08:06:07 -0400 Received: by mail-la0-f48.google.com with SMTP id er20so468379lab.7 for ; Wed, 16 Oct 2013 05:06:05 -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=yWOeIOx4IAAIJJ1fuBYSojlO9E7ywO04VuUCPvTl+as=; b=j7SfHHrOnjG7/kex5f7wvQUOCrmTDbXt3BO9+2vlmsk3Lo0TOsQTbigzF5lkWjIuWR +scCOrUsXQ1PSduQB+NMIAb6EjS4HCrdHYzbdn6ialmL1f2+BBtupiAK8zYD2ab0cFHr x5Jiiz5y3hSsi7bklop7v06tmhft4RSWA+LNzlw89WQJxVC/uvZek19wpdG/vOk1Hoqz 8Dw++oM9wDCMV3E/PfcynC8uSvLowZQjQTzRPmlZqOKCabsUuolsQEXvnoZIQ+P0rMQ1 xzcDFFZ6iPRwi0Kx6MnEoFPRAUQ8YJkEgcj+uCBb+IvXk/SwYjIEUlNT9JS6hpCxeu4W lmtA== X-Gm-Message-State: ALoCoQnk8p4O9islDTTy8q4/Cg/0rFpVTUxm95+lZ559oPaoyRpnCyHXAIAx15AZge4x0cdNueAu X-Received: by 10.112.234.168 with SMTP id uf8mr1530667lbc.35.1381925165667; Wed, 16 Oct 2013 05:06:05 -0700 (PDT) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPSA id vx8sm50974518lbb.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 16 Oct 2013 05:06:04 -0700 (PDT) From: Valentine Barshak To: linux-sh@vger.kernel.org, linux-ide@vger.kernel.org, devicetree@vger.kernel.org Cc: Simon Horman , Magnus Damm , Vladimir Barinov , Sergei Shtylyov , Kuninori Morimoto , Laurent Pinchart , Guennadi Liakhovetski , Tejun Heo , Mark Rutland Subject: [PATCH 1/2] sata_rcar: Adjust and document device tree bindings Date: Wed, 16 Oct 2013 16:06:00 +0400 Message-Id: <1381925161-16729-2-git-send-email-valentine.barshak@cogentembedded.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1381925161-16729-1-git-send-email-valentine.barshak@cogentembedded.com> References: <1381925161-16729-1-git-send-email-valentine.barshak@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 This deprecates the "rcar-sata" compatibility string and adds the "sata-r8a7779" which complies to the preferred - format for SH-Mobile devices. The DT bindings are documented. Signed-off-by: Valentine Barshak --- Documentation/devicetree/bindings/ata/sata_rcar.txt | 15 +++++++++++++++ drivers/ata/sata_rcar.c | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/ata/sata_rcar.txt diff --git a/Documentation/devicetree/bindings/ata/sata_rcar.txt b/Documentation/devicetree/bindings/ata/sata_rcar.txt new file mode 100644 index 0000000..0719115 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/sata_rcar.txt @@ -0,0 +1,15 @@ +* Renesas R-Car SATA + +Required properties: +- compatible : should contain "renesas,sata-r8a7779"; +- reg : offset and length of the SATA registers; +- interrupts : must consist of one interrupt specifier. + +Example: + +sata: sata@fc600000 { + compatible = "renesas,sata-r8a7779"; + reg = <0xfc600000 0x2000>; + interrupt-parent = <&gic>; + interrupts = <0 100 0x4>; +}; diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index c2d95e9..a625cc5 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -893,7 +893,8 @@ static const struct dev_pm_ops sata_rcar_pm_ops = { #endif static struct of_device_id sata_rcar_match[] = { - { .compatible = "renesas,rcar-sata", }, + { .compatible = "renesas,rcar-sata", }, /* Deprecated */ + { .compatible = "renesas,sata-r8a7779", }, {}, }; MODULE_DEVICE_TABLE(of, sata_rcar_match);