Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2678622rdh; Sun, 26 Nov 2023 15:29:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjcE2G+PV3PBIHLp6z1d3giMHPktyuRl6E43V1ogqLyz8ddBl5ZZ4saaUl47NkMgH1Ar9Q X-Received: by 2002:a9d:7cce:0:b0:6b9:b600:589 with SMTP id r14-20020a9d7cce000000b006b9b6000589mr12411604otn.15.1701041363575; Sun, 26 Nov 2023 15:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701041363; cv=none; d=google.com; s=arc-20160816; b=fSD5hDjdLplZ/rZtUGSizBW++XpMRfeKkckfd2Z+NG4ipD5J0W2c1jgdViGwkchDDC Pg2eo0CXtdKkPOI7pdsI5MQf3wVMOBWallDSYNQ1yesBJGUdG+0qdTK6Rh7/bNVIPwfr u3uZMOw4ISiOCST7lfheisWpdBgo9afMQvCEf/fm5effgATg6mXtb/7oc+u1ZZRvMbMQ BARu9vo0w731oNBJvmIYAifiLyA0Ea1dKkXSxfGFn+UYRlvmR7shuv+2lGjUBB3HzjBQ ZrJPomEZNOe7srh/tySweeD6q29SZkPEITAbKtOXNPjEHnrzf1SE1YRAsUULRlfAQKhf i0oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3BV4Vz9z3QHFiX3Dv1bjv4P8f3k40Tur0+jRMIWhjwA=; fh=IHo4JbcU5Gy17m5IMbnjDsQH8GbpIaNOV6B0kJ1IGNQ=; b=xHLQ+oBYbKZAUrt3ne/4+BXFUEKy3QP3+YjEPJSDak2WyLTbsvv8ZyXJ/dcJUaYnvd E9Xx5adt/Rfk808phTXinOjoe7DnEY96vdfbSQi6pTZueHKhFuWlNrQQfAg3/Z0xrf7Q NpisjxGrkfK1tqGoLAtXSUcbCLtddmdIFivwQa9StLdbNAbNGpTx7uekbYNxfaHZKEWv trrrWzno+ECbxhh/wHJF+f68rOSKxhzg6qmooZs//c4ZCyQVX4UqUSz5xRxWgysdCSRs sSU+NB7xfzWP60a2FTUxSAuDIYr0S2GRsuT75TGQVfrDckJl51gRgqF0PMKeEi/nd++u 7AHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=FZoeHXHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bq17-20020a056a02045100b005bdf596397bsi9696244pgb.732.2023.11.26.15.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:29:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=FZoeHXHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 283258060C81; Sun, 26 Nov 2023 15:29:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbjKZX3D (ORCPT + 99 others); Sun, 26 Nov 2023 18:29:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbjKZX2n (ORCPT ); Sun, 26 Nov 2023 18:28:43 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7F6B1AB for ; Sun, 26 Nov 2023 15:28:47 -0800 (PST) Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) (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 smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 404BC40C57 for ; Sun, 26 Nov 2023 23:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701041326; bh=3BV4Vz9z3QHFiX3Dv1bjv4P8f3k40Tur0+jRMIWhjwA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FZoeHXHWvyz/kKxWZ6nr5oB4aFa9WsY+qk3Wv8LVQj9uyUcoJgP+MSCse8L//XXhI cz5BhPCDmHQYL4D9JG41A2tQA4/1QgmdoQJryJQQcshLXcgCyby1nOUidDxLkKfPTf apNH1sVwOstou57IwQHut81xyexvY9oSNjjo5IS3frF64EgKmcoaygRP8+Zp3ABYNB vclZhZkwl+K2ApRdAEQTuW/oAHadgakkAgDuKAfmgjI9Z6XoR+hzvtY44z5Dzbqy+V uKyHdFU2I2cFHYOPF4odsIb1+dIpluTRf9Xz4LO0wkV3RxpP2TCnMEHh8KOahhT9Z1 PBHC7ofGKSg7g== Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-2859052aed9so2355090a91.3 for ; Sun, 26 Nov 2023 15:28:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701041325; x=1701646125; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3BV4Vz9z3QHFiX3Dv1bjv4P8f3k40Tur0+jRMIWhjwA=; b=GwGtZZ+ixyrQfhRm4zf7k8hcYLZ0FTHs1WqgI4ZTccsTma75sLd4lrcm9g3V7AxVuU 0Jf5ZVxv8SCB5mcFKYsGSEmoIGT3/EXi8L3IkTn5Dk7M4cs/qi25G7duyQX+vKvnR1mL wYjJ4vcOYvKlPv8Ub2r1X5ErA+BkCZIrOdpUmqd2ciM6sgW4zxAueeBr+dbZFwfAvxrK r87dC+xzcNXZ6kdcKj45NoFZTaJXjzqE7kiGxQgJLABbOulQWC8m8DLNKcj2b8F8S0XC auMW/dIw75RScZG++YtUPoxbGlpYgn3WcjIfbELXa86DPcc50jIGZPHuzhWoPhhwflvx iEfw== X-Gm-Message-State: AOJu0YzEZ+iHloslhgGGTA3XqAPAjx78LfZ2Rz0pI2EhzoQsVpiI4px7 MkfRYzpMnDbfVczJ/bxRYVCn5BqBw7cfbh4S6nprFcbv2jSuKnlj8Aq28dL5F9tbojeyMh+LiA+ nOsAqgbY+jI/GcrC4EncyvLNFVA8GV/2fQwzzx/i1jw== X-Received: by 2002:a17:902:efc5:b0:1cc:32b7:e5b9 with SMTP id ja5-20020a170902efc500b001cc32b7e5b9mr8690140plb.67.1701041324949; Sun, 26 Nov 2023 15:28:44 -0800 (PST) X-Received: by 2002:a17:902:efc5:b0:1cc:32b7:e5b9 with SMTP id ja5-20020a170902efc500b001cc32b7e5b9mr8690128plb.67.1701041324714; Sun, 26 Nov 2023 15:28:44 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id y10-20020a170902b48a00b001cfb52ebffesm3123853plr.147.2023.11.26.15.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:44 -0800 (PST) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Paul Walmsley , Palmer Dabbelt , Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Cristian Ciocaltea Subject: [PATCH v1 7/8] riscv: dts: starfive: Enable SD-card on JH7100 boards Date: Mon, 27 Nov 2023 00:27:45 +0100 Message-Id: <20231126232746.264302-8-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231126232746.264302-1-emil.renner.berthing@canonical.com> References: <20231126232746.264302-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 26 Nov 2023 15:29:20 -0800 (PST) Add pinctrl and MMC device tree nodes for the SD-card on the BeagleV Starlight and StarFive VisionFive V1 boards. Signed-off-by: Emil Renner Berthing --- .../boot/dts/starfive/jh7100-common.dtsi | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi index 3af88e6970a3..adcdbbc4f57f 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi @@ -12,6 +12,7 @@ / { aliases { + mmc0 = &sdio0; serial0 = &uart3; }; @@ -108,6 +109,43 @@ GPO_I2C2_PAD_SDA_OEN, }; }; + sdio0_pins: sdio0-0 { + clk-pins { + pinmux = ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + sdio-pins { + pinmux = , + , + , + , + , + ; + bias-pull-up; + input-enable; + input-schmitt-enable; + }; + }; + uart3_pins: uart3-0 { rx-pins { pinmux = ; }; +&sdio0 { + broken-cd; + bus-width = <4>; + cap-sd-highspeed; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_pins>; + status = "okay"; +}; + &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; -- 2.40.1