From patchwork Fri Jun 2 06:34:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9761679 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 8F585602BF for ; Fri, 2 Jun 2017 06:39:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8231C2856A for ; Fri, 2 Jun 2017 06:39:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 733BA2856F; Fri, 2 Jun 2017 06:39:04 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable 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 E83E32856A for ; Fri, 2 Jun 2017 06:39:03 +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:References: In-Reply-To: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:List-Owner; bh=vs2XIC6uryNLmQ4XmpFzl5EDmLW3m9DWiMkTahXj8D0=; b=MGmHRCzoDRxw4Mlhx+N8mL8t5W XG/BdHyvBwPfZmC/vBOl1ZDxJBgqLn6AbYKpDRVAh5mgsgBhx+c1n4RLt6hbmg9pQATatWHRemuNa kmrAGFmulSkZIT+efFP7hea4K0j+z4PyJ2Zmopa/BewTb5kL3Q+gzdq0g2t1mZcBkkh9y5JmXBKFD j6QJa6ppixe/Z8OjMbpXZZDfEs0Xa5/vBVoWLUpUnwVeuKItPfqBLlCY8oStNmTNozPaWaJBzJ7VL Z6wHrW1mYpv2prxjM6xGEoYuLOyOzgXR13TxftT4jwEiAwUsWUVDTxBhi6HEF4nuKNEDlZcjP5ULD V0AzlrgA==; 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 1dGgEh-0002od-1Z; Fri, 02 Jun 2017 06:39:03 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGgEf-0002l2-7G for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Jun 2017 06:39:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7qDK/+Tgteqln05aR+0tlst+oiCiQxSNewSZ7iNh5w4=; b=NJT5XnqSXj62op1uVORPCE2cy cIiSB8+2WPvUsfMbHHWJALokGx4nq77dcMSb2+3XXDPDCBQ5FKg8B+kt5TJQrkDrXmnJo4JfiH6zZ eCYo+0m1JRCRADf7+QbBb9456ifDdBS60ITtsi7EdZDxPIXZhHH3aCKP3pGf66wWk51aipR+/syzo apvSy+FB+aKda85mPUp7xZK1reTSG27s4yrOAJAVeV0OQSSpDz7/yYhRwaAdYwzL/QEEYvCOZi5Jd RVgrY78IJqk5q1qKSCnAsq8BSwlyofbfCWHaXnZ35CYMgjdzuq9vT41GBhHuNNIvFDoiLNTshHt1d gLrBpmGdQ==; Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGgCi-0002cI-Tl for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2017 06:37:02 +0000 Received: by mail-wm0-x231.google.com with SMTP id b84so13621393wmh.0 for ; Thu, 01 Jun 2017 23:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7qDK/+Tgteqln05aR+0tlst+oiCiQxSNewSZ7iNh5w4=; b=W3zQ9ZHwSvQr0ikOVMSnOChky5zoBBjElsGuuH73LIZjd29ayYADNLkqxEtD+b6CXH TbCTG6x9nZs8u5/kEAx+0nwC+oq7ZcIbObTY2UmmJJtvhqvA1At6krD6rR/EVG+BD9+J Oxfnx9ZVTC+CKJyybehAtIaTJIijznyPuwP40= 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=7qDK/+Tgteqln05aR+0tlst+oiCiQxSNewSZ7iNh5w4=; b=VFDxYEXdDpULk/5I3yq8nbDXJerkg6S5HzYRXa42Pk+If4pXBOPa2pyib1sMF/4af/ fmaWEQY9u6Li3kVX4Mx+7fK6alX09vCtAyHxklewAehNgz2KlP8mY+Yi0HRr3oVB2RRx Wsmbu2HOyFf7+9Fnsjxxp1O6tHkRcy9zSxUBKITFswifFMKXtlnRMboBakj4fnYfGF+E gqZcO2FqxmL2sH+/qxW+SuUhPArePq1rFI6HPY/lKSbD69GOe+n0MjEiUMvWTmL9t3I7 csJ2F7sQp7dxZAzMuVNpsfYAwb0dar/3Ez4wN5gp8dK+dXpUYQEbknspb/GoSKxuKcFs fg9g== X-Gm-Message-State: AODbwcBw2xiNAAyUQSJzZ/9Xht32uAg8dJn2+fKXcKjIEEq1YMq/BlgO 1aGea1W4ZmjY83us X-Received: by 10.28.157.14 with SMTP id g14mr1881897wme.114.1496385399467; Thu, 01 Jun 2017 23:36:39 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id p65sm1767170wmf.24.2017.06.01.23.36.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 23:36:39 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Subject: [PATCH v6 09/11] arm64: dts: Add I2C DT nodes for Stingray SoC Date: Fri, 2 Jun 2017 12:04:33 +0530 Message-Id: <1496385275-6899-10-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496385275-6899-1-git-send-email-anup.patel@broadcom.com> References: <1496385275-6899-1-git-send-email-anup.patel@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170602_073701_006642_DAADCC07 X-CRM114-Status: GOOD ( 11.39 ) 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, Florian Fainelli , Sandeep Tripathy , Scott Branden , Jon Mason , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Oza Pawandeep , Ray Jui , Srinath Mannam , linux-clk@vger.kernel.org, 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: Oza Pawandeep This patch adds I2C DT nodes on Stingray SoC. Signed-off-by: Oza Pawandeep Reviewed-by: Vikram Prakash Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../boot/dts/broadcom/stingray/bcm958742-base.dtsi | 22 ++++++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 20 ++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi index aad45a2..ff59a26 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -54,6 +54,28 @@ status = "okay"; }; +&i2c0 { + status = "okay"; + + pca9505: pca9505@20 { + compatible = "nxp,pca9505"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x20>; + }; +}; + +&i2c1 { + status = "okay"; + + pcf8574: pcf8574@20 { + compatible = "nxp,pcf8574a"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x27>; + }; +}; + &nand { status = "ok"; nandcs@0 { diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index e91debe..91ba61e 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -269,6 +269,16 @@ #include "stingray-pinctrl.dtsi" + i2c0: i2c@000b0000 { + compatible = "brcm,iproc-i2c"; + reg = <0x000b0000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clock-frequency = <100000>; + status = "disabled"; + }; + gpio_hsls: gpio@000d0000 { compatible = "brcm,iproc-gpio"; reg = <0x000d0000 0x864>; @@ -295,6 +305,16 @@ <&pinmux 151 91 4>; }; + i2c1: i2c@000e0000 { + compatible = "brcm,iproc-i2c"; + reg = <0x000e0000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clock-frequency = <100000>; + status = "disabled"; + }; + uart0: uart@00100000 { device_type = "serial"; compatible = "snps,dw-apb-uart";