From patchwork Thu Sep 28 07:51:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 114396 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp434593qgf; Thu, 28 Sep 2017 00:52:41 -0700 (PDT) X-Received: by 10.99.47.68 with SMTP id v65mr3519280pgv.452.1506585161865; Thu, 28 Sep 2017 00:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506585161; cv=none; d=google.com; s=arc-20160816; b=oLVSWC0mIKYGBSG5LeDT/Y9goZagPdiONmzb2eUzK9y0QTeskGf4HmxEevTYByMRac DoSVwZSdTtreiSt2292GFF4298TyJEbBO/hP6q0HTDN0ET6wdF+kWyUeZ4Bdl+fV/FUZ J9hIcy0SWch/qXk0XHJF+Ph0ox+6oO5i/8HBTGiV4F1hhvnAwnGVxxEz0GAasB5RY1HU mZqfHPKBnMIUl7bsrwbztuJ5ub1HNcRlVeCinZHnQEOH4FyHMEkYI+4e8fxK58f5BOv9 P4EXtmqZISp2mFEYJSINkUMNwOaABHZAZfhlObJ5noY1w+lIbRun65y3xT8NS4uXIVd4 6wqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=jaeQrWbJE4elrsnCKVGNi2GfyPxDyzElevBHDeRUZZY=; b=KqDGaR5Uf4kwfPAajbs7XK5Rfu+L/vFuwOeme43xBJFsn6biKPQYwRpsL9g46lGnvs 5QtOQBS9664cncVkWDxbzZ8MYgSmwH2bsnCLVUHERqN8ydpLJxeKkypSNP5caqA8r2zV 687Ki+J3pHOMgk4UNIvF9btUhs6zlr6GZYNIJW44POoJtYCxRZGG2xWq3OYM42ZQw4xE MltM1aA3fkk0RwXBgaU9eKcCJwCtVS6LGhFln5Gz+UFnSEey5vKvyB3fe9vLTKvlUwvM z4rnl1RUceLVk+ECrkmYKjEJWGOF0BVXK3K4U6J24fkMg7GfB44jZpXicBKoDtsMWtRW lhzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Qm6Ye6/1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l66si895580pfc.14.2017.09.28.00.52.41; Thu, 28 Sep 2017 00:52:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Qm6Ye6/1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751954AbdI1Hwj (ORCPT + 6 others); Thu, 28 Sep 2017 03:52:39 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33646 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbdI1Hwh (ORCPT ); Thu, 28 Sep 2017 03:52:37 -0400 Received: by mail-pg0-f65.google.com with SMTP id u136so1077647pgc.0; Thu, 28 Sep 2017 00:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=oCF/6cLINt8YH46esJHJg+hCNYxW5NkS+JHkCIPVFmQ=; b=Qm6Ye6/1CZpahpxSKmJyx5MxWodjpNRSaXQF8gd0tvynguNwmVqe0Vk6lPrHp8aAOZ 7GkndbWJ0MtHb3OAMd0wEWsVegRLNvj3Lp53gMd5eMhRKVQHB73woPtUVzzM29TY5X/l AlYsvsxqxPYMrZULO+QXePqQLD1LUgu8oo9u/yNMLT4DJ6wwnKc1/G+q55c9RbGt1ywO S7IpRQcia9HGAXvN1rUzOKBDnpQw4KecKMjGkj+szlTRpAJgcGwkGKVnOFX2EsAv1Brt eJCqbEVDxzAiUP5iD+8GxBimveB8drZZYdzX+CXKIV6Icn3zdpK9ydosQYTVEiqHRIVC c/Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=oCF/6cLINt8YH46esJHJg+hCNYxW5NkS+JHkCIPVFmQ=; b=rSn1dOuh/1mnNGa/K7LJd5LrajaycSAsVQFB5uIjuIn7vuWuPL3GUQqgUAPDAQ1pUl F6wM9iOVEiIVEPHrjcZebJQ4HR2rBPTxtgS4nAaQ0XgSLp0URw+3GfoveDuPc1bwJf3Z GpnY4/IsYEgmls+KKmrhARYD5GzCEZKWOYstSg2mAtI/FrdnmnSyH7QYi2dBtnv834fv TL/T8GHwv775wLuoVlMOt0tiV9uWAVFH6+l2Q4W8C2HX3sXgZzI5T4dYh41zSdWuly9m r/XYw4yALeKIExl7nXjrDRintG/vkhtPedBhu+4Gob4WYVCiAJ1kVp99kjk1y7KB6JRZ SQOw== X-Gm-Message-State: AHPjjUhNUXLnIPY3zHEiu9DAA1EBS4jYTF+9Ga+9yjRBrMqI9gMOxKd8 LMUp16G2tafNWdF0JzvLAmY= X-Google-Smtp-Source: AOwi7QC7Vqe9TStluVDyWk+XdJBOyzNKu6LkhPOKV6NWx6uCDOqeiYzllrNOFxQA6dkxH3JwQv1amg== X-Received: by 10.98.82.71 with SMTP id g68mr3557156pfb.125.1506585157087; Thu, 28 Sep 2017 00:52:37 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id r22sm1825139pfe.78.2017.09.28.00.52.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Sep 2017 00:52:35 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 28 Sep 2017 17:22:28 +0930 From: Joel Stanley To: Joel Stanley , Rob Herring , Mark Rutland Cc: Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Jeffery , Rick Altherr , Brendan Higgins , =?utf-8?q?C=C3=A9dric_Le_?= =?utf-8?q?Goater?= , linux-aspeed@lists.ozlabs.org Subject: [PATCH 3/8] ARM: dts: aspeed: Add I2C buses Date: Thu, 28 Sep 2017 17:21:44 +0930 Message-Id: <20170928075149.8154-4-joel@jms.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170928075149.8154-1-joel@jms.id.au> References: <20170928075149.8154-1-joel@jms.id.au> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now with an upstream i2c bus driver, we can add the 14 i2c buses that exist in ASPEED G4 and G5 generation SoCs. It also adds aliases for the 14 built-in I2C busses to ensure userspace sees the numbering staring from zero and counting up. Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 256 +++++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/aspeed-g5.dtsi | 256 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 512 insertions(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Brendan Higgins Acked-by: Andrew Jeffery diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index a4579498fc25..f8611d5a6465 100644 --- a/arch/arm/boot/dts/aspeed-g4.dtsi +++ b/arch/arm/boot/dts/aspeed-g4.dtsi @@ -7,6 +7,23 @@ #size-cells = <1>; interrupt-parent = <&vic>; + aliases { + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; + i2c5 = &i2c5; + i2c6 = &i2c6; + i2c7 = &i2c7; + i2c8 = &i2c8; + i2c9 = &i2c9; + i2c10 = &i2c10; + i2c11 = &i2c11; + i2c12 = &i2c12; + i2c13 = &i2c13; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -235,10 +252,249 @@ no-loopback-test; status = "disabled"; }; + + i2c: i2c@1e78a000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x1e78a000 0x1000>; + }; }; }; }; +&i2c { + i2c_ic: interrupt-controller@0 { + #interrupt-cells = <1>; + compatible = "aspeed,ast2400-i2c-ic"; + reg = <0x0 0x40>; + interrupts = <12>; + interrupt-controller; + }; + + i2c0: i2c-bus@40 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x40 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <0>; + interrupt-parent = <&i2c_ic>; + status = "disabled"; + /* Does not need pinctrl properties */ + }; + + i2c1: i2c-bus@80 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x80 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <1>; + interrupt-parent = <&i2c_ic>; + status = "disabled"; + /* Does not need pinctrl properties */ + }; + + i2c2: i2c-bus@c0 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0xc0 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <2>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3_default>; + status = "disabled"; + }; + + i2c3: i2c-bus@100 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x100 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <3>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4_default>; + status = "disabled"; + }; + + i2c4: i2c-bus@140 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x140 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <4>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c5_default>; + status = "disabled"; + }; + + i2c5: i2c-bus@180 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x180 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <5>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c6_default>; + status = "disabled"; + }; + + i2c6: i2c-bus@1c0 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x1c0 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <6>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c7_default>; + status = "disabled"; + }; + + i2c7: i2c-bus@300 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x300 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <7>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c8_default>; + status = "disabled"; + }; + + i2c8: i2c-bus@340 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x340 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <8>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c9_default>; + status = "disabled"; + }; + + i2c9: i2c-bus@380 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x380 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <9>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c10_default>; + status = "disabled"; + }; + + i2c10: i2c-bus@3c0 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x3c0 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <10>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c11_default>; + status = "disabled"; + }; + + i2c11: i2c-bus@400 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x400 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <11>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c12_default>; + status = "disabled"; + }; + + i2c12: i2c-bus@440 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x440 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <12>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c13_default>; + status = "disabled"; + }; + + i2c13: i2c-bus@480 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x480 0x40>; + compatible = "aspeed,ast2400-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <13>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c14_default>; + status = "disabled"; + }; +}; + &pinctrl { pinctrl_acpi_default: acpi_default { function = "ACPI"; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index f6430b313f90..de127370131d 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -7,6 +7,23 @@ #size-cells = <1>; interrupt-parent = <&vic>; + aliases { + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; + i2c5 = &i2c5; + i2c6 = &i2c6; + i2c7 = &i2c7; + i2c8 = &i2c8; + i2c9 = &i2c9; + i2c10 = &i2c10; + i2c11 = &i2c11; + i2c12 = &i2c12; + i2c13 = &i2c13; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -315,10 +332,249 @@ no-loopback-test; status = "disabled"; }; + + i2c: i2c@1e78a000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x1e78a000 0x1000>; + }; }; }; }; +&i2c { + i2c_ic: interrupt-controller@0 { + #interrupt-cells = <1>; + compatible = "aspeed,ast2500-i2c-ic"; + reg = <0x0 0x40>; + interrupts = <12>; + interrupt-controller; + }; + + i2c0: i2c-bus@40 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x40 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <0>; + interrupt-parent = <&i2c_ic>; + status = "disabled"; + /* Does not need pinctrl properties */ + }; + + i2c1: i2c-bus@80 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x80 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <1>; + interrupt-parent = <&i2c_ic>; + status = "disabled"; + /* Does not need pinctrl properties */ + }; + + i2c2: i2c-bus@c0 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0xc0 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <2>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3_default>; + status = "disabled"; + }; + + i2c3: i2c-bus@100 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x100 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <3>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4_default>; + status = "disabled"; + }; + + i2c4: i2c-bus@140 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x140 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <4>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c5_default>; + status = "disabled"; + }; + + i2c5: i2c-bus@180 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x180 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <5>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c6_default>; + status = "disabled"; + }; + + i2c6: i2c-bus@1c0 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x1c0 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <6>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c7_default>; + status = "disabled"; + }; + + i2c7: i2c-bus@300 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x300 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <7>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c8_default>; + status = "disabled"; + }; + + i2c8: i2c-bus@340 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x340 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <8>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c9_default>; + status = "disabled"; + }; + + i2c9: i2c-bus@380 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x380 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <9>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c10_default>; + status = "disabled"; + }; + + i2c10: i2c-bus@3c0 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x3c0 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <10>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c11_default>; + status = "disabled"; + }; + + i2c11: i2c-bus@400 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x400 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <11>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c12_default>; + status = "disabled"; + }; + + i2c12: i2c-bus@440 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x440 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <12>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c13_default>; + status = "disabled"; + }; + + i2c13: i2c-bus@480 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + + reg = <0x480 0x40>; + compatible = "aspeed,ast2500-i2c-bus"; + clocks = <&clk_apb>; + bus-frequency = <100000>; + interrupts = <13>; + interrupt-parent = <&i2c_ic>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c14_default>; + status = "disabled"; + }; +}; + &pinctrl { pinctrl_acpi_default: acpi_default { function = "ACPI"; From patchwork Thu Sep 28 07:51:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 114397 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp434694qgf; Thu, 28 Sep 2017 00:52:50 -0700 (PDT) X-Received: by 10.98.158.26 with SMTP id s26mr3504992pfd.284.1506585170088; Thu, 28 Sep 2017 00:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506585170; cv=none; d=google.com; s=arc-20160816; b=upfPK9wRKPG0SXECpemNw6sFVizRIes5JOWVEFHJq86J16Tu9EEosOpuDXf8Y0ssnS PGzpLUwpBjP0XMKkwPhIbNy8roJrhL5SeD2PO93nCTB3D6XtCjSetrdqGdH/RjRrIv6f Z9/VuJMI+OSmTfUpv3HxZ6GFyRLuLdnv9nUWxg5jNUtRGcl4cDL6vAtXmsMTJjLdXFIU 1OvaTfDYBGlvLVAgPyVvm8jrqMdeQDaimd+Rr+AGo2Ece2D8NbbD76gr+9wgzANwEdIb l+ioA9YRhGgd4ceAB8cnlOtRkdGWxLDpRtLsMPP14Nmvo9jEKYavYLN4f+OZtV146j4S FxSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=KdRXjtGaXXPO4SRa756a4AJhztvQ/rPKdgqrQKa1Qak=; b=cXfpwm6VT391o7bSbNJxscam43OYYiGAz9RzI484Hrb9o/GJr7OptoWSbypRTcoQzs 4M5ssMgVwJkM4psAjUXWM2r03twuFFUFbL1dgkuh3nviVbQ3fMLmDoBiMtjs28Aa3l7+ WZ9WwMbC3EGLKMpDptN3ep08ZJ+tpxhjVtKGNsaaOCgdaa/JMUkDUVSsQL5KrqRdfg8Z /LlqlKQxWMldp3tUAAgD1eHIHfEgrAJ9Ib1FBOUHW0RwkPRzZg8azy/fy/vCEQ4PH61o CRSxnFCWzmZ1lF1xFNZYd+Y2pzqj/RMU2vzmmvKsmIWd0ZY1hNbcgKd1wlnvMYL3C35t yAJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fitJLvKT; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e62si875233pfa.483.2017.09.28.00.52.49; Thu, 28 Sep 2017 00:52:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fitJLvKT; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbdI1Hws (ORCPT + 6 others); Thu, 28 Sep 2017 03:52:48 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:37602 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbdI1Hwr (ORCPT ); Thu, 28 Sep 2017 03:52:47 -0400 Received: by mail-pf0-f193.google.com with SMTP id e69so788555pfg.4; Thu, 28 Sep 2017 00:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=076VnvmztmWoFybiFRef/VXY4M0105HHywz2cw2Ffkk=; b=fitJLvKTKycICXfmLOwKeAkK6vlZQmpOxN9yrCEPjMXUHLW5ybj26fx6ljxAEb8fK7 XzrCTj5g8L4BASeR76wiemQcFMZp5b1laW9giFztvKxfDg9Y9fBW02o62Y6EkVop/kEa zgFhVh8ctIUSVRJjswcQ3d0P0EqQNjgFde2vGhNeTGaugynAvP/0j7pmcDQjnFl/95+W jaYqQguyEf9RK3zqfo9t2js8mmK40Jk8E1aO+GvZNYPqPvQeuw4H0jVqtDzZEloeJJuF 3PU6CZqYCEuBxI/R8rEW2lHjEPKSOLrj/BNe4OJe8RxEm7D2ywX0nPbCwbnI3ZPlZUvV VtRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=076VnvmztmWoFybiFRef/VXY4M0105HHywz2cw2Ffkk=; b=II2ZBmuT/s/wSLlQ5gXKuybr5CA6iT56Pi3EvqOoTBs5SJshQmmoHpbquMjIzWAVFn rzNDAUhqvpccP6upAjQLbt1iKnc0NXHjv7F607fXePkTpme/DPDxTXQehTrBRvzUELWN WACWsh7QFq46kGDg/1VxoKK391+S1wjT5qd4p9qG277jLojFJq3dJ5sYQHj3zIcbRi9l GcmZE345ULqhntC3pcHjlDDUVpdlBupIRcYYW2y1Nk4PzkkAeCM/mbaH0X+CKRM1pv2Q gVEfVvrPh38UvN1NuFoPHgWqD+aRanQSbhEIDDu8yuQYHe/0Q44eA1vYAPwAU+qu181q rMuw== X-Gm-Message-State: AHPjjUhUQW0cHEDKFC5khHkc/65a6ji2Y7fCDE0Bfui64q2PfwBhUu/u q0JsR0GaidXgESStsPnIWtY= X-Google-Smtp-Source: AOwi7QDcG8jZ2mcOuY5afSdaEsE9qkXsRsD/4/FL/UWUUZwweQQuypXMydDz7Glw5CI5Yjn0ATIb8A== X-Received: by 10.99.160.100 with SMTP id u36mr3549577pgn.22.1506585166756; Thu, 28 Sep 2017 00:52:46 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id b68sm1764516pfk.23.2017.09.28.00.52.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Sep 2017 00:52:45 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 28 Sep 2017 17:22:37 +0930 From: Joel Stanley To: Joel Stanley , Rob Herring , Mark Rutland Cc: Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Jeffery , Rick Altherr , Brendan Higgins , =?utf-8?q?C=C3=A9dric_Le_?= =?utf-8?q?Goater?= , linux-aspeed@lists.ozlabs.org Subject: [PATCH 4/8] ARM: dts: aspeed-romulus: Add I2C devices Date: Thu, 28 Sep 2017 17:21:45 +0930 Message-Id: <20170928075149.8154-5-joel@jms.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170928075149.8154-1-joel@jms.id.au> References: <20170928075149.8154-1-joel@jms.id.au> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the buses that are in use and the devices that are attached. Currently that is just the battery backed RTC. Some of these buses are for hotplugged cards, such as PCIe cards. Others do not yet have upstream drivers, so there are no devices attached. Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Brendan Higgins diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts index 1190fec1b5d0..f79c1d21c47f 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts @@ -79,3 +79,57 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_rmii1_default>; }; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + /* PCIe slot 1 (x8) */ + status = "enabled"; +}; + +&i2c7 { + /* PCIe slot 2 (x16) */ + status = "enabled"; +}; + +&i2c8 { + /* PCIe slot 3 (x16) */ + status = "enabled"; +}; + +&i2c9 { + /* PCIe slot 4 (x16) */ + status = "enabled"; +}; + +&i2c10 { + /* PCIe slot 5 (x8) */ + status = "enabled"; +}; + +&i2c11 { + status = "okay"; + + rtc@32 { + compatible = "epson,rx8900"; + reg = <0x32>; + }; +}; + +&i2c12 { + status = "okay"; +};