From patchwork Fri Sep 2 15:10:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 113158 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C2E1BB6F81 for ; Sat, 3 Sep 2011 01:10:40 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752544Ab1IBPKj (ORCPT ); Fri, 2 Sep 2011 11:10:39 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:57540 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391Ab1IBPKi (ORCPT ); Fri, 2 Sep 2011 11:10:38 -0400 Received: by gwaa12 with SMTP id a12so1737251gwa.19 for ; Fri, 02 Sep 2011 08:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=RiqefxVzMjd1aYgknhg69dtDgi6jhkY96gj9yOzjc5g=; b=hYhqSL8+iCodctL70bumO35Sfu5HHxXRdkvH6gDsksd7Fdl3HIe+9bOEDMXJoPx8bS 6MPZ/PYGB5+Hc6fFLTxdEboqcztpd+2b9FJNLetN6zEuu26zG8wTYCfWNgaCDDAskXKl jTs5IkOWbJRZiEHBpeZPvsSVNFMcyAJ8q03nY= Received: by 10.91.72.9 with SMTP id z9mr952656agk.61.1314976237725; Fri, 02 Sep 2011 08:10:37 -0700 (PDT) Received: from rob-laptop.i.smooth-stone.com ([173.226.190.126]) by mx.google.com with ESMTPS id 8sm1073362anv.24.2011.09.02.08.10.35 (version=SSLv3 cipher=OTHER); Fri, 02 Sep 2011 08:10:36 -0700 (PDT) From: Rob Herring To: linux-ide@vger.kernel.org Cc: Rob Herring , Jeff Garzik , linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH] ahci: add DT binding for Calxeda AHCI controller Date: Fri, 2 Sep 2011 10:10:15 -0500 Message-Id: <1314976215-23902-1-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Rob Herring Add devicetree match table to ahci platform driver for Calxeda Highbank AHCI controller. Signed-off-by: Rob Herring Cc: Jeff Garzik Cc: linux-ide@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org Acked-by: Grant Likely --- .../devicetree/bindings/ata/calxeda-sata.txt | 17 +++++++++++++++++ drivers/ata/ahci_platform.c | 7 +++++++ 2 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/calxeda-sata.txt diff --git a/Documentation/devicetree/bindings/ata/calxeda-sata.txt b/Documentation/devicetree/bindings/ata/calxeda-sata.txt new file mode 100644 index 0000000..79caa56 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/calxeda-sata.txt @@ -0,0 +1,17 @@ +* Calxeda SATA Controller + +SATA nodes are defined to describe on-chip Serial ATA controllers. +Each SATA controller should have its own node. + +Required properties: +- compatible : compatible list, contains "calxeda,hb-ahci" +- interrupts : +- reg : + +Example: + sata@ffe08000 { + compatible = "calxeda,hb-ahci"; + reg = <0xffe08000 0x1000>; + interrupts = <115>; + }; + diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 6fef1fa..9bfc970 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -171,11 +171,18 @@ static int __devexit ahci_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ahci_of_match[] = { + { .compatible = "calxeda,hb-ahci", }, + {}, +}; +MODULE_DEVICE_TABLE(of, ahci_of_match); + static struct platform_driver ahci_driver = { .remove = __devexit_p(ahci_remove), .driver = { .name = "ahci", .owner = THIS_MODULE, + .of_match_table = ahci_of_match, }, };