Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp219538iof; Mon, 6 Jun 2022 01:55:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhLcdpuUUVOIpNCnLn5aQUzATkJku25/6fZVs9iTB2YFYqWtHy6NL6yV2IPY/95ZG3SCEB X-Received: by 2002:a17:903:18f:b0:167:47f3:4a with SMTP id z15-20020a170903018f00b0016747f3004amr16174424plg.70.1654505713346; Mon, 06 Jun 2022 01:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654505713; cv=none; d=google.com; s=arc-20160816; b=QeN/mvLyuJ9oZvIjc00oUnzVjPEEQBGKK1qmK2tI4aIj34rhWhHNt5Y3ZqSgYyAqse AJ2Nfi4PZTy66LGU7tw/rXJbfSURk+OpneFHM+19IkC0/H64T/Pp8Baa4hf9h00mH4h/ xCT2O3xUNeKXVHXD7DxQhbqHy/6ta9N18/t8HKDglenoEBVjsUoWQzl8P288uAnpZO4L hotaj0C1nysSMn/Hybq60lFP2d5Dup8oErLWkt5v0QE9JYCT8tsxDUvtghbjtsrlfZWl VdsP99y45d21c5/j6osaLLqhb/X4O+Nl67IoEKArVv+CTwMJ+UTQqavLF93CDUetLXjB qidA== 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=nNr+t169feUW3ulfy3dFD2l6h6RMQNA2KZudHFz8VvE=; b=Pr8VAXY2cA8n//WcTpj8mXB3B9/rFsb7hp0KIy82GNkxY3TGC4qt1yltDkBjYvORrM +aRKyfGA1uTkZRjSFz2z47hQXkoTUYOJHqb1msGT5QcYZBF8oXTd2mr37RwMfDnM+MF8 o+UAjJyYQbrFdO6hhZMyBtGJ771VG9XcaGv8aSTRqTwrmdqrzEEqakYPU0VnzGna0trq oCCHGG0ZobwfrISdY85CDwaLk6uLFX40ji2Lk96sQJxLeWaB++pTNrGb0dAYeOV7L9tu MiTFmwEcZXZAI65GXEf7uMTJVWwTzz19M4sOpKDriSXLBCPOC4C4O8NbfiyitFc7n3yz 5TUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=a4X1xRcx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m5-20020a633f05000000b003aa36aa1f45si17150278pga.754.2022.06.06.01.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 01:55:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=a4X1xRcx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 228E91339D7; Mon, 6 Jun 2022 01:34:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231773AbiFFIdv (ORCPT + 99 others); Mon, 6 Jun 2022 04:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbiFFIdt (ORCPT ); Mon, 6 Jun 2022 04:33:49 -0400 X-Greylist: delayed 434 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 06 Jun 2022 01:33:48 PDT Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86512FF5A5; Mon, 6 Jun 2022 01:33:46 -0700 (PDT) Received: from beast.luon.net (unknown [IPv6:2a10:3781:2531:0:973d:c368:8ed:ffaa]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by madras.collabora.co.uk (Postfix) with ESMTPSA id D5273660204F; Mon, 6 Jun 2022 09:26:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1654503992; bh=0pFWHr8nZPd/x652n6ie2quX6dlxkCbVAMeZopa6ow0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a4X1xRcx8+R0YQxN6+31nvR+V8gHeRJ4dP7pnf6AWEmsdu4OL1qEF997WL7376ywd Acp3Bsv/gWFubmtBSPDyVjPHYjBhB6doASnOiwzMlOmIbR6IKbyEfUUKIH9rLAdflx ibryNiRLita0P4JkJUEegdigX9+ltBjqSVDlMkZtlRR5Te1D1pFf8pLU7pekCWPb19 58QFfNeZfOoTBWQ2PePTDiiNSZCZpPQLpfwDzNvjwFHSKC0uOkh3Z7vYtO4VYxJelE i0mlPynGU8VbsgxkJqjbDK2+cJxQxO56O67BziR7RLLG4wbjonI0lmYJ1JUn2ElGD1 OfW7zUqk7LsXg== Received: by beast.luon.net (Postfix, from userid 1000) id A6DFE404D08F; Mon, 6 Jun 2022 10:26:30 +0200 (CEST) From: Sjoerd Simons To: linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, Akash Gajjar , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: rockchip: rock-pi-s add more peripherals Date: Mon, 6 Jun 2022 10:26:28 +0200 Message-Id: <20220606082629.79682-3-sjoerd@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220606082629.79682-1-sjoerd@collabora.com> References: <20220606082629.79682-1-sjoerd@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This enables the following peripherals: * Onboard ethernet support * Bluetooth * USB 2 port * OTG port via type-c connector * Hardware watchog Also add aliases for the mmc devices and the ethernet interface Signed-off-by: Sjoerd Simons --- .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts index 9095efe25ccd..46ba48b843c5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts @@ -11,6 +11,12 @@ / { model = "Radxa ROCK Pi S"; compatible = "radxa,rockpis", "rockchip,rk3308"; + aliases { + ethernet0 = &gmac; + mmc0 = &emmc; + mmc1 = &sdmmc; + }; + chosen { stdout-path = "serial0:1500000n8"; }; @@ -132,6 +138,15 @@ &emmc { status = "okay"; }; +&gmac { + clock_in_out = "output"; + phy-supply = <&vcc_io>; + snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 50000 50000>; + status = "okay"; +}; + &i2c1 { status = "okay"; }; @@ -195,10 +210,47 @@ &sdmmc { status = "okay"; }; +&u2phy { + status = "okay"; + + u2phy_host: host-port { + phy-supply = <&vcc5v0_otg>; + status = "okay"; + }; + + u2phy_otg: otg-port { + phy-supply = <&vcc5v0_otg>; + status = "okay"; + }; +}; + &uart0 { status = "okay"; }; &uart4 { status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + device-wake-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; + host-wake-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; + }; +}; + +&usb_host_ehci { + status = "okay"; +}; + +&usb_host_ohci { + status = "okay"; +}; + +&usb20_otg { + dr_mode = "peripheral"; + status = "okay"; +}; + +&wdt { + status = "okay"; }; -- 2.36.1