From patchwork Sat Dec 2 18:22:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 13477031 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 65443C4167B for ; Sat, 2 Dec 2023 18:22:40 +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:Subject:From:MIME-Version:Date: Message-ID: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=AGQp7oaXP+ZS7cYuRkkklIMNIQxSgboUwwuFP3gfmv8=; b=hRXTSb2cZEt3dB Z5EfEBVHvKgxq3ShJvLh7f9hLjFPyV2X/JYVwR6ZG08vIl8taaybpg82dMaPDcOFFbvQOnP/h9LKL qyTqa4AZ4hJcIP7bHo3pHRs6+eeYqnX7GdhnR+bJBVea/O0CNg++UCIwtC4iLk7Ef3glm1JOoWY5G wI19W+neLV7JduT9wiRwRPTcEailr8k3FmTBn5Z/KKhOV7rfZEoR7x6ZhOghaHBnVsZFkpTactOag ObfxnfMbFWg/dNPRm1S6UcpzHUmxb7jHhks4XVspJPTeISHbSIW2uvwBbsWmobKK0YOezsXNyZCvM OVjSuARxhRcMadk4nsmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r9Ucz-00FywM-0B; Sat, 02 Dec 2023 18:22:09 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r9Ucv-00Fyw0-2c; Sat, 02 Dec 2023 18:22:07 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-54c77e0832cso1081464a12.0; Sat, 02 Dec 2023 10:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701541323; x=1702146123; darn=lists.infradead.org; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=TyFCiKZiHWD5dcEIPfQHHPlDxT1woqLl54OWaAFXfos=; b=Lh3wQwDQnHTfLhqPRJRkD9+plEgFL+KeB9XiGXx+Nb0HGJIEcq2SDZ/VXYeugoPuvL N9SW71Of1OJADzZcfR2mtLf8Yv9ATh0k5cv02E42cqjef8WXTtKXp0r8fXSoOvr3J5TE JQ+iNciH7DJMtFRkXqIe6pcj7e8of8f+tFMb1Lf1fR7WbAgQ6Cl9wRTpmwLT1KaoKe/g 4RibVTS5wCD1q9d/zDkp1rG+D2DXBNuno4sNC3LLdTTgJUvajAZIBpYGdcMkqaUMIfim ZnA5zU1HGqEuM+S29ecmlf/H79zANxGc9y9u+nfEi6dibTScGr3jfj3+U93tzBRf2e/g FbCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701541323; x=1702146123; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=TyFCiKZiHWD5dcEIPfQHHPlDxT1woqLl54OWaAFXfos=; b=SqZBtJzwzZHebFW/fSz+10fG0ayPXLk0nULfeyAFOtbkva+tDNRDx3KF0AzqFiHSip F+Vo9jKCMfH5yWrwrJ/ZdRAUeP/fkzrfdQ08DWKndS3PANB8MaUGfXbZIi6KeF4SoKOo rzMV4huZ3gzN4wLKVyrWnPHP9+hBo4pCZ6kuoHV4kmVhSwygFBO3Z7HWRxJJhIpl28DT btnQE9iYrw82uNMr4OxmdBWuSesiVGPy6ebnB1t+JxHbKyh54QzH/IgX9+6QcgAmUued kznOF6AUNE050/g49PVV1eZvvLVLRO1qGpi62VuLHpm5ZfIBJsLDtT8BZiXZVISE0nKt qzNQ== X-Gm-Message-State: AOJu0YyOWELR1cnjPLwjqi3AL4kggzFgdgq9j70ix2aKsoqdc3lwRDHF +W9e2PKH1ZgHyEHVR/PBLSY= X-Google-Smtp-Source: AGHT+IGjhja9zQfmHEPloTPetsXirLklrAI+SSzAqtY1tPIIcu8nnQ8h24bB3rkMbTIyy3R/7qu9Hw== X-Received: by 2002:a50:bac5:0:b0:54c:4837:93fc with SMTP id x63-20020a50bac5000000b0054c483793fcmr1938993ede.67.1701541322838; Sat, 02 Dec 2023 10:22:02 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id q11-20020a50c34b000000b0054ca7afdf35sm57615edb.86.2023.12.02.10.22.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 10:22:02 -0800 (PST) Message-ID: <89f2a229-9f14-d43f-c53d-5d4688e70456@gmail.com> Date: Sat, 2 Dec 2023 19:22:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 From: Johan Jonker Subject: [PATCH v1 1/2] ARM: dts: rockchip: add gpio alias for gpio dt nodes To: heiko@sntech.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jay.xu@rock-chips.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231202_102205_871923_BEB6BFB6 X-CRM114-Status: GOOD ( 11.87 ) 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 Rockchip SoC TRM, SoC datasheet and board schematics always refer to the same gpio numbers - even if not all are used for a specific board. In order to not have to re-define them for every board add the aliases to SoC dtsi files. Signed-off-by: Jianqun Xu Signed-off-by: Johan Jonker Reviewed-by: Dragan Simic --- Changed V1: rebase remove rk3066 gpio5 alias --- arch/arm/boot/dts/rockchip/rk3036.dtsi | 3 +++ arch/arm/boot/dts/rockchip/rk3066a.dtsi | 5 +++++ arch/arm/boot/dts/rockchip/rk322x.dtsi | 4 ++++ arch/arm/boot/dts/rockchip/rk3288.dtsi | 9 +++++++++ arch/arm/boot/dts/rockchip/rk3xxx.dtsi | 4 ++++ 5 files changed, 25 insertions(+) -- 2.39.2 diff --git a/arch/arm/boot/dts/rockchip/rk3036.dtsi b/arch/arm/boot/dts/rockchip/rk3036.dtsi index 78686fc72ce6..8aa2e0864fed 100644 --- a/arch/arm/boot/dts/rockchip/rk3036.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3036.dtsi @@ -17,6 +17,9 @@ / { interrupt-parent = <&gic>; aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; diff --git a/arch/arm/boot/dts/rockchip/rk3066a.dtsi b/arch/arm/boot/dts/rockchip/rk3066a.dtsi index de9915d946f7..30139f21de64 100644 --- a/arch/arm/boot/dts/rockchip/rk3066a.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3066a.dtsi @@ -13,6 +13,11 @@ / { compatible = "rockchip,rk3066a"; + aliases { + gpio4 = &gpio4; + gpio6 = &gpio6; + }; + cpus { #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm/boot/dts/rockchip/rk322x.dtsi b/arch/arm/boot/dts/rockchip/rk322x.dtsi index a721744cbfd1..831561fc1814 100644 --- a/arch/arm/boot/dts/rockchip/rk322x.dtsi +++ b/arch/arm/boot/dts/rockchip/rk322x.dtsi @@ -15,6 +15,10 @@ / { interrupt-parent = <&gic>; aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; diff --git a/arch/arm/boot/dts/rockchip/rk3288.dtsi b/arch/arm/boot/dts/rockchip/rk3288.dtsi index cb9cdaddffd4..ead343dc3df1 100644 --- a/arch/arm/boot/dts/rockchip/rk3288.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3288.dtsi @@ -19,6 +19,15 @@ / { aliases { ethernet0 = &gmac; + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + gpio4 = &gpio4; + gpio5 = &gpio5; + gpio6 = &gpio6; + gpio7 = &gpio7; + gpio8 = &gpio8; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; diff --git a/arch/arm/boot/dts/rockchip/rk3xxx.dtsi b/arch/arm/boot/dts/rockchip/rk3xxx.dtsi index cb4e42ede56a..f37137f298d5 100644 --- a/arch/arm/boot/dts/rockchip/rk3xxx.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3xxx.dtsi @@ -16,6 +16,10 @@ / { aliases { ethernet0 = &emac; + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; From patchwork Sat Dec 2 18:22:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 13477032 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 D5879C4167B for ; Sat, 2 Dec 2023 18:23:30 +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:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WJRN6ImgXGDPvtZ9p4bbkuOn31AjvoXfSTiC1L2+sKk=; b=eZX9yoN9KHt43S VW9sxhvrmS9yWK5o0szMafcKbnzInbBTF6QMt67C8NlPOTC3YJs8IEoOVMbskxKCncvUwQSVt2+F4 UjdNbbT2wtiqd26n8xG7XtsFFN+1AuUtS7bMKllehPx9qtOF4GXfXF2WkridZd3oSQVMjQWW7x9Ot srnZKe2TqJ3KMR71v3vquqIgWH4ZX0yDdyn+i81kwVIoFYvMGaREY1DOlZRcF6lXhWxUax/w7C6TC G0v1zPq056ki7v2oeMYPr7lc5LmfZoQGISJk11M8qHfCZWlJCIClw0kyRcat6GPTs2H0BFPAlaDfV Fx0WmjkwJWz2PFeI/IlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r9Uds-00Fz5m-1M; Sat, 02 Dec 2023 18:23:04 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r9Udp-00Fz4T-2L; Sat, 02 Dec 2023 18:23:03 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-54a945861c6so3941089a12.3; Sat, 02 Dec 2023 10:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701541379; x=1702146179; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=ptQy7vIkYjCFB+aa3cCw2vsywB20J1NTnue46LWtMms=; b=LkGVHz/77f+vBjCNF9XuqmZYKx/w6uJqaqfdovXqXY1jClBizlY6bBBFC+uxLx9K4X 4dxYsgMQ3qxFqKfVtoLkwzVDG84FtZX4V6hDynsnQLraQ9jEBnSGEk+giMyChg7mFQK5 sWNmBIiiNDe8HdjDsJmxwwNbM6ZtYUMLYBxAbWvcEszCsTQcW2WSwLdUl/spGWXUIhWL W9s9NrZUmYTIwWjwEZ7IZiIah8BNc3RqCSxFrds4h+LsLx500Pxh2aKA17pwH67sDWe3 J74O77ATbGOuYSFozoe+Xde3x9dvtw6Om1ZGp8IWIlnP6dAc0AlPVGoYVI+YKiLaeiZv sPiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701541379; x=1702146179; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ptQy7vIkYjCFB+aa3cCw2vsywB20J1NTnue46LWtMms=; b=VcEHL5Q7q5+Y/5hQSHI5ifGG+I5XE3b+vXhZ36WS3fBRng81oCLQu93zFspRFuZht1 8fLe80eQW66O6R6IU2OE0dWEbpJXwPVRtLICl2oVj1xRIoskN+TMCHY/2pHwen2GVPPT LaOaiZ9BtNarYs1qk1DY1zj/N3dssB85zizbKzkzS+ohvZTXlBd24SNW4gfX7YTkvHha e1Vx9Xlj9WL5GDaifrbAf62isGNvDz8dT3oeP1P6yMieu8vf6HWFwAGM+jb2pFG7U5SW i1d+Cyj9HahGhp9nooV/e9hPgi7dYfLsiuxSg5XxKceha8450IbaP3WIrVADQ9nYG3gM DN+A== X-Gm-Message-State: AOJu0YwclsdLrPbQGw+D7bjvJaafUgLS2tCxCbaDMGUmYSDzplAZUSxv Ksgv/reQYELfCE1VcbRniVU= X-Google-Smtp-Source: AGHT+IGFJofaaySUB8o0CkLPtrCC8WKyR8dvy8zqfrOR6kgqZUxVxqimQVEZGEmQTeq0qQ0rgDoQiw== X-Received: by 2002:a50:8d06:0:b0:544:b0f4:f13 with SMTP id s6-20020a508d06000000b00544b0f40f13mr2025975eds.23.1701541379341; Sat, 02 Dec 2023 10:22:59 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id g9-20020aa7d1c9000000b0054bc8d34a23sm2876924edp.93.2023.12.02.10.22.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 10:22:59 -0800 (PST) Message-ID: <56daeead-1d35-44bb-00c0-614b84a986de@gmail.com> Date: Sat, 2 Dec 2023 19:22:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 From: Johan Jonker Subject: [PATCH v1 2/2] arm64: dts: rockchip: add gpio alias for gpio dt nodes To: heiko@sntech.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jay.xu@rock-chips.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <89f2a229-9f14-d43f-c53d-5d4688e70456@gmail.com> Content-Language: en-US In-Reply-To: <89f2a229-9f14-d43f-c53d-5d4688e70456@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231202_102301_768219_A0555EF3 X-CRM114-Status: GOOD ( 10.98 ) 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 Rockchip SoC TRM, SoC datasheet and board schematics always refer to the same gpio numbers - even if not all are used for a specific board. In order to not have to re-define them for every board add the aliases to SoC dtsi files. Signed-off-by: Jianqun Xu Signed-off-by: Johan Jonker Reviewed-by: Dragan Simic --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 5 +++++ arch/arm64/boot/dts/rockchip/rk3328.dtsi | 4 ++++ arch/arm64/boot/dts/rockchip/rk3368.dtsi | 4 ++++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 5 +++++ 4 files changed, 18 insertions(+) -- 2.39.2 diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index 2ae4bb7d5e62..cfc0a87b5195 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -20,6 +20,11 @@ / { #size-cells = <2>; aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + gpio4 = &gpio4; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index e18f7c1c0724..76ea18bf11a0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -20,6 +20,10 @@ / { #size-cells = <2>; aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi index a4c5aaf1f457..fc7e3f2bc786 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -20,6 +20,10 @@ / { aliases { ethernet0 = &gmac; + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index da0dfb237f85..dec2705d035d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -20,6 +20,11 @@ / { aliases { ethernet0 = &gmac; + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + gpio4 = &gpio4; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2;