Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1822184rdb; Sat, 2 Dec 2023 10:35:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGImx4NAmYo6bNoTVyMJNfmhOThYl/w3XNk+n5Ftc8KTAQrktIB74GQSMeSa4e4dOlpU0x/ X-Received: by 2002:a05:6870:3048:b0:1fb:75a:de7a with SMTP id u8-20020a056870304800b001fb075ade7amr2052053oau.104.1701542107998; Sat, 02 Dec 2023 10:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701542107; cv=none; d=google.com; s=arc-20160816; b=owKkwKGmRlXwvccUjEEzsrwUuU2+j4psXz4YsTXGbI0j9gD0ThR4vkTE7LU4q+IhZT alxBa7VZgGLwfjcmZsaA+pnLhkm3I4B/2fxozwGsP3owaFDFH/TzHczLLUkmX1zGuL47 Y6uQL8VplK6CWlI8y9Z5MA//EGv8dmmAhIFwE0y9+37J9ptO8PHXYT9HW9UPukLNktJ3 e/SBbY2A1U9zbdpqEDCjr0rr+2e3FJbek1raKTR/xSP2lPqt0guRDdrjpEP650/OS6i3 3uAaHoYapix1eJVExlhGRixHd0cfqmeQTrqSsnsRZ1K6ghhxX0P6Ol9J7LlAcFw4XMQ5 c8FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=ptQy7vIkYjCFB+aa3cCw2vsywB20J1NTnue46LWtMms=; fh=9hYhgCJpZB3S7RsN6hNI08vknKoSngEnbbBYxyQ1LLo=; b=a8xInISktQUda2gt3huMLUvWOMhsN6rxF0vLXDG2FhHdn/4rLS/HVUbjL816FZTj+r cvB6hmBCf2bCIdZAN5YSvQInY3OlO/Kl0Xnp4cc83PBPLqag5pD871/1CB+GE1g7QR/P UjqGAzUtu6CxmiDAzhIwSGBg8/T3cibcWV641WClS5rrRlOKio4zA5OgbqBz60yE5yxF iC99GBttYyXzCmvrBzhA5xrDzHAokO5UZqB8wA+8ztQ5dMRjliv2RtUZ2aKr69HmigPM q31YcPFQ9Vmelb6Gv/lp52o/bFR1FveqpnCKLrXQIdfWog9LJS2n+xmNCVufvyLQDSvr S0yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=klk+KLJE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p3-20020a17090a930300b002864c15489dsi4109975pjo.173.2023.12.02.10.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 10:35:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=klk+KLJE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 02D3C8066651; Sat, 2 Dec 2023 10:35:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230370AbjLBSWz (ORCPT + 99 others); Sat, 2 Dec 2023 13:22:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLBSWy (ORCPT ); Sat, 2 Dec 2023 13:22:54 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F51AFF; Sat, 2 Dec 2023 10:23:01 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-54af4f2838dso3948009a12.2; 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=vger.kernel.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=klk+KLJEUfsH9RnEPdSz4HCczyOyTIcqog5ZN7qVFv1zsz9yoBeaRqygN6WRn1AXLX Lk3dJ1X4jcPVQVMogLryAu1JbQtRAyq+lJ1wu1YN/LyR+rDR5/ZlnA5ktVrUzWQSzIvv tzb5FCEToIohZPqwmv3nAb5kDqduaYypPtCr9XeWHOH2PA5IW2mDYq9rsyDZSMaho98r DRo3WYQPLQlV6Fe+EWs//jRguxCs3PPbpRtWweXv9nqxlHy8QP0BX+lJW0ahh/vKpwbB Ne5mgX5JMyOKnx5WY3eboBImG3QlXEq0Y/LktOTV8dGIvyXrb5vMsEl0m2/WwegMl851 P6Jg== 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=RWEE3+FzQe31f0+ClB9j0/wnFdYuzQ0GYrMtAdcu5Ngsr9e1zPWQMXKiSWyFPaj2Aa 4MzTkdcaQaUrhSY55CbdsFjkWreZ9MQ42MQEo27c/F8KBPQllxRDj8ojJtYuZBqGAZ1L 1950rOyHBrR35Hc5VTvj/WQ2t4eTwRjeoOQ+Xkif2DoPtJ6DqiqYoOerWF8sl0UBCLzO FnzueVTDmJDC/KrruZfyurVrZsEyFRf0nIOUD5N7Mu2U+Ey+dYtv6CraSF6WX1pTcmEY m4EeWx8QR7p4AGP+Z1RvOWxzWFnFsn93VEtZjEYijfnjo0/BT9dt43xDmHo2MpOl77q4 dqEQ== X-Gm-Message-State: AOJu0YxhJsoVVWHs5vDJkPEhCG6rfUKaH7M9Qpe8x2tFqLsVYG13w7An y92T15+QesjQw6RVuhihTyk= 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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 02 Dec 2023 10:35:06 -0800 (PST) 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 --- 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(+) 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; -- 2.39.2