From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 11 Jun 2022 20:41:26 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o0634-00B8Ok-Jt for lore@lore.pengutronix.de; Sat, 11 Jun 2022 20:41:26 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0632-0002vb-Rs for lore@pengutronix.de; Sat, 11 Jun 2022 20:41:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ezRdzQnA4CPFNeqcCluGdlcUyXRkE3NuyxDJ9tala2Q=; b=fTeXi4jJjXdKfK sn7QdV6kheW5ObOd9u97hnpkQ40BsKewtmVuqlU6kygh+g2q8NuIWqKHIPDUssEe7M/2OW8PdmHtK dCMc3zl0pUpLrx3iGgOEW5F3X/TPZnpvdM1PiAfoalJjbXldFiDGWZszuWjcAbUQqeQKM0CidSsp6 45vaFIb75QklV9HZR50eVFHdEFmrredANxcczELS+8jtFwn9FsBylfJ6UNPBhE8OKgzF+ylRkBxnX 5iemelijz8Sg5rJ1whCC7WiOaTYdXV5amsV7eSXcOJxuRgDSrnwIL4RcTgMkDrxozd4Inz4xVKHb+ MamfIkXz4XPzxtULDDGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o061X-00EA3J-I2; Sat, 11 Jun 2022 18:39:51 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o061S-00EA2K-2D for barebox@lists.infradead.org; Sat, 11 Jun 2022 18:39:48 +0000 Received: by mail-ed1-x52c.google.com with SMTP id v19so2624125edd.4 for ; Sat, 11 Jun 2022 11:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KSY3Do3NZ0L5wa68yBVtA1Ejxy3Gbb3slls8plDiOfA=; b=nGainI/3EXNcO+0OIR7PlHO3+EhUce9jNf+4aAlqXFr1A1jz8POJinlB6LiRFgdELi wMKk1ayP4ToM3X3/O6AqpH4SUDHyn6HlDEkjFhOSdx+2wwWPnvDJAV4onLd1o6agQCfW ZD2rKofJLGd219d/3Lc4GZ+TUKoV2ZrINGFnhu2AnH5MWNrid3+SdBjPs7t7H5OCtcVu SPnxVM+O02lWRsBWBISjl7ztv8mXHAtMtHaw4ZHKAJybwTfTdIDKMpaqQCIoyYy7IpiA +w0D/aH1x2JVp1NOaDP0To14AqX4YU7gsOfhPqUyX7n9j7AKfhfLzwrT8EmEaRcpVTj7 ry/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KSY3Do3NZ0L5wa68yBVtA1Ejxy3Gbb3slls8plDiOfA=; b=VySLT+NmsOkno98JSL9+KkNhpa+0Z4WSbqqSS0dNNOgzwfnsmviNKr1LblpwXPw1cH XPONGlxoaQdmKw0fv/PWHOqOJL8luHbdhXSEaPS51BKCAFhbo7S91142+00bSm6rYSq/ KgVZR6ZTU5c3uQcOZVkwoE7uEFMyCTp1rTkJXg1vd8Uv6Q3lAenPQYXkyQB94BfQidDG scWaGXq5F0dDQMCsJb43nOWozsTbl+XVEJ/7YHuid5o/fYWwmegl6VY1k/qoljxLuSIU 23p9w61s+FPprhtGiGEZrxjZSj2cR6fbpB6X5iKG/zhf65OaTsSxNAovjr+ef7T8+r7H mdWg== X-Gm-Message-State: AOAM532PyBVgJ+iADLCTY3TomM8IhjQZT63ITEzz1B0mameGYJyv7dVb /pFaATgoy+1PGWZ5z2au6l/UWGWymkxcpQ== X-Google-Smtp-Source: ABdhPJw2t+l3kKwty1rgr1ZcYL7Q3Hm7H9tygvExF8fxMaOTdUw8J86rg9DFp+syby/tOfWJQAK3lQ== X-Received: by 2002:a05:6402:350b:b0:42f:d079:647f with SMTP id b11-20020a056402350b00b0042fd079647fmr44280854edd.321.1654972783910; Sat, 11 Jun 2022 11:39:43 -0700 (PDT) Received: from DESKTOP-KJS3OJ9.localdomain (ip-78-45-69-229.net.upcbroadband.cz. [78.45.69.229]) by smtp.gmail.com with ESMTPSA id jt14-20020a170906dfce00b006fe8d8c54a7sm1360551ejc.87.2022.06.11.11.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 11:39:43 -0700 (PDT) From: =?UTF-8?q?Daniel=20Br=C3=A1t?= To: barebox@lists.infradead.org Cc: =?UTF-8?q?Daniel=20Br=C3=A1t?= Date: Sat, 11 Jun 2022 20:39:39 +0200 Message-Id: <20220611183939.16503-1-danek.brat@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220611_113946_171810_CEEFA5F4 X-CRM114-Status: GOOD ( 21.89 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH] ARM: rpi: parse useful data from vc fdt X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) VmlkZW9jb3JlIGZpcnN0LXN0YWdlIGxvYWRlciBvbiBycGkgcGFzc2VzIHVzIG1hbnkgdXNlZnVs IGluZm9ybWF0aW9uCmluc2lkZSB0aGUgdmMgZmR0LCBpbmNsdWRpbmcgdGhlIHJlYWwgdmFsdWUg b2YgUE1fUlNUUyByZWdpc3Rlciwgbm90CmVhc2lseSBhdmFpbGFibGUgYnkgb3RoZXIgbWVhbnMg YW5kIHdoaWNoIHdlIGNhbiB1c2UgdG8gZGV0ZXJtaW5lCnRoZSByZXNldCBjYXVzZS4KQWxzbyBt YWtlIHRoZSByZWxldmFudCBmdW50aW9ucyBpZ25vcmUgbW9zdCBvZiB0aGUgZXJyb3JzIHNpbmNl IHRoZSBmZHQKZnJvbSB2YyBpcyBub3cgb3B0aW9uYWwgZm9yIGJhcmVib3gncyBiYXNpYyBmdW5j dGlvbi4KClNpZ25lZC1vZmYtYnk6IERhbmllbCBCcsOhdCA8ZGFuZWsuYnJhdEBnbWFpbC5jb20+ Ci0t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