Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp204790pxb; Fri, 15 Jan 2021 00:41:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhsgGTu+njDopryYzAC8pHl58gE/8ePJNzwZZTuGx+DMbftS2MaWqBf/MDA4FR2SJ+Ol71 X-Received: by 2002:a17:906:c09:: with SMTP id s9mr8074261ejf.539.1610700075974; Fri, 15 Jan 2021 00:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610700075; cv=none; d=google.com; s=arc-20160816; b=FkTpDh0yGvf1nViO2h6TdxT3OKj6PYcX5bDdPlNS4gcnHdolq5z8Sy7dVyZFh/Dro8 meFr5gON/c4gHiHN2d9/fyeGUXrbNp3WkFYiNQbfMvMb5LjGm2Y9Q+hhtzWK2h7O8cBG lyLJF+L+MhpwNgnKf9Ghjy4dzukq+XVLmyyFWbUJNUJYaNqOtfqXP+s1MYICKVyfN6i6 VGIHOHPqD4iJ0q76APYSNZICpj/2v846IDjqIIAbOh6DkkQ7I4jZthMEBp+rcfi9+IlL X8xn40ZLjOUMapbZ95KFgjTnkbjDJroqSM6yCga553F0Au+TzF+dAWjrLtUE0rh5xmLT uo5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=m3cu7YY/eNxyQb45/rsrpXDYAx8mxu2G4v5OxVWwgOY=; b=CnxAdmi+uNiGXpa8NmC3zSej95Zr0kwgJUNcjo1BiyM4KyE5E6pEWqdk3HhnYWmyig 8JgSfmxIR40tLkW/uEC7YyBe7q/dWVywvCU9Vo99TkDEzMfOpcm5q401ze512GUfJoC6 +LKYSiwkhqC7z3VjUHlY8xFrdcOdfrPrI9kSjdc2W5oQbmzqJtQ7gfhtgJe3tOA9ZneC 3I5QuC1R+BPIncDw7NrT2cVl+n3kFO6MRl40ctBrwZnX1fUxaaFNkoZdV8XYNDNIY3j5 6fW99tSdglfNONIUgXpzmU5E3ub2/yckum+ZvxpLs5jOD0LzU32VNtuh35qAwTC3fGvy e/CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DP3BxUiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si3663715edr.428.2021.01.15.00.40.52; Fri, 15 Jan 2021 00:41:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DP3BxUiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731693AbhAOHjM (ORCPT + 99 others); Fri, 15 Jan 2021 02:39:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731639AbhAOHjL (ORCPT ); Fri, 15 Jan 2021 02:39:11 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE13C0613CF; Thu, 14 Jan 2021 23:38:31 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id y22so9308786ljn.9; Thu, 14 Jan 2021 23:38:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m3cu7YY/eNxyQb45/rsrpXDYAx8mxu2G4v5OxVWwgOY=; b=DP3BxUiOkbp6jEYZ4Pczn/iLq8dB7vCdU+wbx32ThuzfbcK9Sr2Zb5Mg0mPX6prLvm 13sBk/pw4Wa+uHzXFzw7YXFfOD+cFwd6cN0lQlMKatejivttxoMnNK/wYacJW0JrnT8N u+6ZIyIiMGeUhhWSd5micAwjY2QkFMJYlpXMkFM9Tu6+R2eiTAIj83SaKcQ5JG7Ba+tX +qQyEezYMVy2hwblYBc9wRlwBuGh96vzZ7H+36uMYulKI7b5EF3Lx5imE1aYY23W0Zj6 cGawi0HoCtKGJ6LZ8bzAspQo+SAJVKuW5B4SvHkUOehgoUhlt12HHqPD3/8zzX4/SE3S uDfA== 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:mime-version :content-transfer-encoding; bh=m3cu7YY/eNxyQb45/rsrpXDYAx8mxu2G4v5OxVWwgOY=; b=SyTkuXMtqV8ZzMm3eU1yukNIXhewNCwyZqIw1a/fbZgD3gQGFOcD7yfppvpaOdSWus mveu9JzE8ycnhqcjdrPlKRuhmzUuqqUUHJPu+q24mKCzcQ/aAYdyJjxx/jHpdzj+n74W 2n+rRyf1IPFiWSeiyHxronxRwNnplX9RDhl9QBblStRNuO0o5LkBxKS//Lya/escFoaK qxnKfQ2YgqC3Bxy5Ufh1Ryfqoj7FZY/8H1WhPoNmSuAC7nrtKgyJ1MBopGHnK/8TL8fm viA11ztrAhNP7/d7xzW8c4U/XWtUnHWCeoVm1KrCCY6DmYHR3jpaKigdyZueLdq95N8S xpeQ== X-Gm-Message-State: AOAM532Wf5p8RlypU2QdwQdLNJGbL/bPsCBP8EgvhXfxXmTNhAqQYFJk pibzkLwYupfZP8eWjaaA9aQ= X-Received: by 2002:a2e:8602:: with SMTP id a2mr4556195lji.421.1610696308352; Thu, 14 Jan 2021 23:38:28 -0800 (PST) Received: from endpoint.lan ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id w9sm807559lfl.168.2021.01.14.23.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 23:38:27 -0800 (PST) From: Pawel Dembicki To: linuxppc-dev@lists.ozlabs.org Cc: Pawel Dembicki , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: dts: p2020rdb: add missing peripherials Date: Fri, 15 Jan 2021 08:37:58 +0100 Message-Id: <20210115073800.1072204-1-paweldembicki@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds dts entry for some peripherials: - i2c: temperature sensor ADT7461 - i2c: eeprom m24256 - i2c: eeprom at24c01 - i2c: pmic zl2006 - i2c: gpio expander - phy: reset pins for phy - dsa: switch vsc7385 It was required to adjust rgmii settings for enet0 because switch with dsa driver act different without 8081 sterring. Signed-off-by: Pawel Dembicki --- arch/powerpc/boot/dts/fsl/p2020rdb.dts | 73 ++++++++++++++++++++++++-- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/p2020rdb.dts b/arch/powerpc/boot/dts/fsl/p2020rdb.dts index 3acd3890b397..1f2ddeca0375 100644 --- a/arch/powerpc/boot/dts/fsl/p2020rdb.dts +++ b/arch/powerpc/boot/dts/fsl/p2020rdb.dts @@ -7,6 +7,9 @@ /include/ "p2020si-pre.dtsi" +#include +#include + / { model = "fsl,P2020RDB"; compatible = "fsl,P2020RDB"; @@ -131,22 +134,84 @@ partition@1100000 { L2switch@2,0 { #address-cells = <1>; #size-cells = <1>; - compatible = "vitesse-7385"; + compatible = "vitesse,vsc7385"; reg = <0x2 0x0 0x20000>; - }; + reset-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@1 { + reg = <1>; + label = "e1-sw-p1"; + }; + port@2 { + reg = <2>; + label = "e1-sw-p2"; + }; + port@3 { + reg = <3>; + label = "e1-sw-p3"; + }; + port@4 { + reg = <4>; + label = "e1-sw-p4"; + }; + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&enet0>; + phy-mode = "rgmii"; + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + }; }; soc: soc@ffe00000 { ranges = <0x0 0x0 0xffe00000 0x100000>; + gpio0: gpio-controller@fc00 { + }; + i2c@3000 { + temperature-sensor@4c { + compatible = "adi,adt7461"; + reg = <0x4c>; + }; + + eeprom@50 { + compatible = "atmel,24c256"; + reg = <0x50>; + }; rtc@68 { compatible = "dallas,ds1339"; reg = <0x68>; }; }; + i2c@3100 { + pmic@11 { + compatible = "zl2006"; + reg = <0x11>; + }; + + gpio@18 { + compatible = "nxp,pca9557"; + reg = <0x18>; + }; + + eeprom@52 { + compatible = "atmel,24c01"; + reg = <0x52>; + }; + }; + spi@7000 { flash@0 { #address-cells = <1>; @@ -200,10 +265,12 @@ mdio@24520 { phy0: ethernet-phy@0 { interrupts = <3 1 0 0>; reg = <0x0>; + reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; phy1: ethernet-phy@1 { interrupts = <3 1 0 0>; reg = <0x1>; + reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; tbi-phy@2 { device_type = "tbi-phy"; @@ -233,7 +300,7 @@ ptp_clock@24e00 { enet0: ethernet@24000 { fixed-link = <1 1 1000 0 0>; - phy-connection-type = "rgmii-id"; + phy-connection-type = "rgmii"; }; enet1: ethernet@25000 { -- 2.25.1