From patchwork Thu Aug 22 09:11:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Portia Stephens X-Patchwork-Id: 1975372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WqHXD4wX0z1ybW for ; Thu, 22 Aug 2024 19:12:12 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sh3rT-0002DL-KN; Thu, 22 Aug 2024 09:12:07 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sh3rR-0002A8-Ra for kernel-team@lists.ubuntu.com; Thu, 22 Aug 2024 09:12:05 +0000 Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id AA7E43F2E7 for ; Thu, 22 Aug 2024 09:12:05 +0000 (UTC) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-70eebcab33aso574680b3a.1 for ; Thu, 22 Aug 2024 02:12:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724317923; x=1724922723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nAh+yoUMwuhHh0vEn8KeHkVP2il7FZrXygGh/EZmjo0=; b=tEeV1UsvDfTTeDYcEoDueqZf69HXyONt6C21xtFQM1MztGA04gz9GGjJxjURGrPmZD liJsGxxVS3GkXL23U4EjnTKnz8Bc3nfmxqwYyKMmng/W0o/pJ7vOK/nzFg2uRLpA1pKa iLiTkgGgKushqtcmsjHnvUTav/j0Z9YUvaHbYLJfp5oBqntiPagJmTW/QqtZlQIvRDLw Ty/JznF7xrnpcQesOYNxg8BdL1s3y/kg9FVJ+jzU2h4DCBf8vSRS3ADg3GC7+t880bkM lA5y+l/H9cybckdOMKBXPCRkVRxRW6p6ZAFw8UJmI6YBIsy6/vsMIvqy0rXDKl5SZvAi z6nA== X-Gm-Message-State: AOJu0YymLSZxARvfIhnetHvCOipOV+CJTWvpgB12KNoEw/0XBGg91dku paPwi7RGujiO+0KPIrwV9FUbPkMRyky9IZtCplzGzX9DawrnHKHTpxwrfIF5AQt83dra95I4Bib ZjmMIzAmS6vv6yC5IKF5ifOrmCumve/cmzcLPrHP6LHKEqH9/wcwVg9+R5SJvCelof7kqXjeWsY W/DNNEXqQVFQ== X-Received: by 2002:a05:6a00:21d0:b0:714:209c:4371 with SMTP id d2e1a72fcca58-7142376a1e3mr4796794b3a.10.1724317923507; Thu, 22 Aug 2024 02:12:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn5yPjAPQxuaHoe5qncN/2TJZNLfm2tv8ani0mtEtVkWzU2Soai/EvXLKTFCTZ/549HOBHfg== X-Received: by 2002:a05:6a00:21d0:b0:714:209c:4371 with SMTP id d2e1a72fcca58-7142376a1e3mr4796777b3a.10.1724317923057; Thu, 22 Aug 2024 02:12:03 -0700 (PDT) Received: from localhost ([159.196.41.205]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-714340d06c5sm952443b3a.0.2024.08.22.02.12.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 02:12:02 -0700 (PDT) From: Portia Stephens To: kernel-team@lists.ubuntu.com Subject: [SRU] [jammy:linux-xilinx-zynqmp 10/14] UBUNTU: SAUCE: dts: zynqmp-sck-kd-g-revA: Enable uart0 for KD240 Date: Thu, 22 Aug 2024 19:11:13 +1000 Message-Id: <20240822091117.1760423-11-portia.stephens@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240822091117.1760423-1-portia.stephens@canonical.com> References: <20240822091117.1760423-1-portia.stephens@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Wen-chien Jesse Sung BugLink: https://bugs.launchpad.net/bugs/2055237 This is backported from commit 1dfb4885eaa3 linux-xlnx. This change comes from a large syncing commit so this commit pulls out only the required changes to enabled uart0. Signed-off-by: Portia Stephens --- .../boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts index 94cb63cc6a186..6bfb2594bda8c 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dts @@ -171,6 +171,30 @@ conf-tx { }; }; + pinctrl_uart0_default: uart0-default { + conf { + groups = "uart0_17_grp"; + slew-rate = ; + power-source = ; + drive-strength = <12>; + }; + + conf-rx { + pins = "MIO70"; + bias-high-impedance; + }; + + conf-tx { + pins = "MIO71"; + bias-disable; + }; + + mux { + groups = "uart0_17_grp"; + function = "uart0"; + }; + }; + pinctrl_uart1_default: uart1-default { conf { groups = "uart1_9_grp"; @@ -321,6 +345,13 @@ mux { }; }; +&uart0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart0_default>; + assigned-clock-rates = <100000000>; +}; + &uart1 { status = "okay"; pinctrl-names = "default";