From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 A230A1C729E for ; Mon, 14 Oct 2024 17:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928472; cv=none; b=EuVSd7LMMxH5SkJ4IQbqBfzC3Wifxo6g6re7OKQ58aUAevCwg9YiXOg3lWlhA4txaySqM3F6+5Aitzj27MnISdhTiUx5qtcSv8AK25DNyzruOihE0hJjEblS33wI3ENLy5lkIheP3S/OeGUgTOkqW/QJePBHHdSrYEIJzrAieAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928472; c=relaxed/simple; bh=Zm0HShdFQ+d2zWw7auh7jXsJTAswApiih38ucKNWT30=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ousv7EivtTZmQqnpKmGzD5G+WfL6JyGdccNc9qrAEtDowAQzK3tih18kuRlIqUoImcozeZNlGE/5eC7abx5nqlqKh/wS0azYjwSsGSz/QFJJ51bpycgbDq4Z/iVFuE6twH64KkixAC7oEIw8ua0fc3NCGcDgXddCEt85k8cwTFQ= 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=I3oDF6nL; arc=none smtp.client-ip=209.85.215.179 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="I3oDF6nL" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-7ea7e250c54so881358a12.0 for ; Mon, 14 Oct 2024 10:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928470; x=1729533270; 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=ehWwjmU9hAOqAMUOWeKIHlX8tN0mNj/IrInipbL2fO8=; b=I3oDF6nL5kx8QD7z7lFFqITUdozvQnfZ33ubwhOt5Dop24tV/R6wunFhWPmijyYhl6 ZJL2bbpk0PPX0s183IjXCaPly7yc1n2CF/NwHStPhrUqiuOIb7He36XvnhgfzXpSaYh7 CHITeO8Q9+VE+eRcWvJZX6Dd7fTnQbo4Uo8C9+lJ3lUQzpafq0u1iL0bEJJzyyE/Zq1D LcpUEWH27lqzZYjsaoDf06FDrVvPWLTFGnlrI+yp7IoivpDXb4P+IcKsNmsFvCr4d942 wH4d6eH44PcN3fr1XMEAE5E+WUl1z7Jme35WtBAcSWz60RQIdYYamI+aGe3d9BFIrFRq fQ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928470; x=1729533270; 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=ehWwjmU9hAOqAMUOWeKIHlX8tN0mNj/IrInipbL2fO8=; b=pcv1ioMQDmS1Y0IKoQ7myVNjwvw4FdMjZdLg4vgPm7SyEY+RyvmFIHhZYW99pXFN8v vqXf1XsvwQLIIpGfgeK/75Ow0HxuOZ+R57T18hW+KZNwBH+z+FMgaF+S5d+h/0kVyUzt c6mzLH1ZMEG+7hPdl32vfG9o4HxV4XDECeAVb3f8k1M36B2fI+5MKTS8Dm4KQ1QxtTaE iXiSJmoqRYnV79xXogJb4AO4ZLFeZZpb8LDcgLC3FBVvXBSrKFb43kSvnpk5apbdoeA2 xNNymqb0FdMm7G1VQfaQhuPKBPn4nUY/vvXo1uFtmDGzU5PVJxAQk1An/SPoDYxUsDaW 45uA== X-Forwarded-Encrypted: i=1; AJvYcCWp4QnzdABmG1gHbobm0t00hkIy4aTpYaJFxx3c2e+FlEeDWNVSsD2Nl0a6yK7r+my7pWLn9kGY83t6sGI=@vger.kernel.org X-Gm-Message-State: AOJu0YyDBmLZoEyOH5np1GKJIKseTU+6HVKXWWHN0jRRJvqeB4QClL43 7p5Rjf0X9zxYzB5tGPOPFV4dv9tMiILeM/ypdpHrJ/XgNKflbldBKAnLg+qEFM4= X-Google-Smtp-Source: AGHT+IFpeRJRsm2cHiu1T3j3d9xtFI+KxEdYvrO5Pv2dkk4eBm6gnbj2n7uXlqF6jkG+oC+C5j473A== X-Received: by 2002:a05:6a20:d808:b0:1d7:8fd:2df6 with SMTP id adf61e73a8af0-1d8c9577029mr13745197637.1.1728928469852; Mon, 14 Oct 2024 10:54:29 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:28 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:18 -0700 Subject: [PATCH 1/8] riscv: dts: thead: Add TH1520 pin control nodes 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: <20241014-th1520-pinctrl-dts-v1-1-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing Add nodes for pin controllers on the T-Head TH1520 RISC-V SoC. Add the missing aonsys_clk for the always-on pin controller as there is not yet an aon subsys clock controller driver. Acked-by: Linus Walleij Tested-by: Thomas Bonnefille Signed-off-by: Emil Renner Berthing [dfustini: modify description as there is now an ap_subsys clk driver] Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index 6992060e6a54..93c17f52fbe9 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -216,6 +216,13 @@ osc_32k: 32k-oscillator { #clock-cells =3D <0>; }; =20 + aonsys_clk: clock-73728000 { + compatible =3D "fixed-clock"; + clock-frequency =3D <73728000>; + clock-output-names =3D "aonsys_clk"; + #clock-cells =3D <0>; + }; + soc { compatible =3D "simple-bus"; interrupt-parent =3D <&plic>; @@ -354,6 +361,13 @@ portd: gpio-controller@0 { }; }; =20 + padctrl1_apsys: pinctrl@ffe7f3c000 { + compatible =3D "thead,th1520-pinctrl"; + reg =3D <0xff 0xe7f3c000 0x0 0x1000>; + clocks =3D <&clk CLK_PADCTRL1>; + thead,pad-group =3D <2>; + }; + gpio0: gpio@ffec005000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xec005000 0x0 0x1000>; @@ -392,6 +406,13 @@ portb: gpio-controller@0 { }; }; =20 + padctrl0_apsys: pinctrl@ffec007000 { + compatible =3D "thead,th1520-pinctrl"; + reg =3D <0xff 0xec007000 0x0 0x1000>; + clocks =3D <&clk CLK_PADCTRL0>; + thead,pad-group =3D <3>; + }; + uart2: serial@ffec010000 { compatible =3D "snps,dw-apb-uart"; reg =3D <0xff 0xec010000 0x0 0x4000>; @@ -538,6 +559,13 @@ porte: gpio-controller@0 { }; }; =20 + padctrl_aosys: pinctrl@fffff4a000 { + compatible =3D "thead,th1520-pinctrl"; + reg =3D <0xff 0xfff4a000 0x0 0x2000>; + clocks =3D <&aonsys_clk>; + thead,pad-group =3D <1>; + }; + ao_gpio1: gpio@fffff52000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xfff52000 0x0 0x1000>; --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 8892C1C75F9 for ; Mon, 14 Oct 2024 17:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928473; cv=none; b=q5/m5/jmh6+1tfs0dAx2cFy5MFI8ZMSyHJk4B2BlWldtE640zFQWI7I0ZUR+Jgj8ibIg0vFxsZu0vNR+RYPT8gx5askkPBV4wEAAb4jB/J5tNE55+KsXGVxAA1rvyyLCwsd62N+00J0yO+AQCWnAVmNDcbsKVrMFmBQ9d2+Zxco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928473; c=relaxed/simple; bh=tX9i8bUVFpU221q6qYn+PKknA1u6++PMT+8EeGnRmx0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DZ6IDaxkLik0hyTI3r/pcK1qChWb7ozqIwln18HZBiqqF/F63qRxxsBXxSGpnLD8apn9yiVyHLTnNqy/gLIumltk9pCCTADFUxR/JvodPBRza81Bkq/9DADAucp+LOEtNprcYChuM6HHQRGXD98gP5aqsQQRabaWhryzd6E1EeQ= 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=EPAeG+FT; arc=none smtp.client-ip=209.85.210.175 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="EPAeG+FT" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-71e72db7bb1so278507b3a.0 for ; Mon, 14 Oct 2024 10:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928471; x=1729533271; 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=R+7+aI2goYVETl1ESrIWHcJXGhurCjTtQoKSWjYidEU=; b=EPAeG+FTGIZ/vC31Jnu6U/fC+JwrK5OBsSOCrRrJhp+qSe6nXdykTHAJDOyFk450KV fRPjvXspnDI3xq59Bw2BHOeDNZrfn3KQj4DYzaZdzE65MPZPpRzpeMGoaXnYdqfXDTcP GosgOJQTfp61cuxtxMgZl1cUR9PGqoFyrRYZ4MLzos6zHwL8EwNXpYZ87HUjaf+64PLm EDdMVaBTUWK77gBvzkJmn3nRFpjoOA9SlRBuPROyVYLOCYHy2Zh87hqhfhbbblH21MHG nRmF2tcSEnZry+bRpXDAOqIRgbcbOAvzBvxm3bgffOrXHzWz7cQhru4glV8rbXhR4XXe S0Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928471; x=1729533271; 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=R+7+aI2goYVETl1ESrIWHcJXGhurCjTtQoKSWjYidEU=; b=IJjC3VrQILKVvGBBf0PdsXqR1115Jtre0F3PnSJ9IbjWofLK9GPKDBMpNyKyxhWnoj GqK2ImgY6EtOHroZJuwRfhcQFmRB182FdNbVW9WpB2bGDLBIto/0x4hsZMMebpXc41rt l8AjU6YDU9hAcqXNFOX2b3xmZddAsEUvTSnTOPA7/vld2wkGKzt41OOJDIv5seZz4qO3 jY6X+u54KstdkB2RV2FePWkW6hN3fjp/Q86C/4ejQ+dB/fzFH3a36LF/pS4wOpoYPsIF IjXN3vzY81Htcybfe+IetyqG9/xbQlZUYjpQQUPpS44pqQOasA7Y10DTUxdkGxDh6tX7 08wA== X-Forwarded-Encrypted: i=1; AJvYcCV73Qy5NelpT5uPblEKv+qheUjlLHNDrat1ubIcJ8tcO4uD8b4FoSQfths2/nsD6buqoWfk/z28SrdEZHU=@vger.kernel.org X-Gm-Message-State: AOJu0YwZlfGb065PAfFvk+qV3Wv9ebhLIqgHiV+jTpK7Tj8vX0nmFzQa DT9DvSFgMHgeHjxhHY2NpzQPsE+YUOaJbfGuHssi2V5HPoovdIjm+FmJW/X/UiM= X-Google-Smtp-Source: AGHT+IEDEyLAWAXRtlVu5TZl1MBkJtvx2nNHhq3aaLbB9MKtoZHJDovyGpjRpi0gWo50xwyIzVYcQA== X-Received: by 2002:a05:6a21:a34c:b0:1d2:ea37:95f5 with SMTP id adf61e73a8af0-1d8bcf13272mr17676827637.11.1728928470948; Mon, 14 Oct 2024 10:54:30 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:30 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:19 -0700 Subject: [PATCH 2/8] riscv: dts: thead: Add TH1520 GPIO ranges 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: <20241014-th1520-pinctrl-dts-v1-2-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing Add gpio-ranges properties to the TH1520 device tree, so user space can change basic pinconf settings for GPIOs and are not allowed to use pads already used by other functions. Adjust number of GPIOs available for the different controllers. Acked-by: Linus Walleij Tested-by: Thomas Bonnefille Signed-off-by: Emil Renner Berthing Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520.dtsi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index 93c17f52fbe9..9c6cbb4fc3d7 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -335,6 +335,7 @@ portc: gpio-controller@0 { gpio-controller; #gpio-cells =3D <2>; ngpios =3D <32>; + gpio-ranges =3D <&padctrl0_apsys 0 0 32>; reg =3D <0>; interrupt-controller; #interrupt-cells =3D <2>; @@ -353,7 +354,8 @@ portd: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; - ngpios =3D <32>; + ngpios =3D <23>; + gpio-ranges =3D <&padctrl0_apsys 0 32 23>; reg =3D <0>; interrupt-controller; #interrupt-cells =3D <2>; @@ -380,6 +382,7 @@ porta: gpio-controller@0 { gpio-controller; #gpio-cells =3D <2>; ngpios =3D <32>; + gpio-ranges =3D <&padctrl1_apsys 0 0 32>; reg =3D <0>; interrupt-controller; #interrupt-cells =3D <2>; @@ -398,7 +401,8 @@ portb: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; - ngpios =3D <32>; + ngpios =3D <31>; + gpio-ranges =3D <&padctrl1_apsys 0 32 31>; reg =3D <0>; interrupt-controller; #interrupt-cells =3D <2>; @@ -551,7 +555,8 @@ porte: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; - ngpios =3D <32>; + ngpios =3D <16>; + gpio-ranges =3D <&padctrl_aosys 0 9 16>; reg =3D <0>; interrupt-controller; #interrupt-cells =3D <2>; @@ -576,7 +581,8 @@ portf: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; - ngpios =3D <32>; + ngpios =3D <23>; + gpio-ranges =3D <&padctrl_aosys 0 25 22>, <&padctrl_aosys 22 7 1>; reg =3D <0>; interrupt-controller; #interrupt-cells =3D <2>; --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 7629F1C75F9 for ; Mon, 14 Oct 2024 17:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928477; cv=none; b=meYmfc/ENFQaikKXoOnIJ2QJdU+lJWcpm7m36VT29XsZ2vgLKcTPgTM+acb+GTIZddNQR6Zm0Ueuhp7pvpzspojXs7etKm/AFwQTLwGCLhAo6ky/q4VCgmXQy5BM0PXtPgsH+5Hb3z9/BA5++auqxnyYJnus6H/x+jVrwmPH60A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928477; c=relaxed/simple; bh=TVhWs6vB7ybfKFG5z7MLv/MoUtDbxorMqMtMMbZ+bgM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VhoZM6ngiRSgIImLXT9ORMZqX+WpBjkEw2cfGG8nN5wcjVNVv2GRD8a7jy4yRCZTzQTg9wjaxZBO3CxzcLPoc+8Ns9MITVRY7eYp7O+bLUkQvyr5lgE621bFZuSIuHMMz1rD+oGYQtF9sd+EpcCGWdCGz/R7++P8MBsh8LR+T6g= 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=TRbdopvZ; arc=none smtp.client-ip=209.85.210.181 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="TRbdopvZ" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71e5a1c9071so1335310b3a.0 for ; Mon, 14 Oct 2024 10:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928476; x=1729533276; 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=I0zit6gUQKo2ZMxFYqtl0909LFUrn7ZGPPwMzt0NP6Y=; b=TRbdopvZ7c7VTQ5ZXWBIu1O0FNLu8aqSiVVG+WsseuqR5aXXyPOXooUk7aCnSPBjtF Y0fB85VCUjH3OIMkbek5AmBCZpLRdHVeF8LxKi3Z2wcIF9g4DM1H8y/XfrUlU3kRa35H cznPrtIKNLUGHp9dIcD1nUuydQHPyL0HZ6SxDtvab37GnjCKi1piB/y5aR9q8gQFPfwX eWi/knKivFWVBf6tevezTJkWzcYt9v+xXbz9/QNSTI0PvK3sVKkx7rbixL/akJs2Fq7d hwWaCux/4AXoaeauu7MuCHFMWLlDui7dS2NCQDYGE2bT7XyAc5c7WZOxTWbFRUaHXX0s fOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928476; x=1729533276; 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=I0zit6gUQKo2ZMxFYqtl0909LFUrn7ZGPPwMzt0NP6Y=; b=iGH0hmtrKd+4lPRxUArisTorXH4v5V0CrkjD7r5q76Op5BSykhlIk9vGE7qSkbvrZV 5+n/wRp71u9yzyXQnaSEAEE+VCaksaJHc5BDczLSvvhwo5uXx7KZ3jUfPOYN69neGsOR W1NBfSAdnYMaE5T/JonvXhw9PGO63bx6Ltvejp+BcRJrsaGCgqfBRAa7BxPfr9WizqKN JiwGKMmPgticxTrOMLn51aBWzdiJkjkIcCbWqEKzIF6PKAi2qhY00zcziqcgjzgom5Rk D9VSVbejeuh6hQJIL6eRoRHu6jojWpHJPVuCSteVQmBAHdqkWnuZX4zk7RnEQZVBTwgQ d3iQ== X-Forwarded-Encrypted: i=1; AJvYcCWxY75PrylRnb0avtw+/D7ruBvQ1QSUbZYXXoKZSouoLWzkrvNeT4670BQ99UoAY5g+sWaNLa5uEgqOd9M=@vger.kernel.org X-Gm-Message-State: AOJu0YzvsIVR+Wi0yrtqiCBaqIlvIscc/jRxzZ/kwTB7JWLeuY0BohbQ ioZ4xSIlQjsoEFmVKZbVE2d3CGLLkwEX1FiqM2fa0Xbe0tB81Kx1G1bDQp6ZZas= X-Google-Smtp-Source: AGHT+IHmZ8spKfjJSaHqojJMyLp7o+oDaFg/XgT/pdZy0pW9OWdLo+u5au4zboUexFynK3K/7hfaog== X-Received: by 2002:a05:6a00:856:b0:71e:587d:f268 with SMTP id d2e1a72fcca58-71e587df456mr10082998b3a.4.1728928475702; Mon, 14 Oct 2024 10:54:35 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:32 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:20 -0700 Subject: [PATCH 3/8] riscv: dts: thead: Adjust TH1520 GPIO labels 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: <20241014-th1520-pinctrl-dts-v1-3-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing Adjust labels for the TH1520 GPIO controllers such that GPIOs can be referenced by the names used by the documentation. Eg. GPIO0_X -> <&gpio0 X Y> GPIO1_X -> <&gpio1 X Y> GPIO2_X -> <&gpio2 X Y> GPIO3_X -> <&gpio3 X Y> GPIO4_X -> <&gpio4 X Y> AOGPIO_X -> <&aogpio X Y> Remove labels for the parent GPIO devices that shouldn't need to be referenced. Acked-by: Linus Walleij Tested-by: Thomas Bonnefille Signed-off-by: Emil Renner Berthing Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 2 ++ arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts | 2 ++ arch/riscv/boot/dts/thead/th1520.dtsi | 24 +++++++++++-------= ---- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/risc= v/boot/dts/thead/th1520-beaglev-ahead.dts index 497d961456f3..1a4154a6ff3b 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -17,6 +17,8 @@ aliases { gpio1 =3D &gpio1; gpio2 =3D &gpio2; gpio3 =3D &gpio3; + gpio4 =3D &gpio4; + gpio5 =3D &aogpio; serial0 =3D &uart0; serial1 =3D &uart1; serial2 =3D &uart2; 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 7738d2895c5a..58ad381fc1c3 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts @@ -14,6 +14,8 @@ aliases { gpio1 =3D &gpio1; gpio2 =3D &gpio2; gpio3 =3D &gpio3; + gpio4 =3D &gpio4; + gpio5 =3D &aogpio; serial0 =3D &uart0; serial1 =3D &uart1; serial2 =3D &uart2; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index 9c6cbb4fc3d7..31725c3a13d7 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -323,14 +323,14 @@ uart3: serial@ffe7f04000 { status =3D "disabled"; }; =20 - gpio2: gpio@ffe7f34000 { + gpio@ffe7f34000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xe7f34000 0x0 0x1000>; #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO2>; =20 - portc: gpio-controller@0 { + gpio2: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; @@ -343,14 +343,14 @@ portc: gpio-controller@0 { }; }; =20 - gpio3: gpio@ffe7f38000 { + gpio@ffe7f38000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xe7f38000 0x0 0x1000>; #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO3>; =20 - portd: gpio-controller@0 { + gpio3: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; @@ -370,14 +370,14 @@ padctrl1_apsys: pinctrl@ffe7f3c000 { thead,pad-group =3D <2>; }; =20 - gpio0: gpio@ffec005000 { + gpio@ffec005000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xec005000 0x0 0x1000>; #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO0>; =20 - porta: gpio-controller@0 { + gpio0: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; @@ -390,14 +390,14 @@ porta: gpio-controller@0 { }; }; =20 - gpio1: gpio@ffec006000 { + gpio@ffec006000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xec006000 0x0 0x1000>; #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO1>; =20 - portb: gpio-controller@0 { + gpio1: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; @@ -545,13 +545,13 @@ timer7: timer@ffffc3303c { status =3D "disabled"; }; =20 - ao_gpio0: gpio@fffff41000 { + gpio@fffff41000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xfff41000 0x0 0x1000>; #address-cells =3D <1>; #size-cells =3D <0>; =20 - porte: gpio-controller@0 { + aogpio: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; @@ -571,13 +571,13 @@ padctrl_aosys: pinctrl@fffff4a000 { thead,pad-group =3D <1>; }; =20 - ao_gpio1: gpio@fffff52000 { + gpio@fffff52000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0xff 0xfff52000 0x0 0x1000>; #address-cells =3D <1>; #size-cells =3D <0>; =20 - portf: gpio-controller@0 { + gpio4: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells =3D <2>; --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 645F01CACDE for ; Mon, 14 Oct 2024 17:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928479; cv=none; b=qpD4ji/j8pmpeJNOD/UF2CFo6F+hV5v2Nlmzoa1rbOgBxmBqRsCAs65C6ueww3bJvAyJJJ7CyYJ1dNLu+q1MrcvxbuXmliY2UdtVaylPNEO75EF2clLAUbpF5Zf9RQayKpHkiKKZ7IzBvUWxitmve3z3fG1Pom8NOgXG/hB6NxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928479; c=relaxed/simple; bh=M2EpkvuOMMqOaS/CHwtbywzO1w+1fETFHzbeRzk8Ipg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h02TY+p2R/LNgdVKyajIAM0101oBlKsuOLt8o1oW3Mn/YtD9s1KfLfK/Gwq2rNHaw5hRgnE++E+R2MsY0MakVxqfqHjFF8ebXGiCCRsdLIPA/BqnDGM2acnov6ZYgsXN8iJspXXxubbWxaZjVipu1ncVPqET5zYp5Fn5zE5jGvI= 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=HNnWPJy9; arc=none smtp.client-ip=209.85.215.176 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="HNnWPJy9" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7ea12e0dc7aso2844938a12.3 for ; Mon, 14 Oct 2024 10:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928478; x=1729533278; 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=Uos7I1D3jQNEa1jYD68wgLK0dLonPjDnha9WpKrjRLs=; b=HNnWPJy9DRRd4tHW8XnUxAcVHLkWErybHcG/CM1TvtXZ8C4sq7dWTY3i4lGIrtNpqs iZu7Hao9kx+RFHKZAsYNAmPO+52d1q0tR7H8Jm1xCATKxnDXZi7AOuC1Q76fj5DHIOEB xhTa6mW91v5lygvrDnhU7RF33iRIjL0e1SVrhv1HpQnkl7Y22D1YMTH37VXdrC+irVjc F24XDOyPp9JftKXaHsfeYL4sCs03hqC+R1PcClveGkxtQUoDz2hrXHR8l24tFB9PH9Lu GjTeTv2C7Z9sPvRLFouIzFaKGLoRqgeBaq57bwd/yf0TFQxr+xhgtcSjZDiFk4zL5oI0 GYZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928478; x=1729533278; 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=Uos7I1D3jQNEa1jYD68wgLK0dLonPjDnha9WpKrjRLs=; b=hRyEnPn0nTQNSQ1mA4oz0dlcvGKukqCsVenPDPx9njvutNqcJaNIcwVlYtEqE5Prw+ G1zMfy63R38Y/G2aqNwwLVPxXqTJvBZBNFtbPTYGw01p+BTO4VB4NeCR9ydjrH78hc/2 NAf3ak8B2tCQh5LntNwbxx89VFN3OAywhJ/EWTaSa9bOqcaPXdEhdRpMDeP+t5M+VxDQ romNVaRHGOqyyuze9UwHC6adQiMoCow9hGukD/XqdYaZe5j7lBcrlRmbQ7eEDBEby33z Dh83vFKjsbycBnm+0dXfiwNOy5BydnaxmucSUStNJO0lqNJrcyKFBWkMUwmm+ZTaAjr+ l9iA== X-Forwarded-Encrypted: i=1; AJvYcCU3lD/WLma4tDvxJFHw8of9XM+aoZvlDwxKerf8oltOW6Uc5ZsKpM+U/GIBifB8yV1raCe3XwMwoZLU5+8=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3ppYw3b3AUzf3FuWYN+2h3SkwTCkiFRR5R0dE2oMhTT1/9t/4 KweNpIU9hAgBT1TpBnXSbHkjrZVInWEzlFdYMCZWw3RBlDSchgqpH+QbHtcJHOs= X-Google-Smtp-Source: AGHT+IEf0p5oqGrtyTppCsRYCXH5JSV8D2MTmtTJC5hsQzJwO0qFZtTU9t9TmbxbmQs9qouXaju6Zw== X-Received: by 2002:a05:6a21:38f:b0:1cf:7123:86a6 with SMTP id adf61e73a8af0-1d8c96ba856mr15379776637.49.1728928477812; Mon, 14 Oct 2024 10:54:37 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:37 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:21 -0700 Subject: [PATCH 4/8] riscv: dts: thead: Add Lichee Pi 4M GPIO line names 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: <20241014-th1520-pinctrl-dts-v1-4-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing Add names for the GPIO00-GPIO14 lines of the SO-DIMM module. Acked-by: Linus Walleij Tested-by: Thomas Bonnefille Signed-off-by: Emil Renner Berthing Signed-off-by: Drew Fustini --- .../boot/dts/thead/th1520-lichee-module-4a.dtsi | 39 ++++++++++++++++++= ++++ 1 file changed, 39 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/= riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index 78977bdbbe3d..724d9645471d 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -25,6 +25,12 @@ &osc_32k { clock-frequency =3D <32768>; }; =20 +&aogpio { + gpio-line-names =3D "", "", "", + "GPIO00", + "GPIO04"; +}; + &dmac0 { status =3D "okay"; }; @@ -39,6 +45,39 @@ &emmc { status =3D "okay"; }; =20 +&gpio0 { + gpio-line-names =3D "", "", "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", "", "", + "", "", "", "", + "GPIO07", + "GPIO08", + "", + "GPIO01", + "GPIO02"; +}; + +&gpio1 { + gpio-line-names =3D "", "", "", + "GPIO11", + "GPIO12", + "GPIO13", + "GPIO14", + "", "", "", "", "", "", "", "", "", "", + "", "", "", "", "", + "GPIO06"; +}; + +&gpio2 { + gpio-line-names =3D "GPIO03", + "GPIO05"; +}; + +&gpio3 { + gpio-line-names =3D "", "", + "GPIO09", + "GPIO10"; +}; + &sdio0 { bus-width =3D <4>; max-frequency =3D <198000000>; --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 5CBEB1CBE85 for ; Mon, 14 Oct 2024 17:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928482; cv=none; b=s/MLRcSthKRh4oZm2P0fOQeb5fm4wSQp1T8/K7JmnjLqC1wrV9DzmOCLsVfV3AFB+F1WIbqX7oY9dcuJ4XbR3TRwonvvmToq8zT1DD+55nsk5Xc2feK/rMGxDt2GB9aHJ3kEi1StDHYEpxW6VzR4jQNt1J8XFdKcQSbpCRAJdDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928482; c=relaxed/simple; bh=JpFY7ctyaJguQQj7Z5xydJgNhEwmlBIeoSAlkJTpn/o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y6geEYX1rNXnlIpQxVF4SaV4XnxINj34cKtfVcPf0B+N1Hp/OgwVfbZjkIof4mERenKxIBPNky3mTIIC95gCLdEGpJYcizTGVGjD04fOvmIqWqkMOcYuy09buOzd2UDlOt9M3Sw9o5uFwsXcHog+Z70Xwh2E6E1tAtdAyDcVoLY= 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=OatMa3VH; arc=none smtp.client-ip=209.85.210.182 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="OatMa3VH" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-718e9c8bd83so3557494b3a.1 for ; Mon, 14 Oct 2024 10:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928481; x=1729533281; 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=7m8GT3iOgjI/IPeeAm/PS7DBYs1L+bHOJpi9gTXeTlU=; b=OatMa3VHLdGfzl8ogUmF45ILd8iJfNULt8VN6kGAnBQTc2eYvfnq4A4BUpEYdbpWu0 b855PPMhMesbTsxuDuCKlJ9M0PacH3apXhUJDvLGZaY+gsuiJG0y0zuq79sxzRcTze5I p8aV8feVf8PASZJjmgi57aFgYGRkrY79W9A1vVxWOefNxEdf0CT2cUucYlEy1liWPHmw uhucNWscpve8/S4Q4kuIWq0qeQVX2zih35SsI4q7wH7OeTBhfC71rM2oTyCxr3N1toSW icJ72i6iipf1yriftU/sIaH4TeAQMtNRrre4DPz/+G7fbTOcpzQ5QxbT5NGwQ9Z9Dy2g rMJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928481; x=1729533281; 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=7m8GT3iOgjI/IPeeAm/PS7DBYs1L+bHOJpi9gTXeTlU=; b=nW+BfeX7wo3BR5sJcmJw4K3tWZdjG9+naZhPACnY4aRDntp2tcATaBp43r1bBFw3YK RL9bWgzvhQ0a95rICohlQ2ooFmmzvvdB9alIx+PfjeQdljDYzyFjbEu/kyl1ztem68Fk 48MeUFoICMRHMEfvsBj6285fpuUGeNh6ftp+o2hwUbmEHt4X4v9xJybjqV1oCHz0uSTA aHwjXt+QE0DaDiB9IyYZ/otamG+PjfxX0Fo8mrTufj7htSUDWWgxY07IT2Xq9TZhbpDw LmIVZToZyrRrnWuoDc/P2XsIEtuhrshvZqN+G4UDTe0UEPrGPMT7VounNIohL89HByis uN3w== X-Forwarded-Encrypted: i=1; AJvYcCWXu09+YWiiRqOVNvdGlPr3ZlQLsNOAIXy76M+FUDFtfGsiz2dVsmKRE8ZtSyL75rNCwGMUBl1Fj6+Ur7c=@vger.kernel.org X-Gm-Message-State: AOJu0YzmaV4DDJmd7hbPiw7gVb4Qyhu9U08vmE+9eS+DZm9n6aCofR0I YeiBydJaGaULLSdMjAc+rJcp3k1WlVBWSgmitstDtQvK9O+OqGdRoyMfrMRbkNs= X-Google-Smtp-Source: AGHT+IFubZZsgfE7zPBcM+amVvU61DR9WiXpW7a/nxs9sPE09jRp+jNHKlzxRB5yg+eKUqCa8ihbtA== X-Received: by 2002:a05:6a21:3942:b0:1cf:1250:80a7 with SMTP id adf61e73a8af0-1d8bc85d2abmr19634037637.12.1728928480675; Mon, 14 Oct 2024 10:54:40 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:39 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:22 -0700 Subject: [PATCH 5/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: <20241014-th1520-pinctrl-dts-v1-5-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.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. Acked-by: Linus Walleij 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 1a4154a6ff3b..0484fb390be4 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -61,6 +61,30 @@ &emmc { 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-pull-up; + drive-strength =3D <1>; + input-enable; + input-schmitt-enable; + slew-rate =3D <0>; + }; + }; +}; + &sdio0 { bus-width =3D <4>; max-frequency =3D <198000000>; @@ -68,6 +92,8 @@ &sdio0 { }; =20 &uart0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart0_pins>; status =3D "okay"; }; =20 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 58ad381fc1c3..f60b1879192d 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts @@ -30,7 +30,33 @@ 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 --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.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 A93EE1CC16F for ; Mon, 14 Oct 2024 17:54:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928484; cv=none; b=mReyjA2eaR/Xr4UynuS5OGaLcvOrqAx27dXE9uwE++89o69yCAFFX11klwl57P8uTFShZHj1hVI2RQuXGZ2nOJXUdBhP2tHDusOqnDWcAmFRmWLwjTdzCtsutChAR9R6EPbkPLmf2qnql5GTWJd37Ae4GRBZg+++/FLlCIaCCUI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928484; c=relaxed/simple; bh=3zHP+Ar3McnixX54GRR+K+Zs2F8kNEFHuYU0RaYEfUE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AMkkq3YtK4OUdsMj3FfNcTIk1/fFq9HPYyLqXlBNukbZ6S9b933FI8NOd+wtbzcalo6hFz5MoT/RM3jshbnLavz+rMYo7gAx1ceZPSd/E/MeaADjW9EAKFHtw496Ic7XzyBmxGWuCoY82XW0vqNdbquKKpIaYjkcP25sUrRVm5I= 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=Ag+xPWAn; arc=none smtp.client-ip=209.85.210.177 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="Ag+xPWAn" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71e427e29c7so1735722b3a.3 for ; Mon, 14 Oct 2024 10:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928482; x=1729533282; 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=x8k+Ak70OWe9Icimvivr1l9WRiR6s756j4FbBxJKO5A=; b=Ag+xPWAnvyTuP/eJLfG7P1mlXOIko0nS+SnUSUsTTZMEG7569kTCjMCj9KiO45EgHy 8hEW1R2WfRFeEritfrh4GJ8mYX+bojmg14aPWLRgYC9I9WAMAwAqRG9POGkRTAUBzR/z 66yeXc9NPN4OnYJK5p9tNaw7x9dlKFe4GSv0linQMfwWYssgfSGLTB7rjX6qvRZVvwt4 3gD/daCuw9Oql6qsDkk7/QzHEPoJFIp4AA5CqWogRY93pwvV3v9sThWrOBAgmYeTidiJ /6IhvyJPWvImKVniKJ+/h2xRUEXEXlbB+7Zk5D7mpw4cUDct32LSzunNGETSPUuEo6h2 UEKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928482; x=1729533282; 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=x8k+Ak70OWe9Icimvivr1l9WRiR6s756j4FbBxJKO5A=; b=GpQbnERDyu9Ts5xOU7P70AZEyV2VDBMF/v1wFA/ehRIIFdWErvHgl1O/oIwM+2m03v ugT5SmQB1NYafMfDV6GX1/7tMLz8s9466grNArKYLmCEZ7304Vtj5AibMErIFgi32+vs ESYUwMdFDBiwy/4ipPRKFj865V2VAvAlcpeOO0AHxPmPS6ce4RHNHQHd2ec/YNHRCJPs r7WlDp8MKCPq/tojJwPRh5YJjuuSikbsD6kA1107/g/D1iGh/bYyPV6dyF7FQTWBmosi 2p5nF92j/LQoLbbAqN2nTDxZsiF8qu/NTn574WUEU9HEfGrXBIUwPCzZv0tlxck6y6jf jrWQ== X-Forwarded-Encrypted: i=1; AJvYcCViBN/xrvzFabZ9d6ziSd9Q7Vn46a9ouPODgWvnAJ0XqL+Hr1XP/Tyw9W5bNvxljxN5zoLmCOgBjlRmX2I=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9avptBBrVRhLm9cSc3HMcmseid4oDvytt39U+SiLprNPka4vc DRv9UUeRw3ChVc5wvnngieQG53iMViiE6a9WBpnEmQZKR5MG4GfV3I8DQZolYrw= X-Google-Smtp-Source: AGHT+IHqJLvucWLAGZ5AzhHinp9PbSR2cpVHqdqttcjIU+06NfsllWY/kPZKL7TywtCJgFpTSeOOxg== X-Received: by 2002:aa7:8890:0:b0:71d:e93e:f542 with SMTP id d2e1a72fcca58-71e4c1cfdffmr15523167b3a.21.1728928482095; Mon, 14 Oct 2024 10:54:42 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:41 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:23 -0700 Subject: [PATCH 6/8] riscv: dtb: thead: Add BeagleV Ahead LEDs 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: <20241014-th1520-pinctrl-dts-v1-6-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing Add nodes for the 5 user controllable LEDs on the BeagleV Ahead board. Acked-by: Linus Walleij Tested-by: Thomas Bonnefille Signed-off-by: Emil Renner Berthing Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 54 ++++++++++++++++++= ++++ 1 file changed, 54 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 0484fb390be4..c0cf9b086f81 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -7,6 +7,8 @@ /dts-v1/; =20 #include "th1520.dtsi" +#include +#include =20 / { model =3D "BeagleV Ahead"; @@ -35,7 +37,42 @@ chosen { memory@0 { device_type =3D "memory"; reg =3D <0x0 0x00000000 0x1 0x00000000>; + }; + + leds { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&led_pins>; + compatible =3D "gpio-leds"; + + led-1 { + gpios =3D <&gpio4 8 GPIO_ACTIVE_HIGH>; + color =3D ; + label =3D "led1"; + }; + + led-2 { + gpios =3D <&gpio4 9 GPIO_ACTIVE_HIGH>; + color =3D ; + label =3D "led2"; + }; + + led-3 { + gpios =3D <&gpio4 10 GPIO_ACTIVE_HIGH>; + color =3D ; + label =3D "led3"; + }; + + led-4 { + gpios =3D <&gpio4 11 GPIO_ACTIVE_HIGH>; + color =3D ; + label =3D "led4"; + }; =20 + led-5 { + gpios =3D <&gpio4 12 GPIO_ACTIVE_HIGH>; + color =3D ; + label =3D "led5"; + }; }; }; =20 @@ -61,6 +98,23 @@ &emmc { status =3D "okay"; }; =20 +&padctrl_aosys { + led_pins: led-0 { + led-pins { + pins =3D "AUDIO_PA8", /* GPIO4_8 */ + "AUDIO_PA9", /* GPIO4_9 */ + "AUDIO_PA10", /* GPIO4_10 */ + "AUDIO_PA11", /* GPIO4_11 */ + "AUDIO_PA12"; /* GPIO4_12 */ + bias-disable; + drive-strength =3D <3>; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + }; +}; + &padctrl0_apsys { uart0_pins: uart0-0 { tx-pins { --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 7FFE91CCED9 for ; Mon, 14 Oct 2024 17:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928485; cv=none; b=TCOjvaC2SbDlqHMhhQsdzPc97ap6olYVAmuNHOqupXF7wdFr1yMyHEVDd+jIORVNOQ8vrXm05kcp4aq5kJtYICEaUGMHhc6pgW1CPf4XqLAVGPCVZsC0P5lN2ttf4tyTzOyenPaglaulyJEQutuA2gx2j94kOb8EEH689H+qPcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928485; c=relaxed/simple; bh=SQK/KTPs/zaTbJpQJUohBtIMjsOZ37RzHMSdBhEfir4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kBI84z2Cv7xhcHOgNq4puFFczKkR94t9shvZGTD85gFXzklbtdpwJ9K7j5HJzOtayuTfXAl/WHrYc3nU12lrNFhEx3vj3zFmrdIwozZ3Oj47nBDVdW+dKj6On/lk7bxkzmUPO/eUhWgVcj2ZpMnsYFxmu6CfPl1zdQuYJG7xXz8= 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=gyeaPKgm; arc=none smtp.client-ip=209.85.210.176 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="gyeaPKgm" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-71e72db7bb1so278654b3a.0 for ; Mon, 14 Oct 2024 10:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928484; x=1729533284; 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=qxQK+n9uvqhf6yQ2qTxF/yuzmEwFlzvtchBbUqK4Amk=; b=gyeaPKgmSqidUVx+9e5vrv2/fRmlJexWL8QP4NvCEnrW2X9jcafxvnlzWLygPjMkbJ t+Nay+EsnJXtIFWPSfGGFlXEst8itOtcTJIiNrjyHz9FS/FrGKHVegWR6YEfbbQT8zi+ gjhti0cYfNRrMFBbFg+nZH2e2Z9r3Iw4l1U+L/x1NLeVaao6se4jbOosgpRG6lAj/dYU hL4FC4F4sJuwo/eNjMATwl/mUpSEKqa7naX8dkBAIu7B8eArgqKJzy2H+3EpZ+MQrZmv 0fb/maW/Bmg1hYbpPCmNmgkowKDZRFeIN6jcYTSV2ohdgYlUpOnZzkMjtIzk87MWPa22 X8pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928484; x=1729533284; 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=qxQK+n9uvqhf6yQ2qTxF/yuzmEwFlzvtchBbUqK4Amk=; b=BVmT7zk18BqIHyWOSNAXtsYmMZ1GjOtciOc1OekayCeGwGH4UbqPQ2l3V8VTkVqX4u YrjuSBDv8atWGnUf5m7HmvWr17/KgPMSBNw2AbGR0BJEZQh6LY0y6RdlHj8XBvkVBsEu 15CgFGefccRjB0CLHy16BofGn7Jgl00RtSudrxx/9EjUVGRFTAiEuJDobFpEcol3xS4Z w6UKUQ7n1h/sVpFo8ra6h7Gri26/nbo3YNvrmGoJw/upPGwbUYogc1obgtChLmZ8okTv +ExusghyOseQov7hj9T5CIxL82sWQNGPqZpqburTpm+67njooEu8kzUcnlNnjZNFq20T bYiQ== X-Forwarded-Encrypted: i=1; AJvYcCWqQ1skk2KpaBzpD8Pn6g5veJjaFzynntqBf4R0EBd08S3NiXBQmuJptePdlvJs6zKJJVjm5ECIp7jku7U=@vger.kernel.org X-Gm-Message-State: AOJu0YyMjuDckCFu0JafLhedPNQbmrDdxnbZ7OyIeqwLle9J/c/S6CQv ZSN9x4vL9vO2y9V8h4HOhMDxc9BZEJQ6V/Q1LzlfdWRhb17i4hKfw4TEz/Awocc= X-Google-Smtp-Source: AGHT+IFZUMYy9vf9WX9eJFZ1DI5EcPS1iVJ1rtk3ygNh04bgPoR2FuxlgA7ZyP+WLjWOVGFidWnbzQ== X-Received: by 2002:a05:6a00:2e11:b0:71e:4c34:e294 with SMTP id d2e1a72fcca58-71e4c34e41bmr13808172b3a.7.1728928483815; Mon, 14 Oct 2024 10:54:43 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:43 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:24 -0700 Subject: [PATCH 7/8] riscv: dts: thead: Add missing GPIO clock-names 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: <20241014-th1520-pinctrl-dts-v1-7-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 From: Emil Renner Berthing The gpio-dwapb looks for clock named "bus" so add clock-names property for the gpio controller nodes. Signed-off-by: Emil Renner Berthing [dfustini: add two more lines to the commit message] Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/th= ead/th1520.dtsi index 31725c3a13d7..cd835aea07d2 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -329,6 +329,7 @@ gpio@ffe7f34000 { #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO2>; + clock-names =3D "bus"; =20 gpio2: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; @@ -349,6 +350,7 @@ gpio@ffe7f38000 { #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO3>; + clock-names =3D "bus"; =20 gpio3: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; @@ -376,6 +378,7 @@ gpio@ffec005000 { #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO0>; + clock-names =3D "bus"; =20 gpio0: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; @@ -396,6 +399,7 @@ gpio@ffec006000 { #address-cells =3D <1>; #size-cells =3D <0>; clocks =3D <&clk CLK_GPIO1>; + clock-names =3D "bus"; =20 gpio1: gpio-controller@0 { compatible =3D "snps,dw-apb-gpio-port"; --=20 2.34.1 From nobody Wed Nov 27 02:35:43 2024 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 384641CF2B2 for ; Mon, 14 Oct 2024 17:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928488; cv=none; b=hqxMK4WJ7YDTRq9HO9R4xmE2OZfgNtnRR3CSENqQ1Y0snaqu6fUKqIdJFelNm8GjIOmHa7vxFv82OJh8+ivTWnVJqCI+zSWUEMuSg9fmtGabAxj90xmyzY9t/poHbbh+PwrnhIppXT2oQpusRomfEXVr+7xJrUr9r7tcdC+MFkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728928488; c=relaxed/simple; bh=j8PRpBk/lIiVe/T2RTs5CZVHcgqvJy9CT3C0m3PRVNA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JJ7O1ZEEdIQ7soKmqNG2UyJ8mG6XoDbGKMQ8vFwUB7wxmat8xvyn5K2pYUBDCIwGQw8gRkRoYoEO44ZvbdAxi8e2oKWm6oY1ZVh4EPQNW6wXwtpwxV7YH0A4u7bbrTpplVWLGQK6Db32MmKfBU6aT+kLCNhpFwTWRS6X3ApquDE= 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=gcCczIL2; arc=none smtp.client-ip=209.85.210.169 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="gcCczIL2" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-71e483c83dbso2702908b3a.3 for ; Mon, 14 Oct 2024 10:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1728928485; x=1729533285; 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=Ib0LzHxCGUP2Of7LzCAvLTsWSTSTY5vzi6Axbb4I5D0=; b=gcCczIL2vD5NxmIJu4XU3mzFGSscbuC5Q2wz7lw0TlYmoABIZpBTmy1kP1IqZa+Eds tvFuncHhFc1izI61ygrqs5RmKIUxpLId8q5vRox7Gxkj28OS4RPyi+lRMTEic9oSvNOj fhh9g1CzXKjYkni3P8msQ/YyAZh5bJgNVyx49hlulMoc1niwtACAlrM9htalqFo5rJ39 S6vstqOJ0/OLvFdoiMXlqbxnP9nzc8Dss8tUvvMEwIs9VwkzPdL41a/pTADGf+gh65i0 m9CQ1QzVZmqgJVXqkPMQsBtIZSfuNZCxumur5SbHxuyGHsmXfNqjsUo1FOohSmr0lGXJ UhlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728928485; x=1729533285; 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=Ib0LzHxCGUP2Of7LzCAvLTsWSTSTY5vzi6Axbb4I5D0=; b=B5iil8uPadvriB+H+HGksQAxd4PpnAm8+qwzAe5hW3lCqTBCJg4pf6JwNfUy8NIv4S qB+WOL+BMbdtvlcxzI0ENuMF8IbpGTEpdoeLZX48k/GOFjT7Je1SMoiTK76/OcF+vVb3 ZYznxJXfxQ0y5X/DsShXDyALRt+a0oE3+JYAEgwdDSu95fiCjipd3LyiH0V5znqHRphZ /UeVGrbEkKGJ6V4o+NAJpeq/a+mDcN82Hn95WwvXSgTSw/KFheQKR1sAqavfN8ttVmJx EsgFHXox+T0s48edsC8J2GDkA1cv6s0Jtkf74fvy0BiWptNCy23I8X7UgdLmeSCQhLYy B4gg== X-Forwarded-Encrypted: i=1; AJvYcCWKx5rM1wPBP1oVGPoaaa/zKI2QgLbpY9RoUfJjJqJykr7Mk2wlJUH3F4yEUcrfgw7GcqazJYY3+6zVu94=@vger.kernel.org X-Gm-Message-State: AOJu0YyxGBbXh6vXDg2jzGVK0NdoBs2N2d12ja8FNasFHVLPLnkfyc9f wRbn0TxHAjYF4XZ4MDLPze2x3PxN/xbOx/S/ifGJq/IvvH6g0H7Zpv+9qUugR8w= X-Google-Smtp-Source: AGHT+IGn+w4J6ujcKmDO9lhPgpFFwLHQORkcQhURsA6+UDHkjEM67AndBJceCtyLERFJD54nONsRxA== X-Received: by 2002:a05:6a00:ac7:b0:71e:4fe4:282a with SMTP id d2e1a72fcca58-71e4fe430admr12455912b3a.2.1728928485620; Mon, 14 Oct 2024 10:54:45 -0700 (PDT) Received: from [127.0.1.1] (71-34-69-82.ptld.qwest.net. [71.34.69.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e49a7e5e7sm5611109b3a.179.2024.10.14.10.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 10:54:44 -0700 (PDT) From: Drew Fustini Date: Mon, 14 Oct 2024 10:54:25 -0700 Subject: [PATCH 8/8] riscv: dts: thead: remove enabled property for spi0 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: <20241014-th1520-pinctrl-dts-v1-8-268592ca786e@tenstorrent.com> References: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> In-Reply-To: <20241014-th1520-pinctrl-dts-v1-0-268592ca786e@tenstorrent.com> To: Emil Renner Berthing , Drew Fustini , Guo Ren , Fu Wei , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Bonnefille , Kanak Shilledar Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.14.1 There are currently no nodes that use spi0 so remove the enabled property for it in the beaglev ahead and lpi4a dts files. It can be re-enabled in the future if any peripherals will use it. The definition of spi0 remains in the th1520.dtsi file. Suggested-by: Emil Renner Berthing Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 4 ---- arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/risc= v/boot/dts/thead/th1520-beaglev-ahead.dts index c0cf9b086f81..86feb3df02c8 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -150,7 +150,3 @@ &uart0 { pinctrl-0 =3D <&uart0_pins>; status =3D "okay"; }; - -&spi0 { - 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 f60b1879192d..4020c727f09e 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts +++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts @@ -59,7 +59,3 @@ &uart0 { pinctrl-0 =3D <&uart0_pins>; status =3D "okay"; }; - -&spi0 { - status =3D "okay"; -}; --=20 2.34.1