Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7122434rdb; Wed, 3 Jan 2024 05:31:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5rkwiR5ZkgEpklWpeS6KNzI5DQKdSlOhgtLRri1dOyGkje4oqzSfehW/llUXeadR1akDF X-Received: by 2002:a17:90a:7c4e:b0:28c:c1b2:43a4 with SMTP id e14-20020a17090a7c4e00b0028cc1b243a4mr2545669pjl.68.1704288666392; Wed, 03 Jan 2024 05:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704288666; cv=none; d=google.com; s=arc-20160816; b=hF/mL8506ksOYZgq3LXJ948iYmzlZW+H/u2b1BY55VorV9I6TtklQorwQfMYdzvwpT 1qocnOKJn9/nm3kDPLmed+05YMcM9dv0KlV07NE9vd1L/9mC/oZ+2Jv1uVzEXz2ne0lf R3m09LVhlfEF8lS9mOJNH+Ad5xMIXb5F6SEnELgjsjm4GfY9LkH+e03Nj5qMDtNeYTs0 7VJy4ESIuZ3tyHoGGWAc+9Q7sMcgak3XN6aJcRShNGRrJtrBB0vTg2K/TPYhbJtz4Vpy KjG04ULRjkRccwlffd3v66gKbbp+uD+1R0sZGC5EwIyOYPUwdCAVNX6w+bdcf5TMWnOh MAVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tqMfg95KIVjJvPKgbsWHmt5kfOhdG002h5X8NSsa4sI=; fh=v+Tej7Da5neO4ppxb9KCbYb3QrHrU+S9AJJBYfP4W+0=; b=LMPVkjDcmN4Zl34DE/kaOyxidmJjWyA5Esrsr3yWZKX29L60sIhmxijeYbOUZ53qAy GkzOjaG0mEHUNYFWxF1Qbd22yKtLQg0WfqcWrs91YInFlbeub/2TUwtR+g2VaElMpWt0 qS6fbrp9VRE9zqQHorx2KFxeA0UONiBUHa9IoSzYQSojAhvnI11OWIid47+56whvVrqR Tj76Mt/VaNyZZ2+djKAsbNsZTbdIKvImBDKAuoO22UI1Pqf/4anL3oahIy41oOIj5eB0 gZ9V0gfOSjIBr3XzfjsBT9cG5XScbI8miTMAOeYsv4npIBPjEHdPEwsNNseGCELigxgU +czg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=S7dh7s1N; spf=pass (google.com: domain of linux-kernel+bounces-15572-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b001d3b2366adasi21627742plf.35.2024.01.03.05.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15572-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=S7dh7s1N; spf=pass (google.com: domain of linux-kernel+bounces-15572-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 22B67B220DE for ; Wed, 3 Jan 2024 13:30:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C7031A5B5; Wed, 3 Jan 2024 13:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="S7dh7s1N" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DDB8199B0 for ; Wed, 3 Jan 2024 13:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id DBB233F830 for ; Wed, 3 Jan 2024 13:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1704288544; bh=tqMfg95KIVjJvPKgbsWHmt5kfOhdG002h5X8NSsa4sI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S7dh7s1NpuRIVpdZL2yqjpY47a8BdJ7+2bkTFto955kb+BylVZ6PsTDPi0zTn6fp0 ReVLJAsL2OuXTn55VtmyFvypxTe+g0dTSLYyc3A+gWY84XC9BBZYNLJ8nGMV4vFjZ6 uCZ+QKVcJ2crgRRDDSCil0deE5VQHrHtuv8tJUQHKq0fY/rI+MOoYgidrcAssOWKni MxvQyWjKBvbU7x5GYoQAlJPf5eLuZswxUZh6viLFkT7Mp2fvp23s13ucCQ+O6r1cFM IH5rpB8KzxKptRJ9foB8au4Au7skv3g+0N68X/9e2FW5sh5OOeYNX/vjC0ahEPLtBw YbHI/cEcnScLA== Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-50e81d186e2so5104295e87.0 for ; Wed, 03 Jan 2024 05:29:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704288538; x=1704893338; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tqMfg95KIVjJvPKgbsWHmt5kfOhdG002h5X8NSsa4sI=; b=r8Bp8MYMkcoQMZyDQ3HyTywlHVq0X7q4VBTHeKElxY+rJmnL5JRpzS+QBuBagq+mJ7 khbMIvnmJNU2F4wKsD3GsD+x7erGeMNItjamlLmP+v5I2LtQtv+0GnFGbhXQKhz5exAO QzdZ5599QwURju2HOsi0iA9TVpEAXr2K3Q3tNTZedeHi8NAZc9LnyVX+rQJmZAHxqBdI uxkXBZ4qXaCrKt7U83/F/ZaxEYu/mvTuXbGyq5ARKtJYQs/UXQrc1yxeHic2K3kXLuaR IOaYF5jR2Fm6OY3LFPou8vl2uEteODxRIo/hokt2zhcbLP1ZWtAu7p7L+zHDPvZE/IDi piJg== X-Gm-Message-State: AOJu0YzOKj7JakAlYxOp6wjFzqRbVGygGSjn48JaXYcSQ4mP5GTXxdSq XN2YlL+oHYOAGOAeHHvzOUvXg+IsEU7Haua795HebYQGEtkROmFEjmOGCjV4H696Xzt5lL993Aj Al+FX8lRK4ishuY6ECBNh+noYvcsp5w8/3nAYLpT+bGR1SKL5luOMIR+s X-Received: by 2002:a19:e043:0:b0:50c:327:9932 with SMTP id g3-20020a19e043000000b0050c03279932mr8930998lfj.107.1704288538753; Wed, 03 Jan 2024 05:28:58 -0800 (PST) X-Received: by 2002:a19:e043:0:b0:50c:327:9932 with SMTP id g3-20020a19e043000000b0050c03279932mr8930986lfj.107.1704288538441; Wed, 03 Jan 2024 05:28:58 -0800 (PST) Received: from stitch.. ([2a01:4262:1ab:c:5af0:999b:bb78:7614]) by smtp.gmail.com with ESMTPSA id eu18-20020a170907299200b00a26e53be089sm9549873ejc.44.2024.01.03.05.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:28:57 -0800 (PST) From: Emil Renner Berthing To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Drew Fustini Subject: [PATCH v2 5/8] riscv: dts: thead: Adjust TH1520 GPIO labels Date: Wed, 3 Jan 2024 14:28:42 +0100 Message-ID: <20240103132852.298964-6-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103132852.298964-1-emil.renner.berthing@canonical.com> References: <20240103132852.298964-1-emil.renner.berthing@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Emil Renner Berthing --- .../boot/dts/thead/th1520-beaglev-ahead.dts | 2 ++ .../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 6c56318a8705..f1e8eaed487c 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 9a3884a73e13..0ae2c20d5641 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 5eb841ba5124..60225f122112 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -212,13 +212,13 @@ 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>; - portc: gpio-controller@0 { + gpio2: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -231,13 +231,13 @@ 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>; - portd: gpio-controller@0 { + gpio3: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -256,13 +256,13 @@ padctrl1_apsys: pinctrl@ffe7f3c000 { clocks = <&apb_clk>; }; - gpio0: gpio@ffec005000 { + gpio@ffec005000 { compatible = "snps,dw-apb-gpio"; reg = <0xff 0xec005000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; - porta: gpio-controller@0 { + gpio0: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -275,13 +275,13 @@ 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>; - portb: gpio-controller@0 { + gpio1: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; @@ -418,13 +418,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>; @@ -443,13 +443,13 @@ padctrl_aosys: pinctrl@fffff4a000 { clocks = <&aonsys_clk>; }; - 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>; -- 2.43.0