Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp739434iob; Tue, 3 May 2022 08:42:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbvjlrnAa4LpYDxbrgwHGQnPeCoQ2PjXsLDveV6qt5JDQ+cRiIR4eNKPAOSDQLJlve92mO X-Received: by 2002:a17:906:3104:b0:6ce:6b85:ecc9 with SMTP id 4-20020a170906310400b006ce6b85ecc9mr15411161ejx.339.1651592520553; Tue, 03 May 2022 08:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651592520; cv=none; d=google.com; s=arc-20160816; b=mERsJfxZxisS3/KadKxKr/QonNvHkZZu5uoxpMZb+EgO2PpLs8WMo0lBsJe2eZ9Cpo hPnj4vf5CPyH2sjH46YFwyA3J1hhUK0EE7Lh1YkdoiCX7ciKsRbWV9TtzBNPSQksqVqx wUUiSZnkNOY86ijIvw9bK4VtOAka+Sh6uUZrH3xRWg8uR2+NEUeFHgQhWsUlDYcDvU7F +tuMIkUnUYn/3fi6TtO91/sWcux5yJICuE8PIRvl6PJIkqNq5QaQTQb7TucpQtfXbark O2FCeAsyXvNI1BrHDah0G6QeXSmECu9rGCOBPkOTZ2dHd52hjQV3FSMiCEeE4Vlr5IB+ MmIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=WTr3zVTTNyCdhxYBth93IvSInDhU8itEfs0ZovXdAsk=; b=j3DspV8K/q8wps09ql1Dt/vIRauhhnz/8lHYyelnv6bl9PKhRqlVFAFcLRSvwPgx7x c4pOIqzyCcOW6vvrUleyYX67W0gXJogGedLupRIwf6dCXRNgmYxFp9gXBjl/bleUYv8B fCq3uRVlm524DoeVda7eglvQgnSIRS9turxWysTpwijlgzZ7YORyt/qh8N2eTw5YaPfJ 9TgwCo6xzOxd0sh8kAZlhCRrWSpd9ALOChtXnaaNax5UQPAAhVc34T899J+DA0uksd6O f7xHHmQSeuwal8X8hBe78DaEYhQfpyf7C40Cm6BQI3iihfhXRk7ybHvtWDE1k9kpF3x7 MQ9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@startmail.com header.s=2020-07 header.b=WaVWG2a7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=startmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a17090619c300b006e01f1d9677si14658950ejd.532.2022.05.03.08.41.36; Tue, 03 May 2022 08:42:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@startmail.com header.s=2020-07 header.b=WaVWG2a7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=startmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236425AbiECNso (ORCPT + 99 others); Tue, 3 May 2022 09:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbiECNsn (ORCPT ); Tue, 3 May 2022 09:48:43 -0400 Received: from mx-out1.startmail.com (mx-out1.startmail.com [145.131.90.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F371A819; Tue, 3 May 2022 06:45:09 -0700 (PDT) Date: Tue, 3 May 2022 08:44:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startmail.com; s=2020-07; t=1651585507; bh=WTr3zVTTNyCdhxYBth93IvSInDhU8itEfs0ZovXdAsk=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:From:Subject:To:Date: Sender:Content-Type:Content-Transfer-Encoding:Content-Disposition: Mime-Version:Reply-To:In-Reply-To:References:Message-Id:Autocrypt; b=WaVWG2a7EZkDtSGaQAtEHj3E1W1Js1SuR+KW4bUakGP5nDUsR2tkQ6jNZeQXuq7jK j5J6Q2OtXuLQ3y2V3kwTtDBfBSDnaoLmef2LDTqWudB93MGhmwf2vjabBt3DO5ecpQ de/RG4W+++B1dAsxqsIdWzen07qRZ8wq3+OvX8ePVDlt4RP+OVGEP9T8eQlmMuZVtD zrxZ0kPws7rlZkPvdWdjixpyaLKYE/FQ1qAUKpRPFUjy8kLzhBcf546UoqyoVAOISD rd/gMYSf4O46VwhIlynRvae21fZtiKD+3YKtydrwb0n3agu7nqUd6EEsQu3EWAKY1W 7eQ8SQI8vgUGg== From: "Marty E. Plummer" To: Krzysztof Kozlowski Cc: arnd@arndb.de, cai.huoqing@linux.dev, christian.koenig@amd.com, devicetree@vger.kernel.org, gengdongjiu@huawei.com, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux@armlinux.org.uk, michael@walle.cc, miquel.raynal@bootlin.com, mturquette@baylibre.com, novikov@ispras.ru, olof@lixom.net, p.yadav@ti.com, rdunlap@infradead.org, richard@nod.at, robh+dt@kernel.org, sboyd@kernel.org, soc@kernel.org, sumit.semwal@linaro.org, tudor.ambarus@microchip.com, vigneshr@ti.com, xuwei5@hisilicon.com Subject: Re: [RFC v2 2/2] arm: hisi: enable Hi3521a soc Message-ID: <20220503134459.pplgvhcckja4ivcg@proprietary-killer> References: <20220501054440.2434247-1-hanetzer@startmail.com> <20220501173423.2473093-1-hanetzer@startmail.com> <20220501173423.2473093-3-hanetzer@startmail.com> <4cda3645-c4e8-1b3c-bd80-891afd56449a@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cda3645-c4e8-1b3c-bd80-891afd56449a@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 03, 2022 at 01:47:01PM +0200, Krzysztof Kozlowski wrote: > On 01/05/2022 19:34, Marty E. Plummer wrote: > > Enable Hisilicon Hi3521A/Hi3520DCV300 SoC. This SoC series includes > > hardware mutlimedia codec cores, commonly used in consumer cctv/dvr > > security systems and ipcameras. The arm core is a Cortex A7. > > > > Add hi3521a.dtsi and hi3521a-rs-dm290e.dts for RaySharp CCTV systems, > > marketed under the name Samsung SDR-B74301N. > > Thank you for your patch. There is something to discuss/improve. > > > > > Signed-off-by: Marty E. Plummer > > --- > > arch/arm/boot/dts/Makefile | 2 + > > arch/arm/boot/dts/hi3521a-rs-dm290e.dts | 134 ++++++++ > > arch/arm/boot/dts/hi3521a.dtsi | 423 ++++++++++++++++++++++++ > > DTSes go to separate patches. Do you mean dts and dtsi need to be separate patches? > > > arch/arm/mach-hisi/Kconfig | 9 + > > 4 files changed, 568 insertions(+) > > create mode 100644 arch/arm/boot/dts/hi3521a-rs-dm290e.dts > > create mode 100644 arch/arm/boot/dts/hi3521a.dtsi > > > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > > index 7c16f8a2b738..535cef3b14ab 100644 > > --- a/arch/arm/boot/dts/Makefile > > +++ b/arch/arm/boot/dts/Makefile > > @@ -242,6 +242,8 @@ dtb-$(CONFIG_ARCH_GEMINI) += \ > > gemini-ssi1328.dtb \ > > gemini-wbd111.dtb \ > > gemini-wbd222.dtb > > +dtb-$(CONFIG_ARCH_HI3521A) += \ > > + hi3521a-rs-dm290e.dtb > > dtb-$(CONFIG_ARCH_HI3xxx) += \ > > hi3620-hi4511.dtb > > dtb-$(CONFIG_ARCH_HIGHBANK) += \ > > diff --git a/arch/arm/boot/dts/hi3521a-rs-dm290e.dts b/arch/arm/boot/dts/hi3521a-rs-dm290e.dts > > new file mode 100644 > > index 000000000000..b24fcf2ca85e > > --- /dev/null > > +++ b/arch/arm/boot/dts/hi3521a-rs-dm290e.dts > > @@ -0,0 +1,134 @@ > > +// SPDX-License-Identifier: GPL-2.0-or-later > > +/* > > + * Copyright (C) 2017-2022 Marty Plummer > > + */ > > + > > +#include "hi3521a.dtsi" > > + > > +/ { > > + model = "RaySharp RS-DM-290E DVR Board"; > > + compatible = "raysharp,rs-dm-290e", "hisilicon,hi3521a"; > > Please run checkpatch and fix the warnings. > sunova. I could have sworn I had my editor setup right for whitespace and such. > > + > > + aliases { > > + serial0 = &uart0; > > + serial1 = &uart1; > > + serial2 = &uart2; > > + }; > > + > > + chosen { > > + stdout-path = "serial0:115200n8"; > > + }; > > + > > + memory@800000000 { > > + device_type = "memory"; > > + reg = <0x80000000 0xf00000>; > > + }; > > +}; > > + > > +&hi_sfc { > > + status = "okay"; > > + spi-nor@0 { > > Looks like wrong node name. You need to run "dtbs_check" and fix > warnings related to your DTS. > Ah, that's a good thing to know. dt-doc-validate isn't found, doesn't seem packaged for gentoo either. I'll see about that asap. > > + // compatible = "jedec,spi-nor"; > > No dead code in Linux kernel. Commented out stuff sometimes is okay if > it is explained with comments. > As mentioned in the title, just an RFC, not final. > > + compatible = "macronix,mx25l25635e", "jedec,spi-nor"; > > + reg = <0>; > > + spi-max-frequency = <150000000>; > > + // spi-rx-bus-width = <1>; > > + // spi-tx-bus-width = <1>; > > + // m25p,default-addr-width = <4>; > > + // spi-max-frequency = <160000000>; > > No dead code. > > > + m25p,fast-read; > > + > > + partitions { > > + compatible = "fixed-partitions"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + u-boot@0 { > > + label = "u-boot"; > > + reg = <0x0 0x50000>; > > + read-only; > > + }; > > + u-boot-env@50000 { > > + label = "u-boot-env"; > > + reg = <0x50000 0x20000>; > > + }; > > + kernel@70000 { > > + label = "kernel"; > > + reg = <0x70000 0x700000>; > > + }; > > + rootfs@770000 { > > + label = "rootfs"; > > + reg = <0x800000 0x300000>; > > + read-only; > > + }; > > + extra@b00000 { > > + label = "extra"; > > + reg = <0xb00000 0x1500000>; > > + }; > > + }; > > + }; > > +}; > > + > > +&dual_timer0 { > > + status = "okay"; > > +}; > > + > > +&uart0 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&uart0_pmx_func &uart0_cfg_func>; > > + status = "okay"; > > +}; > > + > > +&pmx0 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&sfc_pmx_func>; > > + uart0_pmx_func: uart0_pmx_func { > > + pinctrl-single,pins = < > > + 0x00e8 0x0 > > + 0x00ec 0x0 > > + >; > > + }; > > + > > + sfc_pmx_func: sfc_pmx_func { > > + pinctrl-single,pins = < > > + 0x00c4 0x1 > > + 0x00c8 0x1 > > + 0x00cc 0x1 > > + 0x00d0 0x1 > > + 0x00d4 0x1 > > + >; > > + }; > > +}; > > + > > +&pmx1 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&sfc_cfg_func>; > > + uart0_cfg_func: uart0_cfg_func { > > + pinctrl-single,pins = < > > + 0x00e8 0x0 > > + 0x00ec 0x0 > > + >; > > + }; > > Blank line > > > + sfc_cfg_func: sfc_cfg_func { > > + pinctrl-single,pins = < > > + 0x00c4 0x58 > > + 0x00c8 0x28 > > + 0x00cc 0x38 > > + 0x00d0 0x38 > > + 0x00d4 0x38 > > + >; > > + }; > > +}; > > + > > +/* &gmac0 { */ > > +/* #address-cells = <1>; */ > > +/* #size-cells = <0>; */ > > +/* phy-handle = <&phy3>; */ > > +/* phy-mode = "rgmii"; */ > > +/* mac-address = [00 00 00 00 00 00]; */ > > +/* status = "okay"; */ > > +/**/ > > +/* phy3: ethernet-phy@3 { */ > > +/* reg = <3>; */ > > +/* }; */ > > +/* }; */ > > > ? What's this? > ethernet port. its giving me a bit of trouble at the moment, but it does work and has a phy at 3. > > diff --git a/arch/arm/boot/dts/hi3521a.dtsi b/arch/arm/boot/dts/hi3521a.dtsi > > new file mode 100644 > > index 000000000000..53993a32fd5d > > --- /dev/null > > +++ b/arch/arm/boot/dts/hi3521a.dtsi > > @@ -0,0 +1,423 @@ > > +// SPDX-License-Identifier: GPL-2.0-or-later > > +/* > > + * Copyright (C) 2017-2022 Marty Plummer > > + */ > > + > > +#include > > +#include > > +/dts-v1/; > > Blank line. > > > +/ { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + cpu0: cpu@0 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a7"; > > + reg = <0>; > > + clock-frequency = <1100000000>; > > + }; > > + }; > > + > > + timer { > > + compatible = "arm,armv7-timer"; > > + interrupt-parent = <&gic>; > > + interrupts = , > > + , > > + , > > + ; > > Use macros for these interrupts. > moot point, turns out enabling this timer is causing the system to lock up. Something's weird there. > > + clock-frequency = <24000000>; > > + }; > > + > > + pmu { > > + compatible = "arm,cortex-a7-pmu"; > > + interrupt-parent = <&gic>; > > + interrupts = ; > > + }; > > + > > + gic: interrupt-controller@10301000 { > > + compatible = "arm,pl390"; > > + #interrupt-cells = <3>; > > + interrupt-controller; > > + reg = <0x10301000 0x1000>, <0x10302000 0x1000>; > > Put reg just after compatible. This applies to each other node as well > (if it comes with reg). > Ah gotcha. > > + }; > > + > > + xtal24m: xtal24m { > > Generic node names, so one of: "clock-0" "clock-xtal24m" > Will do. > > + compatible = "fixed-clock"; > > + #clock-cells = <0>; > > + clock-frequency = <24000000>; > > This does not look like property of the SoC, so should be defined by boards. > SoC requires a 24Mhz osc (and a 32khz one as well), so it'll always be present regardless. > > + }; > > + > > + clk_3m: clk_3m { > > No underscores in node names, generic node name (see above). > early debugging clock, will be removed. > > + compatible = "fixed-clock"; > > + #clock-cells = <0>; > > + clock-frequency = <3000000>; > > This does not look like property of the SoC, so should be defined by boards. > > > + }; > > + > > + soc { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + compatible = "simple-bus"; > > + interrupt-parent = <&gic>; > > + ranges; > > + > > + hi_sfc: spi@10000000 { > > + compatible = "hisilicon,hi3521a-spi-nor", "hisilicon,fmc-spi-nor"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + reg = <0x10000000 0x1000>, <0x14000000 0x10000>; > > + reg-names = "control", "memory"; > > + clocks = <&crg HI3521A_FMC_CLK>; > > + interrupts = ; > > + status = "disabled"; > > + }; > > + > > + /* usb0: usb@10030000 { */ > > + /* compatible = "generic-ohci"; */ > > + /* reg = <0x10030000 0x1000>; */ > > + /* interrupts = ; */ > > + /* clocks = <&crg > */ > > + /* }; */ > > No dead code please. > > > + dmac: dma-controller@10060000 { > > + compatible = "arm,pl080", "arm,primecell"; > > + arm,primecell-periphid = <0x00041080>; > > + reg = <0x10060000 0x1000>; > > + interrupts = ; > > + clocks = <&crg HI3521A_DMAC_CLK>; > > + clock-names = "apb_pclk"; > > + lli-bus-interface-ahb1; > > + lli-bus-interface-ahb2; > > + mem-bus-interface-ahb1; > > + mem-bus-interface-ahb2; > > + memcpy-burst-size = <256>; > > + memcpy-bus-width = <32>; > > + #dma-cells = <2>; > > + status = "okay"; > > No need for status okay, it's by default. > ah, good to know. > > + }; > > + > > + gmac0: ethernet@100a0000 { > > + compatible = "hisilicon,hisi-gmac-v1"; > > + reg = <0x100a0000 0x1000>, <0x1204008c 0x4>; > > + interrupts = ; > > + clocks = <&crg HI3521A_ETH_CLK>, <&crg HI3521A_ETH_MACIF_CLK>; > > + clock-names = "mac_core", "mac_ifc"; > > + /* resets = <&crg 0x78 0>, <&crg 0x78 2>, <&crg 0x78 5>; */ > > + /* reset-names = "mac_core", "mac_ifc", "phy"; */ > > + /* hisilicon,phy-reset-delays-us = <10000 10000 30000>; */ > > No dead code. > > > + status = "disabled"; > > + }; > > + > > + dual_timer0: timer@12000000 { > > + compatible = "arm,sp804", "arm,primecell"; > > + interrupts = , > > + ; > > A bit weird interrupts... the same? > Yes, though I am aware that some sp804 timers do have a separate interrupts per pair. > > + reg = <0x12000000 0x1000>; > > + clocks = <&sysctrl HI3521A_TIMER0_CLK>, > > + <&sysctrl HI3521A_TIMER1_CLK>, > > + <&crg HI3521A_APB_CLK>; > > + clock-names = "timer0clk", "timer1clk", "apb_pclk"; > > + status = "disabled"; > > + }; > > + > > + dual_timer1: timer@12010000 { > > + compatible = "arm,sp804", "arm,primecell"; > > + interrupts = , > > + ; > > + reg = <0x12010000 0x1000>; > > + clocks = <&sysctrl HI3521A_TIMER2_CLK>, > > + <&sysctrl HI3521A_TIMER3_CLK>, > > + <&crg HI3521A_APB_CLK>; > > + clock-names = "timer0clk", "timer1clk", "apb_pclk"; > > + status = "disabled"; > > + }; > > + > > + dual_timer2: timer@12020000 { > > + compatible = "arm,sp804", "arm,primecell"; > > + interrupts = , > > + ; > > + reg = <0x12020000 0x1000>; > > + clocks = <&sysctrl HI3521A_TIMER4_CLK>, > > + <&sysctrl HI3521A_TIMER5_CLK>, > > + <&crg HI3521A_APB_CLK>; > > + clock-names = "timer0clk", "timer1clk", "apb_pclk"; > > + status = "disabled"; > > + }; > > + > > + dual_timer3: timer@12030000 { > > + compatible = "arm,sp804", "arm,primecell"; > > + interrupts = , > > + ; > > + reg = <0x12030000 0x1000>; > > + clocks = <&sysctrl HI3521A_TIMER6_CLK>, > > + <&sysctrl HI3521A_TIMER7_CLK>, > > + <&crg HI3521A_APB_CLK>; > > + clock-names = "timer0clk", "timer1clk", "apb_pclk"; > > + status = "disabled"; > > + }; > > + > > + crg: clock-reset-controller@12040000 { > > + compatible = "hisilicon,hi3521a-crg"; > > Undocumented compatible. Didn't checkpatch warn about it? > As mentioned, RFC. I'm more concerned with getting it to work consistently at the moment. > > + #clock-cells = <1>; > > + #reset-cells = <2>; > > + reg = <0x12040000 0x1000>; > > + }; > > + > > + sysctrl: system-controller@12050000 { > > + compatible = "hisilicon,hi3521a-sysctrl", "syscon"; > > Same. > > > + reg = <0x12050000 0x1000>; > > + #clock-cells = <1>; > > + #reset-cells = <2>; > > + }; > > + > > + reboot { > > + compatible = "syscon-reboot"; > > + regmap = <&sysctrl>; > > + offset = <0x4>; > > + mask = <0xdeadbeef>; > > + }; > > + > > + wdt0: watchdog@12070000 { > > + compatible = "arm,sp805", "arm,primecell"; > > + arm,primecell-periphid = <0x00141805>; > > + reg = <0x12070000 0x1000>; > > + interrupts = ; > > + clocks = <&crg HI3521A_FIXED_3M>; > > + clock-names = "apb_pclk"; > > + }; > > + > > + uart0: serial@12080000 { > > + compatible = "arm,pl011", "arm,primecell"; > > + reg = <0x12080000 0x1000>; > > + interrupts = ; > > + clocks = <&crg HI3521A_UART0_CLK>, <&crg HI3521A_UART0_CLK>; > > + clock-names = "uartclk", "apb_pclk"; > > + dmas = <&dmac 0 1>, <&dmac 1 2>; > > + dma-names = "rx", "tx"; > > + status = "disabled"; > > + }; > > + > > + uart1: serial@12090000 { > > + compatible = "arm,pl011", "arm,primecell"; > > + reg = <0x12090000 0x1000>; > > + interrupts = ; > > + clocks = <&crg HI3521A_UART1_CLK>; > > + clock-names = "apb_pclk"; > > + dmas = <&dmac 2 1>, <&dmac 3 2>; > > + dma-names = "rx", "tx"; > > + status = "disabled"; > > + }; > > + > > + uart2: serial@120a0000 { > > + compatible = "arm,pl011", "arm,primecell"; > > + reg = <0x120a0000 0x1000>; > > + interrupts = ; > > + clocks = <&crg HI3521A_UART2_CLK>; > > + clock-names = "apb_pclk"; > > + dmas = <&dmac 4 1>, <&dmac 5 2>; > > + dma-names = "rx", "tx"; > > + status = "disabled"; > > + }; > > + > > + spi_bus0: spi@120d0000 { > > + compatible = "arm,pl022", "arm,primecell"; > > + reg = <0x120d0000 0x1000>; > > + arm,primecell-periphid = <0x00041022>; > > + interrupts = ; > > + clocks = <&crg HI3521A_SPI0_CLK>; > > + clock-names = "apb_pclk"; > > + dmas = <&dmac 6 1>, <&dmac 7 2>; > > + dma-names = "rx", "tx"; > > + num-cs = <2>; > > + status = "disabled"; > > + }; > > + > > + pmx0: pinmux@120f0000 { > > + compatible = "pinctrl-single"; > > + reg = <0x120f0000 0x188>; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + #pinctrl-cells = <1>; > > + #gpio-range-cells = <3>; > > + ranges; > > + > > + pinctrl-single,register-width = <32>; > > + pinctrl-single,function-mask = <7>; > > + /* pin base, nr pins & gpio function */ > > + pinctrl-single,gpio-range = < > > + &range 58 4 0 > > + >; > > + > > + range: gpio-range { > > + #pinctrl-single,gpio-range-cells = <3>; > > + }; > > + }; > > + > > + pmx1: pinmux@120f0800 { > > + compatible = "pinconf-single"; > > + reg = <0x120f0800 0x1d4>; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + #pinctrl-cells = <1>; > > + ranges; > > + > > + pinctrl-single,register-width = <32>; > > + }; > > + > > + gpio0: gpio@12150000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x12150000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio1: gpio@12160000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x12160000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio2: gpio@12170000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x12170000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio3: gpio@12180000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x12180000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio4: gpio@12190000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x12190000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio5: gpio@121a0000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x121a0000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio6: gpio@121b0000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x121b0000 0x1000>; > > + interrupts = ; > > Same interrupts as for other nodes? Is it correct? > Yep, there are three interrupts for the gpios and they're shared among a few each. > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > + > > + gpio7: gpio@121c0000 { > > + compatible = "arm,pl061", "arm,primecell"; > > + reg = <0x121c0000 0x1000>; > > + interrupts = ; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + status = "disabled"; > > + }; > > +_MULTI_V7 > > > Best regards, > Krzysztof