From patchwork Mon Sep 11 06:30:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suniel Mahesh X-Patchwork-Id: 9946695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 441CC603F3 for ; Mon, 11 Sep 2017 06:31:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3678F28B0A for ; Mon, 11 Sep 2017 06:31:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B23C28B0C; Mon, 11 Sep 2017 06:31:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B509928B0A for ; Mon, 11 Sep 2017 06:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=HImu0Ie2FwZVrxBztYkUqBOyBls9DUJx6k2g7v3vgKg=; b=cJu A+G0oSARfNlsIxft+gWmO4i7nrUdszb3SsIyQLvtRda3HyDiXwAyxgj99waBkTUBxXGwGOaypVzG/ Z6H1F/YfvYD76zahAgvp1T8JOZPkdhjCiCrBZZYL3JiNPYvJ2SeJpuG1+B+SnWB8SL5q5mr/7JvxK mZamRd6V2Awf+kpRMzr6+mZSJ5prw9nUY64fPBeVl/X9HWdH9NOLdZnC3QKRSTmYdNpdkD4sdDCId wLJO4dTpMgf/uAXe5A+ic2fb3Yh9ciCFhsdlyEz56PaP+MY4U+wKOjSM7Lc5yY2AxVHGIdzwJzmqT ME3ZSpW9trIuhYAG6iVrTXqM4o8OE3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1drIFd-0000uD-0X; Mon, 11 Sep 2017 06:31:21 +0000 Received: from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1drIFZ-0000oW-Jl for linux-arm-kernel@lists.infradead.org; Mon, 11 Sep 2017 06:31:19 +0000 Received: by mail-io0-x244.google.com with SMTP id 93so2731659iol.4 for ; Sun, 10 Sep 2017 23:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=techveda-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=R7Ly7+xVbYrtRXLouK7EarUoZJHiMsrO8+o2dXNMoV4=; b=S8XFyd5QACe/CwaUXxqwXAbTYfZYocJyUNQE4/hJjhAHNLRKWLmtgTQk8CPCfrv7Fd koxFLnnRvzfO+iQ+txoPuaW77EZt8erCHjp/lANaWZ5bUyTFcThVMqAzaxIR3FGu/usF q8vfNAgJ2gqb2NkSWPoJKv41lKT3iMBns8vBbYKxtuf3GQ9E6fwzdTpILAST1ykDsYLq N7e6Fo5Bg4Nv3I9YT+aX02THyAXcQmNUXQaa5sOk+Gl4Nkw4+Z4OZCR0KC1XccEMjJl5 MsbWTAV+o0/X23ohUDhaM41qPNi3qPGjG1ebmZU/ONsCjNgzYVkScw+iN2hWdMVzPOQY Aq7g== 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=R7Ly7+xVbYrtRXLouK7EarUoZJHiMsrO8+o2dXNMoV4=; b=FRys4QuOOZdunxJJj9IChE0OLXJVCrLQhuMcqkyTi5G+8/xO0Kwx26oBmW5nY3IBVx g1BceRYJOpDgyZaFpN7JYz4dzHNbMlwRTMNgeXEqaIkv/UXisyItaIb7eN2XVv7ZyBdG PRgT1VoPXCa7/M5ErCaexfNj8WXO9mfajsO9kMrLebQb6p9LgaqAqO8zQRLMrrS/Oiv9 l1WmQfjJQR/5inX6YUHc5flO2ivGFtzVV40iNFTQmCCnhJalrxDr5lD/ehcTwd4WuJ7K zNuUycUt02vXUwBV9Ipf2dCoOAfHuZzBe1r0QoyZ+53kpcFOt5iebX7KxalaVu+o+4og GO4Q== X-Gm-Message-State: AHPjjUh4thDiyh2yM3xaiJD0cdTCtjmh4e9WksGlrLDQLZCjn3RDLA9e A73MmTKKZq5CnOcE X-Google-Smtp-Source: AOwi7QABImRI2Z5XUVg5sRP4x2E2GYuiVoH0lB3J6hjmjWRGHxz2NfXHr/FiyKthGfA8hM9S5aSzcg== X-Received: by 10.107.15.95 with SMTP id x92mr13608368ioi.37.1505111456202; Sun, 10 Sep 2017 23:30:56 -0700 (PDT) Received: from localhost.localdomain ([124.123.42.5]) by smtp.gmail.com with ESMTPSA id 185sm3863067iov.60.2017.09.10.23.30.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Sep 2017 23:30:54 -0700 (PDT) From: sunil.m@techveda.org To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [RESEND PATCH] arm: dts: am33xx: Add spi alias to match SOC schematics Date: Mon, 11 Sep 2017 12:00:16 +0530 Message-Id: <1505111416-21594-1-git-send-email-sunil.m@techveda.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170910_233117_712571_BA413949 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Karthik Tummala , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Suniel Mahesh , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Suniel Mahesh Linux bus numbers should match the numbers defined by the chip manufacturer. This patch add's spi aliases to acheive that bus naming convention. Signed-off-by: Suniel Mahesh Signed-off-by: Karthik Tummala Tested-by: Karthik Tummala --- Note: - Patch was compile tested and built(ARCH=arm) on next-20170911. - Patch was hardware tested on AM335x (McSPI controller) with spi flash chips. - No build/run-time issues reported. - At present bus numbers are represented as spi1 and spi2 in sysfs instead of spi0 and spi1, as defined in SOC schematics. - The commit: "spi: Pick spi bus number from Linux idr or spi alias" (SHA1:9b61e302210eba55768962f2f11e96bb508c2408) has introduced bus numbering which happens dynamically either via Linux IDR or spi alias for master drivers. - The commit: "spi: omap: Allocate bus number from spi framework" (SHA1:b590782afe0a99fca84f451252ed7e2d64b2f155) is now using spi framework to allocate bus numbers. --- arch/arm/boot/dts/am33xx.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 7d7ca05..e58fab8 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -36,6 +36,8 @@ phy1 = &usb1_phy; ethernet0 = &cpsw_emac0; ethernet1 = &cpsw_emac1; + spi0 = &spi0; + spi1 = &spi1; }; cpus {