From nobody Sat Nov 30 04:29:10 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA88F1C2DD5; Thu, 12 Sep 2024 18:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726165218; cv=none; b=kk45tJwVN3bIjyzpyVg6xgi6nrNXOsJPV7h9r9AOWTmIwia30TVE4hIhJ0ORBskGikiV3zBLRS3+OkrvrDn7nXDrqgGmlk8UxPI7dtetf73u4gHfFL5QCPrhbiD3O5uXLjpwlx3tyLy15wWXSEELwldbm1Sfzm/5Zl+17rRqj0U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726165218; c=relaxed/simple; bh=Uy8WNAx6IRK53oIlJahJOHkFJeKhttmrw7rJBLYAZg4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IrK/NXP1ekfmnLsjdh98kRm5ZFIQKRm8wmiyXh5hIssDWVjt7qP+ttLkUrrPBuVj2SEpDC7OOwN1Eh9HaFXbh3unCPgJRSVvEgMVYf4EalUZpsyuHEGm8QDe3H+mrane/NY1+0e2IVVaJpq24yl3OQGWy3TBFoT5Bl++iRCq98g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KCbvWJvQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KCbvWJvQ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 875F0C4CED6; Thu, 12 Sep 2024 18:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726165216; bh=Uy8WNAx6IRK53oIlJahJOHkFJeKhttmrw7rJBLYAZg4=; h=From:Date:Subject:References:In-Reply-To:List-Id:To:Cc:Reply-To: From; b=KCbvWJvQXBKPt/3N6EJK395t1RFtsSgRBrbMorNTTVWcNwHAjmpmLUhPmPuHWvlfJ OMzclv8El/nh5ANu123HtdMwDbE2se3siQAYnBnaGKo3Rod+687Xo46Anq5CPV+Rdz h34gHP+A+5DJBUMvt9POIJqglP4ymBe139il8bZFJVjehSg7wE/VdVbpDQFmBf+q/7 +8y/4+4vPtJlBq+4ZfWyujgh0YH2fY4rYTMZ/FaGjlaN9nPLqgOIPBwTYqtNc6MNLH cmrt9Ws2ISwAR3ghT4YJnVt5uJ396pbVMmMArmFf9WPHY8MLKyv8RsQeFY/gI+3tXX AeB/6cXncqD3w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A251EEE25E; Thu, 12 Sep 2024 18:20:16 +0000 (UTC) From: Arturs Artamonovs via B4 Relay Date: Thu, 12 Sep 2024 19:25:04 +0100 Subject: [PATCH 19/21] arm64: dts: adi: sc598: add device tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240912-test-v1-19-458fa57c8ccf@analog.com> References: <20240912-test-v1-0-458fa57c8ccf@analog.com> In-Reply-To: <20240912-test-v1-0-458fa57c8ccf@analog.com> To: Catalin Marinas , Will Deacon , Greg Malysa , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Utsav Agarwal , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Thomas Gleixner , Andi Shyti , Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Olof Johansson , soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, Arturs Artamonovs , adsp-linux@analog.com, Arturs Artamonovs , Nathan Barrett-Morrison X-Mailer: b4 0.15-dev-7be4f X-Developer-Signature: v=1; a=ed25519-sha256; t=1726165513; l=13434; i=arturs.artamonovs@analog.com; s=20240909; h=from:subject:message-id; bh=gZ+wPY1K1a7sq4LeaCpBlN6tpl7SEpOopm4S3bwpUQA=; b=LellgcuHUtjW5aI+l3dgRIs3S8FDlJkEZjSmYdG+kzYhFaNnnbVyTz8Cs6grSon5O4P3Heoak xbl6R7IXYa/BBGSIf3jYe9dA5WvlAmmLt0gDUViR3rYOnukCVcGIfNP X-Developer-Key: i=arturs.artamonovs@analog.com; a=ed25519; pk=UXODIid/MrmBXvqkX4PeEfetDaNAw9xKMINHIc5oZCk= X-Endpoint-Received: by B4 Relay for arturs.artamonovs@analog.com/20240909 with auth_id=206 X-Original-From: Arturs Artamonovs Reply-To: arturs.artamonovs@analog.com From: Arturs Artamonovs Add ADI SC598-EZKIT device tree. Support UART console as output. Signed-off-by: Arturs Artamonovs Signed-off-by: Utsav Agarwal Co-developed-by: Nathan Barrett-Morrison Signed-off-by: Nathan Barrett-Morrison Co-developed-by: Greg Malysa Signed-off-by: Greg Malysa --- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/adi/Makefile | 2 + arch/arm64/boot/dts/adi/sc598-som-ezkit.dts | 14 ++ arch/arm64/boot/dts/adi/sc598-som.dtsi | 58 +++++ arch/arm64/boot/dts/adi/sc59x-64.dtsi | 367 ++++++++++++++++++++++++= ++++ 5 files changed, 442 insertions(+) diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile index 21cd3a87f385309c3a655a67a3bee5f0abed7545..9b3996a8e01d8e7d264c44c075d= 7a50ee350ba44 100644 --- a/arch/arm64/boot/dts/Makefile +++ b/arch/arm64/boot/dts/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 subdir-y +=3D actions +subdir-y +=3D adi subdir-y +=3D airoha subdir-y +=3D allwinner subdir-y +=3D altera diff --git a/arch/arm64/boot/dts/adi/Makefile b/arch/arm64/boot/dts/adi/Mak= efile new file mode 100644 index 0000000000000000000000000000000000000000..1bf54bc97095e1ea3577953d379= 746fbc0ea02a9 --- /dev/null +++ b/arch/arm64/boot/dts/adi/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_SC59X_64) +=3D sc598-som-ezkit.dtb diff --git a/arch/arm64/boot/dts/adi/sc598-som-ezkit.dts b/arch/arm64/boot/= dts/adi/sc598-som-ezkit.dts new file mode 100644 index 0000000000000000000000000000000000000000..a8db6d5ea764f917faa6839d3d4= f0b5217b927b8 --- /dev/null +++ b/arch/arm64/boot/dts/adi/sc598-som-ezkit.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021-2024 - Analog Devices Inc. + * Author: Nathan Barrett-Morrison + */ + +/dts-v1/; + +#include "sc598-som.dtsi" + +/ { + model =3D "ADI 64-bit SC598 SOM EZ Kit"; + compatible =3D "adi,sc598-som-ezkit", "adi,sc59x-64"; +}; diff --git a/arch/arm64/boot/dts/adi/sc598-som.dtsi b/arch/arm64/boot/dts/a= di/sc598-som.dtsi new file mode 100644 index 0000000000000000000000000000000000000000..3b90f367db1a24de1e1dddc4db3= c219736c5b90f --- /dev/null +++ b/arch/arm64/boot/dts/adi/sc598-som.dtsi @@ -0,0 +1,58 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021-2024 - Analog Devices Inc. + * Author: Nathan Barrett-Morrison + */ + +/dts-v1/; + +#include +#include +#include "sc59x-64.dtsi" + +/ { + chosen { + stdout-path =3D &uart1; + bootargs =3D "earlycon=3Dadi_uart,0x31003000 console=3DttySC0,115200 mem= =3D224M"; + }; + + memory@90000000 { + device_type =3D "memory"; + reg =3D <0x90000000 0x0e000000>; + }; + + memory@20040000 { + device_type =3D "memory"; + reg =3D <0x20040000 0x40000>; + }; + + scb: scb-bus { + sec: sec@31089000 { + adi,sharc-cores =3D <2>; + }; + }; + +}; + +&uart0 { + pinctrl-0 =3D <&uart0_default>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; +}; + +&i2c1 { + status =3D "disabled"; +}; + +&pinctrl0 { + uart0_default: uart0-default-pins { + pins { + pinmux =3D , + ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/adi/sc59x-64.dtsi b/arch/arm64/boot/dts/ad= i/sc59x-64.dtsi new file mode 100644 index 0000000000000000000000000000000000000000..4a9aa08b4acb0936c97e683562e= 05da063a4e193 --- /dev/null +++ b/arch/arm64/boot/dts/adi/sc59x-64.dtsi @@ -0,0 +1,367 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021-2024 - Analog Devices Inc. + * Author: Nathan Barrett-Morrison + */ + +#include +#include +#include + +/ { + model =3D "ADI 64-bit SC59X"; + compatible =3D "adi,sc59x-64"; + + interrupt-parent =3D <&gic>; + #address-cells =3D <1>; + #size-cells =3D <1>; + + chosen { }; + + aliases { + serial0 =3D &uart0; + serial2 =3D &uart2; + serial3 =3D &uart3; + }; + + cpus { + #address-cells =3D <0x2>; + #size-cells =3D <0x0>; + + cpu0: cpu@0 { + device_type =3D "cpu"; + compatible =3D "arm,cortex-a55"; + reg =3D <0x0 0x0>; + enable-method =3D "spin-table"; + cpu-release-addr =3D <0x0 0xdeadbeef>; + clocks =3D <&clk ADSP_SC598_CLK_ARM>, <&clk ADSP_SC598_CLK_DDR>; + }; + }; + + pmu { + compatible =3D "arm,armv8-pmuv3"; + interrupts =3D ; + interrupt-parent =3D <&gic>; + }; + + gic: interrupt-controller@31200000 { + compatible =3D "arm,gic-v3"; + #interrupt-cells =3D <3>; + interrupt-controller; + reg =3D <0x31200000 0x40000>, /* GIC Dist */ + <0x31240000 0x40000>; /* GICR */ + }; + + timer { + compatible =3D "arm,armv8-timer"; + interrupts =3D , /* Physical Secure */ + , /* Physical Non-Secure */ + , /* Virtual */ + ; /* Hypervisor */ + }; + + clocks { + sys_clkin0: oscillator@1 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <25000000>; + clock-output-names =3D "sys_clkin0"; + }; + + sys_clkin1: oscillator@2 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <25000000>; + clock-output-names =3D "sys_clkin1"; + }; + }; + + clk: clocks@3108d000 { + compatible =3D "adi,sc598-clocks"; + reg =3D <0x3108d000 0x1000>, + <0x3108e000 0x1000>, + <0x3108f000 0x1000>, + <0x310a9000 0x1000>; + #clock-cells =3D <1>; + clocks =3D <&sys_clkin0>, <&sys_clkin1>; + clock-names =3D "sys_clkin0", "sys_clkin1"; + status =3D "okay"; + }; + + scb: scb-bus { + compatible =3D "simple-bus"; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; + + rcu: rcu@3108c000 { + compatible =3D "adi,reset-controller"; + reg =3D <0x3108c000 0x1000>; + status =3D "okay"; + }; + + sec: sec@31089000 { + compatible =3D "adi,system-event-controller"; + reg =3D <0x31089000 0x1000>; + adi,rcu =3D <&rcu>; + status =3D "okay"; + }; + + uart0: uart@31003000 { + compatible =3D "adi,uart"; + reg =3D <0x31003000 0x40>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + interrupt-parent =3D <&gic>; + interrupt-names =3D "tx", "rx", "status"; + interrupts =3D , + , + ; + adi,use-edbo; + status =3D "disabled"; + }; + + uart1: uart@31003400 { + compatible =3D "adi,uart"; + reg =3D <0x31003400 0x40>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + interrupt-parent =3D <&gic>; + interrupt-names =3D "tx", "rx", "status"; + interrupts =3D , + , + ; + adi,use-edbo; + status =3D "disabled"; + }; + + uart2: uart@31003800 { + compatible =3D "adi,uart"; + reg =3D <0x31003800 0x40>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + interrupt-parent =3D <&gic>; + interrupt-names =3D "tx", "rx", "status"; + interrupts =3D , + , + ; + adi,use-edbo; + status =3D "disabled"; + }; + + uart3: uart@31003c00 { + compatible =3D "adi,uart"; + reg =3D <0x31003C00 0x40>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + interrupt-parent =3D <&gic>; + interrupt-names =3D "tx", "rx", "status"; + interrupts =3D , + , + ; + adi,use-edbo; + status =3D "disabled"; + }; + + i2c0: twi@31001400 { + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "adi,twi"; + reg =3D <0x31001400 0xFF>; + interrupts =3D ; + clock-khz =3D <100>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + status =3D "disabled"; + }; + + i2c1: twi@31001500 { + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "adi,twi"; + reg =3D <0x31001500 0xFF>; + interrupts =3D ; + clock-khz =3D <100>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + status =3D "disabled"; + }; + + i2c3: twi@31001000 { + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "adi,twi"; + reg =3D <0x31001000 0xFF>; + interrupts =3D ; + clock-khz =3D <100>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + status =3D "disabled"; + }; + + i2c4: twi@31001100 { + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "adi,twi"; + reg =3D <0x31001100 0xFF>; + interrupts =3D ; + clock-khz =3D <100>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + status =3D "disabled"; + }; + + i2c5: twi@31001200 { + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "adi,twi"; + reg =3D <0x31001200 0xFF>; + interrupts =3D ; + clock-khz =3D <100>; + clocks =3D <&clk ADSP_SC598_CLK_CGU0_SCLK0>; + clock-names =3D "sclk0"; + status =3D "disabled"; + }; + + pinctrl0: pinctrl@31004600 { + compatible =3D "adi,adsp-pinctrl"; + #address-cells =3D <1>; + #size-cells =3D <1>; + reg =3D <0x31004600 0x400>; + adi,port-sizes =3D <16 16 16 16 16 16 16 16 7>; + }; + + pint0: pint@31005000 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005000 0xFF>; + interrupts =3D ; + }; + + pint1: pint@31005100 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005100 0xFF>; + interrupts =3D ; + }; + + pint2: pint@31005200 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005200 0xFF>; + interrupts =3D ; + }; + + pint3: pint@31005300 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005300 0xFF>; + interrupts =3D ; + }; + + pint4: pint@31005400 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005400 0xFF>; + interrupts =3D ; + }; + + pint5: pint@31005500 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005500 0xFF>; + interrupts =3D ; + }; + + pint6: pint@31005600 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005600 0xFF>; + interrupts =3D ; + }; + + pint7: pint@31005700 { + compatible =3D "adi,adsp-pint"; + reg =3D <0x31005700 0xFF>; + interrupts =3D ; + }; + + gpa: gport@31004000 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004000 0x7F>; + gpio-ranges =3D <&pinctrl0 0 0 16>; + adi,pint =3D <&pint0 1>; + status =3D "okay"; + }; + + gpb: gport@31004080 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004080 0x7F>; + gpio-ranges =3D <&pinctrl0 0 16 16>; + adi,pint =3D <&pint0 0>; + status =3D "okay"; + }; + + gpc: gport@31004100 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004100 0x7F>; + gpio-ranges =3D <&pinctrl0 0 32 16>; + adi,pint =3D <&pint2 1>; + status =3D "okay"; + }; + + gpd: gport@31004180 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004180 0x7F>; + gpio-ranges =3D <&pinctrl0 0 48 16>; + adi,pint =3D <&pint2 0>; + }; + + gpe: gport@31004200 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004200 0x7F>; + gpio-ranges =3D <&pinctrl0 0 64 16>; + adi,pint =3D <&pint4 1>; + }; + + gpf: gport@31004280 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004280 0x7F>; + gpio-ranges =3D <&pinctrl0 0 80 16>; + adi,pint =3D <&pint4 0>; + }; + + gpg: gport@31004300 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004300 0x7F>; + gpio-ranges =3D <&pinctrl0 0 96 16>; + adi,pint =3D <&pint6 1>; + }; + + gph: gport@31004380 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004380 0x7F>; + gpio-ranges =3D <&pinctrl0 0 112 16>; + adi,pint =3D <&pint6 0>; + }; + + gpi: gport@31004400 { + compatible =3D "adi,adsp-port-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x31004400 0x7F>; + gpio-ranges =3D <&pinctrl0 0 128 7>; + adi,pint =3D <&pint7 1>; + }; + + }; +}; --=20 2.25.1