From patchwork Wed Feb 8 01:45:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13132272 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 30068C636CC for ; Wed, 8 Feb 2023 01:47:59 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/Ew/dwLdSYIWUZHZoHClXIXu+4vdl2WzvJ8ZSiHRI2w=; b=0XRWGICXAMf9nT 2oM0GQi9KKYxn7vT+b4CnyzlAyzFaskDxQnM3W+L380n0hPPuYg7+N8b0N0t9FtZK44HLRWmIrYHm s6tXYwiWZgns5lJtU3xOaY4c4RlMnzoRaLHq/gAd/oqNgKgt4AwS8czD53v0YkKq4Mb6llHWJ6HCu q4u/EHT+Xsyq6TfVvRcH/3A/upYeuxMEUCAe4oQj8m8F3+S2nakpXAn7vRf2lxCEfmzIjiKkw8L5p WFxBGTGu5lCF5KQkp6mIKAYUTKfFt4Uay1nliNlAW6kq0+2z/x9NtYl1ucS6XIwsBDShfrewpL9st jeIo11+GRvHK4Wi6zX0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPZXw-00DnkN-2R; Wed, 08 Feb 2023 01:46:52 +0000 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPZXr-00Dnj7-5Z; Wed, 08 Feb 2023 01:46:48 +0000 Received: by mail-qt1-x82f.google.com with SMTP id h24so19270599qta.12; Tue, 07 Feb 2023 17:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bHiDONKTcVrmAlG+ok9qtoCDOdT6Y3uf/zpz8K5JdxA=; b=pFq71igqHJMSWLWD1b//qoS4jLrNx+34uB/RKEaZqql0gVrvRfP+cR+CPV107dlgf+ XM4k4b7KJbYQE55/tP81uf9x2gmyradXMPz+iRUS0+frJJeN2WIKEM4PJUmxtgadQjLJ 0AFlrITAMwAsoQ8wNXXI3WK9b387ZreyPvO7qNZmMs2XGcx21eQC1SxFmwRiPvEOHvWZ q5YgX3nZNjflPFvsvkfk+O5tYVizrpexD6/dMQQKoFKV0aH7r0lbmZf5EzGj85aBaXh+ AEefjH1LBBl/xQ8JMzbE4iDWocJcVEbtexjOAmyaTIEUwWRLIWeyh92QF8pq4UmYzws7 C9ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bHiDONKTcVrmAlG+ok9qtoCDOdT6Y3uf/zpz8K5JdxA=; b=Vlx1QXI1Se7J/L8Q64mM5s+xH0pwZ5/NYL+xaL0elF8QEZJUDXLESJ8exKJbb3fBSw u+k79iyAaHPbtvJqyVT6Hvf8TkGYavbXoN8dsjEPAnyyBWHLcSQDz8/LACj+1zlFqkuO 8JIVEDb4lR+AosBqjoDcXmRs3dvlaDk+La8cnW4nUaNxK2mLCudOhy6er0MIL9+BxzhV 57idlVnnoArecJCp1UUPisOz38VNtGWymqdU2qjN280EZM/rUbF/QS/WKbT3PJ4XNWlS QSqaTlIPQJSlBXNs8mlvqjAdr3byUTXp3DutjoNOO4xcBzUH3lJP5IPOmROSkd+k+MnA yl3g== X-Gm-Message-State: AO0yUKWhW9p26NrAL8PgYrBIW5lXKxUEZ5HySoLQzaqSumZ/pkN2DlSg CvqLZs/jozPG37Y0MIpcKoc= X-Google-Smtp-Source: AK7set+En1tsQUU4iVuJtFlFVb8sucz5AKOaLpSDafWm8rsNlEbgewSVmtF+O0jbVeewNq8LJayMMw== X-Received: by 2002:ac8:5bcb:0:b0:3b9:bf43:fccd with SMTP id b11-20020ac85bcb000000b003b9bf43fccdmr9298181qtb.10.1675820802581; Tue, 07 Feb 2023 17:46:42 -0800 (PST) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id t129-20020a37aa87000000b006fc2f74ad12sm10503816qke.92.2023.02.07.17.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 17:46:42 -0800 (PST) From: Trevor Woerner To: linux-kernel@vger.kernel.org, Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH] riscv: dts: nezha-d1: add gpio-line-names Date: Tue, 7 Feb 2023 20:45:03 -0500 Message-Id: <20230208014504.18899-1-twoerner@gmail.com> X-Mailer: git-send-email 2.36.0.rc2.17.g4027e30c53 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230207_174647_227794_8941B190 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add descriptive names so users can associate specific lines with their respective pins on the 40-pin header according to the schematics found at: http://dl.linux-sunxi.org/D1/D1_Nezha_development_board_schematic_diagram_20210224.pdf Signed-off-by: Trevor Woerner --- .../boot/dts/allwinner/sun20i-d1-nezha.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts index a0769185be97..33489c7619cb 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts @@ -90,6 +90,15 @@ pcf8574a: gpio@38 { gpio-controller; #gpio-cells = <2>; #interrupt-cells = <2>; + gpio-line-names = + "pin13 [PP0,gpio8] ", + "pin16 [PP1,gpio10]", + "pin18 [PP2,gpio11]", + "pin26 [PP3,gpio17]", + "pin22 [PP4,gpio14]", + "pin28 [PP5,gpio19]", + "pin37 [PP6,gpio23]", + "pin11 [PP7,gpio6] "; }; }; @@ -164,3 +173,47 @@ &usbphy { usb1_vbus-supply = <®_vcc>; status = "okay"; }; + +&pio { + gpio-line-names = + /* Port A */ + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + /* Port B */ + "pin5 [PB0, gpio2/twi2-sck]", + "pin3 [PB1, gpio1/twi2-sda]", + "", + "pin38 [PB3, gpio24/i2s2-din]", + "pin40 [PB4, gpio25/i2s2-dout]", + "pin12 [PB5, gpio7/i2s-clk]", + "pin35 [PB6, gpio22/i2s2-lrck]", + "", + "pin8 [PB8, gpio4/uart0-txd]", + "pin10 [PB9, gpio5/uart0-rxd]", + "", + "", + "pin15 [PB12,gpio9]", + "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + /* Port C */ + "", + "pin31 [PC1, gpio21]", + "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + "", "", "", "", "", "", "", "", + /* Port D */ + "", "", "", "", "", "", "", "", + "", "", + "pin24 [PD10,gpio16/spi1-ce0]", + "pin23 [PD11,gpio15/spi1-clk]", + "pin19 [PD12,gpio12/spi1-mosi]", + "pin21 [PD13,gpio13/spi1-miso]", + "pin27 [PD14,gpio18/spi1-hold]", + "pin29 [PD15,gpio20/spi1-wp]", + "", "", "", "", "", "", + "pin7 [PD22,gpio3/pwm]"; +};