From nobody Tue Feb 10 04:16:49 2026 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (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 270301CF2AB for ; Tue, 3 Sep 2024 04:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725336542; cv=none; b=DMY8kDWAnftd8gTeKmuFJsc28NzHY0HF1LnNfCU1VRcmlVtWzIny/3KQii7UtX/pPa/r81IxQr3jAf7j5vX2EIHvrWBYjkaj0A61qS6xHnGIl7XpBz0vH0OY7iMST3ixCs9/sbYR1BB1wDfQt3xizBsLftbVNZ+lORpff10V/eA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725336542; c=relaxed/simple; bh=HfD283oA9J+y4Ws1aDfqcKBEJxdpADZfKLsu878/aS4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DujQHgbVdgEnV/olXOghbTtP0RFdDpgzRkbu77YxnBID4a8gN0lFBXkYZtHU5c7xDi4BSNEbX8n3ZfGMmz6//UZeetaIfxmexyu2B+gPl+EENVVQ+07S2LKxS4SOiu6dSgqOYnsD4E9S2KPwtN8Vl+b2BY3Nuvr6QH9E22q5IeQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tenstorrent.com; spf=pass smtp.mailfrom=tenstorrent.com; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b=X8aNOgBj; arc=none smtp.client-ip=209.85.210.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="X8aNOgBj" Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-70f73ca989aso1600678a34.2 for ; Mon, 02 Sep 2024 21:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1725336539; x=1725941339; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Q35mWPAy5chjBGIgQ12zyoacjaj9qPPf+2nGjCp33vM=; b=X8aNOgBjcv7+CoBPiljMxQkDQAaznxKrhEUmZwjgf8ebiHrzWblR2T93ulFoWxl/gR 8/PpZuFMO2xYdxf0EX7CvxMf/AouWxgoa6IkcAV92yRzOrLavRqIhJe6gjzgLNLnKjLg s3w92nBgPuPFT06fhFIAzCw3D6V0CCqC0TIars/CLNzqD89sf1Z4X7Ta8xL1mNqG6o/d CwRV4JslcOwCGv5HmrIfUKDoyBsvDrKowVLcML1DCYUYG7SZMis95pGJwyGUANBhQY1g zQDVFi8ROk+iaAtE4ZE49Fxrs9S0+XWR/o4KjB8XbUQ33jGr4qhVn7EXSW9JKa6KxS9w pRMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725336539; x=1725941339; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q35mWPAy5chjBGIgQ12zyoacjaj9qPPf+2nGjCp33vM=; b=tZVFzXdg0fNu9g8pTvaGtLYhZoDBYDb4RzDm7AHa06dbb4pK0Pez51PC4Fz5QpH7Fn RyMF4eQ6NXsa/C4X4r7UEOF8UKPwalyd0mzsw8etJk7/YbRLX8rW9wbUZ3A7ITmqc7ay N7MdbbGaCsNK4MBXdL4bz4fAaNtT9T714u2+3LwZ68fksCufg4PNTJM8H+9BKHqvo6tz Qerg+PVfrSrchruGYCgF3eJjOn9l03Ju7Dfykyu0ASWLLTVEiwPjSnTET6AGGwI0FjEX PjrUd1GKm87y2HXvzuBS+PWMbEiTd5gzK7/3WXGQGAJHorbdS6Yt5jTiYvTNBt0enR0w ebsA== X-Forwarded-Encrypted: i=1; AJvYcCViYI65dJmr6dnfLqY9HYXozoWwIeHSXp0YtMaNTsyCRnwYcF/eQsABfYQRtfhHG+pXf40XNiOmNnJoWpQ=@vger.kernel.org X-Gm-Message-State: AOJu0Ywp56Tta3/06hjP18J6DOOF+kAIYbvyia8D5AbUFcK8K+2LHNKh naOPUH83QZeQe9k/jZ2Vn4tyTRX8+95PmBpX42yoZ9be1WcsaA2J4PWCS5BkUps= X-Google-Smtp-Source: AGHT+IG1bv+0Hcu89hJ/iW0ppyWLhDz7hQS9eXP//hut2vcYYD8TEwbZJJXon33WkI7TKADhhCw9MA== X-Received: by 2002:a05:6358:b00f:b0:1aa:c49e:587d with SMTP id e5c5f4694b2df-1b603c48be2mr1966327055d.18.1725336539064; Mon, 02 Sep 2024 21:08:59 -0700 (PDT) Received: from [127.0.1.1] (75-164-215-68.ptld.qwest.net. [75.164.215.68]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-715e569ef39sm7532701b3a.122.2024.09.02.21.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 21:08:58 -0700 (PDT) From: Drew Fustini Date: Mon, 02 Sep 2024 21:07:00 -0700 Subject: [PATCH 7/8] riscv: dts: thead: Add TH1520 pinctrl settings for UART0 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: <20240902-th1520-pinctrl-v1-7-639bf83ef50a@tenstorrent.com> References: <20240902-th1520-pinctrl-v1-0-639bf83ef50a@tenstorrent.com> In-Reply-To: <20240902-th1520-pinctrl-v1-0-639bf83ef50a@tenstorrent.com> To: Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Thomas Bonnefille , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing Add pinctrl settings for UART0 used as the default debug console on both the Lichee Pi 4A and BeagleV Ahead boards. Tested-by: Thomas Bonnefille Signed-off-by: Emil Renner Berthing Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 26 ++++++++++++++++++= ++++ arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts | 26 ++++++++++++++++++= ++++ 2 files changed, 52 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/risc= v/boot/dts/thead/th1520-beaglev-ahead.dts index c48f6fd6387b..c5356f674f85 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -82,6 +82,32 @@ &sdio0 { status =3D "okay"; }; =20 +&padctrl0_apsys { + uart0_pins: uart0-0 { + tx-pins { + pins =3D "UART0_TXD"; + function =3D "uart"; + bias-disable; + drive-strength =3D <3>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + + rx-pins { + pins =3D "UART0_RXD"; + function =3D "uart"; + bias-disable; + drive-strength =3D <1>; + input-enable; + input-schmitt-enable; + slew-rate =3D <0>; + }; + }; +}; + &uart0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart0_pins>; status =3D "okay"; }; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts b/arch/riscv= /boot/dts/thead/th1520-lichee-pi-4a.dts index 0ae2c20d5641..932838c55f90 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts @@ -29,6 +29,32 @@ chosen { }; }; =20 +&padctrl0_apsys { + uart0_pins: uart0-0 { + tx-pins { + pins =3D "UART0_TXD"; + function =3D "uart"; + bias-disable; + drive-strength =3D <3>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + + rx-pins { + pins =3D "UART0_RXD"; + function =3D "uart"; + bias-disable; + drive-strength =3D <1>; + input-enable; + input-schmitt-enable; + slew-rate =3D <0>; + }; + }; +}; + &uart0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart0_pins>; status =3D "okay"; }; --=20 2.34.1