From nobody Sun Feb 8 09:33:00 2026 Received: from smtpbguseast1.qq.com (smtpbguseast1.qq.com [54.204.34.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 985862C0852; Tue, 13 May 2025 16:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.204.34.129 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747154244; cv=none; b=RKU7l/j6S5G+ThdHnHcOuyqnK3QOFml7XUoQANDzHvhv4YymSxN2HgwPzFSTK5wzRGPfAvItEKGr6ExlB9iNbzT4MzgNK6DYAre6y/pzDmyO1SHJDvyTwHVAIcDKGeqY02fiIby8pRiCltaACRp1ooEBzmZmhDaWhiFQHbEdUW4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747154244; c=relaxed/simple; bh=18rsiSGLeK6tyScJi8fK8s0F4csC1bE1rkINUfBvPdU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=dLLIvc2EMCx4EOUEchGg8FZahf9fCe4xDSJxHXX4PuTHmu6kAILugDmbmYJreZKu1WWCojhAdKA/COLD6UAe8zCD6npSWTsmBrTeBhzhT4Z+sHsYArXKZRZyhTEdQOSaLLQEqGOLja/EBjDvqXwY5YEi4z2DamdFOiwpi0+MrY0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chainsx.cn; spf=none smtp.mailfrom=chainsx.cn; arc=none smtp.client-ip=54.204.34.129 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chainsx.cn Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=chainsx.cn X-QQ-mid: esmtpgz12t1747154122tafa2d1f6 X-QQ-Originating-IP: wd8dwVkh+m4oVfC2zalMsRq8Eh1YcurfYo+CQ3HvDw8= Received: from chainsx-ubuntu-server.lan ( [182.245.65.132]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 14 May 2025 00:35:20 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6247747743901342415 EX-QQ-RecipientCnt: 8 From: Hsun Lai To: Fred Bloggs Cc: Hsun Lai , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Stephen Rothwell , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/3] dt-bindings: vendor-prefixes: Add SakuraPi prefix Date: Wed, 14 May 2025 00:35:12 +0800 Message-Id: <20250513163515.177472-2-i@chainsx.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250513163515.177472-1-i@chainsx.cn> References: <20250513163515.177472-1-i@chainsx.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: esmtpgz:chainsx.cn:qybglogicsvrsz:qybglogicsvrsz3a-0 X-QQ-XMAILINFO: N3IC8um5pMyYELpolAEHOCVtNYCBsVBD7kIVe+NN8ZwFFYnEHX325pTD 7l+GhM7hFOMvLbrng1NYx4Jlk/p4IvMk2Fatzbn6MfeMSqxW9+f984I5aSnMVDoo7bv0srM OwW/Xk2dAadkwEjxteUjCDdEHOoBKm1pNfOQFLAME3q/JARjAijzVaXfgC0Kp8MBk0x+xKH WyjUAdNQGvvWV6KeuS0OHjXtth8FUqbh9ccZ9H4JVQqRO84t2q5z0QFravhUzH/u5ByH/ZN Pf6SgWmekZot0poWApZSwX90sppV6WdbqfdIvEmzHujUpE26sKGAIleKOCq5X0Wu4FG2Dhp 68FIMcbGu7CYjft9ESb8M158GpTMv+zdJxJqrju+/vR9o8ejTgy8w155KqYs9ulRKIfYA/9 5h+zc027SEwDEdgJgtGA5qoeWzgCWoIIyskrarsYquTMjUR/3EECte2gBI0lECWVyYfbFxE Od1lXC6spr9cLc7xjjeqxB9rBytabAUAW22ykQfWdgYY6tHVyviZQJbQ+ChgRrhs9Gc9372 HxnvjFVERR4OH68Vux4UnYvvirjxqbBSNWHtFxvGnflHOGvwGyox9PYW7vDwidmzxeWv3H8 1bAr7TKslo9/ihF+MmuSPoKOhmByLThpUbC/R4b8dw/TyUwOIcT9K70Y4cvQ1zwc7kFZpX6 Tvoj40vtt16TXSTITgCyJHxf41VTwWhMq+UxxoNLQregSamjzdkJcEipCQG9nbfd2SiL7KK V6VN07Mr/wp8qJJg1mtVxy8zvGxkr7O/2CLU36Be3SaRMEi14d2KYYBXDZlVBhZpdJVnCp3 V4RZhkupaoVg7wbfwt+l4S8mkOv8yDzm8xZfr6yfTr4AX+aSP2NxrzV0A/gbfv6ZOMVDyvm 3SERSN17oh5klI2aNwyn7/qMNby5W3vGA1WMN9WLAyiBDKP7oZrCoAeUhEeoiKB6wo+NdFq zRGQ9J+3Fgx8+wesjDAFdj0yF7rHhvLOHZb1ScLuvJIBj+Q== X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= X-QQ-RECHKSPAM: 0 Add vendor prefix for SakuraPi.org, which produces development boards like the SakuraPi-RK3308B. Signed-off-by: Hsun Lai --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 3e7450c3f..744d01a76 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1299,6 +1299,8 @@ patternProperties: "^rve,.*": description: Recharge V=C3=A9hicule =C3=89lectrique (RVE) inc. "^saef,.*": + description: SakuraPi.org + "^sakurapi,.*": description: Saef Technology Limited "^samsung,.*": description: Samsung Semiconductor --=20 2.34.1 From nobody Sun Feb 8 09:33:00 2026 Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42643238C11; Tue, 13 May 2025 16:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.128 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747154242; cv=none; b=Q/h7O2ujZG1d4ld+bHR9CdzUYvY36yVWYe8XNcVuDmQNgD4CrDDkuanwcEBCwcXjxarQhl2ZocfKoO9uCCjxBOKYgRbdoD+po4DZ1/RYR0l/chrU9Jzf+Y3mZrkJeN4hJ/oPFZNST0lgWUuH6X9mjEXPevv+oQ5Jx4pS5CM7Mwk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747154242; c=relaxed/simple; bh=zzX/zyvL1qhidDZQdDjNHvuORFlIIrAwehDPHC4BnPM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ic+Hl/c+P/M4Rw4H/A43TZSep/GBnuv6zvqLP5PiR9a3V4Zwm2/ahWxwYZY3UcK4iJDTwzSJe+QfiPsCSWELNhUevHT++DwXY2/A330USKxnd4W84r1j6tAxSjXPJpTpg0mf0g2anUpSjQGnK9AUy8zxxAIZyO3rQdVNl2WZkfA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chainsx.cn; spf=none smtp.mailfrom=chainsx.cn; arc=none smtp.client-ip=54.254.200.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chainsx.cn Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=chainsx.cn X-QQ-mid: esmtpgz12t1747154125tace0e82e X-QQ-Originating-IP: irLgkyjuJOT7lIbfJFFjJhR4H1BuzcVGXYnvBLH7KwM= Received: from chainsx-ubuntu-server.lan ( [182.245.65.132]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 14 May 2025 00:35:23 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17771367300780483269 EX-QQ-RecipientCnt: 11 From: Hsun Lai To: Fred Bloggs Cc: Hsun Lai , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , Stephen Rothwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH v1 2/3] dt-bindings: arm: rockchip: Add Sakura Pi RK3308B Date: Wed, 14 May 2025 00:35:13 +0800 Message-Id: <20250513163515.177472-3-i@chainsx.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250513163515.177472-1-i@chainsx.cn> References: <20250513163515.177472-1-i@chainsx.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: esmtpgz:chainsx.cn:qybglogicsvrsz:qybglogicsvrsz3a-0 X-QQ-XMAILINFO: NvH2zBBgt3uTqoyUDzUCf8W9dMvYPcJ4TcQUUoUpHrpMnvn0iJjd++0K gsVnHN2mWDrMvWlLYDWjXk5xV9d+ifahyeosUBETbQC8GG/55VtIjYn31WXIGcwTDHgRvyR YR+nA2brDudTSy0cLq2Z7yfex/6IG+Ej7vQ5h4l2mOnaSaDbprtRFkb5a/MCGD0ZhkQdR45 pkU6l17OYmXZX7LGere2JwvY4f4HQEu9ypuzGIjbHJ9PdkAd2W/sra9UIR8YNMo3Pt9eyhB Q6Izw4zrzQ65ETYh3Ylysu8fjXkRMgDKKPd+RA1IwSMa2mBJu2DXFlNw4WMBLgLE1hYRD2g Ljb8diE7Wfnnb/n4YWoTsr/JB1WdWUwqTBKmW2xbXvTFUxx867+TGl7QhHkfCDFyzIl+58v gud4sSOJN3A/xsnsotL1B8MELiuIrJpOjnMTjCSv8X+UKHHtC3VINJzdT15VId5GN3MLMUr vpjuUrbVkC8ohV9TYc6p8rSmH+JcqKvGouLhjtRB/AxiMmgrPzfJs4mazs3p7S9nWuXXnhQ jO0ZjvxR8o5aKkeCQXvtY1kYVa9OXLWjDzOI7hNxsNzMMCwqMFof056nL1hIUVw1habRXX9 wtBcgEXcmDBAkWKmhpImVMzMCl1HEoCmpg0bzo7RoxSOkuP6Ii8CawSi963zIIn4LkePs/n TANp0SC6QX76v+Ai7KccIAt+0SThX4eiBa5UwLuV8IFptRd11S4GfsVi1suCPATTLVzRLwn S2qGwvxuXdhtXfgypU5rXfuIoXEZP8K6M6mOu5iCTWYbrva03Bc7jg7ca2kFuJxQBB9W4yM kFTbsl9klBqeiCH20eicTb1vmr+gESpOcjqusovqjg2dp8xvXJNZFR5Q7+Hmr2A/UYDWh4T Yutgh/ESPRCHoR6tQcomDfpnt2KVrX+6hd4nZJLuXO5Ij7jEDmHRT16O0qeGzv8+AtU6QFU h9qORHqXNPMQiiaIaNSXVY+9cGLo8VE+hux3d5sKwgV35noT/qZUxBxvp+/VXWw99UyGDZ5 RH214eiA== X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= X-QQ-RECHKSPAM: 0 Content-Type: text/plain; charset="utf-8" This patch adds device tree binding support for Sakura Pi RK3308B, with compatibility for the Rockchip RK3308 SoC. Link: https://docs.sakurapi.org/article/sakurapi-rk3308b/introduce Signed-off-by: Hsun Lai Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Document= ation/devicetree/bindings/arm/rockchip.yaml index 115c3ca43..c64adc0d0 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -1109,6 +1109,11 @@ properties: - const: rockchip,rk3588-toybrick-x0 - const: rockchip,rk3588 =20 + - description: Sakura Pi RK3308B + items: + - const: sakurapi,rk3308-sakurapi-rk3308b + - const: rockchip,rk3308 + - description: Sinovoip RK3308 Banana Pi P2 Pro items: - const: sinovoip,rk3308-bpi-p2pro --=20 2.34.1 From nobody Sun Feb 8 09:33:00 2026 Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C0A52BF3F9; Tue, 13 May 2025 16:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.92 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747154238; cv=none; b=PhvqZ+5lGSlh8TDHU60+u98VEY2TGA647iFygoEhB2vBCBCV5C/VM2WmyfrG3WlbwrjM8wiAK5IKosyZbV+RVLcndIqN+2R+JY3L2j8UpKfVu5FDzJOXtk9p8HlbQoM2Sn/RYxwwi+4POnZbiO7mDW8jO2icwWAoyjh03YnSL6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747154238; c=relaxed/simple; bh=viZm+4PT4C1Ex52Bwu8GbqcDGBPsas+UwDNFj3oh/BI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RVlFUJJPqR0vRQpjnHTjBKu2hTgaTNFRoa5w1ZVhNTxdu4Q5Pw0yQ3qW3czy6opSutkZ6wGg62hZubetLo//BtGFACFVVV3zu/RyAszGhwnH86nU0vQ8w1UtK5LzMia+Nl2JruwfJG6rS8eHQ8apUwFVCQhCC9RGlGXThcqbGgE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chainsx.cn; spf=pass smtp.mailfrom=chainsx.cn; arc=none smtp.client-ip=54.254.200.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chainsx.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chainsx.cn X-QQ-mid: esmtpgz12t1747154128t643a15ae X-QQ-Originating-IP: YRBi7eoJ7TTdMw+PkusCoUFA1ix6+BeYkCrZYGqPTQg= Received: from chainsx-ubuntu-server.lan ( [182.245.65.132]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 14 May 2025 00:35:26 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 12383478777615459026 EX-QQ-RecipientCnt: 11 From: Hsun Lai To: Fred Bloggs Cc: Hsun Lai , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , Stephen Rothwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH v1 3/3] arm64: dts: rockchip: add DTs for Sakura Pi RK3308B Date: Wed, 14 May 2025 00:35:14 +0800 Message-Id: <20250513163515.177472-4-i@chainsx.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250513163515.177472-1-i@chainsx.cn> References: <20250513163515.177472-1-i@chainsx.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: esmtpgz:chainsx.cn:qybglogicsvrsz:qybglogicsvrsz3a-0 X-QQ-XMAILINFO: MDs/gHBQyPmhE2hA/TJRTsJiF+c0Y1YNACbyF6CL9RHVN8CkKs9W62gK RQ9UhvL3oGfivYnajsynupfrxd0t8lOR3QGY8RzJUFZSZPtZpCBbaK3mAcvtSf3mvKsswAH mDjc5oBGc1Oe5kOkB/8YsiEE6dzZ8IjaNnVWL3HLZW11ST9pFB5TICd3VbUYtIACmke5THv LmnIC94bO50cPDbeeUo8Rf34GuERAuoV/oY4hYJwje8uUYwgtiO1OuvSgq9m+ySEUVECa1I aIrXcquhB0r5T36ILaXNbDf3uyM6mCRZUJrgjQtP4AgFna5/29VkApP3ETo5Xmdds3R9SXZ LVHwWuEd96KdqndcDld3Diq4EYrQU/kMAUUvjG99VHvanrlxDjRkHSzWerJTV96My0qVMPF vDAOFiCYBz17qRXwNUQpLLSHtyaYo2/dIu2rYDOsE6eIppcZ3/Srjox/fOnJN0UDtd5lSDQ M6v8CMPcQ2LIOffFmRjosvHjpzliA2BpFSOUJU3oYgwj2ETl/Px8mA01ShKr8bxM67cq+78 NlI8gz1zdQdG+D9UjABNwq8rga9I1y1dcXaqvSPLyl572m65Z44py/5jsJlLYNCVnV2LmPS v0hWEyCbFUs9cik5aDWXT+rt6mJ8+oFPTuTPzZW30VMbpAG8bJakbK+YiMO3tT9EcrfygFQ 0Q6rUoev3RTcSOv+mX0/ZBYGY+D72QhwcjiFfNWHug+sRaVkIqwZRQeZGxtQ31TgHZV12Vf mI4ElnvDvEklTUIJKf3x2sBrp9YeboRJOq8NxSkjltVm5ann7HucpXShsthMhEquxpclVMp a+Gf8CCTWoAga5Hcg1f4yzFPFswqHzxrwq7SBxP9qnoeRIaeiWt2Jjmf6XLcJzUokh1jWWc y7M1wBgQsOLlIzjf3eHvknqUDoNHauLbAJ6M7mLhvm65sQ/Aiqt43pEeGE0wLoat2UQuW8h EkTRfBeEQiZzFEt8Yac6icLDwntP80klJGrgim5f274o8BtnOtWzGxC1AGMC+EioNruiuJy ds7AnfiA== X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= X-QQ-RECHKSPAM: 0 Content-Type: text/plain; charset="utf-8" The Sakura Pi RK3308B is a SBC based on the Rockchip RK3308 SoC. Link: https://github.com/Sakura-Pi Link: https://docs.sakurapi.org/article/sakurapi-rk3308b/introduce The device contains the following hardware that is tested/working: - 4 or 8GB eMMC - SDMMC card slot - Realtek SDIO WiFi 5/BT - 256 or 512MB of RAM - USB 2.0 port - OTG port - HDMI port Signed-off-by: Hsun Lai --- Changes in v1: - Add support for Sakura Pi RK3308B arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3308-sakurapi-rk3308b.dts | 295 ++++++++++++++++++ 2 files changed, 296 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/ro= ckchip/Makefile index e63c3f5eb..c9017bdc3 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3308-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3308-roc-cc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3308-rock-pi-s.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3308-rock-s0.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3308-sakurapi-rk3308b.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3318-a95x-z2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3326-anbernic-rg351m.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3326-anbernic-rg351v.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts b/arc= h/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts new file mode 100644 index 000000000..91d8535fc --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts @@ -0,0 +1,295 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Jagan Teki + * Copyright (C) 2024 TheSnowfield + */ + +/dts-v1/; +#include "rk3308.dtsi" +#include + +/ { + model =3D "Sakura Pi RK3308B"; + compatible =3D "sakurapi,rk3308-sakurapi-rk3308b", "rockchip,rk3308"; + + aliases { + mmc0 =3D &emmc; + mmc1 =3D &sdmmc; + mmc2 =3D &sdio; + }; + + chosen { + stdout-path =3D "serial2:1500000n8"; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + pinctrl-0 =3D <&wifi_enable_h>; + pinctrl-names =3D "default"; + /* + * On the module itself this is one of these (depending + * on the actual card populated): + * - SDIO_RESET_L_WL_REG_ON + * - PDN (power down when low) + */ + reset-gpios =3D <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; + }; + + vcc5v0_sys: vcc5v0-sys { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; + + vdd_core: vdd-core { + compatible =3D "pwm-regulator"; + pwms =3D <&pwm0 0 5000 1>; + regulator-name =3D "vdd_core"; + regulator-min-microvolt =3D <827000>; + regulator-max-microvolt =3D <1340000>; + regulator-init-microvolt =3D <1015000>; + regulator-settling-time-up-us =3D <250>; + regulator-always-on; + regulator-boot-on; + pwm-supply =3D <&vcc5v0_sys>; + }; + + vdd_log: vdd-log { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_log"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <1050000>; + regulator-max-microvolt =3D <1050000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc_ddr: vcc-ddr { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_ddr"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <1500000>; + regulator-max-microvolt =3D <1500000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc_1v8: vcc-1v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + vin-supply =3D <&vcc_io>; + }; + + vcc_io: vcc-io { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_io"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc_phy: vcc-phy-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_phy"; + regulator-always-on; + regulator-boot-on; + }; + + vcc5v0_otg: vcc5v0-otg { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc5v0_otg"; + regulator-always-on; + gpio =3D <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&otg_vbus_drv>; + vin-supply =3D <&vcc5v0_sys>; + }; + +}; + +&cpu0 { + cpu-supply =3D <&vdd_core>; +}; + +&emmc { + bus-width =3D <8>; + cap-mmc-highspeed; + non-removable; + status =3D "okay"; +}; + +&i2c1 { + status =3D "okay"; +}; + +&sdmmc { + cap-mmc-highspeed; + cap-sd-highspeed; + disable-wp; + pinctrl-0 =3D <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>; + card-detect-delay =3D <800>; + status =3D "okay"; +}; + +&sdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + cap-sd-highspeed; + cap-sdio-irq; + keep-power-in-suspend; + mmc-pwrseq =3D <&sdio_pwrseq>; + non-removable; + no-mmc; + no-sd; + status =3D "okay"; + + brcmf: wifi@1 { + compatible =3D "brcm,bcm43455-fmac"; + reg =3D <1>; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + interrupt-names =3D "host-wake"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_host_wake>; + }; +}; + +&dmac0 { + status =3D "okay"; +}; + +/* SPI0 for external gpio pin */ +&spi0 { + status =3D "okay"; + + spi_dev@0 { + compatible =3D "spidev"; + reg =3D <0>; + spi-max-frequency =3D <0x2faf080>; + }; +}; + +/* SPI1 for ws2812*/ +&spi1 { + status =3D "okay"; + + spi_dev@0 { + compatible =3D "spidev"; + reg =3D <0>; + spi-max-frequency =3D <0x2faf080>; + }; +}; + +&pinctrl { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&rtc_32k>; + + usb { + otg_vbus_drv: otg-vbus-drv { + rockchip,pins =3D <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins =3D <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + wifi { + wifi_host_wake: wifi-host-wake { + rockchip,pins =3D <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + + bluetooth { + bt_reg_on: bt-reg-on { + rockchip,pins =3D <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_wake_host: bt-wake-host { + rockchip,pins =3D <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + host_wake_bt: host-wake-bt { + rockchip,pins =3D <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&pwm0 { + status =3D "okay"; + pinctrl-0 =3D <&pwm0_pin_pull_down>; +}; + +&saradc { + vref-supply =3D <&vcc_1v8>; + status =3D "okay"; +}; + +&pwm3 { + status =3D "okay"; +}; + +&i2c1 { + status =3D "okay"; +}; + +&uart2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart2m0_xfer>; + status =3D "okay"; +}; + +&uart4 { + pinctrl-names =3D "default"; + uart-has-rtscts; + status =3D "okay"; + + bluetooth { + compatible =3D "brcm,bcm4345c5"; + clocks =3D <&cru SCLK_RTC32K>; + clock-names =3D "lpo"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&host_wake_bt &bt_wake_host &bt_reg_on>; + device-wakeup-gpios =3D <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios =3D <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; + shutdown-gpios =3D <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; + max-speed =3D <1500000>; + }; +}; + +&usb20_otg { + status =3D "okay"; +}; + +&u2phy { + status =3D "okay"; +}; + +&u2phy_otg { + status =3D "okay"; +}; + +&u2phy_host { + state =3D "okay"; +}; + +&usb_host_ehci { + status =3D "okay"; +}; + +&usb_host_ohci{ + status =3D "okay"; +}; --=20 2.34.1