From nobody Sun Dec 14 14:17:53 2025 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B090A22A7FF for ; Thu, 16 Jan 2025 14:48:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737038901; cv=none; b=PURjcGnZLNjlCGuHF8HZ2EIZpmEyus3g82AlXGyqcc70jbAMEX9XkCyBpz7I0PPHvBEz6QZNrsD9HCdjpVAh1kryUxwoR4ewK9IBKqBFJpubBLNKhYzPSukZmj1ussVQYMFwt2bIAV0fMC9ix1eJ5Mlh8XViY5P0X+m68InNanU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737038901; c=relaxed/simple; bh=HK3JpGdhQRobIdF3deBVPv/1aNYFMUvCnv+zkCVfHxo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hMFbIQYykEm0B62mGVosoJay2vY3RFUFyQSotiPvd4vOOL22eCSyx0DTu/rGSfjcefLJrhLaM5x/hqGEdbn3tgB/I7V1lkdyoO/ThSVf5Fu0AIvubGq8LVZg1YKUQMJBe1aCju7EA+u6vYCXal+SkQnhE+ULhG1zD5Ube3lwe/o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.org; spf=none smtp.mailfrom=nigauri.org; dkim=pass (2048-bit key) header.d=nigauri-org.20230601.gappssmtp.com header.i=@nigauri-org.20230601.gappssmtp.com header.b=gncACmDp; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nigauri.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nigauri-org.20230601.gappssmtp.com header.i=@nigauri-org.20230601.gappssmtp.com header.b="gncACmDp" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-216426b0865so18260835ad.0 for ; Thu, 16 Jan 2025 06:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20230601.gappssmtp.com; s=20230601; t=1737038899; x=1737643699; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=a+ImoZeCgDi17lkAamCCvBTMAZc2xhlZE/Yp3EuPuXM=; b=gncACmDpug46dBN5MxSWZ6WTIKyKQiHmmfUIAglbRDPue5xMZQsCapNVJ3mSS2SFJN ZatdHltueaeHP5wsFoZCdtg39AKFHHzXyijJ04m5qkAYaX/fvQwHJ0TiOEgbuYFYvd+o E6vYs0uUYQkPoDOetfx5euyOB/Y3O/T10e7iVHlhwrKImERAAmHiSukJ0lj87XQVAyiJ /tVZ98r6F/MBrFG+8EDJxSbpIcKCd7m1bgU9To6I/UBtiw0sWZldiAZ5+mqtfxNh8dYq ouOZdWxlAOVfShTm9/KBgZuGPifWZ5JbYnlRn0utNiTnD4WvQrUNdhaTMoibIyK26UJv yoeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737038899; x=1737643699; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a+ImoZeCgDi17lkAamCCvBTMAZc2xhlZE/Yp3EuPuXM=; b=oOgPq2S9l3BrOqAj+AxfsEyCU+1Qd1kDzQXmdTcy5nolY8yJ/rZqZMovCxxbAay7Fs tNH0jU/H0X3f18zKViitlz9mrhebH6iLt7loC+DBaOHEy4vmRpAiICyVyH0vXoqtLfAj pqvm3M8Z+RAu5LAc9zlqhVRplofgE7FlF6cH/Joinqrrs4gO++kgNfNnF/Dl5k0//j0K ruPOddsfAeUW5aEB69i/HGvRZ1JI8F8o2XrFLyM46ixSh/QwIcnegWh4LWdErNEfbEnl uDbGBLB1LRuIPbH1e7RSEgX0Aux8M71JJebMfFrQpVXDKWHcPmDL4/UgkyWEzACgWRDS ITqw== X-Forwarded-Encrypted: i=1; AJvYcCVW9klZJ9i5HLXeqOHbU+7mUlwPZnq1ikuNQmkujxQnGMsEtoG3ItkGJntT1vYjy4f3hukjmdZFbd5Gfr8=@vger.kernel.org X-Gm-Message-State: AOJu0YxaCYtV0qiTh6Sn1Lhh2FLxRcI2p/v05zWpEOUhbuMlqxQBD1Oc 8KVvOHzg1mZ5ji/2G95hoQDR03y6FAQ796lW18LX4IxVOKyLoIFWvgc9EFhz X-Gm-Gg: ASbGncv/HRiD0gv+y+gmb4Mx5rxfGiy5kIi2dtJAbwjgkHzkjOl6qLaBcQLmjsg3x+B C7/Q+2K1n0Wh4o9Gn/fxjaV1SfmpPvjoJpVUIxDHE9nUAOWYvWxNVyLkXfXS+ogZp3Ma554OUnI O70/t7I//zf0YDVrtZ7lN/7HnCWyi1CWbPvKs+u5EAiVS1I45KnXA/tuOWIV+B1zH093ElTdnjd PYIfRq/dslxvufysP5x1SC/pWrsNFV3SfyIGIfGdjorz8vIyjQx6lCm2w== X-Google-Smtp-Source: AGHT+IFuxUkqJjlyXPonoX5N6Dyz1mmSLUYEA5EYZIsLBdReusU74cwAkR2Dn+QHucpLaV1Be/RYuQ== X-Received: by 2002:a17:903:1c5:b0:216:431b:e577 with SMTP id d9443c01a7336-21a8400afc8mr444626485ad.51.1737038898964; Thu, 16 Jan 2025 06:48:18 -0800 (PST) Received: from localhost ([2405:6581:5360:1800:4323:933a:5975:d650]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3d7d98sm1222535ad.177.2025.01.16.06.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 06:48:18 -0800 (PST) From: Nobuhiro Iwamatsu To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Masato Kiuchi , Nobuhiro Iwamatsu Subject: [PATCH v2 4/4] arm64: dts: renesas: Add initial device tree for Yuridenki-Shokai Kakip board Date: Thu, 16 Jan 2025 23:47:52 +0900 Message-ID: <20250116144752.1738574-5-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250116144752.1738574-1-iwamatsu@nigauri.org> References: <20250116144752.1738574-1-iwamatsu@nigauri.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add basic support for Yuridenki-Shokai Kakip board based on R9A09G057H48. This commit supports the following: - Memory - Input clocks - Pin Control - SCIF - OSTM0 - OSTM7 - SDHI0 Signed-off-by: Nobuhiro Iwamatsu Reviewed-by: Geert Uytterhoeven --- v2: Drop bootargs from chosen. Fix binding name for regulators. Fix the name style of the regulator. Use DTS coding style. arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r9a09g057h48-kakip.dts | 136 ++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r9a09g057h48-kakip.dts diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/ren= esas/Makefile index 928635f2e76bbb..698f790bd42524 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -149,6 +149,7 @@ dtb-$(CONFIG_ARCH_R9A09G011) +=3D r9a09g011-v2mevk2.dtb dtb-$(CONFIG_ARCH_R9A09G047) +=3D r9a09g047e57-smarc.dtb =20 dtb-$(CONFIG_ARCH_R9A09G057) +=3D r9a09g057h44-rzv2h-evk.dtb +dtb-$(CONFIG_ARCH_R9A09G057) +=3D r9a09g057h48-kakip.dtb =20 dtb-$(CONFIG_ARCH_RCAR_GEN3) +=3D draak-ebisu-panel-aa104xd12.dtbo dtb-$(CONFIG_ARCH_RCAR_GEN3) +=3D salvator-panel-aa104xd12.dtbo diff --git a/arch/arm64/boot/dts/renesas/r9a09g057h48-kakip.dts b/arch/arm6= 4/boot/dts/renesas/r9a09g057h48-kakip.dts new file mode 100644 index 00000000000000..b35a6c0499ee7c --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r9a09g057h48-kakip.dts @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +/* + * Device Tree Source for Yuridenki-Shokai the Kakip board + * + * Copyright (C) 2024 Nobuhiro Iwamatsu + */ + +/dts-v1/; + +#include +#include +#include "r9a09g057.dtsi" + +/ { + model =3D "Yuridenki-Shokai Kakip Board based on r9a09g057h48"; + compatible =3D "yuridenki,kakip", "renesas,r9a09g057h48", "renesas,r9a09g= 057"; + + aliases { + serial0 =3D &scif; + mmc0 =3D &sdhi0; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + memory@48000000 { + device_type =3D "memory"; + /* first 128MB is reserved for secure area. */ + reg =3D <0x0 0x48000000 0x1 0xF8000000>; + }; + + reg_3p3v: regulator-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "fixed-3.3V"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + vqmmc_sdhi0: regulator-vccq-sdhi0 { + compatible =3D "regulator-gpio"; + regulator-name =3D "SDHI0 VccQ"; + gpios =3D <&pinctrl RZV2H_GPIO(A, 0) GPIO_ACTIVE_HIGH>; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + gpios-states =3D <0>; + states =3D <3300000 0 1800000 1>; + }; +}; + +&qextal_clk { + clock-frequency =3D <24000000>; +}; + +&pinctrl { + scif_pins: scif { + pins =3D "SCIF_RXD", "SCIF_TXD"; + }; + + sd0-pwr-en-hog { + gpio-hog; + gpios =3D ; + output-high; + line-name =3D "sd0_pwr_en"; + }; + + sdhi0_pins: sd0 { + sd0-data { + pins =3D "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0CMD"; + input-enable; + renesas,output-impedance =3D <3>; + slew-rate =3D <0>; + }; + + sd0-clk { + pins =3D "SD0CLK"; + renesas,output-impedance =3D <3>; + slew-rate =3D <0>; + }; + + sd0-mux { + pinmux =3D ; /* SD0_CD */ + }; + }; +}; + +&scif { + pinctrl-0 =3D <&scif_pins>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&ostm0 { + status =3D "okay"; +}; + +&ostm1 { + status =3D "okay"; +}; + +&ostm2 { + status =3D "okay"; +}; + +&ostm3 { + status =3D "okay"; +}; + +&ostm4 { + status =3D "okay"; +}; + +&ostm5 { + status =3D "okay"; +}; + +&ostm6 { + status =3D "okay"; +}; + +&ostm7 { + status =3D "okay"; +}; + +&sdhi0 { + pinctrl-0 =3D <&sdhi0_pins>; + pinctrl-names =3D "default"; + vmmc-supply =3D <®_3p3v>; + vqmmc-supply =3D <&vqmmc_sdhi0>; + bus-width =3D <4>; + + status =3D "okay"; +}; --=20 2.47.1