From patchwork Mon Oct 14 17:54:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835348 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F24ED1813C for ; Mon, 14 Oct 2024 17:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gNuDbIlCgbdtHKZWo3ouDtQs5VInZTa2lvIShK0IOAM=; b=p+be4hCdMjAoRJ 1Ni7fCrVysDiucv7Z019wZ9Yn1h6neThuNHCgUa9X3ZfUGk7bfjObjEAv9JXAlM/ZsgmegojAXy3a b8vl6EosT/2xSS+KwPKRLdZnPzpngt+m+tP5x3I5PWMTI0Ew1ulXa8nn1z0NOJUNb4RXmg9qIChzP OD8FYm2z4+7cK2J2vuDVQHwv0f70L/piu0zLyNH31UjxpEzLZ/Ellew9LzAPD6gZEtpZCaRjXEYlo nKmw0ty9yqDByJvsCef+zL83J8KKdl9HBGRdW0KgqlvqdCyfWRViLErMDfKgLuKod6DeLy60BRH6y 4pQKPNovWpaSrSxqKvgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PH8-000000066Zr-0Ib3; Mon, 14 Oct 2024 17:54:34 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PH4-000000066Yx-447P for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:32 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-71e592d7f6eso1175154b3a.3 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=lists.infradead.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=RXzVKuFVyHbcvRThJRDlMtXTXO3am5wnPOT5gGclN/xFzEsKhwpP+EM6I6vLbpvbj/ 4BbbRzMlvoBUcJzv3YDo13gBpg9oCxY7xas4t/u8WdFjAoYBb7dV45HVSFu0TvSAmFm/ 7Bt2xaqgapOU70RjS+UtQGM+sGY6pdrI/4ppfEZxDgjVDy7YM5K+jZx8ChiEDl951FNa QQQ8xOCCag+yqU5hqu8GjGJS+DRK6n+JNsdm6kJ9CNv+2hcAkUZMeM6Ggl9mJtSC0dYh SKNxIolGk8HnwHMjFcMzdubNp6j9ImPeM9lWtEY/mm2OzPIew+vhZqZnhmtLvWFgNDFf sm3Q== 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=JoI13S99PK2UCI7qwBnzWkUegoAJ2RQO0wNdcx61KU75UQhBW9ReKBCGiz9D+JZNzA D/2hWIZTF5PpULhnFrTBImpBWR5Yt+j4QHC5aEFlYfakbqttYXe6JodEZPfi/gtPDmDb oOUqDqx9NnqhDzCXe+u9ON26+icWBBY3qaqA4vL3K2OhpO+SrZkKkNrgBXjKK3Lv2iZL YeqHFatab2MbmtmGUgQF5t9Wm7/3Sqn6IoyWn4bkcB9fuV7SG26uRUBZK6ZS/VoV7dUE MHBS2IZrKa4qnyx3wZmJw1k8q72DBI+IrO30DbnKRgAx5m5ivDhZCpX8YOcECRpFk9+B fnEQ== X-Gm-Message-State: AOJu0YyNH31wqQ3SuP8Dq3/s4p9K7GbaUuK+RTC32ZuKXcZLh5QG4KlF kBF/PNyIZx5wQNZHJ52Qinud9Gh9ELSmwF5AGvcSiqt3l/UGB9m63OczoSD5/XyqHoTWlQYZKyY M 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105431_050745_5F63493F X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/thead/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 = <0>; }; + aonsys_clk: clock-73728000 { + compatible = "fixed-clock"; + clock-frequency = <73728000>; + clock-output-names = "aonsys_clk"; + #clock-cells = <0>; + }; + soc { compatible = "simple-bus"; interrupt-parent = <&plic>; @@ -354,6 +361,13 @@ portd: gpio-controller@0 { }; }; + padctrl1_apsys: pinctrl@ffe7f3c000 { + compatible = "thead,th1520-pinctrl"; + reg = <0xff 0xe7f3c000 0x0 0x1000>; + clocks = <&clk CLK_PADCTRL1>; + thead,pad-group = <2>; + }; + gpio0: gpio@ffec005000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xec005000 0x0 0x1000>; @@ -392,6 +406,13 @@ portb: gpio-controller@0 { }; }; + padctrl0_apsys: pinctrl@ffec007000 { + compatible = "thead,th1520-pinctrl"; + reg = <0xff 0xec007000 0x0 0x1000>; + clocks = <&clk CLK_PADCTRL0>; + thead,pad-group = <3>; + }; + uart2: serial@ffec010000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xec010000 0x0 0x4000>; @@ -538,6 +559,13 @@ porte: gpio-controller@0 { }; }; + padctrl_aosys: pinctrl@fffff4a000 { + compatible = "thead,th1520-pinctrl"; + reg = <0xff 0xfff4a000 0x0 0x2000>; + clocks = <&aonsys_clk>; + thead,pad-group = <1>; + }; + ao_gpio1: gpio@fffff52000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xfff52000 0x0 0x1000>; From patchwork Mon Oct 14 17:54:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835346 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67818D1813A for ; Mon, 14 Oct 2024 17:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N+xgxqmumHSJTuqdQBl4JissFJ00CZCrVAysN7nQC4w=; b=ECklecaPSOIKxe urSl1liadZtZMarsaj5z9doMHX5BXN5h62I9oYoF/x1yhZiUQyEwvPZOw3fiYGbRYtlBGAm++oN9g otaC5WV9XESImkLkRrPZtMsXDViKcByqPDIYs/GPwbQMBLaH4wb9Pc0Qp2DPSTokUX3NIpNZeNIjm OZzb+f9p4mIBgiUAuNxrZwJMw2DOAAyorAraMb/F91LGXd9HzbysMmRIAWtzCpkgWe3TPJzihayDT L4wuuKYLlBHQKBaQKoZKW1NhfO3sfT5rpmDXyyk58UIz5mIPWWmdboDdAzAsHI9xK0B37odRAvszv ozWDLIiDI+qiliIbMZjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHC-000000066aq-3vSR; Mon, 14 Oct 2024 17:54:38 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PH5-000000066ZC-3sGE for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:33 +0000 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-7d4f85766f0so3417517a12.2 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=lists.infradead.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=O43jn+uYskiqDWHO5WigErzevRf7qQ4Cd6PV5DXQVJvYPajrdUGwx3DqcvZjGST5Cl x3GuBKqjXc2RmK/xMPSgZMxP6opFs5sSwI+kNocMEfPJ2NOm6P/IfCUFf1/T0a3YzOEq 0cb1NP6sjs0vdfKc7qe8x6aMwrlhDXYAAeOqxZFJxsj9zRuexLZF4th7kBKLWWPj36Wb PviMwx6sYveMdzhfZ93+N1vilv1k5zb4qzKypYFzGeMSBMDSe93lvh/8TuO26CjpUfTl tUTVCHe8fvAkgT6bHmRlHREsNHGT43Z5gsjxVNAenSokwtv0dSWSF3B/kUhV3UTb5h4Q 8glQ== 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=hXieTzjA5xdCRtjCCserLaQ61lWoO/wx1fsRCEpGaarDcHGfHDjXj7DsyzKuUG7bwt 4fCjvpFmsleB7EVG8ZkYzYzLJyVRVOpiyOXnOugUhT/JcM2g83X/sA6yfhMpdZSzqJzm Mb3rV2hRUqrgUpNj+A3pdwSfSOz0Mf8d1InbDdwyr1oEUIlI1NQmB2YL787xugS/4e0c 026oGNy/VjOW0f6FrGvSFFp4vNVdBxtv1UNdtE6QDgqAV3iFJCkCS9qz9DsOSB6APsJ6 i4mqqAPAennRsIDzVuUwnlPiG1tFCblNeLA9DdpPMX4HDSLm4bN6Dw+PM5TdKpP9un91 IcKA== X-Gm-Message-State: AOJu0YzTU4Nlv4Fdxe6PO7uYdebaIfegpqJxG6IONK0Uy5bZRsl6tIRw rrb6jscB0XeSwNX1DS2N+txd99umxA3eZo/xSwdVWvm+VtfZ0glQo7RZoNK53lg= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105432_002783_22779972 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/thead/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 = <2>; ngpios = <32>; + gpio-ranges = <&padctrl0_apsys 0 0 32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -353,7 +354,8 @@ portd: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - ngpios = <32>; + ngpios = <23>; + gpio-ranges = <&padctrl0_apsys 0 32 23>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -380,6 +382,7 @@ porta: gpio-controller@0 { gpio-controller; #gpio-cells = <2>; ngpios = <32>; + gpio-ranges = <&padctrl1_apsys 0 0 32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -398,7 +401,8 @@ portb: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - ngpios = <32>; + ngpios = <31>; + gpio-ranges = <&padctrl1_apsys 0 32 31>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -551,7 +555,8 @@ porte: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - ngpios = <32>; + ngpios = <16>; + gpio-ranges = <&padctrl_aosys 0 9 16>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -576,7 +581,8 @@ portf: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - ngpios = <32>; + ngpios = <23>; + gpio-ranges = <&padctrl_aosys 0 25 22>, <&padctrl_aosys 22 7 1>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; From patchwork Mon Oct 14 17:54:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835347 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A654D18138 for ; Mon, 14 Oct 2024 17:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CXNX6kWbPgGlgDDsU3E2aVnGEKbrRBCbU1x2LvUl2CQ=; b=mB+LaWpUznnMRT R3qPGDgXO6ARf4UNnu3JwGababJdSLBxKUP3Y1EY3HjSioa0SiqK7nw77Qh0SxuvJkgrlIBkijeis MJ6rxEpDiO6vIp+bedxCbWpT3w8P43r8LxKo48z9Wemu/CFfaVLC4RXk3wdSMoMgYz+Tb6GS43YH8 sGCj4dK+EogDUWRW01IoU5gxnw7AyhQj9FgDp0iwJUSJCSSthWIlHpgxxeZslKBP3xQ0Ea+wTSXMO GLPgYK5gsQo6i9zk3LK/AWTr4bUB8W14dy0O0UOQzqcaiGSiWxsXVD32K5YVRTnGlXXxfbWSFDDq7 qj4VTK7apRWz7OABS9Jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHE-000000066bk-2wGP; Mon, 14 Oct 2024 17:54:40 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHB-000000066aK-0WiE for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:38 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-71e49ef3b2bso1965631b3a.2 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=lists.infradead.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=NsXAMIjfaMuyQhQZbR67x3IrqQEgvi0G1x1bTOMbM0XcMvTNRXP1kuauSEpwYkUMc6 SX0R3nWO6u26UqRZtDF7ZDWZvU4DX7vHzNZN3oSFVYsll26W64MoO8rlhrHLFFLUzuna FFk16UxPwAnn3KQ5U+CFyYKhNaS5uKien8EuYKiQkFKEwnRQJ9W66A6NkITwWeXef8cj wt5onQNHj3S/e82Aqzv95LV1uSIHKFvYMaGtqP3EvyXBh1MDrOqgttT5f2on9k4vP4Cj EGm94dnsa2VwcoDdU361vfCcJd48RiUF6X8CISpM7N+/7VWMhj7YiZ3FTjU5WPFYE3NE HHfw== 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=lQr9ukIKAdVokhF4ZTBbwJennNav4tQE/OWsW59EHzhLAe9rPRWjjatsAWsv/47HDt tFzikVU3pYiY60diYniV5iEtVLgOno0phlBJ1SkPNJQqu7PN3iRWF/zZUQjMenCqA9hL D5Nc4Z2Itatlum5mUUEw9ik0Dl9vjTfACkLkCtwaU00K+XKTlJCynOA117/VP+gAeyEa vds+3/0Yu/e0V6GRpwHQQs9CVO7MjTNuQv20WZO/sH37VBSG9u1XD6m0kGe5boENUy2h GHjAQhNxN2iNXjTn2+b8DSf68RjDsSsf9pYxsHaaULaZOKE5uIDvgXiFIW7g/XQd5Xhx 1/cQ== X-Gm-Message-State: AOJu0Yz2M8qIbmCPdtCbG+raTffAeRzOhIUhQLmr++SXE9uD1eR8PxJA w6cJNI1S6ywiaIzz/KzpvTsFWkJ5yl/sP8uvEIQYgyJbhRz4WWdWPVc87QH6iMw= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105437_332390_618F6768 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/riscv/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 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; + gpio4 = &gpio4; + gpio5 = &aogpio; serial0 = &uart0; serial1 = &uart1; serial2 = &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 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; + gpio4 = &gpio4; + gpio5 = &aogpio; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/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 = "disabled"; }; - gpio2: gpio@ffe7f34000 { + gpio@ffe7f34000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xe7f34000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO2>; - portc: gpio-controller@0 { + gpio2: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -343,14 +343,14 @@ portc: gpio-controller@0 { }; }; - gpio3: gpio@ffe7f38000 { + gpio@ffe7f38000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xe7f38000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO3>; - portd: gpio-controller@0 { + gpio3: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -370,14 +370,14 @@ padctrl1_apsys: pinctrl@ffe7f3c000 { thead,pad-group = <2>; }; - gpio0: gpio@ffec005000 { + gpio@ffec005000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xec005000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO0>; - porta: gpio-controller@0 { + gpio0: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -390,14 +390,14 @@ porta: gpio-controller@0 { }; }; - gpio1: gpio@ffec006000 { + gpio@ffec006000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xec006000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO1>; - portb: gpio-controller@0 { + gpio1: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -545,13 +545,13 @@ timer7: timer@ffffc3303c { status = "disabled"; }; - ao_gpio0: gpio@fffff41000 { + gpio@fffff41000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xfff41000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; - porte: gpio-controller@0 { + aogpio: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -571,13 +571,13 @@ padctrl_aosys: pinctrl@fffff4a000 { thead,pad-group = <1>; }; - ao_gpio1: gpio@fffff52000 { + gpio@fffff52000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xfff52000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; - portf: gpio-controller@0 { + gpio4: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; From patchwork Mon Oct 14 17:54:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D06E6D1813A for ; Mon, 14 Oct 2024 17:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5dDsQf8Fm07hnntbI0vmX9nCkG8pSePE4/MdIu9Yq0g=; b=snhviadSNpGxIf eWxh3Mxm7rWcsYWLoXgSf38OAz3eXaLR18MGjWbCfl8fTdQWgH0S09qOjgoB+bYJQn0rvrMF6Vx8d 2gKQ5Nqctm/7fiKZSU+jP8X2Knfj/HCJz7ljC2YXwh+zWFIihFar00IPEk8JKMqRXFzmPkIJWDiwc 0Mc5lLcnP1vQPdP8EKujGmhFBACWUauZNUtPEL16x/ZgbwmIlAQgPvhz5eRQ0Dfj848sfKEHrmA3u PqXAvGCEXcW8pKBOgOP+2paZ3KM3sBqwxreB0w65TuJXAAwGJjPcrRcJeiw6t5txUPN+nkRxchTEA HzFJGRz0zzB3tMirFiUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHH-000000066dW-3HBa; Mon, 14 Oct 2024 17:54:43 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHC-000000066aj-49BG for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:40 +0000 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-7e6ed072cdaso2857529a12.0 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=lists.infradead.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=Cqa277C8TDkwO9+q3l9uj9BC+GMqtAqvDnoOoC6Uhf5uNkywpE+Iy9J+wQ4MbjbxA8 bGdN2ChmK7W22Vi+PRChZiv6LXmiD/WstEii6SbyRFy6/vodqP7TtdLSrn0/s9meMia0 a3cge8CJ0sm1eZfvfV95oeUNYcTTfY6qcxjOzplrJuBzugCAIJ+qDb0o5m5INTFwxRJl M7IBtuIoZLAvIUhi37WMWL40k1peYXTLTFQW4PKPIjZuWTlTBB2U5CFXw4gzae6tUlHH PLL2+vQTzrHFyvJX4yu6iInu7CewqAjVRAWWW1imnsRXeJVg055n7Kc0yXTf8Zto3XkI FlHg== 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=P4CZChPQdUT398/xzuPhESHrOVOo4XwTkNApHKOVDzTeueegdjkWOl4xnnTrNozHJj lOUSGA93RCbECIRw+MR75W3qQCuvTCf41rJBOAhIEm2PyDUF+SspITXXiS8M3vDm89ZA KPjdnTTtzx0aSdXApKDVZcGJc4E6inLO98zSxJWygRlGKf0W7bIRQIowFBYit2NF66CN MX2IxoQkXGitKSybCVLgH+zXsibyLlaavtdJSd383IgSocEPrac3vkY4hQFJCLj4mqeb hHgxYpn5mYdgYd8wBoRmvDKjY/Ypv2FoI6Ntl/7wbKFfsOHoocdcDebe09f47pNiXOB+ RwHg== X-Gm-Message-State: AOJu0Yx+5m4vQ6xauyJohX9u0ta/mJX1bOpa+3bRSJcj1CaCAmyiU0BY pu2toixMlNMe7sf3fRwz22qWc4mN2P2U2QfZF/wYplE4yr4iiK2brs0f0WYhrMxsvdsxQtZZ1ZG G 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105439_080292_DD566250 X-CRM114-Status: UNSURE ( 7.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 = <32768>; }; +&aogpio { + gpio-line-names = "", "", "", + "GPIO00", + "GPIO04"; +}; + &dmac0 { status = "okay"; }; @@ -39,6 +45,39 @@ &emmc { status = "okay"; }; +&gpio0 { + gpio-line-names = "", "", "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", "", "", + "", "", "", "", + "GPIO07", + "GPIO08", + "", + "GPIO01", + "GPIO02"; +}; + +&gpio1 { + gpio-line-names = "", "", "", + "GPIO11", + "GPIO12", + "GPIO13", + "GPIO14", + "", "", "", "", "", "", "", "", "", "", + "", "", "", "", "", + "GPIO06"; +}; + +&gpio2 { + gpio-line-names = "GPIO03", + "GPIO05"; +}; + +&gpio3 { + gpio-line-names = "", "", + "GPIO09", + "GPIO10"; +}; + &sdio0 { bus-width = <4>; max-frequency = <198000000>; From patchwork Mon Oct 14 17:54:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7968AD18138 for ; Mon, 14 Oct 2024 17:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qNurWOF5zqIhyh4xuW7mMxxceHqU9MEeBcRfTk7HWTI=; b=y70E7NoO5flEUg Z04c1WyYBKjynD37qjIH+RIKnqc1FQ9WNi8L/TXsUs7wNsw4inDB1TOxcePBexazMsqeAG8yP5yU8 GklC9lbMRonrdv8aL5fJklpkdJa7aIBwx0ijQ6n0fw69IlOSnOB6Tz/AnvSFOpgsrq2bv0wd0i8TY JcmpXN+FJHj5GfsTwCEnXQ4IiapwhXIoHwQ6sfnXfABQ7W4AiQ5yihQPSTTwgwfojx9nFbWJ/88wl QAqdU35f9nsZJdp33HyRmEhLQHpQj31UsQ7bKFzpzeZq9tCIzOR1zvcYF9wZ6Ac6ptnIo7bVLkJFP Sul2nnvqe0/uAAy7wo/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHI-000000066dz-3FG9; Mon, 14 Oct 2024 17:54:44 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHF-000000066cI-3eRT for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:43 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-7e6d04f74faso2829738a12.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=lists.infradead.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=ROK9uqZmfqVOZ/lGpJ6vw6bpkKJxeqfp8YdM9bm37PBDb/wFfPP/zudy7RxJ1G3IgV Ulh5GTzcVcFOjMgy2rEpgb4NoqIzjVPkjbSQtWTldFNfWZHHS33Dxdgj2xUEHJLh3pQW MFJkhFpSbAud1G207oCsf/gePp/HTlxAtRwNEcAzIiSXbdpjz7JDC1sYCzpOHi0q22qk mGmyj5LeNW5AtbFjhpXpY2zqWQRvXPCF29emwK3og1A1iMUNRV0kvr9aHNZbosF9dHuT FG6Ygdlrf7iMUj+0wr0KquISK92ux03TCZKIYKQ8G0ZtlQH7oLflSH0t6cpqtATagC6a gZPw== 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=ULXxIcwe9LQHxBBRHthu0bHfGtosvLpUeJpczDEzC4hpNBGwduKN9qTBy5A+CaixgH Obe+Vpm1EMkPxupASN/FivS7S2CRzWx8jYxx8zd/tvpfTbGThu4FneHpaCgQJBTmrEp5 TC20/UKRUIp2zGtuvtzG3foMzhjdXtKTDCVFFckSTe9cnJw0cNzofeIsDqTud1oYsI9X EYjHbHX9KeMvFr11NPbzEnLGZ4NeUaKhtYf8LAyxXy1jg8MYYbsMJYRk6x5lkkZUQAUm Uy6oVJYMuJmlE9mKxzSZy7memyOHIySHhEcIG5rBmICSzsBnVfHBTTT6eMVIzJRYY164 s2dQ== X-Gm-Message-State: AOJu0YymwLExMfiKwmw1MO70XFs6huvx12dcqRGlzzrLnKczDgt5DafN QBI/D6nTOgjWhrqCQUyT9dx1rfRamVpr0e+EaOYlxNIbR3jC5av/cmHsLxUQMmA= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105441_950124_CE8CB53D X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/riscv/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 = "okay"; }; +&padctrl0_apsys { + uart0_pins: uart0-0 { + tx-pins { + pins = "UART0_TXD"; + function = "uart"; + bias-disable; + drive-strength = <3>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + + rx-pins { + pins = "UART0_RXD"; + function = "uart"; + bias-pull-up; + drive-strength = <1>; + input-enable; + input-schmitt-enable; + slew-rate = <0>; + }; + }; +}; + &sdio0 { bus-width = <4>; max-frequency = <198000000>; @@ -68,6 +92,8 @@ &sdio0 { }; &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; status = "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 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 { }; }; +&padctrl0_apsys { + uart0_pins: uart0-0 { + tx-pins { + pins = "UART0_TXD"; + function = "uart"; + bias-disable; + drive-strength = <3>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + + rx-pins { + pins = "UART0_RXD"; + function = "uart"; + bias-disable; + drive-strength = <1>; + input-enable; + input-schmitt-enable; + slew-rate = <0>; + }; + }; +}; + &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins>; status = "okay"; }; From patchwork Mon Oct 14 17:54:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8EDAAD18138 for ; Mon, 14 Oct 2024 17:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Te+wOcYXzAqXC2yYyNLUOy7vFZmANLIM1v5WfT360K8=; b=Rz5XaJFYWAMqNO ehEsWz4VHobGZV6UuErKOXODINhFFjtnheb2WqCZgH80bRxYFwpARehSqklFlaSpEDoGKL6Ma7c1o uJAw4GpOUPTzIRSLD49WfaxHm+Rc8fqoTt/F+FW8HGehN4Cg4HiN+VuHjaggrMzIcQCsbGqsXatYi sPPi7CW3CwyYlrl8zI0a0TEU7X5wQj30VjHcjSVNusMIHOR+ILNuTtBpx5JBdfa24PSGdF1PJQn3Z wxi5DfNS8l1Wc0oChDdIy0EpB22u360rfIigS5z+K4USnf3AOaSuBnA0Dg5TAl+G22VJXlPEGkOUN A1dQtpisrXgLyVzs2g5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHM-000000066hK-1hmp; Mon, 14 Oct 2024 17:54:48 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHG-000000066cj-3AeF for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:44 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-71e5130832aso1294241b3a.0 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=lists.infradead.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=RzPNMqqw4qYANZW3RaGRNN+z3C6ZtiQpTgfAguaDGYUKt9ryYTLCVWH6VsTQtvUzBq qK3iiyUmWZ8/1wGbWDmbqUOT1+/N0WFqRrCdtAP5b8mQu8OvPW2c1Zync8Lu6uqPyzpl G1tIXxG+kC/5nh75lRW/QkRX4068iJKYk5d8T2h7YmNrgx6LjYuZq4HqqWJExL/rOPWw reAUyhQHvfO9ed4lp3ySmKs6GAz2glFfY9Yw0/K8l8/AekDFgkm6ohy5nOUCWpUMnKc9 kelWBg8xjDSUn4m8KvwF+1JzFkM+Zm9CV3WWoQDePutjhRP4ZmIM99kEPj2aAgL/Bv9n 73vQ== 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=szi8msR6lRnaV8nqRxD7itYGJLSkA8krUbFB6Ks26vPuTmTIe3JncRY1jPHZNWdzLk kppfohGtMwUnFyQCdtXBKADtxLRkiNgHMqiQO92lLQwMtuQJnYS2mxtug72RBIAUu/Gj iwyuGo9hqVRgX8e7HGovorpb9OILaD12/rePy8x5hdwkRVnXobx5hHZGGv+AfDYkELtS 1oZWEVTXdRP2nOt9iGCeAGFgXwSEPbVtDw3jgURTSbTl9fbNkNC0Lwbsx6P53oOgxmIc MmDqt3zTmktbdjjcA7NncoecAlzjWaDxRVvpBliRfQ76b2RSlEuBMu/NkXusrmGhzKM1 tbbg== X-Gm-Message-State: AOJu0YzLXWUghyU5i3xACtTmJjWfRnGsCmfRqn5R5WcF1shF0GXjYJmh uyvyvh8euSqLYEAc8Qh9ZVIRvzVvtZF6MwdmnnkcGBjPkhFTqFbGIMA3Hn1GTNc= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105442_837977_21326A40 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/riscv/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/; #include "th1520.dtsi" +#include +#include / { model = "BeagleV Ahead"; @@ -35,7 +37,42 @@ chosen { memory@0 { device_type = "memory"; reg = <0x0 0x00000000 0x1 0x00000000>; + }; + + leds { + pinctrl-names = "default"; + pinctrl-0 = <&led_pins>; + compatible = "gpio-leds"; + + led-1 { + gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; + color = ; + label = "led1"; + }; + + led-2 { + gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; + color = ; + label = "led2"; + }; + + led-3 { + gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>; + color = ; + label = "led3"; + }; + + led-4 { + gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>; + color = ; + label = "led4"; + }; + led-5 { + gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; + color = ; + label = "led5"; + }; }; }; @@ -61,6 +98,23 @@ &emmc { status = "okay"; }; +&padctrl_aosys { + led_pins: led-0 { + led-pins { + pins = "AUDIO_PA8", /* GPIO4_8 */ + "AUDIO_PA9", /* GPIO4_9 */ + "AUDIO_PA10", /* GPIO4_10 */ + "AUDIO_PA11", /* GPIO4_11 */ + "AUDIO_PA12"; /* GPIO4_12 */ + bias-disable; + drive-strength = <3>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + }; +}; + &padctrl0_apsys { uart0_pins: uart0-0 { tx-pins { From patchwork Mon Oct 14 17:54:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835352 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D70B9D18138 for ; Mon, 14 Oct 2024 17:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FihhDynbzkOrxOtjoYuyvAJ/enbqSulEwcGJpN0jTWE=; b=JfC47FgKOd3yWA fCrZHo8rJQnKfJQWPrQH2D6TurpVUX7si3P7jr+6SQuYxW7G1xOCrdUcNEZ/1dpp0gGzdPk5n97jH c5iIbL+WwFkMoSQGABXorNNJUj9OA5MGT6+t7nAXu9FgXrQHt+LGJ1GwyaBAIOJPXz79VgCtgssPB PLhn08k1h49QZix3ArM7S3aCFUu1GQZStIMaUm63ooEq8GNFFciGxt5f3hHvfX3g/Sut8zesilLMZ C+4YUAj3jbvQA5w7acWTA4MGAqH4NO2iZ61aa0Y9lRlj7o//JuGWIVQEDQQiTt3ib8eMSvn1E6aFQ iCvOoa1CsqYqQcCs+kVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHR-000000066kl-2IQ4; Mon, 14 Oct 2024 17:54:53 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHJ-000000066dv-1d7M for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:48 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-71e67d12d04so895082b3a.1 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=lists.infradead.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=avY95sesu4OyG3jEEYcR9AONC6XLWtAv7dD5WghiA3ZKPshU16Vmnd0Nksp9qXvA5s c9Yi6zXEQDYr3+2CfzOzWwbJyL5/omfE9xCYkHlG1dO/dehOd7Gk/sehxmoIXM1YMltS SD1KHlEoU52KYdj/PCXqvimgaLs0HMXFE/vNKntiQPORx7e/VgUZ9x8u3FysUAUSQElW azBniGdReqzMKHzt56ozezbAytpkaFS3WryBKGu3kmfr2FoogG0gYKnctTGYMIkxPi+b sOrUDbbvwoP2ZRf1fYn+PigxYCrntFIZw6IeAA3MbYFlLFhazX8syr/BQZfodYieAQQ2 TauA== 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=olX635QNA2yNfD7cKW2CX7vPbJwzlYm9kT0IRBLg7ssif6su1Rfq25BTEZMUdU0bEm dvKidobsjWyCCnAJRhoBizw7KKruLneLjpv6z2gvDlvThNZjV6WSdH+mVGTDSvOz0QzD dW/LLYzwif4hZ0gx9xU2b7z8UyuKd7kv3piuSYhlBik2DiBN0Ghgr5JhG1I74BY5IiGC Ll9M7wWGgsCC3Ek3YBhW1hTC1jQYJemeNE9oRumlq8pcL1mXep+7grKJahB1KuLstCLv rF2EurxCc+lVic1T7q0O0NVU6daTY32RKEcOu6N1v9JZwG4XCrSzIqh5gtk+tkcPPOvU VOjg== X-Gm-Message-State: AOJu0YwIz2k/QjhtcJdKysL6Q3tm4Zx+Ed3IsibknkGg5gdZ3DIcHdKn JxoGswW4T93A5nkDx7DNuH+VlNFUO7Ang+CeQ4018qux0wBT6PYTFZjgrQ6Sg/g= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105445_549349_67A94230 X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/thead/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 = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO2>; + clock-names = "bus"; gpio2: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; @@ -349,6 +350,7 @@ gpio@ffe7f38000 { #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO3>; + clock-names = "bus"; gpio3: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; @@ -376,6 +378,7 @@ gpio@ffec005000 { #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO0>; + clock-names = "bus"; gpio0: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; @@ -396,6 +399,7 @@ gpio@ffec006000 { #address-cells = <1>; #size-cells = <0>; clocks = <&clk CLK_GPIO1>; + clock-names = "bus"; gpio1: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; From patchwork Mon Oct 14 17:54:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 13835353 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D9F5D1813A for ; Mon, 14 Oct 2024 17:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iqzClKO+oNU65D7Hy7rRhMIP87L906CwDtrNcowM5pc=; b=MTZ5sjk0JPk8ET SQgDSsjA/sR7CBsk2GROvKjmaF5DDdYXL/eT3t+zjUjVlBpQuXp535+Y8nnqtlH3mKtZDg1GoCuhW gDSAJsbajfQiofv0I5BDvBjYWVRAhri0YKIroACeqWcs5owWJg3xzjYvvwns/A91d3FuzUrQFvfCB YDmFbgg4wIPnsollyNSwT7JywjBnXVl89jqqmMqnlqpGj6GTPbyeh2URlElx/6peX/xFLuNhM9qZA IPp8Xv/7j34TYHouEUwjvwXyEr/7/KxJNeNo0KdktBNWzhvGPUEHfCEYz99HESE4XAw+5GsLTX/ht LC2XNFPQYm3OnRs0izHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHT-000000066m0-1wia; Mon, 14 Oct 2024 17:54:55 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0PHK-000000066fb-1XnD for linux-riscv@lists.infradead.org; Mon, 14 Oct 2024 17:54:48 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-71e70c32cd7so451865b3a.1 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=lists.infradead.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=Bz4IthqXaBvOCkZ5nP/GaNnOXumgMXAZJpJyh6KDm9mL1jNIHa5RgVb7DXtJ85/lW1 l3420RnHr7A0qwZ6AQ0UD8bEXYol5zpw19gQaQTg1njUWkIUR2y/lfgFlqYJo77Uozbb Dmg2iKEAKbHYza0+zow8gIHCxEslKnbX7IbcdOL++3muKSKYXKpmqD+X3IRFf1O6SnMl og7gOmXdxVfceW18IoBhHYytiG+qpjDpjxomafketb/jwfjvJaqo+wJDJy4yZpxI5Wza +CXWLX1G49kfD4KrmPTMbA3X0se3PekFDIjE91hiK8pvnumDT+PnriN8TPRQX5fJdg/X C3XA== 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=Hobb7+WP9I6iCgV0je8lWlBUIWfScPYY4KPSUykjoExH4Dy0aQ+V8PjtRVV0zzZuiQ ujOTF94MCyTWtEB9NHzWUOf6/xqohbqqVN6IQCFHvvBYKQ6PcFHtqEcJWMZ992vb+aSx uAszwsHaHB0T+Zzwi2f83bzIaFWfQxs38HDNdZo3Ucj+A7TPbDdiZScv+Lze9rnNNY+c oZriJqt3VIB3WROa+QolCvZYhp/sTOxhlWCLKrmVmsW9KtH89oVFVlq/TmfRE8p/AfDp dZHBl0Lroa9ncD8GL4Z64IOhtRZ9CGeqbKb1mUjFJbapCkraXlXoymJban3Us3n75bvp Q2DA== X-Gm-Message-State: AOJu0Yz5FGDdyo4ZA8qX0tpCWe6Z7hVhYRfjs7og4TOJnhKfVpVZKRvM dtQQp2bpa3skbGxqQDhMXd2HzA50sTF6QsZnSeCs/hGEgxY9wTXKxC/fwEPnyCI= 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_105446_457259_CB404622 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/riscv/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 = <&uart0_pins>; status = "okay"; }; - -&spi0 { - status = "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 = <&uart0_pins>; status = "okay"; }; - -&spi0 { - status = "okay"; -};