From patchwork Thu Jun 23 05:10:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646883 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Ly3+Sm3Z; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7dP3wdWz9sGT for ; Thu, 23 Jun 2022 15:11:21 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5781E842DF; Thu, 23 Jun 2022 07:11:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ly3+Sm3Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ACF99842AE; Thu, 23 Jun 2022 07:10:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C0B68805F4 for ; Thu, 23 Jun 2022 07:10:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pl1-x636.google.com with SMTP id c4so992144plc.8 for ; Wed, 22 Jun 2022 22:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dBYNDq6OOmCS2jiLSDD2/HQP/Y1RJFMT9tAIkVSxhX0=; b=Ly3+Sm3ZO2ToKNiWBh6QKGYlbnEisGrDABG/frmKg8XHCF4PiUzObHiKLA2NCCXn3M czqe6RWRJgY0tbdhe8OJYI10pJwzz5kmyNP3I9M1+HZ7WddQiFAHp24mIRO6nZhrH6Rn idfyA7JbDjRZOVtHhX1mdd5IERBiUM/e35nQeQlR5LzDOtLuRFf6zBNxG5DZFPUJg2EL j1Jqvd76acy79MklTRtwikx6hfWo1D6oTj8BPUgbdG3nfwX2xdRlZXWPaUkrd8pzLlMO V9dNAyIccTI681xgFvl+p6BXaG2UsoI66C/sY3FFf3DyJF23vMdjubsAMEDJZbVVRXuA HvRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dBYNDq6OOmCS2jiLSDD2/HQP/Y1RJFMT9tAIkVSxhX0=; b=nq5kUz7b11WssylUdiUp1XX/bqthELjYR4j2/nQDFSOC56d395SuDmsU0o/1ezh0e7 aZeZLRNlakfN6IEZ3/HguxFlKi+ZKSl8tY63Y+OOh/n4IA+h3MaErCVY3lchG5ETd7BY /ZFTnPLmNdwaMYvwUS3Rgm/D4ps13Y56WTxIxj/Hgid4Nf4arp6ROQw3kEMwkSzAe2mi GfLw0Phh+QnpkGkoDJpywpVw4TwKP662fQ/UB8gJXAU8AB91cb+ysG01a+kZNV8DZMlW 1kkiEGAmGnOHub62xKQHgLHRbygN1VNr9dcPcAqMUSsIwiVbGLD+TIl39X6ItEgYpMXu pnmw== X-Gm-Message-State: AJIora/0QCDOgrpmAhB7zhvSKxfwatlW6J1G31TcrY/RigHOWESSXR1c Apk3cnvc6asNb9WB8OhLe8VWdvjvP5U= X-Google-Smtp-Source: AGRyM1vdCt50FHTd7bRoj146EbktOM2XnD2Gm37IRdCJis9k5yONfL+rLDI+jFVKk5MAzEdnP3PDCg== X-Received: by 2002:a17:902:f609:b0:168:dcbe:7c4d with SMTP id n9-20020a170902f60900b00168dcbe7c4dmr36431127plg.169.1655961054101; Wed, 22 Jun 2022 22:10:54 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:10:53 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: Eddie James , u-boot@lists.denx.de, =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= Subject: [PATCH v2 01/11] ARM: dts: ast2600: Add I2C pinctrl Date: Thu, 23 Jun 2022 14:40:31 +0930 Message-Id: <20220623051041.3848714-2-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Eddie James Set the pinctrl groups for each I2C bus. These are essential to I2C operating correctly. Signed-off-by: Eddie James Reviewed-by: Ryan Chen Signed-off-by: Joel Stanley --- arch/arm/dts/ast2600.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/dts/ast2600.dtsi b/arch/arm/dts/ast2600.dtsi index 64074309b7b2..ef5b131ac0af 100644 --- a/arch/arm/dts/ast2600.dtsi +++ b/arch/arm/dts/ast2600.dtsi @@ -833,6 +833,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1_default>; status = "disabled"; }; @@ -846,6 +848,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2_default>; status = "disabled"; }; @@ -859,6 +863,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3_default>; }; i2c3: i2c@200 { @@ -871,6 +877,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4_default>; }; i2c4: i2c@280 { @@ -883,6 +891,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c5_default>; }; i2c5: i2c@300 { @@ -895,6 +905,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c6_default>; }; i2c6: i2c@380 { @@ -907,6 +919,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c7_default>; }; i2c7: i2c@400 { @@ -919,6 +933,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c8_default>; }; i2c8: i2c@480 { @@ -931,6 +947,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c9_default>; }; i2c9: i2c@500 { @@ -943,6 +961,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c10_default>; status = "disabled"; }; @@ -956,6 +976,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c11_default>; status = "disabled"; }; @@ -969,6 +991,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c12_default>; status = "disabled"; }; @@ -982,6 +1006,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c13_default>; status = "disabled"; }; @@ -995,6 +1021,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c14_default>; status = "disabled"; }; @@ -1008,6 +1036,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c15_default>; status = "disabled"; }; @@ -1021,6 +1051,8 @@ bus-frequency = <100000>; interrupts = ; clocks = <&scu ASPEED_CLK_APB2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c16_default>; status = "disabled"; }; @@ -1246,6 +1278,7 @@ function = "I2C1"; groups = "I2C1"; }; + pinctrl_i2c2_default: i2c2_default { function = "I2C2"; groups = "I2C2"; From patchwork Thu Jun 23 05:10:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646885 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=c3NfOpQV; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7dk3gnpz9sGT for ; Thu, 23 Jun 2022 15:11:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B1B288429D; Thu, 23 Jun 2022 07:11:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="c3NfOpQV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 414A384300; Thu, 23 Jun 2022 07:11:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 875F9842C7 for ; Thu, 23 Jun 2022 07:10:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pl1-x62b.google.com with SMTP id d5so17164423plo.12 for ; Wed, 22 Jun 2022 22:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rM1ZikP7uD3tuFIQ2akzL9yFtEwh2K8hWTcbf4Gdizw=; b=c3NfOpQV4xz0EtlAs1JPHQLHgzAHiywFKCUSDYZfVEhmAlyPct7FIKfQWJLk0/D15o fXgAjGb7Gb7QYWqn6s/wD05bsF/gu94bIxXVA+TAsgompn20p+kp1rG/Tbd6iegxKSuo XUQYuRLdWdMYxaYALSdr16od9ogIvnspcNT66UZcGSSxDnVSJMsQPP+WQ/9v3dFStYqo ocR10aupHco11260Tt/dpkSzB3VAQh2vAdX0DgVdsHrffTS6vnqE9qlO9w5mxBsF2Ii+ 1LSqYlhCLobk31Z2IwaW6x7pIhJV/UEYrIfQI17AQNumgj01EqR+JIIfazxdWu7K00Zo aLRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=rM1ZikP7uD3tuFIQ2akzL9yFtEwh2K8hWTcbf4Gdizw=; b=wR2FCppGa9FIs8RDF4GbqKfnZDOUDXrMahRnm1gfua4JZk8R8EZ8yE0rwQlzAKU+jt 9hle2HCayOwx4ARKKSQ+0NGLzgXjiUl959eRNNMYOpO3P1JnFB7EGLSyvN25MiFqlhBc 9lK7SLAApasLHysok/x6/1jBq1kUVhhO/knoNwng51d/wL34A+odnwold6YETg1JMHy4 lzV6H9VXU18XFvqTWxcz2LA6DoCXn7/Z/izsjqjrF5LH2pVlPoHuDrz5XYLv1KjJatFZ eoGNMX/a+u02tqpWezL5KppbMF1QnAuAU1Zk0gGFg7nlLPF/2Sqlxu2SDM66yBRlISjw Wycg== X-Gm-Message-State: AJIora8BxRenx6eI1BfP17IhsaXXI4nvnYlrvBYFPgWT2Pt3IE174Htf +ZAm8p3pIRGYVXzcXi1GmqcUJSS3Xh4= X-Google-Smtp-Source: AGRyM1v7zM5thTcHz0I3dsvLmSMxZ1T9gCruKgAFi9hhoHvMeIBy8Ss6/0iohfnjgC5lkvq92PMkzg== X-Received: by 2002:a17:903:204c:b0:169:9e3:6840 with SMTP id q12-20020a170903204c00b0016909e36840mr34537557pla.77.1655961057640; Wed, 22 Jun 2022 22:10:57 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:10:56 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 02/11] ARM: dts: ast2600: Add I2C reset properties Date: Thu, 23 Jun 2022 14:40:32 +0930 Message-Id: <20220623051041.3848714-3-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The same as the upstream Linux device tree, each i2c bus has a property specifying the reset line. Signed-off-by: Joel Stanley Reviewed-by: Ryan Chen --- arch/arm/dts/ast2600.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/ast2600.dtsi b/arch/arm/dts/ast2600.dtsi index ef5b131ac0af..4b23d25ede0a 100644 --- a/arch/arm/dts/ast2600.dtsi +++ b/arch/arm/dts/ast2600.dtsi @@ -832,6 +832,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1_default>; @@ -847,6 +848,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c2_default>; @@ -862,6 +864,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c3_default>; @@ -876,6 +879,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c4_default>; @@ -890,6 +894,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c5_default>; @@ -904,6 +909,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c6_default>; @@ -918,6 +924,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c7_default>; @@ -932,6 +939,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c8_default>; @@ -946,6 +954,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c9_default>; @@ -960,6 +969,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c10_default>; @@ -975,6 +985,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c11_default>; @@ -990,6 +1001,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c12_default>; @@ -1005,6 +1017,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c13_default>; @@ -1020,6 +1033,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c14_default>; @@ -1035,6 +1049,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c15_default>; @@ -1050,6 +1065,7 @@ compatible = "aspeed,ast2600-i2c-bus"; bus-frequency = <100000>; interrupts = ; + resets = <&rst ASPEED_RESET_I2C>; clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c16_default>; From patchwork Thu Jun 23 05:10:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646884 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ZSKJNRUd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7dW3ZRRz9sGT for ; Thu, 23 Jun 2022 15:11:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3558084314; Thu, 23 Jun 2022 07:11:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZSKJNRUd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E86D7842B7; Thu, 23 Jun 2022 07:11:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BA3168213E for ; Thu, 23 Jun 2022 07:11:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pf1-x42c.google.com with SMTP id n12so11089719pfq.0 for ; Wed, 22 Jun 2022 22:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=unflAn7od520VNguCAI/MRcNhyJbb4IONzpAGoGMjIE=; b=ZSKJNRUdF7hfFsTlDSnm3ssi2m4Has6wbO1+EGtfW1nYz30CUSXqppzWU/sRhUtEWQ 4udmANi6gPno6+DeboKibIw4sUF/FqsMZu3ephHCIB7auOXgPzEMt3MTFfhUe806zS5P +qQwPZnYPtGjwKtsxwuC08XUDKEiOfDdFtrXUZg93vf6cxzldouHn6hEK7b0FFSEVTbg bajBcEdEA/xeHhsVstBLqqA8vhutqrwsuh1OzI6GV9zcYvpgCiv2LtguAjA/BywJ0V7C Zw3Edb6yMn9g9ls0O9GXz2Okmrnn6bbLrfHk86NPlvCcJqo+dCp3RxFReU2isUcM2EhO edXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=unflAn7od520VNguCAI/MRcNhyJbb4IONzpAGoGMjIE=; b=buq6nUGlXNnpBK3uOw4+zGGg10l/RPMhkZncvusJa5qQ6y1/l4GGT4kl7eS4BchG6b Ecfmky3cVqs5lbqtoazkPJIZr0rq6gqJb6Ka5AsfLBy/nfECaR72DdIzZmMVoYUUkD7w eVb+w2lDqKPYmiXHVzkmOxMElfkbEo/UMEdHkj+pC/e8BPyr+RAKEnD22oEPWAc4T6nV 0clBEkL1YzswatqikK3JjsAwYpM5x2w5Lr5BT0IvSJgO3ZbVSjQyOGFOQhyEW/wbY8m8 3ODUDvUUcPr/9OcxfCAOkY9/w+krgF0CR7/nj6ER9NQrADU7OARqdST4pmuyzq5MoyAw Vmuw== X-Gm-Message-State: AJIora9XE+8fvdJ1wMEPXCTjka30Mp+wzTPuOyBDLeswpejx0JXZpjyl S/ZsfKsMfAP2wEBRr1iHP58= X-Google-Smtp-Source: AGRyM1uT3ibOD7T98LOlhh4jKWELKOYUJ31XdfcmY3s71b9Pcx8h3lIqEq0IY1NWfPo6l1MtIrkgQg== X-Received: by 2002:a05:6a00:b4f:b0:525:3505:53db with SMTP id p15-20020a056a000b4f00b00525350553dbmr13076352pfo.22.1655961061114; Wed, 22 Jun 2022 22:11:01 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:00 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 03/11] ARM: dts: ast2600: Disable I2C nodes by default Date: Thu, 23 Jun 2022 14:40:33 +0930 Message-Id: <20220623051041.3848714-4-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Allow boards to enable the buses they use. Signed-off-by: Joel Stanley Reviewed-by: Ryan Chen --- v2: Fix spelling --- arch/arm/dts/ast2600.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/ast2600.dtsi b/arch/arm/dts/ast2600.dtsi index 4b23d25ede0a..a37d062bcad7 100644 --- a/arch/arm/dts/ast2600.dtsi +++ b/arch/arm/dts/ast2600.dtsi @@ -868,6 +868,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c3_default>; + status = "disabled"; }; i2c3: i2c@200 { @@ -883,6 +884,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c4_default>; + status = "disabled"; }; i2c4: i2c@280 { @@ -898,6 +900,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c5_default>; + status = "disabled"; }; i2c5: i2c@300 { @@ -913,6 +916,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c6_default>; + status = "disabled"; }; i2c6: i2c@380 { @@ -928,6 +932,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c7_default>; + status = "disabled"; }; i2c7: i2c@400 { @@ -943,6 +948,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c8_default>; + status = "disabled"; }; i2c8: i2c@480 { @@ -958,6 +964,7 @@ clocks = <&scu ASPEED_CLK_APB2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c9_default>; + status = "disabled"; }; i2c9: i2c@500 { From patchwork Thu Jun 23 05:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646887 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=i67vwcu/; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7f90wNmz9sGT for ; Thu, 23 Jun 2022 15:12:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7706584386; Thu, 23 Jun 2022 07:11:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i67vwcu/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 46247842C7; Thu, 23 Jun 2022 07:11:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2E55B842F7 for ; Thu, 23 Jun 2022 07:11:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pg1-x52c.google.com with SMTP id 184so18070938pga.12 for ; Wed, 22 Jun 2022 22:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MoWbNsyqXZIxdV7vFrWU8ridbKtjM5OQFF+O8CZcSdA=; b=i67vwcu/2ZG3D9lCIBcORSpmlVH9avkiwaCD9ht/IzRGCXTkN3mrXi0rhFjhXklgng zU8qTiWbEBS0BxzPtw2GHZAIxr5P66PhZb0GVQirjWTXKHRp59hZ/BTn/2wQ1/nbaWIs FXLPdpwCrTNwGLNkAEEgpuvwrvRnKu+m2vBZiIz7ZzvlJgSEHsIWbdCTbdoqOoLrrCj8 aK1S/14MvGfyIcN7lNsMydwVPNyhjzpGuAEhEOJzr2nnZvan5ZEEw4wvBupi1mC/vR+i ApxOyfKA9m0CjoYe5UtC5O427Lj0QvgwFqOkebLFjCNhSTLkCZUXoh6fdx8d4R4o309O cOEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=MoWbNsyqXZIxdV7vFrWU8ridbKtjM5OQFF+O8CZcSdA=; b=g8paIoDUHGZswtwcj9T4y1l2CDOD1I/TvTcIR/1HXfLSop0RlSqlj2mv9XnLu7TPMK dpN9ssuFh3H2xyiDA5HawxqfeQ+3IjoNV+W7mkc9uiBXqiT9L6+25+9cGym3+yeB4rGk rvKOlHh7pE21wwfWdajXWrO5mGJdalLmwNBQHk7dTe/WQuoXn8LN5a8KXVdYTbhDlHb0 UjE55tddjyBWzDXtYwVriQJn6Pvi2JHcCzs0NnG2hBdPA+L2dYtNAoGXJNiBWm3UL+jl dv7uEh5DC41AGFCYMWRaeIqAuzClhBQruWf3W0nUM9H1C4WBQ51HGtRFEhsG5VPulZHT Mvaw== X-Gm-Message-State: AJIora8ZcreEGOexmtZ9zy6SSiM7WA2ajvOmEFKmsvYYFnF0AamPrpnB /nqy6CZ6BEMtCd9KWuhoCrc= X-Google-Smtp-Source: AGRyM1sXcg0QoDUEsKE01X06lMFPTfHY94+m2Q+aLuZSWL8T91Y3dqD/Zdzkf9nkzUsVjfjUmd4ACw== X-Received: by 2002:a05:6a00:248a:b0:51b:f461:8318 with SMTP id c10-20020a056a00248a00b0051bf4618318mr39069129pfv.47.1655961064706; Wed, 22 Jun 2022 22:11:04 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:03 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 04/11] ARM: dts: ast2600-evb: Remove redundant pinctrl Date: Thu, 23 Jun 2022 14:40:34 +0930 Message-Id: <20220623051041.3848714-5-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Now that these are in the dtsi we don't need them in the EVB device tree. Signed-off-by: Joel Stanley --- arch/arm/dts/ast2600-evb.dts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm/dts/ast2600-evb.dts b/arch/arm/dts/ast2600-evb.dts index 0d650543134a..806b76029ac7 100644 --- a/arch/arm/dts/ast2600-evb.dts +++ b/arch/arm/dts/ast2600-evb.dts @@ -150,37 +150,22 @@ &i2c4 { status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c5_default>; }; &i2c5 { status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c6_default>; }; &i2c6 { status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c7_default>; }; &i2c7 { status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c8_default>; }; &i2c8 { status = "okay"; - - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c9_default>; }; &mdio0 { From patchwork Thu Jun 23 05:10:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646886 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=n4WiBoIs; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7dy10Y3z9sGT for ; Thu, 23 Jun 2022 15:11:50 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6AB4F84343; Thu, 23 Jun 2022 07:11:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="n4WiBoIs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 49F198213E; Thu, 23 Jun 2022 07:11:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 31234842AE for ; Thu, 23 Jun 2022 07:11:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pf1-x42d.google.com with SMTP id k127so12821008pfd.10 for ; Wed, 22 Jun 2022 22:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fu7U0/FvLAIBE6cyr13VpFrm7fX5wPd3RMAozjBN2CM=; b=n4WiBoIsAENOMI909MGbyWV/SIMe1TAP7yhGTjZse1AynHxxmaKf57/tEHztonhXlT Zj2n25vNFwmmUVIyktfRoV7Ag7mh+py90z8/PsbsyleBGKZX7QopVekggY6IWTgtFLfD jHnFPg7z4tV6PcOoOirx0tXeskAdKEOMiHnZJ3TVF/SQjiS9CnWErLgpfE/N33J0orXA Tj6tm3qVJv44p5LXE5esDmQW8V5C9aEfvxCaaJnfnhtKZQtTHxr+hFwOcY8OrfOKd2V3 1r3lgkpZDxadQzr07JRZu/7oQq/yWJXsFdiHmou8oS549UL0Em0wEp6PjOcMhjACJs78 37nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=fu7U0/FvLAIBE6cyr13VpFrm7fX5wPd3RMAozjBN2CM=; b=bHcrpkvMWujHmeJYBh0cBhH9Az2nyuILfsvF+gjsh2mdTzL3IDbMwjfAjr5U44y9eN y85tf4WGUyIDA/cW54ZQIOXzVfy6/fhFEAvEI42jAO0bvLi3D1jntzV5gkcnkGG4e/mJ wWMrz1S3tIgi2UjSDWrXF6H/LBL1aReh/DaGSk6L52nh4sBK8U6aecbOzjzwIu8qpGQ8 HSvDxt+N5ZyXiHU/zuveBpxfb7tKeuU5tc4UQ3H4s0a/IlJUjQQjFZzxPNmXDOc0+v1r CrRLIU5QQmd/qxoVA0EhshgV56N3WIRQdH8ug2Fq67duojOS9WxvuyWavdlICeTl7da4 NZ0Q== X-Gm-Message-State: AJIora9DCv9WMMStOqlDTuk/OBvp4pBPbshfvM86cqSZXblSZ6g5cqfi WzqHkzgo3CW9AFZ1SSXJCqs= X-Google-Smtp-Source: AGRyM1uTw43Ra6Q2+ttTToWTTB8FRI/8khCwoiiMY5ZmgQKv+Pz/Xi7FbqCbKsZICCSRXaghMpjUAQ== X-Received: by 2002:a05:6a00:1a91:b0:51c:2ef4:fa1c with SMTP id e17-20020a056a001a9100b0051c2ef4fa1cmr39048007pfv.75.1655961068362; Wed, 22 Jun 2022 22:11:08 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:07 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 05/11] ARM: dts: ast2500-evb: Add I2C devices Date: Thu, 23 Jun 2022 14:40:35 +0930 Message-Id: <20220623051041.3848714-6-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The EVB has an EEPROM on bus 3 and a LM75 temp sensor on bus 7. Enable those busses we can test the I2C driver. Signed-off-by: Joel Stanley Reviewed-by: Ryan Chen --- arch/arm/dts/ast2500-evb.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts index 4796ed445f57..874e042bc4cb 100644 --- a/arch/arm/dts/ast2500-evb.dts +++ b/arch/arm/dts/ast2500-evb.dts @@ -73,3 +73,22 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sd2_default>; }; + +&i2c3 { + status = "okay"; + + eeprom@50 { + compatible = "atmel,24c08"; + reg = <0x50>; + pagesize = <16>; + }; +}; + +&i2c7 { + status = "okay"; + + lm75@4d { + compatible = "national,lm75"; + reg = <0x4d>; + }; +}; From patchwork Thu Jun 23 05:10:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646888 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=owO/hVkj; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7fM3t6Yz9sGT for ; Thu, 23 Jun 2022 15:12:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 068388439D; Thu, 23 Jun 2022 07:11:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="owO/hVkj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 51FD6842D4; Thu, 23 Jun 2022 07:11:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ABCD28213E for ; Thu, 23 Jun 2022 07:11:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pj1-x1034.google.com with SMTP id x1-20020a17090abc8100b001ec7f8a51f5so1471749pjr.0 for ; Wed, 22 Jun 2022 22:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X/5Or6VXrEs6iS0SRoEkp0SuwLHZrVjOUT7rddPjq4Y=; b=owO/hVkjMGnB6PdnGL8H8OAPtuYoXbOOddaWL5VQHK3LGD8MmlEjib3C6ZS0kqVpDH sS68nsqfq0An5dZCor1nP6dqXb7uaHrpnGfJluO/qPFp8sNdE8tRx/Tsvwp9jHYyuKNH ip3Sz9jsgsI/ydUhjmCAUFr28H8pNV7be+sTVEB0x6KjfcBbNI8OmQVlv9TZHSj79ebd 8cTNtTZiCk5CGyJW1lSDl3s/nSZTx54tMA5I4Owh9W8+i9tReanZt4ET5wFTOPV5Cx9Q HZ//YdCN6MKA7GseovqRC+4xQOYjxmYRvYI+3HwJnjKlP4qepBQGpo+CDFSxLnf7aOFe z+Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=X/5Or6VXrEs6iS0SRoEkp0SuwLHZrVjOUT7rddPjq4Y=; b=NC1CD+xrPLGuio3gsJ0zH1gRtvadqOZDAGYm0aZ0Kgwz2DmsLsDzdnHry4+SwPLhr4 iQ4aDyXrxQ9lVvv/s5RIT7IjilRi472ryptAKz0Ly3sLDIdV3ipkd3uo/L4zzi/hcb0v bLiXEcNiSwKY1s7D3Gu+1JizsQcvph4pNJYX3ECffWfxpK+mSfX2B36jJin1ykH+1lh1 eu03g28GtUL2NF3MsjwwuTEOuewF4XAx1qGpiInueFgaY3enHW4i8K11qYCSApeTlP52 mr7D4KbME3aMeVxAumzmfxb0DrrEkcBi2HQpG8KGPIIqkTLfVnZ9gCUoOweOrZogpIj0 Xs5w== X-Gm-Message-State: AJIora+BC/k2nidI1EWwdnrGcdUyx7HAoj3qUvFoNGDFwvyz53oIbaZJ 4UR2weml7mwvaDmYeky2nYzxZLMxwtA= X-Google-Smtp-Source: AGRyM1vZdeH0ZLrIbKYKlmuPVS2w3pUQgTJyhAuqut7AgQOO5+VyiZsTcUg/g0JXp0CWV6bmdwgF7Q== X-Received: by 2002:a17:902:ee55:b0:16a:5b2:a2b0 with SMTP id 21-20020a170902ee5500b0016a05b2a2b0mr29806503plo.133.1655961072974; Wed, 22 Jun 2022 22:11:12 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:11 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 06/11] ARM: dts: ast2600-evb: Add I2C devices Date: Thu, 23 Jun 2022 14:40:36 +0930 Message-Id: <20220623051041.3848714-7-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The EVB has an EEPROM and ADT8490 temp sensor/fan controller on bus 7, and a LM75 temp sensor on bus 8. Signed-off-by: Joel Stanley --- v2: Place devices under correct bus --- arch/arm/dts/ast2600-evb.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/ast2600-evb.dts b/arch/arm/dts/ast2600-evb.dts index 806b76029ac7..bb438d57cb6d 100644 --- a/arch/arm/dts/ast2600-evb.dts +++ b/arch/arm/dts/ast2600-evb.dts @@ -162,10 +162,26 @@ &i2c7 { status = "okay"; + + temp@2e { + compatible = "adi,adt7490"; + reg = <0x2e>; + }; + + eeprom@50 { + compatible = "atmel,24c08"; + reg = <0x50>; + pagesize = <16>; + }; }; &i2c8 { status = "okay"; + + lm75@4d { + compatible = "national,lm75"; + reg = <0x4d>; + }; }; &mdio0 { From patchwork Thu Jun 23 05:10:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646889 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=C8M72Jy1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7fZ65PJz9sGT for ; Thu, 23 Jun 2022 15:12:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB80B842F7; Thu, 23 Jun 2022 07:11:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C8M72Jy1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1042E842D4; Thu, 23 Jun 2022 07:11:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 27B47842D4 for ; Thu, 23 Jun 2022 07:11:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pj1-x1031.google.com with SMTP id b12-20020a17090a6acc00b001ec2b181c98so1423375pjm.4 for ; Wed, 22 Jun 2022 22:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a+14cW7QNl6qrFqAS49s5emjn6KdDXogyqnGxoMoHeA=; b=C8M72Jy1VXCwu6+xwbEmHwEQmpRq0dThdtnFAZaGhPN4QM1vP3mQTyYVoBdSVm/DL7 3ZkzeimUjL+Az97DG8ELpk9ycYeVXX5wpxTP3gNB2+BFxXqKNgqeEs74rRN1u7j8WmdF 8zmTL1zhQjX0alvx5c0+kg5BOHAfd3Lbt54Vczp6wlsJ9BPnOLIcNowUcudTzV6Rd4jW wblNRy0HlHfviOg1QRcoqZYFrPHX0B1ikLdMfk65Yw8f0UjUqMjxhGqZX3APgRzvMo8V h91e5BW94dMnzOiKIvmkh2EaYn1N1ocsOXk5DEDK2bTTxD6MgJQAFHre17p2oMMRrTY/ wh8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=a+14cW7QNl6qrFqAS49s5emjn6KdDXogyqnGxoMoHeA=; b=UZg+YJcoYeaF51OrPwfTH1Jds6Ua3hmqTHetSHzzho9hcswrp/n1bDCuqAu680VaOb K9EM17XitwWAQ3/riACG3DknchbwqFKzpdK0v25gKem6O7JzLS1kekjz1aKk4fhs5pmJ mXYZfL8fpHQmQf38qnnIHmCNbhsPFMXAnygRDnIS2j0bGL3o4bc67RvHdFmgDNY4tcpJ +bd0Iuo7KBQG8gAf+mq0F6jAEBV0NBIzJVrQm/ZOK+PP+cSYLPG/KZKVKy9AiUNf76nX QGOqePHzQeIo/viZ3XI4zWd5X6Fe9FAqg4//wabkMEzRxnH8prRwpIjc5MxQnZPH04Uu ej2w== X-Gm-Message-State: AJIora9F12Q4OBjqKO+DGqXIn5i77X2u85nfUscq4of7l3bcN7H+wDIg szbVBq4zk4wx8hSRBKl4vgw= X-Google-Smtp-Source: AGRyM1s0r+YqFQsDkiuOMvOFsXWVQTEDabBCXfHHawmJ9SwzFpGJ5oDfXExDeV0IrD5bRIVaMvnviQ== X-Received: by 2002:a17:90a:be03:b0:1ec:721f:6e34 with SMTP id a3-20020a17090abe0300b001ec721f6e34mr2072384pjs.183.1655961076413; Wed, 22 Jun 2022 22:11:16 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:15 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 07/11] reset/aspeed: Implement status callback Date: Thu, 23 Jun 2022 14:40:37 +0930 Message-Id: <20220623051041.3848714-8-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The I2C driver shares a reset line between buses, so allow it to test the state of the reset line before resetting it. Signed-off-by: Joel Stanley Reviewed-by: Ryan Chen --- drivers/reset/reset-ast2500.c | 19 +++++++++++++++++++ drivers/reset/reset-ast2600.c | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/drivers/reset/reset-ast2500.c b/drivers/reset/reset-ast2500.c index 0a1dd236aff3..d9cecf3a72e8 100644 --- a/drivers/reset/reset-ast2500.c +++ b/drivers/reset/reset-ast2500.c @@ -48,6 +48,24 @@ static int ast2500_reset_deassert(struct reset_ctl *reset_ctl) return 0; } +static int ast2500_reset_status(struct reset_ctl *reset_ctl) +{ + struct ast2500_reset_priv *priv = dev_get_priv(reset_ctl->dev); + struct ast2500_scu *scu = priv->scu; + int status; + + debug("%s: reset_ctl->id: %lu\n", __func__, reset_ctl->id); + + if (reset_ctl->id < 32) + status = BIT(reset_ctl->id) & readl(&scu->sysreset_ctrl1); + else + status = BIT(reset_ctl->id - 32) & readl(&scu->sysreset_ctrl2); + + return !!status; +} + + + static int ast2500_reset_probe(struct udevice *dev) { int rc; @@ -79,6 +97,7 @@ static const struct udevice_id ast2500_reset_ids[] = { struct reset_ops ast2500_reset_ops = { .rst_assert = ast2500_reset_assert, .rst_deassert = ast2500_reset_deassert, + .rst_status = ast2500_reset_status, }; U_BOOT_DRIVER(ast2500_reset) = { diff --git a/drivers/reset/reset-ast2600.c b/drivers/reset/reset-ast2600.c index 985235a3ac46..1732a450efc0 100644 --- a/drivers/reset/reset-ast2600.c +++ b/drivers/reset/reset-ast2600.c @@ -47,6 +47,22 @@ static int ast2600_reset_deassert(struct reset_ctl *reset_ctl) return 0; } +static int ast2600_reset_status(struct reset_ctl *reset_ctl) +{ + struct ast2600_reset_priv *priv = dev_get_priv(reset_ctl->dev); + struct ast2600_scu *scu = priv->scu; + int status; + + debug("%s: reset_ctl->id: %lu\n", __func__, reset_ctl->id); + + if (reset_ctl->id < 32) + status = BIT(reset_ctl->id) & readl(&scu->modrst_ctrl1); + else + status = BIT(reset_ctl->id - 32) & readl(&scu->modrst_ctrl2); + + return !!status; +} + static int ast2600_reset_probe(struct udevice *dev) { int rc; @@ -78,6 +94,7 @@ static const struct udevice_id ast2600_reset_ids[] = { struct reset_ops ast2600_reset_ops = { .rst_assert = ast2600_reset_assert, .rst_deassert = ast2600_reset_deassert, + .rst_status = ast2600_reset_status, }; U_BOOT_DRIVER(ast2600_reset) = { From patchwork Thu Jun 23 05:10:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646890 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=hdhJ18B0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7fp1rMnz9sGT for ; Thu, 23 Jun 2022 15:12:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F9E184334; Thu, 23 Jun 2022 07:11:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hdhJ18B0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8B352842F1; Thu, 23 Jun 2022 07:11:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF68684392 for ; Thu, 23 Jun 2022 07:11:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pl1-x62a.google.com with SMTP id jb13so3595877plb.9 for ; Wed, 22 Jun 2022 22:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7HGvQF7onTrkTgrGUvbFAhxXxpE2F7Lkwfo+qXgwJOw=; b=hdhJ18B0KZEWOikER1h3utbWllioXJ4l9fQvUhuOwFQ4viUCy1EyBS6lwX+xHluXTP zCSKYVA+ijM3bJ4VNsOgme//KWOT8ZkS4ij8s0KCHiFIAqKEJ5Hz9dZ22oOigRVXDO65 vIM7OgkeHqAOEJuyXkMnLqPOzSEcBiJtfcLoXaZ4w63EF3dzADEK4B3WbE/ciDQThd3P hpZf/bCO4fxOsjUFCVMoANsaGOb4WRhgCAN3w9nqADwnFTk3ucZ5wFWoU6gv9VpTd5xl 5AcUxhoursjUbuUR6cju4fQHgiU6Yt0m/ymSQ3DNP01488bp92Y6SE89U7D3C+iaDQC0 PHqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=7HGvQF7onTrkTgrGUvbFAhxXxpE2F7Lkwfo+qXgwJOw=; b=4Mm+9hA8gox43AREND43p2ch5MJA9bwSAm+mtaia1Q7k5OKqkL9AXr7cHgnBpeOy8z XZ6DxxXIEQvJ7wn7UsNLUbECa/KLAod3FtAhzlUkstOWRYwV3PezbLNLXm420ZrCgNSP UA7y2vy5HIjDcjPlAfsA6phl82sMm9KoVSBjtxlnRAri+ob75M45xS/x9wTD9wrdogNt z6CnJ0FaqfcvHNZkzk68Wkp1tCk7NjykjNr8mhI/xKnkKqp+cBieGIvfc7tawnRDZ7hc e9MZ9+8nIAmT60dsaQKjQY8eN5lKueGef84ixL7GnVf7k8vn4do4DOqwd9j76Poz72qj 6Iug== X-Gm-Message-State: AJIora+QoWLPdZm9nY0WkRk8hsxJnCaVONVlz6f8MJ41oEZbtXI+VZSd ZuZkDhsEoZ1rc8MxJvJkl7Q= X-Google-Smtp-Source: AGRyM1tP4zHGkaWV5WRGsWXE60Yk07MdWFcNx76JBr1RCy/0uf3CAQydaoLbasS5mLNt4TwICpzoPA== X-Received: by 2002:a17:90b:1c86:b0:1ea:4ceb:2788 with SMTP id oo6-20020a17090b1c8600b001ea4ceb2788mr2153382pjb.16.1655961079840; Wed, 22 Jun 2022 22:11:19 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:19 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 08/11] i2c/aspeed: Fix reset control Date: Thu, 23 Jun 2022 14:40:38 +0930 Message-Id: <20220623051041.3848714-9-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The reset control was written for the ast2500 and directly programs the clocking register. So we can share the code with other SoC generations use the reset device to deassert the I2C reset line. Signed-off-by: Joel Stanley Reviewed-by: Ryan Chen --- drivers/i2c/ast_i2c.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 2d3fecaa14ea..0a93d7c82911 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "ast_i2c.h" @@ -108,19 +109,26 @@ static int ast_i2c_of_to_plat(struct udevice *dev) static int ast_i2c_probe(struct udevice *dev) { - struct ast2500_scu *scu; + struct reset_ctl reset_ctl; + int rc; debug("Enabling I2C%u\n", dev_seq(dev)); /* * Get all I2C devices out of Reset. - * Only needs to be done once, but doing it for every - * device does not hurt. + * + * Only needs to be done once so test before performing reset. */ - scu = ast_get_scu(); - ast_scu_unlock(scu); - clrbits_le32(&scu->sysreset_ctrl1, SCU_SYSRESET_I2C); - ast_scu_lock(scu); + rc = reset_get_by_index(dev, 0, &reset_ctl); + if (rc) { + printf("%s: Failed to get reset signal\n", __func__); + return rc; + } + + if (reset_status(&reset_ctl) > 0) { + reset_assert(&reset_ctl); + reset_deassert(&reset_ctl); + } ast_i2c_init_bus(dev); From patchwork Thu Jun 23 05:10:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646891 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=eNDj53Kh; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7g05qZ7z9sGT for ; Thu, 23 Jun 2022 15:12:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9033D843EA; Thu, 23 Jun 2022 07:11:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eNDj53Kh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F8578432E; Thu, 23 Jun 2022 07:11:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E8CDF84334 for ; Thu, 23 Jun 2022 07:11:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pj1-x102e.google.com with SMTP id 73-20020a17090a0fcf00b001eaee69f600so1473630pjz.1 for ; Wed, 22 Jun 2022 22:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wQu1PUi4VGJXi34FgVttLS6+V8G7iErxccu2krkbtW0=; b=eNDj53KhwXxyojpLwTYrQLT2khLsFmL6a/xxXmK5w7ONojeAgtXUVspyBvRxoMujl5 nqP2VFGDw/cCj/X95TSuuLl/w0GlQtJeP8H1HnB4TIqHwIWkLYT2UGEoyIaFsnl8MfYc MBTpBlb0B+h5xuI8FsPjT5IShOUd1uGrwPNa9K83jKfFoRshzIMVorn9eFR9LWu10vbC 4CUqtBAVVa7uZ6kXNJ52tF3fJpeuFdmySY8QMAtFbv6JeIecNG4zFW8fyN4S1uaTC3Ut iuJAIF1TVY+CKGuJF+qp/bDkbLpw2pEICnPFwTywwLlKXdz7YBF/FQAVddEtkwp9HwoK aVDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=wQu1PUi4VGJXi34FgVttLS6+V8G7iErxccu2krkbtW0=; b=YN2Aof7LZPQQrMgSEllWQMfDN0E0QqfbgX5HEQOLuycXg+mk3LCFhTyQ1lcTiouze3 x5oDEUIPeCyV0qBoKohoute9kHN/VR16h8s6uIjsYupk10BDXXgkPusW4Wa40CeheYuV CU5Ri/YENYXwWfZM0gAB76h1IkvS80ITbKKRV37PAB3G6S9UrRoJXCQGETF6OEGbhSUG jslTc7KzhJwiO2LPFWGdr8Si5ezsNQpwrSkdlf40Z87KtXfi9xJlziHI+yhdhzdyyzrR uotIzCcY9KO6uEKGpm7NmnDm2iabR5Ia0J1ig5rkfPclQb547oF00utuV0J+8RsV9t8/ KvFQ== X-Gm-Message-State: AJIora9qzs7rNAoSDcb1gOHRQwo//fDYxAECPzvd9zazfzSXtEOydCv7 bV7mbsiuExgl/XXqg91f7hNf7mczskI= X-Google-Smtp-Source: AGRyM1vBHg3StPydWSWmsM9jlyCYmFze9ggL6rj7vXDk0CTTFUwkLrh9MzLvFumn0+Mfj4fZpfW1Ow== X-Received: by 2002:a17:90a:408f:b0:1e3:23a:2370 with SMTP id l15-20020a17090a408f00b001e3023a2370mr2129613pjg.84.1655961083294; Wed, 22 Jun 2022 22:11:23 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:22 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 09/11] i2c/aspeed: Add AST2600 compatible Date: Thu, 23 Jun 2022 14:40:39 +0930 Message-Id: <20220623051041.3848714-10-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Joel Stanley Reviewed-by: Ryan Chen --- drivers/i2c/ast_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 0a93d7c82911..c9ffe2d62820 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -351,6 +351,7 @@ static const struct dm_i2c_ops ast_i2c_ops = { static const struct udevice_id ast_i2c_ids[] = { { .compatible = "aspeed,ast2400-i2c-bus" }, { .compatible = "aspeed,ast2500-i2c-bus" }, + { .compatible = "aspeed,ast2600-i2c-bus" }, { }, }; From patchwork Thu Jun 23 05:10:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646892 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=hip7yvuC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7gC2LWVz9sGT for ; Thu, 23 Jun 2022 15:12:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BB5F084392; Thu, 23 Jun 2022 07:11:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hip7yvuC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E41868432E; Thu, 23 Jun 2022 07:11:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 96F258432E for ; Thu, 23 Jun 2022 07:11:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pg1-x52a.google.com with SMTP id g186so18098928pgc.1 for ; Wed, 22 Jun 2022 22:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AWLz34WAO38aFcuPo+7vEQCMTcuWgcVTVXw9/0tAsRg=; b=hip7yvuC/wn4+o9w3mp3H+edgIrmhOcqBDCzvYjEz/IAYqBHBVwZIa7W+3ftZNWBlk fn/Z+D1lp3QF0ZoOVc1ADVoGPfM6g2Tnh3q7PW8uSKinpjb31lyE0hW3OrWQbagu3Gc4 bmoKXIt2BjfVsZHtyJ5CmYRsYNHrjHCM7QTRJJe8mVikeIrye+gxDS8kOw+MeRqrwa2O LBs6vH7wIh6yFZ73tisuoNVTspnQ82mKvSKa7YTBDw9LeLIbnh9lw3pKezmAwFGkqXCl uF76JsxwSfbCmLZreI8iS03jeJJy2ZhuwknjanMv1aooPnV2debxPaY/RZ6lei5+7Ck6 h1rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=AWLz34WAO38aFcuPo+7vEQCMTcuWgcVTVXw9/0tAsRg=; b=rlJTAKKhDz8B6uZS1GYKiHZR4CaoBPzKkQrKOi2Tu3akCHwWkCGKOP/v08Hgt/CMpr Oa2yEVAS+OzpdK+1kojNcIqLuQU3CrJWSxKggQTb7Va+6k8QWNBReU+90cA9piwToKP4 6GVnW4ZnauqYraQC4W6I3w5pSrfMKSYwNMkAKzrYBudFSzXTQsu8IGbl97zeqEQSCq/P zE1zEFQ7JR5yItqpjWotVRCTKX+3xJEh+UDcT4HqMhzf3fimhR9Lla+xpn9FzdRHFoV8 J8xDEtj4dkup9si46ce5XvgOnmp+HgiLjktFLFm07lOJYiUS+GIiWlUq1KCX2ibkPOXA wpRQ== X-Gm-Message-State: AJIora9U9StONhs+MbjsHdmdlpozk5cTY/0GXqb1C5hGattWflkZTOIl bJPVUXjqpjBrCMHv3idrOM4= X-Google-Smtp-Source: AGRyM1vJQSVLD8NnHtRlYuYRnZZGj+5X1qoxNEKOykywDProgpLVd2xLJOQcdwRftZhQQdJq812YjA== X-Received: by 2002:a63:2a4e:0:b0:40c:6ff9:9978 with SMTP id q75-20020a632a4e000000b0040c6ff99978mr6038330pgq.447.1655961086801; Wed, 22 Jun 2022 22:11:26 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:26 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 10/11] config/ast2600: Enable I2C driver Date: Thu, 23 Jun 2022 14:40:40 +0930 Message-Id: <20220623051041.3848714-11-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Joel Stanley --- configs/evb-ast2600_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/evb-ast2600_defconfig b/configs/evb-ast2600_defconfig index f84b723bbba3..5c298939da6d 100644 --- a/configs/evb-ast2600_defconfig +++ b/configs/evb-ast2600_defconfig @@ -62,6 +62,7 @@ CONFIG_HASH_ASPEED=y CONFIG_ASPEED_ACRY=y CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y +CONFIG_SYS_I2C_ASPEED=y CONFIG_MISC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ASPEED=y From patchwork Thu Jun 23 05:10:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1646893 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=aQncsGdy; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LT7gQ19mVz9sGT for ; Thu, 23 Jun 2022 15:13:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C743A843DF; Thu, 23 Jun 2022 07:11:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aQncsGdy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 70A9184396; Thu, 23 Jun 2022 07:11:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 52AE8843FE for ; Thu, 23 Jun 2022 07:11:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pg1-x52a.google.com with SMTP id r66so12136629pgr.2 for ; Wed, 22 Jun 2022 22:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=60gzUQKqWpp8SwTWuF759F1chnM0ybBWDaH0/TyrdRU=; b=aQncsGdyJgfRcc4DoDZ/KeWfquLjNfcBPYY/UxpTQqL7zPRpb9k7avPuigv1Q5ucWH 5Adp8wEWMHwGLAHdGX4vBvypd/ZL60/c9YPXS+ReMCTZ4eFX3RwWlwsybtdAHqzqFZ08 2XLxjxVOy4Wu1KNEYRv5VzlTIFV+P3oWGa3nedOSwBdIb5i5RNzyR6mzKynjf7vr6BW9 8PpjBYk6ayZ8e6O82+MaWqlJ2I0KwjrWBe1Jpd2tZkOBWWaom0Xn/Xe2bpsHJZVmjZiB xtZYwa03WmkaVoSzcPhkfvHXfgbHDn1qJJRM4krCuDKykOiOuwWsPvcZbZIheg84nfo0 gs8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=60gzUQKqWpp8SwTWuF759F1chnM0ybBWDaH0/TyrdRU=; b=0nEXjzFXEQ8uvPCOJMtiOdP0w2Ko4XqaSEJN05r3A5zqQLS/p9wqVFNM1Z/GWoWS2F KeXzkLDaiU4cmHEFmtKMNefCeZaGNul/H3YiBdH7wVwSHwkewjc0lr3AgMWPbuu3DtSL smc7gEiB6GzABrKN3dnzKipB17ipzEHV6fYSbNxqnupTUcE464L+IUGCqoCNa0mDrak4 zHFqYVaukZsbDGgR9M8XN+jsBPfgmmZBL6i4u1gHhqBdh/IOV9M2y4+78ENFiFexDvB4 lIb1EAdcAfpPHVA5WlnoTUt3G2H6uS4K2odXlPz7fbNfbXXu+hlstNxOjQash+Df4rL0 lDtQ== X-Gm-Message-State: AJIora8WfepmUYO9yZqULmXF1UBg5v6I/D9Y8Z1EDXUbQ6O+gS/L/apK 92LfNjPT83sX3NXehoijCP/kedzwh1Y= X-Google-Smtp-Source: AGRyM1tSuL+SmFslLtHHmjpcTRL/58QY7F5PHjJ+p/BBdFVCvVEI+HNovKgWz/MeF4zPK8TzC6jvMQ== X-Received: by 2002:a63:9d02:0:b0:40d:434:79a7 with SMTP id i2-20020a639d02000000b0040d043479a7mr6132736pgd.31.1655961090701; Wed, 22 Jun 2022 22:11:30 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id jf20-20020a170903269400b0016a10e0ce17sm9723820plb.151.2022.06.22.22.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 22:11:29 -0700 (PDT) From: Joel Stanley To: Ryan Chen , BMC-SW@aspeedtech.com, Heiko Schocher Cc: u-boot@lists.denx.de, =?utf-8?q?C=C3=A9dric_Le_Goater?= Subject: [PATCH v2 11/11] config/aspeed: Enable EEPROM options Date: Thu, 23 Jun 2022 14:40:41 +0930 Message-Id: <20220623051041.3848714-12-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220623051041.3848714-1-joel@jms.id.au> References: <20220623051041.3848714-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean To allow testing of the I2C driver, enable the eprom command and the misc driver. Signed-off-by: Joel Stanley --- configs/evb-ast2500_defconfig | 3 +++ configs/evb-ast2600_defconfig | 2 ++ 2 files changed, 5 insertions(+) diff --git a/configs/evb-ast2500_defconfig b/configs/evb-ast2500_defconfig index 2371cc2742cf..3ae07bd4e9e1 100644 --- a/configs/evb-ast2500_defconfig +++ b/configs/evb-ast2500_defconfig @@ -18,6 +18,7 @@ CONFIG_PRE_CONSOLE_BUFFER=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_HUSH_PARSER=y # CONFIG_AUTO_COMPLETE is not set +CONFIG_CMD_EEPROM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y @@ -33,6 +34,8 @@ CONFIG_CLK=y CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=y +CONFIG_MISC=y +CONFIG_I2C_EEPROM=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ASPEED=y CONFIG_PHY_REALTEK=y diff --git a/configs/evb-ast2600_defconfig b/configs/evb-ast2600_defconfig index 5c298939da6d..caf0db58e640 100644 --- a/configs/evb-ast2600_defconfig +++ b/configs/evb-ast2600_defconfig @@ -40,6 +40,7 @@ CONFIG_SPL_DM_RESET=y CONFIG_SPL_RAM_SUPPORT=y CONFIG_SPL_RAM_DEVICE=y CONFIG_HUSH_PARSER=y +CONFIG_CMD_EEPROM=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y @@ -64,6 +65,7 @@ CONFIG_ASPEED_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_ASPEED=y CONFIG_MISC=y +CONFIG_I2C_EEPROM=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ASPEED=y CONFIG_PHY_REALTEK=y