Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2731947pxf; Sun, 14 Mar 2021 09:47:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdnEMGcdLNch3EOq+GAzlaM00qYIqgDq+spkRXT1jv9DOsHUicpaJ4IH/uiUwpu+3gQsXh X-Received: by 2002:aa7:d296:: with SMTP id w22mr26588463edq.150.1615740458791; Sun, 14 Mar 2021 09:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615740458; cv=none; d=google.com; s=arc-20160816; b=g+0sFUdbnoOejGBZGBLUZB6/5OxktZ4bRH7Y87hCMDnX1fsX+XgRl9CtEFVgEvUMQh CkMGMM1lp8J6eu9oBQanssGx2G3rDVKmx9QObdrSNkJwn9qpR2CEDSR70LjUkpPkd51M b6sivgqwql4ztQr8LDVoIZ/AjDy0KbZJMayO0Ql2emnVYqN5Nz6SR4RdCxyRQm0G+C/u IpLJTT7QoULyIBQ4Ebg58G+/CKqJXp4ps6NIyvR+flJMf23tRKGfh80+rJ2gixd98JHN Fv0V90KovmvClunaRhLbPFdN/lMzeJjCqFf/3pqTlJ5Wl1KIXBKGcRldJLv4INUQBptb Rwsw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1LwPJNHey6TlfpqTuGGKWZoIEHA5epaVYouL+1hTgHA=; b=KPhSWig1esa3uaueD2pPogroIO/68BetURSPbw0bbgGH/w1roh6PtFjUMSl7bkAux8 0HNgM7iiuZ0EXDi8eQkhqag1cNWw8beGWvN6XSBaUtbdIp8tq+ZhVEe+M2ixIZBRCsql EQpX68D/mXO4T3WO6gmX6d4wzORzFmkbuFMnZ/Q7Yztf0lqH7fEGE7HsqWVXImb/FOOL 1RqmavTaPKX50IAeYmj9QYdDoi+2fjzW2dTW8/qGdSM4GHqHlUklLw2QxUIlIASF+Vpm eKa+gg+PHxv6Gk0nr3qNgAqz/30H/OA3qps6zlfI2n8yaaPayGrW5BwbyfBAq5N/3R4B ruXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="f/NBtuzR"; 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 n14si8840058edo.179.2021.03.14.09.47.16; Sun, 14 Mar 2021 09:47:38 -0700 (PDT) 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="f/NBtuzR"; 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 S234804AbhCNQgG (ORCPT + 99 others); Sun, 14 Mar 2021 12:36:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233966AbhCNQev (ORCPT ); Sun, 14 Mar 2021 12:34:51 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E777C061764; Sun, 14 Mar 2021 09:34:51 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id e18so4488482wrt.6; Sun, 14 Mar 2021 09:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1LwPJNHey6TlfpqTuGGKWZoIEHA5epaVYouL+1hTgHA=; b=f/NBtuzRLKvyHA9Ma6zgc+8+O/sQt6w9/h3YzjWFz45KYpV/rJA4IKoLUIYTRc3nMb jdgQ5Njbn+kfyrwlCkxu5EexUMVcf8QXI3+AV4cy617ve7qle9R7qKzjKoUCX8Dm23N/ 78PVqpoWSFkBe/Zp3G9q4Ef2g6fOBqwX2REMGUkhNhYunPa9JiTaGD4ksem7yHbEUmb9 3eFGVSw1nU0Fps4X1FlzMlG/qUDTKEm6eqeK/CkFPGU2RUCMVlt1USjgvdBcBqnuc2Wl YD1EIR8qKabAHpW/eBzrM8nhLmQayJM/bAFwb4Bl90Hqxq+eYdnQz+IcMbyhxDiLopWx APqQ== 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:mime-version:content-transfer-encoding; bh=1LwPJNHey6TlfpqTuGGKWZoIEHA5epaVYouL+1hTgHA=; b=nmSIULI+8VZp7YBjR5H+raNOtxsfKO2m6tSP91eP4TfJUJw4I59V6gI+tc4Kc4BVj3 AiDOxLwlwHrviqbHkxMgjnpV4PCqzOudsa0SibBMnJiILIi/XyPX78KECUup21JbfQ4b 3owF2kddL24CLekIR73BzB0ymP8MYrcAZXlJO8Wd85IHKoGa/rN5wVwjGMXgZuaVX5rh ftmK7lrsEIU3PPqcvX+JBNcDm45qBNv6Qcn+UHY7gix6PwftaIyib7RtuLgHAZMknzD1 v3wYUQbCWM3DMw5s6iMiSKT/1lzsSMAMQ1vDuXv2mozGNG97e1R+2UYpuoLLFZ/2NQIb rj/Q== X-Gm-Message-State: AOAM531FpOVQrgThpXb6RbQ+IlHbGF7Ke0Pd9Fm41+XK5rDIjqAfq/1S qKxl+M0nrd/PUhWuRQVrpKE= X-Received: by 2002:a5d:628c:: with SMTP id k12mr22988167wru.316.1615739689860; Sun, 14 Mar 2021 09:34:49 -0700 (PDT) Received: from skynet.lan ([80.31.204.166]) by smtp.gmail.com with ESMTPSA id h62sm10547804wmf.37.2021.03.14.09.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 09:34:49 -0700 (PDT) From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= To: Florian Fainelli , Rob Herring , Thomas Bogendoerfer , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paul Burton , Jonas Gorski , bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Subject: [PATCH 2/5] mips: bmips: bcm6328: populate device tree nodes Date: Sun, 14 Mar 2021 17:34:42 +0100 Message-Id: <20210314163445.6976-3-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210314163445.6976-1-noltari@gmail.com> References: <20210314163445.6976-1-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Rename periph_clk to periph_osc. - Rename clkctl to periph_clk. - Move syscon-reboot to subnode. - Add hsspi-osc clock. - Add watchdog. - Add HS SPI controller. - Add NAND controller. - Add USBH PHY. Signed-off-by: Álvaro Fernández Rojas --- arch/mips/boot/dts/brcm/bcm6328.dtsi | 119 +++++++++++++++++++++++---- 1 file changed, 105 insertions(+), 14 deletions(-) diff --git a/arch/mips/boot/dts/brcm/bcm6328.dtsi b/arch/mips/boot/dts/brcm/bcm6328.dtsi index fe93f2692281..634618d4377e 100644 --- a/arch/mips/boot/dts/brcm/bcm6328.dtsi +++ b/arch/mips/boot/dts/brcm/bcm6328.dtsi @@ -29,16 +29,26 @@ }; clocks { - periph_clk: periph-clk { + periph_osc: periph-osc { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <50000000>; + clock-output-names = "periph"; + }; + + hsspi_osc: hsspi-osc { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <133333333>; + clock-output-names = "hsspi_osc"; }; }; aliases { + nflash = &nflash; serial0 = &uart0; serial1 = &uart1; + spi1 = &hsspi; }; cpu_intc: interrupt-controller { @@ -56,7 +66,7 @@ compatible = "simple-bus"; ranges; - clkctl: clock-controller@10000004 { + periph_clk: clock-controller@10000004 { compatible = "brcm,bcm6328-clocks"; reg = <0x10000004 0x4>; #clock-cells = <1>; @@ -80,37 +90,71 @@ interrupts = <2>, <3>; }; + wdt: watchdog@1000005c { + compatible = "brcm,bcm7038-wdt"; + reg = <0x1000005c 0xc>; + + clocks = <&periph_osc>; + clock-names = "refclk"; + + timeout-sec = <30>; + }; + + soft_reset: syscon@10000068 { + compatible = "syscon"; + reg = <0x10000068 0x4>; + native-endian; + + reboot { + compatible = "syscon-reboot"; + offset = <0x0>; + mask = <0x1>; + }; + }; + uart0: serial@10000100 { compatible = "brcm,bcm6345-uart"; reg = <0x10000100 0x18>; + interrupt-parent = <&periph_intc>; interrupts = <28>; - clocks = <&periph_clk>; + + clocks = <&periph_osc>; clock-names = "refclk"; + status = "disabled"; }; uart1: serial@10000120 { compatible = "brcm,bcm6345-uart"; reg = <0x10000120 0x18>; + interrupt-parent = <&periph_intc>; interrupts = <39>; - clocks = <&periph_clk>; + + clocks = <&periph_osc>; clock-names = "refclk"; + status = "disabled"; }; - timer: syscon@10000040 { - compatible = "syscon"; - reg = <0x10000040 0x2c>; - native-endian; - }; + nflash: nand@10000200 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,nand-bcm6368", + "brcm,brcmnand-v2.2", + "brcm,brcmnand"; + reg = <0x10000200 0x180>, + <0x10000400 0x200>, + <0x10000070 0x10>; + reg-names = "nand", + "nand-cache", + "nand-int-base"; + + interrupt-parent = <&periph_intc>; + interrupts = <0>; - reboot: syscon-reboot@10000068 { - compatible = "syscon-reboot"; - regmap = <&timer>; - offset = <0x28>; - mask = <0x1>; + status = "disabled"; }; leds0: led-controller@10000800 { @@ -118,6 +162,27 @@ #size-cells = <0>; compatible = "brcm,bcm6328-leds"; reg = <0x10000800 0x24>; + + status = "disabled"; + }; + + hsspi: spi@10001000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm6328-hsspi"; + reg = <0x10001000 0x600>; + + interrupt-parent = <&periph_intc>; + interrupts = <29>; + + clocks = <&periph_clk BCM6328_CLK_HSSPI>, + <&hsspi_osc>; + clock-names = "hsspi", + "pll"; + + resets = <&periph_rst BCM6328_RST_SPI>; + reset-names = "hsspi"; + status = "disabled"; }; @@ -131,8 +196,13 @@ compatible = "brcm,bcm6328-ehci", "generic-ehci"; reg = <0x10002500 0x100>; big-endian; + interrupt-parent = <&periph_intc>; interrupts = <42>; + + phys = <&usbh 0>; + phy-names = "usb"; + status = "disabled"; }; @@ -141,8 +211,29 @@ reg = <0x10002600 0x100>; big-endian; no-big-frame-no; + interrupt-parent = <&periph_intc>; interrupts = <41>; + + phys = <&usbh 0>; + phy-names = "usb"; + + status = "disabled"; + }; + + usbh: usb-phy@10002700 { + compatible = "brcm,bcm6328-usbh-phy"; + reg = <0x10002700 0x38>; + #phy-cells = <1>; + + clocks = <&periph_clk BCM6328_CLK_USBH>; + clock-names = "usbh"; + + power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_USBH>; + + resets = <&periph_rst BCM6328_RST_USBH>; + reset-names = "usbh"; + status = "disabled"; }; }; -- 2.20.1