From patchwork Wed Oct 4 06:49:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 114748 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp5636386edb; Tue, 3 Oct 2017 23:50:32 -0700 (PDT) X-Received: by 10.84.176.131 with SMTP id v3mr6476605plb.208.1507099832524; Tue, 03 Oct 2017 23:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507099832; cv=none; d=google.com; s=arc-20160816; b=kvXvLVY31pdRxKK7ZbK5LB4dIiviVDRcRlelO5OStiYqjL3pzDRvDsYdQoiqe6XHJp OyejCvtetjw0RhTtgunBEOKt543FtlptqmNwbWMZIwZEAcDTvW6Fc4biEpfTvQXsoJy+ Urw5xRjomr+WgbfoXfzKTgbeOtQ6TAnal8Fwo3V/jNzOymoKx5zmpSAgMQd1eFHax5iu uOORQl/t3ELnp7QQOj/I7MhjnA+IULs20k1mFBluyntSv+Y5kp8VkdRtiWEAeOCNv/lz RfnjXyfB4SukrELv57D7mVpLhyxA7wq9M2WS+6bAkX7NjW/SLZLesYWwaieZa2fqF2CU h+5g== 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=60A2ZKOjqpBYHXubetBRShO7jGsii8FPAhu6zjFnaFs=; b=GA2iekVBezq6NeLX0vxvhnB4+nPtBppBE5gnjNUT8mTsqNp3kR3RJub2AaladSv0Ib XY6ZJCxLAAkGbWM1LpM0RlIXCePNtSufAfIY+OjJH2oi4DIROAvV46vam/2ko8hcUkLW rmQ60uh83xU1rUfLQBTiGUZxirZezTLDasTCQn8nZk2eKpdOKnorLjhsWLDaFOc1qD8t 6tZFr66T6rtvDmdyvREgWcFDzkiB3AxY2+G2x4VTmikt9gqyvsWOJAlkoHFez1a9O/DH RZpnFbPewEWTfHXT0Z3NGf+jRmMiZiJMlVOjYvDRIyC/GhytsW8/AUHYXq0LqiYQ3ckb fGeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Ik5Ugvpm; 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 r59si12032539plb.541.2017.10.03.23.50.32; Tue, 03 Oct 2017 23:50:32 -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=Ik5Ugvpm; 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 S1751665AbdJDGua (ORCPT + 6 others); Wed, 4 Oct 2017 02:50:30 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:32887 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751654AbdJDGu2 (ORCPT ); Wed, 4 Oct 2017 02:50:28 -0400 Received: by mail-pf0-f195.google.com with SMTP id m28so11405524pfi.0; Tue, 03 Oct 2017 23:50:28 -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=/6B6S4yjOw13OEU58U9t/9AnRt9qVopJpUqpkZXwsfs=; b=Ik5UgvpmKqXwfO98gJdy5glyFCQmstKOuh5x9RlfJK86uLhPClKGUTXtMoOgKyehqt YmWXRF+2MNBhBxPd7rz10RPkQG9TNZvX+4iwi7VscXzu8mfzxIF3DP24INF826iZartY onbnbZXFbMkLEuTJibWVDA236l2PI9QZjqIQ9kJ1FuSJ94T5BStc0aSwAAy9qq0sNBHV 8BdJWgrNt9eOqG8VXAvp477xWCO8liH0C+ugXAWDG62ujoPC10cx+pClE9UigadE56cR dTSC8s3a1NcJLreLCSPY05t1dpo7dnxRwoknjk7MKFMK0nwD8leq0CHWPRPPVxwNVayD ydoQ== 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=/6B6S4yjOw13OEU58U9t/9AnRt9qVopJpUqpkZXwsfs=; b=dPi4sHWQ9yb1NuKfZZRGJ7HALL3z2pVeFU57Dj9pmNjMR7cCR3OM4Q6O4RmB842RaW I3vaYLRH58bE+eauOM+FJeO5FqIikK9bl59tP/0zta84+yby8Sc+0qCcRvkDBLEKRiMi QxM0jSvOELnMdHku+0Af6AvPMA0zk1MGNEJqHRP3S1b+OCG/p9+SPnohrDOrGf/DlvnF RPUW9i02VsWEyxcPiRuCuBxmQ+2zV2cyk+P4Zwn4n9CKdIrTcT75pMcWvofTn5EVLQqR Gw5lFG+T+TGPgIoVnD/UhhQPMGU4ofI+91203fim8wVnraQEA/IRGE2T1krntcj1I9bC iklA== X-Gm-Message-State: AHPjjUhp2QdZjym1lkJrVay4Jm6vu6ET1lTAHXp+TMAF7lCFymmexlBn LsVah+dvic85Cnhal7QZlkY= X-Google-Smtp-Source: AOwi7QD2QTuka49KGnQc9vMxKmYTkFLeYltkACaS850QLk3FW69pvl/3JjVZwiGxlPfhVFSwbumidA== X-Received: by 10.99.191.75 with SMTP id i11mr17299878pgo.136.1507099828344; Tue, 03 Oct 2017 23:50:28 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id v41sm17686029pgn.44.2017.10.03.23.50.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2017 23:50:26 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 04 Oct 2017 17:20:19 +1030 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 v2 6/9] ARM: dts: aspeed-ast2500: Add I2C devices Date: Wed, 4 Oct 2017 17:19:14 +1030 Message-Id: <20171004064917.2498-7-joel@jms.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171004064917.2498-1-joel@jms.id.au> References: <20171004064917.2498-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 includes temperature measurement and EEPROM. Reviewed-by: Brendan Higgins Reviewed-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-ast2500-evb.dts | 19 +++++++++++++++++++ 1 file changed, 19 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 diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts b/arch/arm/boot/dts/aspeed-ast2500-evb.dts index 7c90dac99822..dc7d73b02b76 100644 --- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts +++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts @@ -59,3 +59,22 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; }; + +&i2c3 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c08"; + reg = <0x50>; + pagesize = <16>; + }; +}; + +&i2c7 { + status = "okay"; + + lm75@4d { + compatible = "national,lm75"; + reg = <0x4d>; + }; +}; From patchwork Wed Oct 4 06:49:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 114751 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp5636595edb; Tue, 3 Oct 2017 23:50:51 -0700 (PDT) X-Received: by 10.84.193.3 with SMTP id e3mr19121847pld.300.1507099851609; Tue, 03 Oct 2017 23:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507099851; cv=none; d=google.com; s=arc-20160816; b=jEyAHxt8TXn2CTdY1lD0AEEhGD90VDrgcOpohtvAUQyIneeMt9n9RuCKw6ka4z9ynm 4jAdC0RiU79PojQ1nPWpukm31T0vSchjTRwmtJXBmEZWHkFxKl55wIRwRRP71jq4Kt4J q55cR1A/8iT6LrimoaeVPwQHjiWByim1WtEDLcApPOstPRK993no8rCuUbHD2K/n7BHb xuxwSYuTLjQbwrrzCOPycdhi9ip+JhSug1KR9G4NYePDt5ZAaqJjWqfpyQOl8mD92B8q 1SOp23Cr8l1QKV1bedh4wB2WuNZZiFjJubdG7uCmwpT+bbSjcelEtAApMTdB82DCLPqO xQWA== 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=fwHngDr07UzBB09Zwv1K98raIyhNikYhcA5GJP5PWOk=; b=FJsP7onfBiQCtVYGLCfsx9R2a2dqvo6ftLnug6+yviDMY5SfaZiyddHQ73C1zukyDK tydhFQOtyXzWARO2V/37VquGCIFAcokNEC+1AekNE4hAPYejmLrrOUEkx4G8O57H7dHj QBcZP1y2HmoAF+R65JLHiYTIvPDz/JZ9UMQrZ2m/oMjdG8adymz2OdFhz9seVc2tXbc2 eHZwTOjhQG3aIrwxU7+75PZZFkabKsDcQbBlcsx5dUUavLbsTaRaYDyoyBgDOs+WwHi3 z+MfpJZe+1/VxHQwwHvBcafrVntYSJX7G3jljhQ7yYgqd+lSzbcaCHyOhiYUQ2burhSD a0Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=q++rKb8l; 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 g1si6907574pgn.147.2017.10.03.23.50.51; Tue, 03 Oct 2017 23:50:51 -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=q++rKb8l; 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 S1751776AbdJDGut (ORCPT + 6 others); Wed, 4 Oct 2017 02:50:49 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33339 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdJDGur (ORCPT ); Wed, 4 Oct 2017 02:50:47 -0400 Received: by mail-pg0-f65.google.com with SMTP id b11so3323737pgn.0; Tue, 03 Oct 2017 23:50: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=1NXNPKlpniBXBvc3eWHKGT4NjYAtc1t3KblBQ2zZFV0=; b=q++rKb8leEPIsiCRdlNqizuT0FYcIuvAi5Qi+jxFXcwA2II8UqkJMVdY0f7i0EHSnx YkNFJfTLyTpLDyG8vVcW4SZv7MWe76Di3WO4w4n0YdG85OcXxxILFllfsQVHuRoGA1n4 lsqKkdGNsK9mmjc1T0/4wPYKLhZFrcY8fKnID3MJHxag/P2y41KR/TMRI3t0sAt0IT/G bvga6hw3rYwf7nuPUWgRnalAxCrko+s4JEjbFj1IagbrI6DBTw8SQYCVLSz2hSMclqHN 3X9nJLPIAIDVdprudrrk27qqIyPkHKCPdGQlPZcMLwUIUHH6dkUCGiUZdRBTagLuee5Q ADWw== 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=1NXNPKlpniBXBvc3eWHKGT4NjYAtc1t3KblBQ2zZFV0=; b=eC8oJtYhMa3I1kZBKwoPxCagIVb1hVSbsNltuk1tBUaNg9FWvUfJN1bq1UqQPUJlPi nXpnwSACsq/9NPQuLCoAQdRVFlFdJfD8H0YpXXnZUHq1ve7ebiNRLjcfd9Nog159zYtg gJeRSx55/KVe01gXjGN1zFrIDpmmWnfKOe9XY1hzRvae4XE4O733DwW6h3JEgcR/nt2n QtJc9qthDgGZmUFO6EsCxT7hbiwin9+3h0C9xpy2tCGFnufty18rfxVCz02r7Vjz8S6h NTi6rCuM/hdcoGxCD1mmNs9U54nIixKqh7c+/t7gS21ygmDF7/TR9Bbe9RxaLDrgi2fW VLnA== X-Gm-Message-State: AHPjjUgLRmfgwbNILIvNVwUdax6FCaFiw48EAeYuLSLUqavvqLj1IGO7 rPxvxdPxAubFml5/48PbfqQ= X-Google-Smtp-Source: AOwi7QD5S9d+w7l2EPJ1ZZsV99Lbsa8v4eAThLDovmuiZSKvD51JcsVfG9PppW2wZY60icr8SdAlAg== X-Received: by 10.84.129.65 with SMTP id 59mr18930511plb.442.1507099847292; Tue, 03 Oct 2017 23:50:47 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id t19sm24567700pfa.73.2017.10.03.23.50.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2017 23:50:45 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 04 Oct 2017 17:20:38 +1030 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 v2 8/9] ARM: dts: aspeed: Correctly order UART nodes Date: Wed, 4 Oct 2017 17:19:16 +1030 Message-Id: <20171004064917.2498-9-joel@jms.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171004064917.2498-1-joel@jms.id.au> References: <20171004064917.2498-1-joel@jms.id.au> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Order them all by address. Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 48 +++++++++++++++---------------- arch/arm/boot/dts/aspeed-g5.dtsi | 61 ++++++++++++++++++++-------------------- 2 files changed, 54 insertions(+), 55 deletions(-) -- 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: Andrew Jeffery diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index a549413bda3f..4125e07f22f9 100644 --- a/arch/arm/boot/dts/aspeed-g4.dtsi +++ b/arch/arm/boot/dts/aspeed-g4.dtsi @@ -183,6 +183,27 @@ clock-names = "PCLK"; }; + uart1: serial@1e783000 { + compatible = "ns16550a"; + reg = <0x1e783000 0x1000>; + reg-shift = <2>; + interrupts = <9>; + clocks = <&clk_uart>; + no-loopback-test; + status = "disabled"; + }; + + uart5: serial@1e784000 { + compatible = "ns16550a"; + reg = <0x1e784000 0x1000>; + reg-shift = <2>; + interrupts = <10>; + clocks = <&clk_uart>; + current-speed = <38400>; + no-loopback-test; + status = "disabled"; + }; + wdt1: wdt@1e785000 { compatible = "aspeed,ast2400-wdt"; reg = <0x1e785000 0x1c>; @@ -197,11 +218,11 @@ status = "disabled"; }; - uart1: serial@1e783000 { + uart6: serial@1e787000 { compatible = "ns16550a"; - reg = <0x1e783000 0x1000>; + reg = <0x1e787000 0x1000>; reg-shift = <2>; - interrupts = <9>; + interrupts = <10>; clocks = <&clk_uart>; no-loopback-test; status = "disabled"; @@ -237,27 +258,6 @@ status = "disabled"; }; - uart5: serial@1e784000 { - compatible = "ns16550a"; - reg = <0x1e784000 0x1000>; - reg-shift = <2>; - interrupts = <10>; - clocks = <&clk_uart>; - current-speed = <38400>; - no-loopback-test; - status = "disabled"; - }; - - uart6: serial@1e787000 { - compatible = "ns16550a"; - reg = <0x1e787000 0x1000>; - reg-shift = <2>; - interrupts = <10>; - clocks = <&clk_uart>; - no-loopback-test; - status = "disabled"; - }; - i2c: i2c@1e78a000 { compatible = "simple-bus"; #address-cells = <1>; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index de2dafa71651..61cc2d25143a 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -227,6 +227,26 @@ clock-names = "PCLK"; }; + uart1: serial@1e783000 { + compatible = "ns16550a"; + reg = <0x1e783000 0x1000>; + reg-shift = <2>; + interrupts = <9>; + clocks = <&clk_uart>; + no-loopback-test; + status = "disabled"; + }; + + uart5: serial@1e784000 { + compatible = "ns16550a"; + reg = <0x1e784000 0x1000>; + reg-shift = <2>; + interrupts = <10>; + clocks = <&clk_uart>; + current-speed = <38400>; + no-loopback-test; + status = "disabled"; + }; wdt1: wdt@1e785000 { compatible = "aspeed,ast2500-wdt"; @@ -247,16 +267,6 @@ status = "disabled"; }; - uart1: serial@1e783000 { - compatible = "ns16550a"; - reg = <0x1e783000 0x1000>; - reg-shift = <2>; - interrupts = <9>; - clocks = <&clk_uart>; - no-loopback-test; - status = "disabled"; - }; - lpc: lpc@1e789000 { compatible = "aspeed,ast2500-lpc", "simple-mfd"; reg = <0x1e789000 0x1000>; @@ -287,6 +297,16 @@ }; }; + uart6: serial@1e787000 { + compatible = "ns16550a"; + reg = <0x1e787000 0x1000>; + reg-shift = <2>; + interrupts = <10>; + clocks = <&clk_uart>; + no-loopback-test; + status = "disabled"; + }; + uart2: serial@1e78d000 { compatible = "ns16550a"; reg = <0x1e78d000 0x1000>; @@ -317,27 +337,6 @@ status = "disabled"; }; - uart5: serial@1e784000 { - compatible = "ns16550a"; - reg = <0x1e784000 0x1000>; - reg-shift = <2>; - interrupts = <10>; - clocks = <&clk_uart>; - current-speed = <38400>; - no-loopback-test; - status = "disabled"; - }; - - uart6: serial@1e787000 { - compatible = "ns16550a"; - reg = <0x1e787000 0x1000>; - reg-shift = <2>; - interrupts = <10>; - clocks = <&clk_uart>; - no-loopback-test; - status = "disabled"; - }; - i2c: i2c@1e78a000 { compatible = "simple-bus"; #address-cells = <1>;