Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1304683lqh; Mon, 6 May 2024 03:52:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8mhLCDJjgH+SRWLwxLH0pD8g1h2Onsdg1qJtaO00XXfQs2cti+CKqQcm4Xl7sb9MB/lPGaEXdnz4nV1ZF6zLCJJy7MAxwYjaQeKiqBw== X-Google-Smtp-Source: AGHT+IFMVYtBhaOmM98l9Fdq8F4uzAdFg/y9Jhb39GM1637l2mJZqJBZ6ixVi1E6YEc2Tu7TviCm X-Received: by 2002:ac8:5796:0:b0:43a:ee30:c554 with SMTP id v22-20020ac85796000000b0043aee30c554mr11463813qta.19.1714992734035; Mon, 06 May 2024 03:52:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714992734; cv=pass; d=google.com; s=arc-20160816; b=AV1uu0yuwb+uW6NrIELJI1owpVKZi1q2q0q8CDTJGEqn7XxHYYc52IBalXxNNvLiZJ taMBz5OjNuvEu0NiD4RwTcc89CX6yMWpqeQ+/kziF5S4SI75uAoGRVpLQ0yxktQ9zf6d awxzb7eTzyxTk0DjNAIiJWyiBUwYrz5P5ss7NALDC5wvd6gMDd/UCHXrQXZgpvJFPWXl Y27DhVu3xZTqJ+fkjhqqKuRpY4wttmu5Z/10q2jvKX8FkiFtaXzn8dp/3XVvorQr0zV4 d6hrujkBo3rfzI2L3+dLICyrMpgo4MNPvhEc0RJZT4lnf01WbwRyV0dnRK9Ox6VDx5Xj XiLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=bUQ9Pz3FZfk2KhRNydui6k2ruCf0mwPVywU5PnUwO7o=; fh=ide9D5oZGQuw4EtHoMSlYWmUkd3zUiQpiMnom3Qy7+k=; b=Z1hVzo17pKSJFPb1T9rcrRxzaN6I+xiZczmBW2MsD2HacI+JopYQcj+85XxRHr33lU 3vqu4cG5uLZfir5UuI7rBAgyY2Jk6s+mtqZvj4Iur7cVqFcX9O4+5yLAiBNehYLf6j7F Y6Je6r0K+aDq/lok7XC2HbC/tL1NEPq1LbqufulD3rl1UnE92Btl9tIOzSU0fcrZkwch rdTa5mLvLR9hZoTuwCwrdK5Lr12drJpdhIdYGP235fT+aVGb6Xi4X4Rw8mhRZTYqk+Bx EZkhUdIAVQn3FR0kzkCufTHPdrdQ3nIeYWvTCkIEXKl1uPnHa3tksTYUGaGMALkJYimj 9DHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aspeedtech.com dmarc=pass fromdomain=aspeedtech.com); spf=pass (google.com: domain of linux-kernel+bounces-169709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=aspeedtech.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q17-20020a05622a031100b0043c5d4e9da7si9315464qtw.23.2024.05.06.03.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aspeedtech.com dmarc=pass fromdomain=aspeedtech.com); spf=pass (google.com: domain of linux-kernel+bounces-169709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=aspeedtech.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 21A041C2244E for ; Mon, 6 May 2024 10:52:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06B9214373B; Mon, 6 May 2024 10:51:49 +0000 (UTC) Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14A6E1339A2; Mon, 6 May 2024 10:51:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714992708; cv=none; b=ReSq3Ak+sz/sEZlQGE04xD4c+K/hK5TjwTZA/RH74fGyrf2CiOfJQiLcpw4xQLAUFCaD+P9+pzV8AW00+zPuLu5QdnG/gDzoUtRZ24LNBQ3PnDEq9CSWezX+x5RcTrt3fB4zTUh2M7KPnRat6tpmCcrPny+SU/g986AlUJqHQIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714992708; c=relaxed/simple; bh=Qw3TWGhB2UKnexnJuUVEzsDnGUQy1HuP5qKz6mA8wOA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W8G6WCJCTl++vEafFBWtIvCQlhPDGpYjTH35rN5rYRJrzlxc1BzfXZphIuCF2nRsXnrCnikIHNobjMht+3Ur1Osekq1RgD/aFLlMo3wfweE6T1LEAZMVikmLgcBDgZ8CkX+siBAs/cCGSnnMMvmOG7D68XpqOF7NRmFJ2SfJhVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com Received: from TWMBX02.aspeed.com (192.168.0.24) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Mon, 6 May 2024 18:51:21 +0800 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX02.aspeed.com (192.168.0.25) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 May 2024 18:51:20 +0800 Received: from localhost.localdomain (192.168.10.10) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Mon, 6 May 2024 18:51:20 +0800 From: Dylan Hung To: , , , , , , , , , , , CC: Subject: [PATCH 1/2] [RFC] ARM: dts: aspeed-g6: Add AST2600 I3Cs Date: Mon, 6 May 2024 18:51:19 +0800 Message-ID: <20240506105120.3028083-2-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240506105120.3028083-1-dylan_hung@aspeedtech.com> References: <20240506105120.3028083-1-dylan_hung@aspeedtech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Received-SPF: Fail (TWMBX02.aspeed.com: domain of dylan_hung@aspeedtech.com does not designate 192.168.10.10 as permitted sender) receiver=TWMBX02.aspeed.com; client-ip=192.168.10.10; helo=localhost.localdomain; The AST2600 has 6 I3Cs which are based on dw-i3c along with Aspeed proprietary enhancements. Signed-off-by: Dylan Hung --- arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 137 ++++++++++++++++++++++++ 1 file changed, 137 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi index 29f94696d8b1..d0d685747b74 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi +++ b/arch/arm/boot/dts/aspeed/aspeed-g6.dtsi @@ -13,6 +13,12 @@ / { interrupt-parent = <&gic>; aliases { + i3c0 = &i3c0; + i3c1 = &i3c1; + i3c2 = &i3c2; + i3c3 = &i3c3; + i3c4 = &i3c4; + i3c5 = &i3c5; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; @@ -579,6 +585,13 @@ wdt4: watchdog@1e7850c0 { status = "disabled"; }; + i3c: bus@1e7a0000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x1e7a0000 0x8000>; + }; + peci0: peci-controller@1e78b000 { compatible = "aspeed,ast2600-peci"; reg = <0x1e78b000 0x100>; @@ -1125,3 +1138,127 @@ i2c15: i2c-bus@800 { status = "disabled"; }; }; + +&i3c { + i3c_global: i3c-global { + compatible = "aspeed,ast2600-i3c-global", "simple-mfd", "syscon"; + resets = <&syscon ASPEED_RESET_I3C>; + reg = <0x0 0x1000>; + }; + + i3c0: i3c@2000 { + compatible = "aspeed,ast2600-i3c"; + reg = <0x2000 0x1000>; + clocks = <&syscon ASPEED_CLK_GATE_I3C0CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c1_default>; + interrupts = ; + aspeed,global-regs = <&i3c_global 0>; + status = "disabled"; + + i2c-scl-hz = <1000000>; + i3c-scl-hz = <2000000>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + i3c-pp-scl-hi-period-ns = <250>; + i3c-pp-scl-lo-period-ns = <250>; + sda-tx-hold-ns = <70>; + sda-pullup-ohms = <2000>; + }; + + i3c1: i3c@3000 { + compatible = "aspeed,ast2600-i3c"; + reg = <0x3000 0x1000>; + clocks = <&syscon ASPEED_CLK_GATE_I3C1CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c2_default>; + interrupts = ; + aspeed,global-regs = <&i3c_global 1>; + status = "disabled"; + + i2c-scl-hz = <1000000>; + i3c-scl-hz = <2000000>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + i3c-pp-scl-hi-period-ns = <250>; + i3c-pp-scl-lo-period-ns = <250>; + sda-tx-hold-ns = <70>; + sda-pullup-ohms = <2000>; + }; + + i3c2: i3c@4000 { + compatible = "aspeed,ast2600-i3c"; + reg = <0x4000 0x1000>; + clocks = <&syscon ASPEED_CLK_GATE_I3C2CLK>; + interrupts = ; + aspeed,global-regs = <&i3c_global 2>; + status = "disabled"; + + i2c-scl-hz = <1000000>; + i3c-scl-hz = <2000000>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + i3c-pp-scl-hi-period-ns = <250>; + i3c-pp-scl-lo-period-ns = <250>; + sda-tx-hold-ns = <70>; + sda-pullup-ohms = <2000>; + }; + + i3c3: i3c@5000 { + compatible = "aspeed,ast2600-i3c"; + reg = <0x5000 0x1000>; + clocks = <&syscon ASPEED_CLK_GATE_I3C3CLK>; + interrupts = ; + aspeed,global-regs = <&i3c_global 3>; + status = "disabled"; + + i2c-scl-hz = <1000000>; + i3c-scl-hz = <2000000>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + i3c-pp-scl-hi-period-ns = <250>; + i3c-pp-scl-lo-period-ns = <250>; + sda-tx-hold-ns = <70>; + sda-pullup-ohms = <2000>; + }; + + i3c4: i3c@6000 { + compatible = "aspeed,ast2600-i3c"; + reg = <0x6000 0x1000>; + clocks = <&syscon ASPEED_CLK_GATE_I3C4CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c5_default>; + interrupts = ; + aspeed,global-regs = <&i3c_global 4>; + status = "disabled"; + + i2c-scl-hz = <1000000>; + i3c-scl-hz = <2000000>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + i3c-pp-scl-hi-period-ns = <250>; + i3c-pp-scl-lo-period-ns = <250>; + sda-tx-hold-ns = <70>; + sda-pullup-ohms = <2000>; + }; + + i3c5: i3c@7000 { + compatible = "aspeed,ast2600-i3c"; + reg = <0x7000 0x1000>; + clocks = <&syscon ASPEED_CLK_GATE_I3C5CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c6_default>; + interrupts = ; + aspeed,global-regs = <&i3c_global 5>; + status = "disabled"; + + i2c-scl-hz = <1000000>; + i3c-scl-hz = <2000000>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + i3c-pp-scl-hi-period-ns = <250>; + i3c-pp-scl-lo-period-ns = <250>; + sda-tx-hold-ns = <70>; + sda-pullup-ohms = <2000>; + }; +}; -- 2.25.1