Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3341528yba; Tue, 16 Apr 2019 09:23:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC9dzVj4LPJgErVfZpSKB1n/iysk+msjwFVWIOvGwJ+ggBQnsus5tRpef5wkof7NPevcPn X-Received: by 2002:a63:f218:: with SMTP id v24mr78939800pgh.326.1555431824467; Tue, 16 Apr 2019 09:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555431824; cv=none; d=google.com; s=arc-20160816; b=me+mLHk6Y44wTxNzovRXnbW2QsM9c3mtp6Fo8U6jBA0g5Z19JayGGIvSbjlAdmzenC S4lqGCcW3k61gN8B69B9RTMLn/H8aIZI5oVzTyjclnZRnoq7L/UYegoPwnt0Qv6zqhqS eWaZ79GpuiDN/W9IeafeQaMAAHvVI/sjYPBfr/V2aZRzPEXG5WrjtV5J4ah7IgxTpzRS wBErgUDDqifglDqFomscFXqMoLqI3HJ9/WFtg9hNzKWrac01rF6kGsZiJkrwuYx2mNOx zNzlJwC8QzJez2LHIWkIeGgTNxQG3jUX2YK20e3NBW/aigwuynYfnRTddYLR+vdpxqgm IK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=NPvt7sSc1zkwaIBM5xgspuUUhdwpA/3SPScemFlYhns=; b=hGNIVMIASjVqdhlOVmL+R9aLNTX9AkcwdlCaGmPZ98UUvx+dNwobccElHQLqxsZA4X o6lfF++nFyg+wTwezVgyJkYTl0Fw8BoYnHq1lfFpCxPizFH42rlOzrklEQ3BlDC4iwWu K6IP/pJVN8UXo/GUCKB4kVDkDStbPaWvok8uzeKX4VkFOZCmiRITx/42HVIRB32Mp93G LmTx3//Mu5EkjvZvvaeiwIdp2r7jUzfoPJSMhZ6Wh3gkLdCLiVDnM1NCMfzda6WYhyOs bwI2XMgq8cn9paJiT6m2AfixWu23+GhWgkWM21reU59ytY/nNYMOdACZ3EiLPJ8vQ2Ta ukjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jtONVZGF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si9945401plb.245.2019.04.16.09.23.28; Tue, 16 Apr 2019 09:23:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jtONVZGF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729957AbfDPQWc (ORCPT + 99 others); Tue, 16 Apr 2019 12:22:32 -0400 Received: from mail-qk1-f202.google.com ([209.85.222.202]:52786 "EHLO mail-qk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729936AbfDPQWb (ORCPT ); Tue, 16 Apr 2019 12:22:31 -0400 Received: by mail-qk1-f202.google.com with SMTP id x23so18304787qka.19 for ; Tue, 16 Apr 2019 09:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=NPvt7sSc1zkwaIBM5xgspuUUhdwpA/3SPScemFlYhns=; b=jtONVZGF4KZMsUVDVYcda4XXt6HI9EaWwWmnwfamxSnbgCRlY3WucXsN6EMdatspZE J4t1Sxd8Ptj70SNoEHyH0Fdlrqz8WaEq9BiYiWKNBAeWjKA8TlvLu5zM/W8Iu/rT33aI KmBSunX9M15SdKdBLiE3yvK+rb6qwbErHwYzW2P3ItZ+2+m63acWoeg0yAuWBkoiuif1 k/wmW10+1zdQCArjIh6ED0W1HthShY/wE0ksFsthJnOtVCQIL6KP0FMgKRVNCOXIvCde ebK96VjpH+6YhaTa0aXdXjvMWW8c7tkFaReVcQK98b5Zq2/iuCAMTrJGd3Ae0pLFs61A RuvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=NPvt7sSc1zkwaIBM5xgspuUUhdwpA/3SPScemFlYhns=; b=tVeQ03qWOeMsVjmzauMsSXgUd35ROQQylVVBuoIiWwsS5jIsrfO5nI7wX+QaIa9JwM 71pflhw/3rxFC+k/gnRbRwZHNrgYHQr14OE3Wt4snD49X7rH81pAPkfsRh40t6LdMOOo z16TWZllupVccyHQfVUi7IS/hpzSrWLLMwvsMCR7eFguLoxntDVqGlfNOQYYLsAWvz71 iZkmxlVfCSzGZq4x1Ap8IoyQd8Oud7dy4lwQYM9AalqS/xS1FWXo4e5WnLDUhzUfpHYl QGjI+/R4iNMG42SGA7g/Vr33bDSWE1o+miuETphaHElYvisfKS24hpSJkl6OgZWv7VKB SDvA== X-Gm-Message-State: APjAAAVeyWIogs0IZ7RanZwP13QpHgmgsQkTS3RmkMpRSJ7FZ7Rp5qMT /koxizFT/cKnKLY1SD9ogP9v0ak08IKA X-Received: by 2002:ac8:8d4:: with SMTP id y20mr66951267qth.13.1555431750915; Tue, 16 Apr 2019 09:22:30 -0700 (PDT) Date: Tue, 16 Apr 2019 09:21:51 -0700 In-Reply-To: <20190416162150.150154-1-venture@google.com> Message-Id: <20190416162150.150154-4-venture@google.com> Mime-Version: 1.0 References: <20190416162150.150154-1-venture@google.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog Subject: [PATCH 3/3] ARM: dts: aspeed: zaius: fixed I2C bus numbers for pcie slots From: Patrick Venture To: venture@google.com, robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, andrew@aj.id.au Cc: Robert Lippert , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robert Lippert The change to include ibm-power9-cfam.dtsi resulted in a renumbering of all of the I2C bus numbers behind the on-board muxes. This breaks some tools which have hardcoded the bus numbers. Add device tree aliases for the I2C buses routed through the PCIe slots so that they return to their former numbers before the cfam change. Signed-off-by: Robert Lippert Signed-off-by: Patrick Venture --- arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts index 51265af622574..c12f89e042efc 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts @@ -7,6 +7,14 @@ model = "Zaius BMC"; compatible = "ingrasys,zaius-bmc", "aspeed,ast2500"; + aliases { + i2c15 = &i2cpcie0; + i2c16 = &i2cpcie1; + i2c17 = &i2cpcie2; + i2c19 = &i2cpcie3; + i2c20 = &i2cpcie4; + }; + chosen { stdout-path = &uart5; bootargs = "console=ttyS4,115200 earlyprintk"; @@ -223,6 +231,27 @@ reg = <0x71>; #address-cells = <1>; #size-cells = <0>; + + i2cpcie0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + i2cpcie1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + i2cpcie2: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + i2ctpm: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; }; /* MUX1 PCA9546A @71h @@ -253,6 +282,17 @@ reg = <0x71>; #address-cells = <1>; #size-cells = <0>; + + i2cpcie3: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + i2cpcie4: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; }; /* MUX1 PCA9546A @71h -- 2.21.0.392.gf8f6787159e-goog