From patchwork Sat May 13 12:33:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93520 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5747588vqo; Sat, 13 May 2023 05:46:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XJX0Is4fJ2uXQI2vnEzekwIFQY+sjPBD7whN3iRMNG/VM3s+A25neIxg3basSuvoUEoGo X-Received: by 2002:a05:6a00:4305:b0:64a:e8a2:bb26 with SMTP id cb5-20020a056a00430500b0064ae8a2bb26mr5677322pfb.0.1683981960752; Sat, 13 May 2023 05:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683981960; cv=none; d=google.com; s=arc-20160816; b=j4RjlFh99jIh7Y2HQYNespUK7mRFXVJRDPPSwG5jDuXmXM/Xw7ShqD9wBTETws0Qgd Z4zUYLXhVseAXwUZ0vy53XqbSgiZKAD/DOS/wcPic7atUVIBBxMjAC21//zzdEXnicgR P7j5CMQOlNeB8vklL4PiNb5uQBhypO39nxN/mqu6cU9bjRB8DusUYqw3kt/YG3fbkxpO hIL9XSUhxX1I3hLTl4TZYz0z3orBkDgu0MzesqOZo4HGJomMHLd/eyJM8+yCwKssC6kf s05psPDWwumbz+Oz1HKBtoHQVZs9Q2vpq357P/LftpxmmbBky1ZJi0dYRGaH6yJ6ONTh 0Clw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mDm3c09lBNDa/40qFmsQx7WYm45FR+XMQsaFrQIrMCw=; b=U1lbzkhFt4bq8ibDFWe4N+lZnt7AQrke6nun/SDwIO/l04Yk5o1ipBSlIUhSRrmJtB RTLVbvsgxFX/XL/Ykd8Mz6bGCSsA2nEcT509902vUi1kRRChaGAie55RcVnCLbt5MzDZ l/fRE5Jo8TG6fnkOuB85JFs+pDZs1g7MvUBMa5NDO4HqGlXLc4/PGblWB1FLzKM9bn3m vTFWvvwMHHe/T0f9n2YFoUCvqTriBHTr1lHd7t7yE8F2lq3OwnpGUi6M968J0HxEssZx kj9JyshHJTHwNsxPTB5C6xgtl+HFVf+ISnNxs+fUJ0hqyeS94RSUiTu16x1MPbkrbJ8P ompQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pXR508Hi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m24-20020a637118000000b00513128cd495si11861355pgc.730.2023.05.13.05.45.40; Sat, 13 May 2023 05:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pXR508Hi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238330AbjEMMdw (ORCPT + 99 others); Sat, 13 May 2023 08:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238608AbjEMMds (ORCPT ); Sat, 13 May 2023 08:33:48 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 272F94688; Sat, 13 May 2023 05:33:29 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXGBf088654; Sat, 13 May 2023 07:33:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683981196; bh=mDm3c09lBNDa/40qFmsQx7WYm45FR+XMQsaFrQIrMCw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pXR508HiDUcEpHEf+n2EpTcSoREGsouJtVUikB+iGN4oSS20Hk3CGeDEYJ+TYlfsS 7oXmcwS0689s68pHYfsyCPKq2rgiD+7kMDzLDlVgxbkNsLy1q0df2KeZUGSPbE4LbT bXyi+laBU/rFpc0jK3PgRGPu6obXglZJPpNeNYi8= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DCXGVt113090 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 07:33:16 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 13 May 2023 07:33:16 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 13 May 2023 07:33:16 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXFiX096927; Sat, 13 May 2023 07:33:16 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 1/4] arm64: dts: ti: k3-j721e-mcu-wakeup: Add HyperBus node Date: Sat, 13 May 2023 18:03:10 +0530 Message-ID: <20230513123313.11462-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230513123313.11462-1-vaishnav.a@ti.com> References: <20230513123313.11462-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765783068816043887?= X-GMAIL-MSGID: =?utf-8?q?1765783068816043887?= J721E has a Flash SubSystem that has one OSPI and one HyperBus with muxed datapath and another independent OSPI. Add DT nodes for HyperBus controller and keep it disabled and model the data path selection mux as a reg-mux. Signed-off-by: Vaishnav Achath --- V1->V2: * Drop register region size update as the memory maps mentions 256 Bytes for these regions. * Drop FSS node rename as the fix is already present in next. Depends on : https://lore.kernel.org/all/20230424184810.29453-1-afd@ti.com/ .../boot/dts/ti/k3-j721e-mcu-wakeup.dtsi | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi index 6237e1f3a477..526886e0c4f4 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi @@ -181,6 +181,27 @@ #size-cells = <2>; ranges; + hbmc_mux: mux-controller@47000004 { + compatible = "reg-mux"; + reg = <0x00 0x47000004 0x00 0x2>; + #mux-control-cells = <1>; + mux-reg-masks = <0x4 0x2>; /* HBMC select */ + }; + + hbmc: hyperbus@47034000 { + compatible = "ti,am654-hbmc"; + reg = <0x00 0x47034000 0x00 0x100>, + <0x05 0x00000000 0x01 0x0000000>; + power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 102 0>; + assigned-clocks = <&k3_clks 102 5>; + assigned-clock-rates = <333333333>; + #address-cells = <2>; + #size-cells = <1>; + mux-controls = <&hbmc_mux 0>; + status = "disabled"; + }; + ospi0: spi@47040000 { compatible = "ti,am654-ospi", "cdns,qspi-nor"; reg = <0x0 0x47040000 0x0 0x100>, From patchwork Sat May 13 12:33:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5742931vqo; Sat, 13 May 2023 05:35:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ovIm5ZsszMf4uja0PR1TvBj5VeGNi4NMWj1P0VNfaYLAN18Tf0RtnZ3XsE+hHWD1xo3H1 X-Received: by 2002:a05:6a20:430a:b0:101:a435:a38 with SMTP id h10-20020a056a20430a00b00101a4350a38mr17324401pzk.57.1683981348111; Sat, 13 May 2023 05:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683981348; cv=none; d=google.com; s=arc-20160816; b=Jl6rZaYhZLFdf9V4SGrBePZwKpsHEJiqMgxXyAIIUjLZemGCirGY3CYcvgam5Q2xoP cs0S2/XpRLYB+R7u+TXyX/HeOWa4F9uTDJQUN983zWCQcO4OSoI/xUgUqQb8WUcpRd0Z q4NenmyLqklMb6TmzlclUPofFZzBoARtulrjZ2th794S5Ig41OAtqklzGJnQAmdgScyt z9L8vxbXEQYH1S0GJoYCoR/T0pTiCS59n4JvVliZWzWf5qZqCDeBquhPZjsJCxwXSXfD XXfT50O01cnRsd9HFPA4LsVekZ9ze5XWAalNZE3TUm/k6u4iwdezx603whVwcJ+fF01V Frmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=m+tmHaZhUUisWgXZDr5YIHe5SugGE1X4sR1jKVITgBI=; b=TfdgUcS5MaEBeYZUM8dOBx17lyhpEwipoRlurVChc3DzWpGlkmraWM5To121PFzS2l nbOc8Iw4MntS8Q2x4PccnFGPe46oBF8E1hN1ykXI4gUGeP2VubrIVht3h4AoYNsFMv0v kkeDFZYIS9/KCXqnk8tKLiFZUZyniECdd5I2HGMaT66rIEp2OG2j2oFiVuiFiEf7okED 50GlVGYcSfN2hSHABJmVhTjYr0OQ2b4Wy5BGVuq8rVlUsXFu7wo9ALIV4pTBRCWgXnJm Gt/DDXdH0xBW915M4IKjWyHmI9GbvCBNyYRQwY05g8SfUMu60aRlgH0nNv2aiYnpkc9S Fqug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O2Ck8gLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090a974600b0023409b3983fsi29878475pjw.99.2023.05.13.05.35.33; Sat, 13 May 2023 05:35:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O2Ck8gLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238904AbjEMMeE (ORCPT + 99 others); Sat, 13 May 2023 08:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238456AbjEMMds (ORCPT ); Sat, 13 May 2023 08:33:48 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7436046B0; Sat, 13 May 2023 05:33:31 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXIXN064761; Sat, 13 May 2023 07:33:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683981198; bh=m+tmHaZhUUisWgXZDr5YIHe5SugGE1X4sR1jKVITgBI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=O2Ck8gLG45wt7n/ymUd9b46g4YKQDkg8MNwZG/kOsOoN4rvM9JhQu8uIp+yPxBhzq BCYMBaLI6fna8bQxKbMADDYCj9zn5IN4i4GUBtQ/DsxbfJLU/z6MXmjR9riXeNSyWH Q2sv2eSoYuSdImP+ObkrNjjcgRPMzy5Pd8TzIA5Q= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DCXIbI021596 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 07:33:18 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 13 May 2023 07:33:18 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 13 May 2023 07:33:18 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXH5a068575; Sat, 13 May 2023 07:33:17 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 2/4] arm64: dts: ti: k3-j721e-som-p0: Add HyperFlash node Date: Sat, 13 May 2023 18:03:11 +0530 Message-ID: <20230513123313.11462-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230513123313.11462-1-vaishnav.a@ti.com> References: <20230513123313.11462-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765782426164561775?= X-GMAIL-MSGID: =?utf-8?q?1765782426164561775?= J721E SoM has a HyperFlash and HyperRam connected to HyperBus memory controller, add corresponding node, pinmux and partitions for the same. HyperBus is muxed with OSPI and only one controller can be active at a time, therefore keep HyperBus node disabled. Bootloader will detect the external mux state through a wkup gpio and enable the node as required. Signed-off-by: Vaishnav Achath --- V1->V2: * Add partition information. arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 71 +++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index e289d5b44356..b96e5fdddb4b 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -165,6 +165,25 @@ J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */ >; }; + + mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CK */ + J721E_WKUP_IOPAD(0x4, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CKn */ + J721E_WKUP_IOPAD(0x2c, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_CSn0 */ + J721E_WKUP_IOPAD(0x54, PIN_OUTPUT, 3) /* MCU_HYPERBUS0_CSn1 */ + J721E_WKUP_IOPAD(0x30, PIN_OUTPUT, 1) /* MCU_HYPERBUS0_RESETn */ + J721E_WKUP_IOPAD(0x8, PIN_INPUT, 1) /* MCU_HYPERBUS0_RWDS */ + J721E_WKUP_IOPAD(0xc, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ0 */ + J721E_WKUP_IOPAD(0x10, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ1 */ + J721E_WKUP_IOPAD(0x14, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ2 */ + J721E_WKUP_IOPAD(0x18, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ3 */ + J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ4 */ + J721E_WKUP_IOPAD(0x20, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ5 */ + J721E_WKUP_IOPAD(0x24, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ6 */ + J721E_WKUP_IOPAD(0x28, PIN_INPUT, 1) /* MCU_HYPERBUS0_DQ7 */ + >; + }; }; &ospi0 { @@ -185,6 +204,58 @@ }; }; +&hbmc { + /* OSPI and HBMC are muxed inside FSS, Bootloader will enable + * appropriate node based on board detection + */ + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_fss0_hpb0_pins_default>; + ranges = <0x00 0x00 0x05 0x00000000 0x4000000>, /* 64MB Flash on CS0 */ + <0x01 0x00 0x05 0x04000000 0x800000>; /* 8MB RAM on CS1 */ + + flash@0,0 { + compatible = "cypress,hyperflash", "cfi-flash"; + reg = <0x00 0x00 0x4000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "hbmc.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "hbmc.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "hbmc.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "hbmc.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "hbmc.sysfw"; + reg = <0x6c0000 0x100000>; + }; + + partition@800000 { + label = "hbmc.rootfs"; + reg = <0x800000 0x3800000>; + }; + }; + }; +}; + &mailbox0_cluster0 { status = "okay"; interrupts = <436>; From patchwork Sat May 13 12:33:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5756838vqo; Sat, 13 May 2023 06:04:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7luNARjVl8g1+gsVUoj3eiQ5qe0/IYuW887MvO2uAQz8IiPKU6PAekMC9pciHnps5cqwdL X-Received: by 2002:a05:6830:3a89:b0:69f:a6f8:37ec with SMTP id dj9-20020a0568303a8900b0069fa6f837ecmr7848033otb.29.1683983066373; Sat, 13 May 2023 06:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683983066; cv=none; d=google.com; s=arc-20160816; b=OLu4Fy2CPUGRcHfkaHD5I/pQinvlRIfU2OuMJaBcRV+k3+nBQ6ljkyUmfAciBmrAD7 ds3FmXKZdbWlTtkt0FynGe695/VJLLQ90pGlLhF0mRC8ioXMNQAJvuoqlvayIhmPs/y5 fxHTs5g9B1sShSpfYeZntPFyNXF7YJihCDis0H8VbG4Qm3ZGXSu4dB5WHbrkyGUdZoee 1wwCTMv3GP8s9qhrFa23B1DDy07Q9BpSFS3/ZfgIS6SfWBGQpQOrouq2fmA/B57+AQFW OawUTELRdJHbBHeZceGZfeku2t6WKwr3wXx76sBKSPlfxEbD5lSNmbUnb7c/EZpcDwnL fdnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LM9NMXAa2p7iT/m9T1EqarVa70Qfrqzvyb42BTR2otk=; b=BHtRftZavr3QKNLAsiiajuM3KN3WfNy6+a0Yn2d1Pw2IeUMoh02/SEIx/Ho6d66g+e jLMF4RzuqdsqHGuLye6CpxU2tSyFX66PQIWJKIjRuS1soYeYndqRGuqvGgm+MGq1qzKY 2ZmosZ2Di8daT+2JW0M/muhU2bKDrUY/ovzqQmgxfD2pvnfT04DK2fQgSffqzoIFg5MF b+qY/VNm5NuWe4H3eLAn1QATVistPZH3jl6Uio+IaPWcI/YXZHYm2y8uTmwg0j9IQixc mKgeodMs4crQdM5Ic2SCj2VOI7/OwtPbM4bv57SSu8U/DJSC5fhhMlgjS4ZRrjUsoLZM EOog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="r4c5f+n/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a056830315100b006a11d10ec97si3052466ots.90.2023.05.13.06.04.08; Sat, 13 May 2023 06:04:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="r4c5f+n/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238704AbjEMMd6 (ORCPT + 99 others); Sat, 13 May 2023 08:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238617AbjEMMds (ORCPT ); Sat, 13 May 2023 08:33:48 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5946046A5; Sat, 13 May 2023 05:33:30 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXKZY088666; Sat, 13 May 2023 07:33:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683981200; bh=LM9NMXAa2p7iT/m9T1EqarVa70Qfrqzvyb42BTR2otk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=r4c5f+n/BEu5rFYzX3lffcR+R+WiCl5EV1PZ+8bvaGS8r7UwPUdERzgk7dXIiy4uX QBslijdz6AGk/Gd2Ak1Co/jMManVApa+SJvJ4pmaQXizh9iZIawqlczCsewt0wtL+r ahPUafiOH/xliKLkOQLeaOgJ5JwsUO3oEZlY9IBY= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DCXKfr066276 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 07:33:20 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 13 May 2023 07:33:20 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 13 May 2023 07:33:20 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXJnI096975; Sat, 13 May 2023 07:33:19 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 3/4] arm64: dts: ti: k3-j7200-common-proc-board: Add OSPI/Hyperflash select pinmux Date: Sat, 13 May 2023 18:03:12 +0530 Message-ID: <20230513123313.11462-4-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230513123313.11462-1-vaishnav.a@ti.com> References: <20230513123313.11462-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765784227958496200?= X-GMAIL-MSGID: =?utf-8?q?1765784227958496200?= J7200 common processor board has an onboard mux for selecting whether the OSPI signals are externally routed to OSPI flash or Hyperflash. The mux state signal input is tied to WKUP_GPIO0_6 and is used by bootloader for enabling the corresponding node accordingly. Add pinmux for the same. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts index 0cc0e1dc40c5..e1017027d649 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts @@ -97,6 +97,12 @@ >; }; + wkup_gpio_pins_default: wkup-gpio-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x70, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */ + >; + }; + mcu_mdio_pins_default: mcu-mdio1-pins-default { pinctrl-single,pins = < J721E_WKUP_IOPAD(0x0034, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ @@ -186,6 +192,11 @@ status = "disabled"; }; +&wkup_gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&wkup_gpio_pins_default>; +}; + &wkup_gpio1 { status = "disabled"; }; From patchwork Sat May 13 12:33:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5742928vqo; Sat, 13 May 2023 05:35:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QJ9ZndzBgnR78KMBx8mGuu6ZlU3ZM9+mwUSWLJtmiCULrOYmAxvnYEYqxpWDStpQ26sPy X-Received: by 2002:a17:903:22cd:b0:1aa:ee36:4095 with SMTP id y13-20020a17090322cd00b001aaee364095mr35295076plg.43.1683981347853; Sat, 13 May 2023 05:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683981347; cv=none; d=google.com; s=arc-20160816; b=oue588modwOoVRLg7E0zkZOe7H0LJy77SSCCs5iFzTrA0IsCNJukfg8wA/J1evUGL7 HgOFqg8dI6SORj9ARn35figy9+szwVKhaLMu++dPM0k204aaCMspmLE/PwqkrXx0kwhN qP39k7i3cf4Lu3/H38u55U7l1Ywu0OeK1z+fJK04JfN/rA3vhViX2bw+nzNSJac99g7o MTcRzSyfhX9yHLol+KPE7s8c7SzMHtuK9abSkooehtS+OZHA5fLCe6+M00/FMEldMvwN YiwoF++zf+kZIaY3Mi5jcOBp6NeBQMi2oqFaogkcwhv1macIiQGUIrxT/jMm8lJO6PmJ b2kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9fLJ2CryUPsRkwT9y39VHYcsWb2CUgPdts/JajHZp5U=; b=KBGyGewkPjbckfIsPKUs7hpEolBm+KFZp3BpplO1IbSu4lGezeLc/7nLm8pJwCoXrB 5sjRG/LketFK59roHI3DR+0lbxXP7/BEZ9RzKGx7L+seg5T+k3cDelAleCm3fukKLcka MAQEeStU0U+i25McRnLw2uq+0IlYREJCGD7YJo3UY/vG6fbdmHYk4ioUJJob7pM5ng+S dqRr/EhTO/wcI99jBQUXRPxwSOSSJXAcJ+DWpaj9eUYJUbx4ZGHTcuJn+0fvMWHyaeoZ IzzeSzJsw5UG2GiwNvioRnoG2H4dkKrVQgTg0YdgEJjD9a7fXniPNzfjzF4nTIirl7lm HmyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=W4DAkSuh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902e54800b001a1d78af685si12725811plf.466.2023.05.13.05.35.33; Sat, 13 May 2023 05:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=W4DAkSuh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238689AbjEMMeB (ORCPT + 99 others); Sat, 13 May 2023 08:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238375AbjEMMds (ORCPT ); Sat, 13 May 2023 08:33:48 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 270ED46A0; Sat, 13 May 2023 05:33:30 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXMHd088672; Sat, 13 May 2023 07:33:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683981202; bh=9fLJ2CryUPsRkwT9y39VHYcsWb2CUgPdts/JajHZp5U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=W4DAkSuhHj/PwsKfdf31tiVlANizg/9ZhWP3Sb3xfTdbFv46TfxV3HNsQJkpzzPdB HiguO8TH3BOJ4+pruH6GFEj0QeU2lnT2qMtV8Q7quOQPA0aq0ZokErYN2CRo3e3AtA MahNmH/icRk0P10ZxkezYOAUw1+yrW9uy8mcn+hM= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DCXMSq113159 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 07:33:22 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 13 May 2023 07:33:21 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 13 May 2023 07:33:22 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DCXLcW068629; Sat, 13 May 2023 07:33:21 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 4/4] arm64: dts: ti: k3-j721e-common-proc-board: Add OSPI/Hyperflash select pinmux Date: Sat, 13 May 2023 18:03:13 +0530 Message-ID: <20230513123313.11462-5-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230513123313.11462-1-vaishnav.a@ti.com> References: <20230513123313.11462-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765782425467991861?= X-GMAIL-MSGID: =?utf-8?q?1765782425467991861?= J721E common processor board has an onboard mux for selecting whether the OSPI signals are externally routed to OSPI flash or Hyperflash. The mux state signal input is tied to WKUP_GPIO0_8 and is used by bootloader for enabling the corresponding node accordingly. Add pinmux for the same. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts index c11c092c1ce0..185de41cb2f1 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -362,6 +362,12 @@ J721E_WKUP_IOPAD(0xb8, PIN_INPUT, 7) /* (F28) WKUP_GPIO0_2 */ >; }; + + wkup_gpio_pins_default: wkup-gpio-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xd0, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_8 */ + >; + }; }; &wkup_uart0 { @@ -419,6 +425,11 @@ status = "disabled"; }; +&wkup_gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&wkup_gpio_pins_default>; +}; + &wkup_gpio1 { status = "disabled"; };