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: 172869 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1902697vqy; Sat, 2 Dec 2023 10:35:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFng51GNRHFg9Od7d46qkfjoS3goOjiIpFgycomEzxfKe2YuGXEZ7DdyNBVqUUie5sI7Okz X-Received: by 2002:a05:6870:658d:b0:1fb:75a:de59 with SMTP id fp13-20020a056870658d00b001fb075ade59mr2366276oab.71.1701542108020; Sat, 02 Dec 2023 10:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701542107; cv=none; d=google.com; s=arc-20160816; b=uWgpZT+uRh5uNEKtIim2lJdd9iwAf0W3iLE7pfmuVnqCX3Quzbh9M/XnRH9a06pd7X zeZW2krxkCdPPU2cRw0pvGA93S1qbL4KtpucRIzb8GMxHpvKH4oXQ6gsy5P3si5qPvS6 Y0QXsgs0/d3+ZPHdEvcEvU1m7aQGXUJN2ZHg6mTP5KGbwVJJuxZHrCio1RWA70klfBdw OV/TZsmxLGSiPzZyoX7DPrdD3WXQCj9jz4mFc9JkAsmDkxpFUa6xTQ/iVWEIVAIuPMoM ke+3nSUJR+H+/IZ7prwQ0ZbPbz0IWBCSWMYUF8VbORIwiYb8GFACeoKuczzq3q/6uSwg CyMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=TyFCiKZiHWD5dcEIPfQHHPlDxT1woqLl54OWaAFXfos=; fh=9hYhgCJpZB3S7RsN6hNI08vknKoSngEnbbBYxyQ1LLo=; b=nS+GMEGGnnFDWYOuzWROhRMMGZKVDVmqUV3IeHsw9ToPRxWo9SXKtLGpjOkZq6nRlC RfjVgvv0C8NYnaMMUBNYKIlhCSQqd6ClTNdKOzaE2uRgW0bYNHTidShm6n0ll5ZKydPM dZBLMVaB5UzCr0S7WoN2Y0WvzfIcD0CYQaUN5EIw5Oo+oFUjbhPmY5NjtBM/BGdZvKJ8 WPScDdg7SgmY7e2D2M1rEsnFRCfo9sR8LiFVFt6s8RPWnvIxqE3g8I7BlxQHg0TIYBB2 OLyzj2SbdupFBELqbylJrhwLpFeBldNEvy4KjrJ9vHbNn8COT64xze8FgvS8JYEK2zcf jmcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FfvvRKPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y9-20020a656c09000000b005c6667e3ce3si897891pgu.299.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 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FfvvRKPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 187228081F51; Sat, 2 Dec 2023 10:35:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbjLBSV7 (ORCPT + 99 others); Sat, 2 Dec 2023 13:21:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLBSV7 (ORCPT ); Sat, 2 Dec 2023 13:21:59 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA54BFF; Sat, 2 Dec 2023 10:22:04 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-54af4f2838dso3947599a12.2; 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=vger.kernel.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=FfvvRKPCccA6kFiUOHkD1J4+b/HM0jj9Q10nUfqnJkNent3Fg7za7i6mMDjpd4j7as 7QTutoDDY4iuVg73nxGfkm1fX7S7e9Be65DZQTJYhkgcgUtrdWXpiiGyPVSSjqpBxW+6 E8JPztVyVX4UQAIp7GJvjKWS1wfRjr0A7rniO4OyxkDdOnVMuSwpRKG8DPdJehZcoFM0 0+8ahklCPC/wJ7upuWRB5r3uuq20M+3PNRX2Y2v9VRUobDMKV1xMpJcfPhA4ECLv9wnm nNyXjUHJV+K9fJx+LOhoo/1AwCEaxaot3jUkwcx+8rPzBdEF8bd0U4TiyvHDNY2GPASe jEkw== 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=bEaypq72eo78RaRFd9QuN+4GMUJ+ub10gB/pu4C6p36WYz8cBaMrZBl4oXcRhSZmcG XVBeXVqDRMQ+caAIS9NRypSB3Qsvkxu7oRrRDUe1p29zOMsY6bCMkE2xUZTnvqW2/jWn PMkY7SXF0lJ52a6w4PXJ+mVkeYiYdG408XQ8Jehh96Tp3ZxwgNVtLFvsLt+TeNo2LG2z ERWhgJIF6KNK3/3ib7/GNONPCwyuZgumSMQZes72jRMNjuV6lYID/LfE7bWOno5dO+uW Px7/4eAgHTHkvEFrd+k6sXDGrB23emBQow7P9CD85m09+fBehusU6qojFeWDyPitdlVF TqFg== X-Gm-Message-State: AOJu0YzhinLXFZm3FQVBcvoDhgWN1G4CicPWnjy/RqhHOfP9o/zGBoYW 7BdPQsmXbRE0VQHfaAWaEpk= 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-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Sat, 02 Dec 2023 10:35:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784196217519972951 X-GMAIL-MSGID: 1784196217519972951 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: 172868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1902687vqy; Sat, 2 Dec 2023 10:35:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4Ckee/RF8L96gRSq8XH97bsEsYHt+UggDIC+q8xIm/A07sS4mieG15yGlZU/z+QH9pbYN X-Received: by 2002:a05:6a00:1594:b0:6ce:3efd:3950 with SMTP id u20-20020a056a00159400b006ce3efd3950mr183973pfk.19.1701542106756; Sat, 02 Dec 2023 10:35:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701542106; cv=none; d=google.com; s=arc-20160816; b=Io3gYJdq7TPFZLOqs5sXDvjPghc5poCcmY8GTVVLSPX64r0bxCsnfiBlU741R2w0mD 9sdJzohyzW0/bf3YhqsuZuohyyVpin8q4bdERA/YxuXTY4GOeXpsL87dbOarKNAnkUZ7 lFouplC0yBqIS4qaTsJms1tI5lBNdyb+T6wagqxHdUJvqbpNvE/ePce13NeoXeM7CsQa /9XrhmukAkTC/4mHcMwagSa7RWc6ceyqtgqd7lTdFDSti9vRQoPF1jq40S1+v51YQhbp ECHZSFg5cMqDnbW709epkJBEMJJauAam03icB4w+kGw4wKjNUZPgBMowNfa0RmWzJzKh wpDQ== 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o66-20020a634145000000b005aa644010a6si5209385pga.205.2023.12.02.10.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 10:35:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; 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 23.128.96.37 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 13E838066640; Sat, 2 Dec 2023 10:35:05 -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> 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:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784196216324694167 X-GMAIL-MSGID: 1784196216324694167 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;