From patchwork Wed May 15 16:06:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitriy Sharikhin X-Patchwork-Id: 1935669 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-04 header.b=P+1+DBmE; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-03 header.b=dL7NjyQc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VfdcH6JdKz1ymw for ; Thu, 16 May 2024 02:15:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-04 header.b=P+1+DBmE; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-03 header.b=dL7NjyQc; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4VfdcH4T4bz3cgP for ; Thu, 16 May 2024 02:15:27 +1000 (AEST) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=yadro.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-04 header.b=P+1+DBmE; dkim=pass (2048-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-03 header.b=dL7NjyQc; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yadro.com (client-ip=89.207.88.248; helo=mta-04.yadro.com; envelope-from=d.sharikhin@yadro.com; receiver=lists.ozlabs.org) X-Greylist: delayed 516 seconds by postgrey-1.37 at boromir; Thu, 16 May 2024 02:14:15 AEST Received: from mta-04.yadro.com (mta-04.yadro.com [89.207.88.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4VfdZv635Hz3cfT for ; Thu, 16 May 2024 02:14:15 +1000 (AEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mta-04.yadro.com 7FA38C0002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yadro.com; s=mta-04; t=1715789179; bh=npNUZlBM1eXoVGy4N52jzT3cJPif0iuslWCDtQRswzs=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version:From; b=P+1+DBmEEUqbp1nw4VAgOfKet8aJJXYQoJtZmptCh5K/d1qK9svCgYJseeVdhx+7S x86qvaceGbb3dn8b19KviGir/FxEprnknQIrA+pKiKWvewcBThv75Pg9C9sx0TDTQn lCMBlRs0OggijMqjZx24qeVvRbTQQnfh/aG65QjVv3Kh9MFWIHzzVmILHZ1fSwVk/D uDS8u0PBOtiu+Yp/mLZFXhNCijYXkMpeDwPhNWdKskegt/bX6qNAty4/2BueOOBdr0 7hIkDRHMNUTQu7oGfne6Z+rwzZ0QNxmdMY2T3tnaakPQGEKECryx0Bt2vrre3sj3mY VAMAYQpxgU2Ow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yadro.com; s=mta-03; t=1715789179; bh=npNUZlBM1eXoVGy4N52jzT3cJPif0iuslWCDtQRswzs=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version:From; b=dL7NjyQcyODE8aP0SFqhKQqo/SpJR33NGOmfH6YADrJ9fel6KbmDK5EsLR7vlJURG R0j5l9cL0mGEhOvAvWjq4Fm4hRrN/Lv1mZNS0FdYQubibQ2Ex2QuPTDHrTy4aMET6X +qnj1kdE49Mnjoe8fgt7jmDFuEJfHOLeFq+yRah7oxN3nd6AAyDPCWusGLDwuwPIYP tmB5AvoufKUUqe/nKzOxdORmMbrh9IAtb1oso5wpMkZmheZIDJ2vsv+tun0Br9I5jF +khyYFgxtBu2+JoPdYyd4XOTQPSJrfS9aGe0HaEfj0asSoBj+aVeUpxddmyG0A/Et1 dDA69gNUwPcKA== From: Dmitriy Sharikhin To: "openbmc@lists.ozlabs.org" Subject: [PATCH u-boot, v2019.04-aspeed-openbmc v1 3/3] dts: aspeed: append SGPIO nodes for ast2500 and ast2600 Thread-Topic: [PATCH u-boot, v2019.04-aspeed-openbmc v1 3/3] dts: aspeed: append SGPIO nodes for ast2500 and ast2600 Thread-Index: AQHapuHSmoMVp4cL4kmXcYOYzeNtYQ== Date: Wed, 15 May 2024 16:06:18 +0000 Message-ID: <4f621d3d603f9824ce744397833a8e66651f3fe0.camel@yadro.com> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-ID: MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Amelkin , Igor Kononenko , "Alexander A. Filippov" Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" This patch enables support for SGPIO driver in device tree. Signed-off-by: Dmitrii Sharikhin --- arch/arm/dts/ast2500.dtsi | 19 +++++++++++++++++++ arch/arm/dts/ast2600.dtsi | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/arch/arm/dts/ast2500.dtsi b/arch/arm/dts/ast2500.dtsi index af03d88d13..f049416091 100644 --- a/arch/arm/dts/ast2500.dtsi +++ b/arch/arm/dts/ast2500.dtsi @@ -266,6 +266,20 @@ interrupt-controller; }; + sgpio: sgpio@1e780200 { + #gpio-cells = <2>; + compatible = "aspeed,ast2500-sgpio"; + gpio-controller; + interrupts = <40>; + reg = <0x1e780200 0x0100>; + clocks = <&scu ASPEED_CLK_APB>; + interrupt-controller; + bus-frequency = <12000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgpm_default>; + status = "disabled"; + }; + timer: timer@1e782000 { /* This timer is a Faraday FTTMR010 derivative */ compatible = "aspeed,ast2400-timer"; @@ -1277,6 +1291,11 @@ groups = "SDA2"; }; + pinctrl_sgpm_default: sgpm_default { + function = "SGPM"; + groups = "SGPM"; + }; + pinctrl_sgps1_default: sgps1_default { function = "SGPS1"; groups = "SGPS1"; diff --git a/arch/arm/dts/ast2600.dtsi b/arch/arm/dts/ast2600.dtsi index 290d4da51a..8fb44d7510 100644 --- a/arch/arm/dts/ast2600.dtsi +++ b/arch/arm/dts/ast2600.dtsi @@ -445,6 +445,34 @@ ngpios = <208>; }; + sgpiom0: sgpiom@1e780500 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpiom"; + reg = <0x1e780500 0x100>; + interrupts = ; + clocks = <&scu ASPEED_CLK_APB2>; + interrupt-controller; + bus-frequency = <12000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgpm1_default>; + status = "disabled"; + }; + + sgpiom1: sgpiom@1e780600 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpiom"; + reg = <0x1e780600 0x100>; + interrupts = ; + clocks = <&scu ASPEED_CLK_APB2>; + interrupt-controller; + bus-frequency = <12000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgpm2_default>; + status = "disabled"; + }; + gpio1: gpio@1e780800 { compatible = "aspeed,ast2600-gpio"; reg = <0x1e780800 0x800>; @@ -1852,6 +1880,16 @@ groups = "SDA2"; }; + pinctrl_sgpm1_default: sgpm1_default { + function = "SGPM1"; + groups = "SGPM1"; + }; + + pinctrl_sgpm2_default: sgpm2_default { + function = "SGPM2"; + groups = "SGPM2"; + }; + pinctrl_sgps1_default: sgps1_default { function = "SGPS1"; groups = "SGPS1";