From patchwork Tue Jun 6 14:55:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 103922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3469532vqr; Tue, 6 Jun 2023 08:15:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Z9jXXRutK1Ge5EaltywbEHok1Ig5E0eL11fChwuISmQSfetAdp2JvLxM3Mlg916CuwoiR X-Received: by 2002:aca:1008:0:b0:398:5d75:c0ac with SMTP id 8-20020aca1008000000b003985d75c0acmr2334601oiq.14.1686064505646; Tue, 06 Jun 2023 08:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686064505; cv=none; d=google.com; s=arc-20160816; b=bDVkqfpEZJpqvmDaL9k+2g8wZevdArElgvHZQpVih9k8Xbxu6oDeP0REITLiH49w14 D+OCX+JY5i4nSULgFZmLnqGSJsqjfZpwR/EW5o9YSe7FrVbWi/ZnYVPlBuzfdq92GBuD 6Ale6dvgqNhbNHUyYVqhRUqEVX7Aw3Kn3NyHvwiwJqiR9sk3dXbFV+eowFmYELhJzW6S 4zRqDFt3PYDUTWKBVjFmE2gKRfMkiOtrfU7ySXxOItLO6amcuFjEtEFlVi3q/bZhkvbL LApNnfkt35bllsgcAHxJMdQl6IKxJt583flwkil2WULjImPen78/lj34XIjJRN1K8EQC OBDg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=mG4IMudBJKH36bwynHlTgxCd0dsFreE582/bDJnk7SY=; b=eTkN5AD9Ux2ssa9qIWpOgigUYalRdHPKjsyUHbDhficJhjR7N4L7W7fD2cRTWe7QO+ +JzgV93uG+Jirskpkvu6Oei0U4rtvzu9Uet/rjR0gY6d0Tt/vAJD9wUro5bupwVAEMz3 MxOd4WR8VTPacnjjUlMuw4eWMDNOZ99USnPjy3bWH9SJX2ZFtK2jaBdTzn4poa2TOCED xSCwRjK/D/KmG12Ut4o3gBi5bMaCfcXMw3e7Kh3QrgAz8fD70LO9jkyIfBlGrXv0j89Y Pgkc9Rk2NEA/c/FDynZUM2tvPFpKI/M8FZSFcQoapFRFPX+oazN6ot2agAdwWR8vOUWD meAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=WYs3yRs7; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l69-20020a638848000000b0054288b91d66si7315184pgd.635.2023.06.06.08.14.51; Tue, 06 Jun 2023 08:15:05 -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=@geanix.com header.s=default2211 header.b=WYs3yRs7; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238500AbjFFO5K (ORCPT + 99 others); Tue, 6 Jun 2023 10:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238455AbjFFO4w (ORCPT ); Tue, 6 Jun 2023 10:56:52 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4C2F1706; Tue, 6 Jun 2023 07:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=mG4IMudBJKH36bwynHlTgxCd0dsFreE582/bDJnk7SY=; b=WYs3yRs7cIQBYA5vz+sxPx/dcs ZGh7wpk0yHrIXdOrQGpU8JkDwBBW8i5HGN+MnRrzYIdJvh5KAh1/RaIrtRVMgFcaHRMkRBPAla/ik i4N0iJTlFqES1LWhThtXmaiaqUPtlBbwIgIw+tqqb/0QVHGU6wgSQ2IkZyZ9t7ZsH0o1ubyO3XMPb 4amur3HOO/eVLjCLfelVwxtGCBT9kpTk3WiSldUvGUlJtOSiqAJVjnEZmJKgT2P4Iegt9LcP0oUsZ Z+M1RB/PyVLzlRRs75cug9TVJjCYnbkLar+Ky06CLWqVvqloZJeDEbdF6QYmM06HiqNqMNHRhswLn w/+3nBpw==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Y6i-000Pmz-1z; Tue, 06 Jun 2023 16:56:24 +0200 Received: from [185.17.218.86] (helo=zen..) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y6h-0006D0-I7; Tue, 06 Jun 2023 16:56:23 +0200 From: Sean Nyekjaer To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: Sean Nyekjaer , dantuguf14105@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/5] ARM: dts: stm32: Add alternate pinmux for i2s pins Date: Tue, 6 Jun 2023 16:55:50 +0200 Message-Id: <20230606145555.2155664-1-sean@geanix.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26930/Tue Jun 6 09:25:07 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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?1767966775185702829?= X-GMAIL-MSGID: =?utf-8?q?1767966775185702829?= Add another mux option for i2s pins, this is used on Octavo OSD32MP1-RED board. Signed-off-by: Sean Nyekjaer Reviewed-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index e86d989dd351..d79f89f37bc7 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -686,6 +686,25 @@ pins { }; }; + i2s2_pins_b: i2s2-1 { + pins { + pinmux = , /* I2S2_SDO */ + , /* I2S2_WS */ + ; /* I2S2_CK */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + }; + + i2s2_sleep_pins_b: i2s2-sleep-1 { + pins { + pinmux = , /* I2S2_SDO */ + , /* I2S2_WS */ + ; /* I2S2_CK */ + }; + }; + ltdc_pins_a: ltdc-0 { pins { pinmux = , /* LCD_CLK */ From patchwork Tue Jun 6 14:55:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 103925 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3470120vqr; Tue, 6 Jun 2023 08:15:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51qfuM8ZYYncvupeGbU8NGia6/SFQI+bLjhE+Upc4i1WMZSC0RMajhqBDA0tgaM6PwUt0S X-Received: by 2002:a05:6214:2483:b0:62b:4e7e:8aba with SMTP id gi3-20020a056214248300b0062b4e7e8abamr2698110qvb.60.1686064549277; Tue, 06 Jun 2023 08:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686064549; cv=none; d=google.com; s=arc-20160816; b=Aql4zefhwjB9b4Pm0A/s0ibc+RteyZsgbv08yNjpesQbtfSsuz1ku3iRp8FeFhNes3 kBp6nEnGHTKKhVFwlXy2KpWlri6Dec8eiGNWn7wUnp1SpGifVD1PPbEkqxdKTTylCVpl 99UMvaBaa1ss3ESQ811W464ZSVxz510H9PldtU6Hu3JpRpaP1gGZTiIs6suk0gS8hCr6 gaFLaXgNZa57s5BM+o6gng6igy+DE5nmVmqUl6twbYyrhh4FFM0aZYk/J8Z4ZMfMoi7x HKdc8kt0rm1NzwZMjqmUctnN0VRJWwDwH26rYlk2KPRtHSZFoNZs3KMAd2SrfxSHjfUN sBNQ== 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=ZNcuLhScoFLTrYmEtBLsGb9AliqwkZhWEKZ79KXaSYo=; b=y5eo6Vs21/N89oGjACuuGrdt/GPAQtGrOj9JnLHp8EVEKUhoGMrClfuk7o91UAyVHQ ynetDdTRpPYTC4re11cVDib9Vqs3wmBnBB8fwOPTrLA6u+Ip+b7m4gyZkPQe/NArPSmF v0qFt8HpWQUmDsJw+PNsGTd4HVh+NbKrWGo+YCQDzrYrczrXLOQx91+l6SItxQUs3ANB H7hKVW73zjb0dEH+Q15Pm3pZyXOVkOByrF+f0r/FYeD5qyisxtVBW0Dtm+Dt2jj1MRsF gJfA2cvzj16pjQ5G9E7ByqXRkgABf2lElwjzjDkndv1suD4ve0bJiGg2uAT8ZP6gBURu pwZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=Zi6nOzii; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iu4-20020ad45cc4000000b006282759d724si6468179qvb.603.2023.06.06.08.15.31; Tue, 06 Jun 2023 08:15:49 -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=@geanix.com header.s=default2211 header.b=Zi6nOzii; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238552AbjFFO5R (ORCPT + 99 others); Tue, 6 Jun 2023 10:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238488AbjFFO4w (ORCPT ); Tue, 6 Jun 2023 10:56:52 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAF0A1705; Tue, 6 Jun 2023 07:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=ZNcuLhScoFLTrYmEtBLsGb9AliqwkZhWEKZ79KXaSYo=; b=Zi6nOzii95u8pkZlnSFAvSVpKA m2pf8FvNLjVKUSgYbJbnKEoZPkHLMaZT+8Jfrvvg7Y0gUrsMyMy1zyeE/Cv9kJ7OQvTl8BhUQx/0U K5o0t7zvnt+y3BsPvtXTtkL3zH0Alto5foD8s+KN9Vskg+X841b/CeT4ohgITSF41CR0ZHJWKusu3 3pXdo0nOli/FJ571Iy7QAkWdUXkcUh6Uj7g2cAAHi/ZN4QxSgIW2lLvA+RKFSv5t1/cOt1tasmcpp 9q1Od2bYx0P3tfSq+kZmevI5cZg7ft0PEkdUmTnkhv58030WpBMmFKP4FlEi0l+rLFAG5ZGy8lK9o 1oj1q5NA==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Y6i-000Pn1-Nl; Tue, 06 Jun 2023 16:56:24 +0200 Received: from [185.17.218.86] (helo=zen..) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y6i-0006D0-7R; Tue, 06 Jun 2023 16:56:24 +0200 From: Sean Nyekjaer To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: Sean Nyekjaer , dantuguf14105@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/5] ARM: dts: stm32: Add alternate pinmux for ldtc pins Date: Tue, 6 Jun 2023 16:55:51 +0200 Message-Id: <20230606145555.2155664-2-sean@geanix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230606145555.2155664-1-sean@geanix.com> References: <20230606145555.2155664-1-sean@geanix.com> MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26930/Tue Jun 6 09:25:07 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767966820550314708?= X-GMAIL-MSGID: =?utf-8?q?1767966820550314708?= Add another mux option for ltdc pins, this is used on Octavo OSD32MP1-RED board. Signed-off-by: Sean Nyekjaer --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 75 ++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index d79f89f37bc7..422db6dd466c 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -979,6 +979,81 @@ pins { }; }; + ltdc_pins_e: ltdc-4 { + pins1 { + pinmux = , /* LTDC_R0 */ + , /* LTDC_R1 */ + , /* LTDC_R2 */ + , /* LTDC_R3 */ + , /* LTDC_R4 */ + , /* LTDC_R5 */ + , /* LTDC_R6 */ + , /* LTDC_R7 */ + , /* LTDC_G0 */ + , /* LTDC_G1 */ + , /* LTDC_G2 */ + , /* LTDC_G3 */ + , /* LTDC_G4 */ + , /* LTDC_G5 */ + , /* LTDC_G6 */ + , /* LTDC_G7 */ + , /* LTDC_B0 */ + , /* LTDC_B1 */ + , /* LTDC_B2 */ + , /* LTDC_B3 */ + , /* LTDC_B4 */ + , /* LTDC_B5 */ + , /* LTDC_B6 */ + , /* LTDC_B7 */ + , /* LTDC_DE */ + , /* LTDC_VSYNC */ + ; /* LTDC_HSYNC */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + + pins2 { + pinmux = ; /* LTDC_CLK */ + bias-disable; + drive-push-pull; + slew-rate = <1>; + }; + }; + + ltdc_sleep_pins_e: ltdc-sleep-4 { + pins { + pinmux = , /* LTDC_R0 */ + , /* LTDC_R1 */ + , /* LTDC_R2 */ + , /* LTDC_R3 */ + , /* LTDC_R4 */ + , /* LTDC_R5 */ + , /* LTDC_R6 */ + , /* LTDC_R7 */ + , /* LTDC_B0 */ + , /* LTDC_B1 */ + , /* LTDC_B2 */ + , /* LTDC_B3 */ + , /* LTDC_B4 */ + , /* LTDC_B5 */ + , /* LTDC_B6 */ + , /* LTDC_B7 */ + , /* LTDC_G0 */ + , /* LTDC_G1 */ + , /* LTDC_G2 */ + , /* LTDC_G3 */ + , /* LTDC_G4 */ + , /* LTDC_G5 */ + , /* LTDC_G6 */ + , /* LTDC_G7 */ + , /* LTDC_DE */ + , /* LTDC_VSYNC */ + , /* LTDC_HSYNC */ + ; /* LTDC_CLK */ + }; + }; + mco1_pins_a: mco1-0 { pins { pinmux = ; /* MCO1 */ From patchwork Tue Jun 6 14:55:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 103920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3468798vqr; Tue, 6 Jun 2023 08:14:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ544dqfjlJXGc7VsznzzWQ7I0wVZ4AGNeTEDNIFFTsITDwg188dhDFo+ALyYxNuJZ/q2HyT X-Received: by 2002:a05:620a:3a46:b0:75e:d6e6:49b0 with SMTP id sk6-20020a05620a3a4600b0075ed6e649b0mr1250821qkn.39.1686064448301; Tue, 06 Jun 2023 08:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686064448; cv=none; d=google.com; s=arc-20160816; b=JAVzgWxhhyLyjHk6LaC+rsLtvk3aMdOFzXktNLBle9pARqrdIQ4/PEHUVT7LBxOb+j rnleIwI2abVBp5h/W7MUKL1CkTA5x5NW8w1HsKnindB4PPq8kNVev9t2zfYxLH6LF5yL WNogLThRNHgaa1ZEQMNHbpZE2sJ9Vg6BqQ4bzAnZaSn0iRLsBsqmhz9a787oID/cZZVd a4Ew0i4yTkZAjH8CzT1wDHhnYyWh5usJH211TrwjpACpRZcRXP3mQVwoZYU9igKeCHYu zm2tCdQ3hD4abgWJFtMd91Se3mpHWSYOv50jIUfyE8SDfE2dQgth9Dc7/CJS8PGk4TX/ qP6g== 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=IHC41y3LgS8ynZWRUyo4kJuRV/JGlD0ZzhWOJdndh/4=; b=wpNB+4rh9f+ga4Iq6c1eF0rSiVk/FLL48O/BA81PUDH7YJWWkexcDELz7iv/SLmH3j gyGoP5nE+R8xk6XXxjFt/v1DwhmA4f20DyT18kyH2/suAfrsJcMAk0OFjtPRHp5179tJ afH9Jpi/WZRqqKPCHBXpeq/r0vG1Hamlx6Q3+L/mDBW/caKL7YM+s7spt/bPXFLyTlQQ vu/Wb+A1wje2cnCfiBxEgdAtJET1ygP2bAnAxg0hlBvcBKQp7/aPWcUo2V3QshlSKh+z 9FZz1TCdQN8afRlrKI2Gu2iOw84bRHx6ZD+aYz3T3oHtl+CSPonpDMS+anjzeJODl1jD bfeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=VGUVRSn3; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ou41-20020a05620a622900b0075d2f55e0ebsi5949751qkn.536.2023.06.06.08.13.53; Tue, 06 Jun 2023 08:14:08 -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=@geanix.com header.s=default2211 header.b=VGUVRSn3; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238535AbjFFO5O (ORCPT + 99 others); Tue, 6 Jun 2023 10:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238491AbjFFO4w (ORCPT ); Tue, 6 Jun 2023 10:56:52 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59E9F1707; Tue, 6 Jun 2023 07:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=IHC41y3LgS8ynZWRUyo4kJuRV/JGlD0ZzhWOJdndh/4=; b=VGUVRSn3qWKOBDar5et3pJbmQa jf/VFOmgX3YSsCNUwxG5gwV+OmEXTuMfRUAy/NRBF65YUOUB5ZhWBKLCInxZvb97QgMRnXvOeLOpk rpolUMxnk58Y/5/nKHGbdnOqpg30HFMAYMprgu2MqHBX06DGrcH954KL8vGlSNempqxaVN/JOs7R6 KtrCeGl50vau7n5iyW7Km/EC0r2p+ZNtYUadYkQ4j3Rw2cwX6MmR0/z1ta+amiTBBiiy9Ht1QWSkP kcfaNB3TyyTigfrmKvS50KSZcXUKjcK2BpzhLxjTauugMw8VE44NY3gcUpdyQK3bCU6WnJrVnPg0Q UKHW2pxg==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Y6j-000Pn6-DG; Tue, 06 Jun 2023 16:56:25 +0200 Received: from [185.17.218.86] (helo=zen..) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y6i-0006D0-RS; Tue, 06 Jun 2023 16:56:24 +0200 From: Sean Nyekjaer To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: Sean Nyekjaer , dantuguf14105@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/5] ARM: dts: stm32: Add alternate pinmux for can pins Date: Tue, 6 Jun 2023 16:55:52 +0200 Message-Id: <20230606145555.2155664-3-sean@geanix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230606145555.2155664-1-sean@geanix.com> References: <20230606145555.2155664-1-sean@geanix.com> MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26930/Tue Jun 6 09:25:07 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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?1767966714713569555?= X-GMAIL-MSGID: =?utf-8?q?1767966714713569555?= Add another mux option for can pins, this is used on Octavo OSD32MP1-RED board. Signed-off-by: Sean Nyekjaer --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 422db6dd466c..537908a20efb 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -1144,6 +1144,26 @@ pins { }; }; + m_can1_pins_d: m-can1-3 { + pins1 { + pinmux = ; /* CAN1_TX */ + slew-rate = <1>; + drive-push-pull; + bias-disable; + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-disable; + }; + }; + + m_can1_sleep_pins_d: m_can1-sleep-3 { + pins { + pinmux = , /* CAN1_TX */ + ; /* CAN1_RX */ + }; + }; + m_can2_pins_a: m-can2-0 { pins1 { pinmux = ; /* CAN2_TX */ From patchwork Tue Jun 6 14:55:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 103941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3484309vqr; Tue, 6 Jun 2023 08:36:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4KGqkPn2fFyVj+CDMhIpiRg9UTmSzgB0NfZLoch42a0xlWYLi6bTlP/aCtsQa0SRxzuz29 X-Received: by 2002:a05:622a:1055:b0:3f9:adc9:4785 with SMTP id f21-20020a05622a105500b003f9adc94785mr2907815qte.51.1686065763450; Tue, 06 Jun 2023 08:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686065763; cv=none; d=google.com; s=arc-20160816; b=YPaZfpyD3O4eAnpWVxvH555m9lcpCqfxS2x49iAuY/V5ytWNCRCz9UnQR9slvGe5eR QUvmK6QODjkKbtXb1ZG6LQz462m/s+uhBUUd+dAPOQvLxDkcwArTanzrXpfW5GoUynC4 O2eA1bJevOobvJ1fH6GQC/COCKs0VVr4VZ+V6ORa25/j5UmXkEpf02MPaeU9mdH6cH39 WptncW0f7QInadCMq3DJvUeeSYlTBkRhH4NcDk0R4Pe9/Ut9vCn4z8dEfPj4wFNXraPs Nol4smWNrkDwFL6L7onHNBocbclercvVDAh4PUKO1Z+PQw6bIIRqe4B7NYITLvlTLgT3 lR7w== 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=4YI6I5iTDhxkNikcxTDT1ukR79k9QBY5V2RRnmcdeQA=; b=V6ljpvS9IR8ybZ01lh9tsnj3H/92q9l9vCoVxaekvQy+eXeBSNbH060F8Phe9/FRam 05eTml2QApeolWSGYZPagz0rWjFRSDa9nyzfv6QebI1hmqJFPSAFZVY16Wcta0JfCp4u GY3zI8NZYLP+p7AqDbYAThinSsQtFF5duqnAc9hyHvS0NP1V4EfVQNbseOO/NHLwE+ef /cYkXgkoEid42l8EItkCdKmzyK4LznddCjdJn3BHBqzdrdWuWOkm88fuwCz8J+m3bcGY wBVUC/rAanMTUtxtZAPM6dM2T3fXB+YBo7QxFUMKVpcKhx1o+la/ErucRoHCDNBfg2zG EKkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=NuYBuduw; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 11-20020ac8594b000000b003f507800686si6454465qtz.623.2023.06.06.08.35.48; Tue, 06 Jun 2023 08:36:03 -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=@geanix.com header.s=default2211 header.b=NuYBuduw; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238580AbjFFO5W (ORCPT + 99 others); Tue, 6 Jun 2023 10:57:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238509AbjFFO4y (ORCPT ); Tue, 6 Jun 2023 10:56:54 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F1EC170B; Tue, 6 Jun 2023 07:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=4YI6I5iTDhxkNikcxTDT1ukR79k9QBY5V2RRnmcdeQA=; b=NuYBuduwA4GGlMIJqBo/jjCaXi UmJIG5rdfR+nZplgoeFk+81fSU9DpTYmg9lgmctroCZSnurkHqKeCuZ+FRMU62He0xJXuM9dhQUAn KpRhX6iLZqGvZnlY8PyHJMGKLa8buRpXsGs0Jrkdu8LDwUbTzDnmY3Ym8Y5jeG2BfRYqkOedk1AMF YBaOrRbqrQpTC39HJxDYgq+t1uOLmX/brRc174ll7nxHmKmpHlTzc0sc7MY1JRH3J8UM+/uDDHA71 rWNpgeucK5fRT3zPnJ0HdRY6T6apKXLOamsTjKYlqj93ZDKA/vewdwBaVu3G5MhC+UB4y4Qn4wwA3 pnC7rFVw==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Y6k-000PnT-8E; Tue, 06 Jun 2023 16:56:26 +0200 Received: from [185.17.218.86] (helo=zen..) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y6j-0006D0-O4; Tue, 06 Jun 2023 16:56:25 +0200 From: Sean Nyekjaer To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: Sean Nyekjaer , dantuguf14105@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 4/5] ARM: dts: stm32: Add Octavo STM32MP15x SiP Date: Tue, 6 Jun 2023 16:55:53 +0200 Message-Id: <20230606145555.2155664-4-sean@geanix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230606145555.2155664-1-sean@geanix.com> References: <20230606145555.2155664-1-sean@geanix.com> MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26930/Tue Jun 6 09:25:07 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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?1767968093930544562?= X-GMAIL-MSGID: =?utf-8?q?1767968093930544562?= Octavo STM32MP15x is a System-in-Package based on STM32MP15xx SoC from ST. This SiP module integrates the SoC, DDR Memory, PMIC, EEPROM etc. https://octavosystems.com/octavo_products/osd32mp15x/ Signed-off-by: Sean Nyekjaer --- This is made with great inspiration from Neeraj Dantu's work: https://raw.githubusercontent.com/octavosystems/OSD32MP1-RED-Device-tree/main/linux-v5.10-r0/stm32mp157c-osd32mp1-red.dts So what copyright is needed here? And author? Still need to test ethernet and HDMI, thats why I have done this a RFC. Is it good pratice to add labels to all regulator's on the PMIC so boards can add regulator options? arch/arm/boot/dts/stm32mp15xx-osd32mp1.dtsi | 308 ++++++++++++++++++++ 1 file changed, 308 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp15xx-osd32mp1.dtsi diff --git a/arch/arm/boot/dts/stm32mp15xx-osd32mp1.dtsi b/arch/arm/boot/dts/stm32mp15xx-osd32mp1.dtsi new file mode 100644 index 000000000000..4de9213f6d43 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp15xx-osd32mp1.dtsi @@ -0,0 +1,308 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (C) ?? - All Rights Reserved + * Author: ??? + */ + +#include "stm32mp15-pinctrl.dtsi" +#include "stm32mp15xxac-pinctrl.dtsi" +#include +#include +#include + +/ { + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + mcuram2: mcuram2@10000000 { + compatible = "shared-dma-pool"; + reg = <0x10000000 0x40000>; + no-map; + }; + + vdev0vring0: vdev0vring0@10040000 { + compatible = "shared-dma-pool"; + reg = <0x10040000 0x1000>; + no-map; + }; + + vdev0vring1: vdev0vring1@10041000 { + compatible = "shared-dma-pool"; + reg = <0x10041000 0x1000>; + no-map; + }; + + vdev0buffer: vdev0buffer@10042000 { + compatible = "shared-dma-pool"; + reg = <0x10042000 0x4000>; + no-map; + }; + + mcuram: mcuram@30000000 { + compatible = "shared-dma-pool"; + reg = <0x30000000 0x40000>; + no-map; + }; + + retram: retram@38000000 { + compatible = "shared-dma-pool"; + reg = <0x38000000 0x10000>; + no-map; + }; + + gpu_reserved: gpu@d4000000 { + reg = <0xd4000000 0x4000000>; + no-map; + }; + }; + + vin: vin { + compatible = "regulator-fixed"; + regulator-name = "vin"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; +}; + +&m4_rproc { + memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>, + <&vdev0vring1>, <&vdev0buffer>; + mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>; + mbox-names = "vq0", "vq1", "shutdown", "detach"; + interrupt-parent = <&exti>; + interrupts = <68 1>; + status = "okay"; +}; + +&gpu { + contiguous-area = <&gpu_reserved>; +}; + +&hash1 { + status = "okay"; +}; + +&cryp1 { + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c4_pins_a>; + pinctrl-1 = <&i2c4_sleep_pins_a>; + status = "okay"; + i2c-scl-rising-time-ns = <185>; + i2c-scl-falling-time-ns = <20>; + clock-frequency = <400000>; + /delete-property/ dmas; + /delete-property/ dma-names; + + pmic: stpmic@33 { + compatible = "st,stpmic1"; + reg = <0x33>; + interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <2>; + status = "okay"; + + regulators { + compatible = "st,stpmic1-regulators"; + buck1-supply = <&vin>; + buck2-supply = <&vin>; + buck3-supply = <&vin>; + buck4-supply = <&vin>; + ldo1-supply = <&v3v3>; + ldo2-supply = <&vin>; + ldo3-supply = <&vdd_ddr>; + ldo4-supply = <&vin>; + ldo5-supply = <&vin>; + ldo6-supply = <&v3v3>; + vref_ddr-supply = <&vin>; + boost-supply = <&vin>; + pwr_sw1-supply = <&bst_out>; + pwr_sw2-supply = <&bst_out>; + + vddcore: buck1 { + regulator-name = "vddcore"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-initial-mode = <0>; + regulator-over-current-protection; + }; + + vdd_ddr: buck2 { + regulator-name = "vdd_ddr"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-initial-mode = <0>; + regulator-over-current-protection; + }; + + vdd: buck3 { + regulator-name = "vdd"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + st,mask-reset; + regulator-initial-mode = <0>; + regulator-over-current-protection; + }; + + v3v3: buck4 { + regulator-name = "v3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-over-current-protection; + regulator-initial-mode = <0>; + }; + + ldo1: ldo1 { + regulator-name = "v1v8_audio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + interrupts = ; + }; + + v2v8: ldo2 { + regulator-name = "v2v8"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + interrupts = ; + }; + + vtt_ddr: ldo3 { + regulator-name = "vtt_ddr"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <750000>; + regulator-always-on; + regulator-over-current-protection; + }; + + vdd_usb: ldo4 { + regulator-name = "vdd_usb"; + interrupts = ; + }; + + vdda: ldo5 { + regulator-name = "vdda"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + interrupts = ; + }; + + v1v8: ldo6 { + regulator-name = "v1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + interrupts = ; + }; + + vref_ddr: vref_ddr { + regulator-name = "vref_ddr"; + regulator-always-on; + }; + + bst_out: boost { + regulator-name = "bst_out"; + interrupts = ; + }; + + vbus_otg: pwr_sw1 { + regulator-name = "vbus_otg"; + interrupts = ; + }; + + vbus_sw: pwr_sw2 { + regulator-name = "vbus_sw"; + interrupts = ; + regulator-active-discharge = <1>; + }; + }; + + onkey { + compatible = "st,stpmic1-onkey"; + interrupts = , ; + interrupt-names = "onkey-falling", "onkey-rising"; + power-off-time-sec = <10>; + status = "okay"; + }; + + watchdog { + compatible = "st,stpmic1-wdt"; + status = "disabled"; + }; + }; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; +}; + +&cpu0 { + cpu-supply = <&vddcore>; +}; + +&cpu1 { + cpu-supply = <&vddcore>; +}; + +&ipcc { + status = "okay"; +}; + +&pwr_regulators { + vdd-supply = <&vdd>; + vdd_3v3_usbfs-supply = <&vdd_usb>; +}; + +&rng1 { + status = "okay"; +}; + +&rtc { + status = "okay"; +}; + +&crc1 { + status = "okay"; +}; + +&dts { + status = "okay"; +}; + +&usbh_ehci { + phys = <&usbphyc_port0>; + phy-names = "usb"; + status = "okay"; +}; + +&usbh_ohci { + phys = <&usbphyc_port0>; + phy-names = "usb"; + status = "okay"; +}; + +&usbotg_hs { + vbus-supply = <&vbus_otg>; +}; + +&usbphyc { + status = "okay"; +}; + +&usbphyc_port0 { + phy-supply = <&vdd_usb>; +}; + +&usbphyc_port1 { + phy-supply = <&vdd_usb>; +}; From patchwork Tue Jun 6 14:55:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 103926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3470128vqr; Tue, 6 Jun 2023 08:15:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kISxp/fDvylrexm5XzHlDcOweN27clhlIQHH0y9ux56R/Vgd5e5cQHtiBBYeOwHFmGrQT X-Received: by 2002:ad4:5ece:0:b0:619:4232:aa87 with SMTP id jm14-20020ad45ece000000b006194232aa87mr3125101qvb.24.1686064549274; Tue, 06 Jun 2023 08:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686064549; cv=none; d=google.com; s=arc-20160816; b=SI5EXtHpDyfcKxSs/gX0kf8Hkt3EN+OWEtub2k5TqEVp+DNq0pJyMieVoJfKLBD5YK T5m6VRNXCkpsg6MX0wVsw9bZLnUZoasGMCaATUXbO+855f0Q8cqdO9fcSDrQ1714akve w2uiRL0p2HhI/DQuXdbug8CI7Cd9eKifV+7aBs6IhoiYX5oELdimZJHwzm6Q03HYXg4V fGXrBjqtVfTVKgmpDzdFiqX6O5UeeicrMlEhxY1IauwZ2FGEwTbFGTLthFfs2CS9Jsiu K6HCZrCMLbEzx2gfawKe0ydR0fejTF4fozMeDok4fc3RqLSYwh0v/RWZrWiKV8qleIXX f6AA== 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=AV7MzxzZr2GBXIiX0TdJFVKGNknQAdd6lMi5dYJy4qw=; b=bMPyLsw7eteD/JkO0ENnkmu8fOVr7NTJRJaUgQNOJ7cTDeX7xJbvm5uOTVY3OEFX4C pClqeIDYkFicac0ea8BgyDOVwPq5OdjOVyyGuVJaRxQNPMc8lPplZBDQ0FCerWRbH8pU TJjs2/VyFa+Q/8o6mY44i8nweOevI1fsST2qLHZnDv5gfrxYUZi7J3dJqMkyIjfMFMfB 2UpLwt/1OmToEGhaE4W1JU6kVracC5X7vs7Kgc25XcNEb7o3pwsA41vXi1XIH1jkbFAo 2jXwWUz6XtTymOpGaNQO5UQSzU9EKlss+nS8tX1ssWMON87ZamYcXyvbzfvjlL8R/PGn FuWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=T9lhbkUh; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a056214194700b0062612cf2b50si6749401qvk.255.2023.06.06.08.15.33; Tue, 06 Jun 2023 08:15:49 -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=@geanix.com header.s=default2211 header.b=T9lhbkUh; 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=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237573AbjFFO52 (ORCPT + 99 others); Tue, 6 Jun 2023 10:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238480AbjFFO4y (ORCPT ); Tue, 6 Jun 2023 10:56:54 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61894171A; Tue, 6 Jun 2023 07:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=AV7MzxzZr2GBXIiX0TdJFVKGNknQAdd6lMi5dYJy4qw=; b=T9lhbkUhi4zV3uB8HW5lQ8ai6D +yROmOKYuQOGB9gewq61IYu5iwXt+uuc7I069UcTl77XgcqnMorEWA9neCyTiLJpGCTozWos8NenC ljrb6d9+gONyrjAN1CiIKXtld2LTtpM6Mu/zJ1xDv3B/TwyukkUZiwYc4EWQfFRs68R1gVoEQO7lj 7GGT9TGZE4hOYEyD0sPDN1XrMqj4xeToisktD8idceC2AdQzpWPSZb1FlOVXgnwSj4vKtZAayICkZ /ibaJi5fvMDC4afaXsfH7qAcbwTYQsdNebe/C+9lN99XTH49rvT9hhJYmeP96mKAtVVn6i+Ljt4r/ 2Xu31kww==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Y6l-000Pnj-3k; Tue, 06 Jun 2023 16:56:27 +0200 Received: from [185.17.218.86] (helo=zen..) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y6k-0006D0-Iq; Tue, 06 Jun 2023 16:56:26 +0200 From: Sean Nyekjaer To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: Sean Nyekjaer , dantuguf14105@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 5/5] ARM: dts: stm32: Add Octavo OSD32MP1-RED board Date: Tue, 6 Jun 2023 16:55:54 +0200 Message-Id: <20230606145555.2155664-5-sean@geanix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230606145555.2155664-1-sean@geanix.com> References: <20230606145555.2155664-1-sean@geanix.com> MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26930/Tue Jun 6 09:25:07 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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?1767966820559487190?= X-GMAIL-MSGID: =?utf-8?q?1767966820559487190?= Add support for the Octavo OSD32MP1-RED development board. General features: - STM32MP157C - 512MB DDR3 - CAN-FD - HDMI - USB-C OTG - UART Signed-off-by: Sean Nyekjaer --- This is made with great inspiration from Neeraj Dantu's work: https://raw.githubusercontent.com/octavosystems/OSD32MP1-RED-Device-tree/main/linux-v5.10-r0/stm32mp157c-osd32mp1-red.dts So what copyright is needed here? And author? Still need to test ethernet and HDMI, thats why I have done this a RFC. .../arm/boot/dts/stm32mp157c-osd32mp1-red.dts | 186 ++++++++++++++++++ 1 file changed, 186 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts diff --git a/arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts b/arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts new file mode 100644 index 000000000000..dd4e2668878c --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts @@ -0,0 +1,186 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (C) ?? - All Rights Reserved + * Author: ??? + */ + +/dts-v1/; + +#include "stm32mp157.dtsi" +#include "stm32mp15xc.dtsi" +#include "stm32mp15xx-osd32mp1.dtsi" + +/ { + model = "Octavo OSD32MP1 RED board"; + compatible = "octavo,stm32mp157c-osd32mp1-red", "st,stm32mp157"; + + aliases { + serial0 = &uart4; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@c0000000 { + device_type = "memory"; + reg = <0xc0000000 0x20000000>; + }; + + led { + compatible = "gpio-leds"; + + blue { + label = "heartbeat"; + gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + }; +}; + +ðernet0 { + status = "okay"; + pinctrl-0 = <ðernet0_rgmii_pins_a>; + pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + phy-mode = "rgmii-id"; + max-speed = <1000>; + phy-handle = <&phy0>; + st,eth-clk-sel; + + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy0: ethernet-phy@0 { + reg = <3>; + }; + }; +}; + + +&i2s2{ + clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc CK_PER>, <&rcc PLL3_R>; + clock-names = "pclk", "i2sclk", "x8k", "x11k"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2s2_pins_b>; + pinctrl-1 = <&i2s2_sleep_pins_b>; + status = "okay"; + + i2s2_port: port { + i2s2_endpoint: endpoint { + remote-endpoint = <&sii9022_tx_endpoint>; + format = "i2s"; + mclk-fs = <256>; + }; + }; +}; + +&iwdg2 { + timeout-sec = <32>; + status = "okay"; +}; + +<dc{ + status = "okay"; + + port { + ltdc_ep0_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&sii9022_in>; + }; + }; +}; + +&i2c1{ + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c1_pins_a>; + pinctrl-1 = <&i2c1_sleep_pins_a>; + status = "okay"; + i2c-scl-rising-time-ns = <100>; + i2c-scl-falling-time-ns = <7>; + /delete-property/dmas; + /delete-property/dma-names; + + hdmi-transmitter@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpiog>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <<dc_pins_e>; + pinctrl-1 = <<dc_sleep_pins_e>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + sii9022_in: endpoint { + remote-endpoint = <<dc_ep0_out>; + }; + }; + + port@1 { + reg = <1>; + sii9022_tx_endpoint: endpoint { + remote-endpoint = <&i2s2_endpoint>; + }; + }; + }; + }; +}; + +&tamp { + status = "okay"; +}; + +&sdmmc1 { + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; + cd-gpios = <&gpioe 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + disable-wp; + st,neg-edge; + bus-width = <4>; + vmmc-supply = <&v3v3>; + status = "okay"; +}; + +&sdmmc2 { + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_d>; + pinctrl-1 = <&sdmmc2_b4_od_pins_a>; + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_d>; + non-removable; + no-sd; + no-sdio; + st,neg-edge; + bus-width = <8>; + vmmc-supply = <&v3v3>; + vqmmc-supply = <&vdd>; + mmc-ddr-3_3v; + status = "okay"; +}; + +&uart4 { + pinctrl-names = "default", "sleep", "idle"; + pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_sleep_pins_a>; + pinctrl-2 = <&uart4_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status = "okay"; +}; + +&m_can1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&m_can1_pins_d>; + pinctrl-1 = <&m_can1_sleep_pins_d>; + status = "okay"; +};