From patchwork Sat Dec 2 13:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 750207 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eaoV3+er" Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883BB11D; Sat, 2 Dec 2023 05:05:19 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a1a2615e909so207105866b.3; Sat, 02 Dec 2023 05:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701522318; x=1702127118; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=adSEYqN8FGT+ykmMCmzGxY6EhaQvEvBv0NcW+fx7a08=; b=eaoV3+erqP0DuXtfJ+cBOitCErT8AF4ouCGzaAUnEYSk1/842VnTWz/HEFs7cIR3e4 AsDNizfAetALQCx8TkuBWuUwSXeeHZZc7RoMerncCdTDhbAtuVL28J+S50lxa6IyRY6c an3m6IMen1zofjgHgwOU1/gKrW/lB+8yQvVhbdbeEAEgEZn8p9M9zDi2YMGyaPMkP96d U/oGmlsEqcmYmMb8Mxz5Yr2YYlFTAOZagwYOJScqWlYT9TAj3MoYyeyMpXQbXYwMjXa1 StGS5Ugp5M24mHHxMHBr9bYl7Z0gruclzUhHHEIUq+qt01GSu3+TDDYh0ZrZGpGfGfzX vpdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701522318; x=1702127118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=adSEYqN8FGT+ykmMCmzGxY6EhaQvEvBv0NcW+fx7a08=; b=cE3x0u5bALL7EmsCf41LMg3uxgtP99/TD12mlzeptrIwMaeeddpEL04pIeR8OTIL/Q cAJErUtUrTxhHXBlNABv3Z5DcGAEZa5xaKoCmjHIPWMrGxnMJZsAXStEFaJnGMDlVHCg aAUK2x9UMWuyk9bzNyf9LUVr/hNzUIrCUuiyKZCj8OcUwDzsuwsuJwx3GvP8vbt++t9a pB+oqM9W0i/2As8k5pz+ZhAMqDIVq1YkiZFYWDv+j1k+rOoEYHpt2EOJlLsIWb+VN5AT bn6xMAgvYaiaqi8rkHeIo/W5A6C9ir9LY0Gg0d1oEN1doNHRhERvDwica6w1sIW8T7qr SWWg== X-Gm-Message-State: AOJu0YzVY7Kl/hA1u6oMqQQYVOwzg9WwdOjWUKQfgKAeQLAlkiXpGIK3 bauqTCZqTxkEPftXozKDGWjCwuptbQ== X-Google-Smtp-Source: AGHT+IHHKc1ev66uYDB6740dr47fDqVGRCOAVGOBwZCTvCIbkuLo5yoSsdkiAEidwCwLC9bdgrsyPw== X-Received: by 2002:a17:906:3f5a:b0:a19:a19b:4236 with SMTP id f26-20020a1709063f5a00b00a19a19b4236mr1174545ejj.161.1701522318035; Sat, 02 Dec 2023 05:05:18 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:908e:b829:354b:f8ee]) by smtp.gmail.com with ESMTPSA id bs5-20020a170906d1c500b00a0bf09c9483sm3045324ejb.35.2023.12.02.05.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 05:05:17 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 1/3] ARM: dts: rockchip: Move gpio aliases to SoC dtsi for RK3128 Date: Sat, 2 Dec 2023 14:05:05 +0100 Message-ID: <20231202130506.66738-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231202130506.66738-2-knaerzche@gmail.com> References: <20231202130506.66738-2-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 move the aliases to SoC dtsi for RK3128 like it's being done for most other Rockchip ARM SoCs. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128-evb.dts | 4 ---- arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts | 4 ---- arch/arm/boot/dts/rockchip/rk3128.dtsi | 7 +++++++ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/rockchip/rk3128-evb.dts b/arch/arm/boot/dts/rockchip/rk3128-evb.dts index c38f42497cbd..776a483cc26b 100644 --- a/arch/arm/boot/dts/rockchip/rk3128-evb.dts +++ b/arch/arm/boot/dts/rockchip/rk3128-evb.dts @@ -12,10 +12,6 @@ / { compatible = "rockchip,rk3128-evb", "rockchip,rk3128"; aliases { - gpio0 = &gpio0; - gpio1 = &gpio1; - gpio2 = &gpio2; - gpio3 = &gpio3; i2c1 = &i2c1; mmc0 = &emmc; }; diff --git a/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts b/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts index 61b9f069c8a2..b448e2b96e08 100644 --- a/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts +++ b/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts @@ -11,10 +11,6 @@ / { compatible = "geniatech,xpi-3128", "rockchip,rk3128"; aliases { - gpio0 = &gpio0; - gpio1 = &gpio1; - gpio2 = &gpio2; - gpio3 = &gpio3; mmc0 = &emmc; mmc1 = &sdmmc; serial0 = &uart1; diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 4e8b38604ecd..5b751284d6ca 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -15,6 +15,13 @@ / { #address-cells = <1>; #size-cells = <1>; + aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + }; + arm-pmu { compatible = "arm,cortex-a7-pmu"; interrupts = , From patchwork Sat Dec 2 13:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 749553 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ey+6joei" Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3699B12D; Sat, 2 Dec 2023 05:05:20 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a1975fe7befso291652566b.2; Sat, 02 Dec 2023 05:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701522318; x=1702127118; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BXnPXvkgEdAqlxa28rDWBIXJg5QYtD+xYZlakCzCIA0=; b=ey+6joeiKw3fEBMXDgqo8VJ35Zk49VXYP+hMHIPXaqO11pvnusd4ga6JF5wfuGy6dk lb9rkaG3fLZVjZmzgdh/nTUhlrIYBtkKkOaBFmzIVo8M4KnsFI3WsamLlZhNVbJWwzkc Ldb87csBtzBqkGHRmgPZrvhl14FoucOsoQn/iLWZnRKYvJeYm/xSqmiVVVYF9FJy4SOu A/J+McGP17ngyzGopWDR5PPXw4ZwylPtL1J3ctkqmNKM0y9fCGkwcw9aqBeNJWpIA/Z4 hnm0vNWMHuryP6pN7vQZIDlA6o8Rml7Phrkrwj4G7BtlcdZYaNCWk2vmTPcVmV31SBgN SR2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701522318; x=1702127118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BXnPXvkgEdAqlxa28rDWBIXJg5QYtD+xYZlakCzCIA0=; b=ZcYs0rwHo8VK7YSP/c6PsVFWfTkD7CY4bdSR+oj1DwljTzjTKfQntL7fN9hjH+w5FQ P5o90H7QChXceFNbhQZwIt05GoT4qbKHbBjfDIw7J3hsqtYJ1uJXqh+L9iQ3W4tOZQlZ X3Y4VEDQJC+37sEqbPKVrqyQpnW4hzEzXumUGBNUY7/FGSYdY1jFeTbHGQlNILz6VheF RqAwAfra9ZpkaR6JIhdqXZoM/eXQY1QUOrq4g9nxNnCY8+zY3B3WAt4GG6A0usznJWnc OCnhAaIjRMf+UQeUEdbekEMq/S10VEOgIGbvkagrEFaIV25QbsDZDoTild0ttmAaOnF0 2VrA== X-Gm-Message-State: AOJu0Yx2OVQQWJqES9UEyWYwNajE5i1U2iN7UI+Qk1pLj4vIF7BJx3EA NTWjZ9+G/i5pBa4nAgHriSO4mv9GeQ== X-Google-Smtp-Source: AGHT+IGoxNPqrzQnvQpxf09ljrKJcuFDtZ22xCNQN1xzBMU7KhiOpt13wtWf8ZZHmxNTvvRlv9Nqew== X-Received: by 2002:a17:906:28d:b0:a19:a19a:eaa1 with SMTP id 13-20020a170906028d00b00a19a19aeaa1mr1635582ejf.90.1701522318738; Sat, 02 Dec 2023 05:05:18 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:908e:b829:354b:f8ee]) by smtp.gmail.com with ESMTPSA id bs5-20020a170906d1c500b00a0bf09c9483sm3045324ejb.35.2023.12.02.05.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 05:05:18 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 2/3] ARM: dts: rockchip: Move i2c aliases to SoC dtsi for RK3128 Date: Sat, 2 Dec 2023 14:05:06 +0100 Message-ID: <20231202130506.66738-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231202130506.66738-2-knaerzche@gmail.com> References: <20231202130506.66738-2-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 SoC TRM, SoC datasheet and board schematics always refer to the same i2c numbers - even if not all are used for a specific board. In order to not have to re-define them for every board move the aliases to SoC dtsi for RK3128 like it's being done for all other Rockchip ARM SoCs. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128-evb.dts | 1 - arch/arm/boot/dts/rockchip/rk3128.dtsi | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rockchip/rk3128-evb.dts b/arch/arm/boot/dts/rockchip/rk3128-evb.dts index 776a483cc26b..c7ab7fcdb436 100644 --- a/arch/arm/boot/dts/rockchip/rk3128-evb.dts +++ b/arch/arm/boot/dts/rockchip/rk3128-evb.dts @@ -12,7 +12,6 @@ / { compatible = "rockchip,rk3128-evb", "rockchip,rk3128"; aliases { - i2c1 = &i2c1; mmc0 = &emmc; }; diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 5b751284d6ca..dc149d98cf9e 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -20,6 +20,10 @@ aliases { gpio1 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; }; arm-pmu {