From patchwork Wed Nov 23 23:32:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 2148 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3093387wrr; Wed, 23 Nov 2022 15:48:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf42V2m1HR6u7Z2rWPlmxWrpAhm3MCcJy1qjJKMCb6Kbq3QVq53QL46kzCv7VP90VdeIDvcn X-Received: by 2002:a63:5f95:0:b0:477:bca5:f4a7 with SMTP id t143-20020a635f95000000b00477bca5f4a7mr4172907pgb.546.1669247328995; Wed, 23 Nov 2022 15:48:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669247328; cv=pass; d=google.com; s=arc-20160816; b=0bpwb8ig83xAJqQTLqt9UuC4cmQURjp33KSkjaAitvJW/raYdcCNS2BCYwNQQ/NUEf 0U+azxwvH4Ngk2zYc863jHZU21A5Qf87Fx5OnA4E93eKcdBH4sFTX0chYguKTzb4/b7v 9oIzxviwrbl8DCRHufz75y+iseqnBLrad7Okdw1yQBeSyRA4p0VNVsbtZtU8rXu3Pd2v /IJFRWScm5AOF1eTPZlnuF07EGaw6yQhhp6eVvHXaPaB+bPv/rLNPZrnYzOt1QwuzRnb BkoCD8dt2OdiIcfXLehlbMg5YpxPxPD/dMWMPXIu2OX8O5g6hBdmC+x82aBjpDmxRAcF 6+ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=0ULWPm05rpr4EqC7UPbE3uKjJHV/QfHeV8IeVr39cYo=; b=RAwCsOkoOSULI45XxG02gwVilyrESInM9rb/r/EicLQchqhf/DkoDYochNyqXuj+Al URqfvNNG57kftfXZtzMkUl24SNbNNV7rEKK49X7xNKHNHDi+OP40uxIjXn/SmJFVWHm4 vailutvCNjiPyAaMRUn5LXsqK52Hw5EJkmEbEpX15ViRW97AG6RoW6Jojk0m7DzLBGO+ vFsiicbD/7FnVRVeTg7uGAmtGa+1BO6rUP0d/fyDVpgLFbs4BjKg0f2F8MAD5ITrF4ww F9SDCFtpzt+bmpDUXLv9lOYQpTY3m1bTslgV8CvWx5q9cAuiPRK8TUkHTG3EB3EtMKw8 xhoQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=zJdgyjyw; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a056a000ace00b00565cb1ebdbcsi18995557pfl.277.2022.11.23.15.48.35; Wed, 23 Nov 2022 15:48:48 -0800 (PST) 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=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=zJdgyjyw; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbiKWXcf (ORCPT + 99 others); Wed, 23 Nov 2022 18:32:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbiKWXcd (ORCPT ); Wed, 23 Nov 2022 18:32:33 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2107.outbound.protection.outlook.com [40.107.220.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB7B6594; Wed, 23 Nov 2022 15:32:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OLKxm5Tnp26MgL2WRLrCjIWC2kFFkgCEkKEfvGF9BFkbOkW9yfKp/NupU8hnW02/O8YS0X37YuYX4USScaGgHbFo6v4prJAZWxRI17exA73sF3au5EHwpC9anAclgcv0zxLC8t8ctQoD4MyKsAQIQ8egkVkEhC4VwHj/4U4kEbmiZnsQGhI209vOuQnBbCaLkKNFtGo4leYNFQGEelleRBwk6Pd4R6sdnEMfFktjXnOdbRrUT53jquqmJ8wVHkPni3NxAAJhZMsRKYp2ugRgKpzxe7IYkHz5XerOrNg1W/mGcm9ZBWwvDaLvMgiisLLckgPCaDB1Mg3BlS2VSEaRrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0ULWPm05rpr4EqC7UPbE3uKjJHV/QfHeV8IeVr39cYo=; b=DuwqI35OnmU2kzpJdWRrNJlDtZh1VoKt+plozM7V0reuzGcjSfX5pxuIN51YKXd81U6fkihk7nq3/Jz9kukB+RCacCrJvZBRjRflL+eg8I8AkWEG0+1dTfsBKU18vWancT9y81sSbq6+hh5bETnsh3QT8LQBZPxlFqEaug1qedE+F4Op4oH6gcDCYAArrOuPntkurdb1frT+rOaNPzla89QIMch4DHgPhpta1lXzHlAivCyekjHY0l7rBEVCsR1ncHHj48vR8W7Ogge7tfMZoB0rtZ9u6BlWuNxMREnYpDNPmR9O6Am2pDvPZYbCPoAT6wT1FuBwDaNCLTkxOBnkfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ULWPm05rpr4EqC7UPbE3uKjJHV/QfHeV8IeVr39cYo=; b=zJdgyjywaSDyvR5tGwxpgiQ6lSOPxqGYmg0IJwWqZob7ZGm4zLFg76l7LhiPAXZ5nz5JiWSaNOu3pJO1d3ss8jgmT6nFe2udI8x5ID6SQ2bPY5xd/4BlZcLlIXvOEly1rkbO5iG/+cRzqAGnuG8FmoeIA1U8iaX7HqP0pLXzcLc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CH0PR10MB4873.namprd10.prod.outlook.com (2603:10b6:610:c7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Wed, 23 Nov 2022 23:32:25 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::45b5:a860:9cea:a74c%4]) with mapi id 15.20.5834.015; Wed, 23 Nov 2022 23:32:25 +0000 From: Colin Foster To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= , soc@kernel.org, Olof Johansson , Arnd Bergmann , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 0/2] add support for Phytec PCM-049 and PCM-959 Date: Wed, 23 Nov 2022 15:32:07 -0800 Message-Id: <20221123233209.1854806-1-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: BY5PR13CA0025.namprd13.prod.outlook.com (2603:10b6:a03:180::38) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|CH0PR10MB4873:EE_ X-MS-Office365-Filtering-Correlation-Id: 2aa3404d-018f-4f31-9ae6-08dacdaafa5e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R4fGqHMT4KcuVqWIhbjJeF4YqPIOBN8xwerfCeiH3J8KEcMX9EpvjQ88/seQaMwQ8PZff1r0oVMX1j/2j6sV2gvC7JISn0vLn1uj4a4fT1gjJBXDTbKyQLr8ruxECESd6MnDzAFRPd9NWJGmYy55AbdxaRPTOJ6IgxljT6UfVyzI0SRXpMvTjEqUnQy4Gr/F2RJvdA8RgzjL7d1pnGlGSzb3r3rUadUv8HuYN1pWsSsX+97xuVAKukITqX23OtfPXKcdtyAK3aCYoCN6hCtL/nJL8RJhicgu4jzpc2DdDAMcnXk6cYe4vD3VxOEwCn5lW0oXIe8hzmlM1rF8A7PCmqVS3+sgvu+2KhFS7lzj1FQ9tweG6XBZeshLgpqlr+t1KVJ2ZEeG6ZuDlVuEVYMlleBfFhGlBFJcvdguCZ378VN6p0HOR9NK5vrUMSAMf0df0W1ipasr2j+g5e+0TL6GBwvVSafH1lkUxPwQw5ZQ6CYrNfT3ZwQFrOQTthdwCYAf+jV/5f0MZzuqzJJlTEik21JX5uSSIz/Tsbxh4lR2aTjgLiax9y1jWZMoBJbhvBNE435ALr+UxHp7ae9KByhscnP4EHIpA6I4VN0BYVSHC18HIgKhfBSAqKtdpB9FMuf4DGFPTSjp31O8Q7+NdKJmiQIvh5oKlKmigkmSa7brAA1C6FWfYUZDp7zlANJSRKBeitCZYByUIRpF7+q5MLJlU6q7ifC+pWp6ChUxdqeZSnE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(366004)(39840400004)(376002)(346002)(136003)(451199015)(6666004)(41300700001)(478600001)(66899015)(6486002)(966005)(66476007)(8676002)(316002)(1076003)(8936002)(26005)(66556008)(66946007)(4326008)(7416002)(186003)(5660300002)(36756003)(54906003)(44832011)(52116002)(6506007)(83380400001)(2616005)(2906002)(86362001)(6512007)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /8US9MBVXra6+FThBrC/dAmkR0pz3jtGaaql0cbA4UVMwFpo7EAGg4eeMmWQiKgwgrCNp8peJLvRynBh0mb5msOi/7U9BWtM9V5X9vXdJMeULvTQz4ceZokml8Hjk0dC9vgD3SRUH68YANmfloUAYXa2N3KbTxQbmOSM60BjVqwY1cDcK+R+v36xer8ex/5iMwlPGJCbxswuU5VRNI2H4DkSDVR+DG3uEw3zacMGSeY3BYsZoyoriN58QvyTWlk45Ux36kIfaMgQ0eczH+oNpGckpThMYd1V7vHU1v7FltO2q1AXO+EqRJZ4NQwP1ZH/E4KFn0Oic1Jr2KTcWmt94yChqfdv3/tkp1UWXZU2blTXEwab5HZQsus9KUBSb94b1KyYY80mkYSfSozJXUpJaUFbnhtIibEzd1A+9lArN9QyyV8zylKLLdIc6Nppnv1CVSvECoj7XHv+NsLzHzmXc5M/vgQPCsgLYRNBd+9OicytKV+EZ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OvGzzkIPEIwHN2/PSU5IY8beIcc0qjoR1r//PxB79RM85QTsKYWLIMyB+Vew2wryfmlw== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2aa3404d-018f-4f31-9ae6-08dacdaafa5e X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2022 23:32:25.6547 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ULZjce5TEvP0Mrv//kwzjf64KAOcPcxYQUYdpoLbtV8IUl19blz12BwfQF+CLtFvfpjVVPp94cV8Ap2ZQO2FcXX42+uAQfT22/RXXse2kbI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB4873 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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?1750332687065789790?= X-GMAIL-MSGID: =?utf-8?q?1750332687065789790?= As should be clear for the title and patch title, this is adding initial support for the OMAP 4460 SOM and dev kit for Phytec's PCM959 evaluation kit. The PCM049 is a legacy SOM offered by Phytec: https://www.phytec.com/legacy-soms/ There was a vendor BSP offered by Phytec, but that never entered the Device Tree era. This patch is meant to change that. My development bootloader has moved to U-Boot, but I have verified Barebox works in the past. When booting from SD card, either bootloader should work. When booting from Barebox, the NAND OOB layout is incompatible between the bootloader and the kernel. I haven't had any OOB / ECC errors in the NAND at all, which was my main concern. Due to that, I'm submitting this as a patch instead of an RFC. Hardware ECC correction seems to be fully functional. v1->v2 * Almost everything moved into the SOM (PCM-049) .dtsi. Only the LED chip is dev-board specific. * Fix pinmux associations (*pmx_core was applying *pmx_wkup entries... I'm surprised that didn't cause more issues) * Documentation added * Updates from review: * Board compatible strings added * Hyphen / underscore changes * Remove unnecessary status="okay" entries * Generic names used (regulator, led-1, etc.) Colin Foster (2): dt-bindings: arm: omap: add phytec pcm-049 som and pcm-959 dev board arm: dts: omap4: pcm959: add initial support for phytec pcm959 .../devicetree/bindings/arm/omap/omap.txt | 3 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi | 412 ++++++++++++++++++ arch/arm/boot/dts/omap4-phytec-pcm-959.dts | 48 ++ 4 files changed, 464 insertions(+) create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-959.dts