Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp384412rdb; Thu, 30 Nov 2023 07:21:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3frkdGxmoA5UUTi2BniCfsvTlsS5PBt+JXQRJQz/B6jC1GI7p8Oy/v5w6THU5s9SDifZO X-Received: by 2002:a17:902:bd46:b0:1cf:896f:d6c5 with SMTP id b6-20020a170902bd4600b001cf896fd6c5mr21313532plx.41.1701357672302; Thu, 30 Nov 2023 07:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701357672; cv=none; d=google.com; s=arc-20160816; b=TNuc+7XnIXL9urQoDSvw6/rpqu1ydMr48M4tYd3NG0L69T1TmAYH6NoVhvnQvCpuZF atJwj3u77e1ZqhwybNgx7JfAaq7nP7LHJPPYS04JUcBol721rVs8F45YKMe6NGJxKJld DBKGgWcryfW9mhKxxlTI7ReM/Aj/TRPbiXI0qMAHuEzKVD+hSe82Kd7pFKkfzowOnMkw 2DL/Nc/ak2IrXzNWheqfpnpqrinxSU1nAldKhL+/IiOCcvoOyj1/E3V+mH/a00nvFwmh WkWpL06erEaI0JMQtJtrILidQWe3ZoruJ2w2sHSj6+nxb1T48ABSEXdItRdOSQc2wJYt 7TfA== 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=Ok4klyFUkgnj0eaKwSnCsCY6uP2ODAM3LCWCs6106jQ=; b=w6GAsGVIBn62QpsLINiBVWXUhiI+4945APSNis1Y4j0rHN9C/INzb2NQ/dPpwgf/S3 LR9NMPHLmTY6WyR1W2Ma/IksDYXxJtHItnn0FrLLAciN1Pit3M4cx68U9lzi2nMFY2Qj jJRAesn8GJd0VHpInaZ6mrOqNTVnFmhQJqEtvNl9njSlc7im4TwM1LrLgg0F8/Cxq32b 5J1u3B9vcy4xJchSNRt4fmEvNNE4ILvbPNJwywNWJ6FGnC31z+AoXRGP548c6mh5nW/C yEzv31GUflqg8E2XF+vYgXHUBmkHX2KOYQNgNbCMNs2jhCT0acXDgCA2pOqjaD0SgEje xShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=o56eawEO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f8-20020a17090274c800b001cfd0495288si1354501plt.298.2023.11.30.07.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:21:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=o56eawEO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 6276B802138A; Thu, 30 Nov 2023 07:21:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346294AbjK3PUl (ORCPT + 99 others); Thu, 30 Nov 2023 10:20:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346248AbjK3PUe (ORCPT ); Thu, 30 Nov 2023 10:20:34 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D181010D5 for ; Thu, 30 Nov 2023 07:20:40 -0800 (PST) Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (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-0.canonical.com (Postfix) with ESMTPS id 1204144440 for ; Thu, 30 Nov 2023 15:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701357639; bh=3BV4Vz9z3QHFiX3Dv1bjv4P8f3k40Tur0+jRMIWhjwA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=o56eawEOKUS33+zf1gpfg/Nb0+3qmEWbj31k7V4GKPb37ZblnGfcXUOt6TSbHmjdU 91rh/pC/spn9uZDhGFn6480ZUdl46d34ERbFpIBLnOUXK0h/Rgbl8RNV3QqNuppwG7 tV7+iIeSGsIbTVwdT2Vbizqi7mMJowMm2VCWaXgM0pDm9CiiQAFPs4iu/Byy7hZkwE UF+VvgyiHbI2kmEmfWxSQ+eI1IaL7OFgeRJ0Hv9jNWiog1TZb/v47/u43Ny/YgT/bw FsKumJkCavrVmKqpEJkINsNEMkRUZu95FgPNByNJWM7QuZJgI6C6gBDy9/qdbZeOGz kg1oAt5IZK4VA== Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-3b5665e00b6so1173943b6e.2 for ; Thu, 30 Nov 2023 07:20:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701357636; x=1701962436; 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=ct1MF8rkwJHcJqQsv+YNOAZpZgdTr8ah0HHkJfk7jUt1R+e9rU6R3ojYN/dR1lMVlV BatGl+tWgB/GD/3esyMvCx2o4MvuTjOL9e40ZcxznHBFvtfZyB3x0AxTqDU3tLIXOT6J 7LyuLtHM7HwcQMBZ3s7+JwtFPAIn6XFYoOwQcXsX0ziJPB3lFR7ADYM2TSRRNPUmlmNz ZAZaU/vkR5JvXNHJuEBkeI0WwxzNd4B6iamgSNzO2Th9GylCUclHJmgRPXyVqY0tacF6 GFgab3gV1O8XeFsd+aL7otS0WzC42mhyqsMiq4orexcwX3aloVS1P5xNupYxYiYGZ6tW EGZg== X-Gm-Message-State: AOJu0YwwPEbVMYDc6DamoEOLTKj6O0vJc95jwXzzVHTAcgKmhj5cGWpn VQvnbm9ybaV3+49ECwVXWt10SE7gA3pZTuuy/XB2/akIsFuWkQiB6r78VtNNZBggRfWbOeLTEbY ymdfmK7rQqk0C9jlNlkrqSkff3jIG39eUifuqnIrTvA== X-Received: by 2002:a05:6808:e83:b0:3b6:a7f2:f1fe with SMTP id k3-20020a0568080e8300b003b6a7f2f1femr26367626oil.47.1701357636381; Thu, 30 Nov 2023 07:20:36 -0800 (PST) X-Received: by 2002:a05:6808:e83:b0:3b6:a7f2:f1fe with SMTP id k3-20020a0568080e8300b003b6a7f2f1femr26367602oil.47.1701357636165; Thu, 30 Nov 2023 07:20:36 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id y125-20020a636483000000b005bd3d6e270dsm1356002pgb.68.2023.11.30.07.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:20:35 -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 , Geert Uytterhoeven Subject: [PATCH v2 7/8] riscv: dts: starfive: Enable SD-card on JH7100 boards Date: Thu, 30 Nov 2023 16:19:31 +0100 Message-Id: <20231130151932.729708-8-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231130151932.729708-1-emil.renner.berthing@canonical.com> References: <20231130151932.729708-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 07:21:09 -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