Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2956935rdb; Mon, 4 Dec 2023 12:10:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGpiXjJsZNRr15/YG3pPXkwnH7gXv13fhd20r7j6kXtN3tnAe0XaYjum+STN87cwavkHBQ X-Received: by 2002:a05:6a00:2e90:b0:6ce:3efd:3951 with SMTP id fd16-20020a056a002e9000b006ce3efd3951mr138513pfb.30.1701720642075; Mon, 04 Dec 2023 12:10:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701720642; cv=none; d=google.com; s=arc-20160816; b=cKGMabK5qFcAWB8/ShtG8ivjJNgfDezPlZTEI9urCRREHO7yRI7NkpaOfjyJZJNk6S sUEJnnsKrUy2XKvQOhIBsfuRPjXZlco7XnUs/PUntsMwozbV7ihiWvdzn7Z9bNjmGDtp 6rBQaiuWrlEtZMp2egOCaKyuqUS6g3mNwENuT4jll3SbMc3ty4X59EmdyhtN81sKxBPJ B9a7n1xjcfmrr6eeYaMO9Z5a1+dazgwk1MX5JqxM26aIM8M8Au0x/b95V50GGiC0GY8A 7gMPVa+JJgrXE7UWk7QG9i677MDXnNySrdhfk9KiM+CgIP+unpELpLQK6q2RALfutA0D 4ImA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:dkim-signature:mime-version; bh=GPWhJUYk0ESW19LBMCm1nhIdTuA7Ta7q5+UkwQrVXRM=; fh=B9mfLEYssjunwOxef/F4HTyZnlKngcDlYHkjsCYF1Oo=; b=wzXuPnLXUnnz6rIKidQK7iaKmya1jO2KeqMZlONKkrO6owgOc48HRDzw+aZLBuKVLf NCBeLlDW21z5Wv5jUC1VSCif0gh4/FIP88ShsnyIbB7pLXohbCmRV/G4j2fSs6ljrCs1 egFt2pgH0hHaxSgToNsqgSBKVFCoADJyQweEJ/tnjl9+d3YkHnbFsTNsC4aRSwSLhRJq 9pwownslxt+ohLXoS/BdMo5j5tkaCiaqk3s4UTwo9lNEvLM3WOiTKHwftWMeVa/jbwAN tl2mtoADJ43sOldU8Gp7BOh+Pqcz65rI/lomKooWE9izex3+Znmse8rnpBUoV9Mo/0Yo 2PbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=WbIOjvF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h187-20020a636cc4000000b005c688ff3462si2301096pgc.585.2023.12.04.12.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:10:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=WbIOjvF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 306518043EE5; Mon, 4 Dec 2023 12:10:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233573AbjLDUKM (ORCPT + 99 others); Mon, 4 Dec 2023 15:10:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjLDUKL (ORCPT ); Mon, 4 Dec 2023 15:10:11 -0500 Received: from mail.manjaro.org (mail.manjaro.org [IPv6:2a01:4f8:c0c:51f3::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2BAAC4; Mon, 4 Dec 2023 12:10:16 -0800 (PST) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1701720614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GPWhJUYk0ESW19LBMCm1nhIdTuA7Ta7q5+UkwQrVXRM=; b=WbIOjvF1u40bccMbkb9nsw74YrYjBq9Llpoi82xLrpCrhRsYCpohF4Ym0CmHiuws7ggald 6qmk9T41rs2Pd5vn5fHQRsR9r0Q5eBeGHT/hNHd/yV3uKKi0O8nSyHWKBls+ZNp/sgCKTW RY3tr6qYaoid8kTX4zH2UQFjdpwh9ulAwp7OEpBe435XG4Thg46woseiE1mt/SaX/xpcMy 6UDm1n4kc5oQQxw5ODM3tQ8hysqslRQp4fE/YYE0icfH9JtyWfWobPQ2wXpW7q3tndnyHG twR8fSsBksELFKNMbE6uomavA0EilXZy5KzKapw522s2vOXmKFZSo5d4GyQF4w== Date: Mon, 04 Dec 2023 21:10:14 +0100 From: Dragan Simic To: Johan Jonker Cc: heiko@sntech.de, 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 Subject: Re: [PATCH v1 1/2] ARM: dts: rockchip: add gpio alias for gpio dt nodes In-Reply-To: <89f2a229-9f14-d43f-c53d-5d4688e70456@gmail.com> References: <89f2a229-9f14-d43f-c53d-5d4688e70456@gmail.com> Message-ID: <8787c5328e4ce368d35c8aa376c528d0@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 12:10:31 -0800 (PST) On 2023-12-02 19:22, Johan Jonker wrote: > 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(+) > > 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; > -- > 2.39.2 > > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip