随笔分类 -  DT (device tree)

摘要:Platform MSM8917 PM8937 PMI8940 Parameters 1 battery charging voltage : qcom,float voltage mv = ; 2 battery recharge threshold : qcom,resume delta mv 阅读全文
posted @ 2018-05-31 17:47 wangchangruei 阅读(473) 评论(0) 推荐(0) 编辑
摘要:device tree source 的 interrupt names property 會對應到 pltform_get_irq_byname() 的第二個參數。 .dtsi or .dts .c 阅读全文
posted @ 2018-04-22 20:08 wangchangruei 阅读(997) 评论(0) 推荐(0) 编辑
摘要:倘若你要設定 負值的property, 可能需要括符才會 build 過。 正確 decidegc = ; 錯誤 decidegc = ; 阅读全文
posted @ 2018-02-19 11:06 wangchangruei 阅读(232) 评论(0) 推荐(0) 编辑
摘要:Platform Qualcomm MSM8917 or MSM8937 Source kernel/msm 3.18/drivers/power/qpnp smbcharger.c kernel/msm 3.18/arch/arm64/boot/dts/qcom/msm pmi8937.dtsi 阅读全文
posted @ 2017-09-14 14:07 wangchangruei 阅读(292) 评论(0) 推荐(0) 编辑
摘要:reference https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/devicetree/bindings/interrupt controller/interrupts.t 阅读全文
posted @ 2017-08-24 16:47 wangchangruei 阅读(838) 评论(0) 推荐(0) 编辑
摘要:目標 因為對 device tree 不是很熟悉, 所以就將 device tree, 設為學習目標。 啟動 注意, 這篇隨筆的解說都放在最下面,會標 Explanation_XX,只要搜尋 Explanation_XX 往上找,就可以看到 source code 要解說的點, 總之就是多找幾遍,如 阅读全文
posted @ 2017-07-13 19:46 wangchangruei 阅读(7688) 评论(0) 推荐(0) 编辑
摘要:為 device node 取 label name, 可以在其它位置使用 &label 存取 device node。 Ex ./arch/arm/boot/dts/stm32f429.dtsi ./arch/arm/boot/dts/stm32f429 disco.dts 阅读全文
posted @ 2017-06-24 22:37 wangchangruei 阅读(831) 评论(0) 推荐(0) 编辑
摘要:最近在研究 stm32f429i disc0 的 device tree source code, 並且 參造 Devicetree Specification Release 0.1, 在 dts source code 中發現有一個 clock cells property, 但在 dts sp 阅读全文
posted @ 2017-06-21 22:16 wangchangruei 阅读(281) 评论(0) 推荐(0) 编辑
摘要:device tree source Example1 Example2 Example3 阅读全文
posted @ 2017-06-21 15:56 wangchangruei 阅读(612) 评论(0) 推荐(0) 编辑
摘要:device tree source Example1 Example2 Example3 Example4 阅读全文
posted @ 2017-06-19 22:13 wangchangruei 阅读(2552) 评论(0) 推荐(1) 编辑
摘要:也就是 Usage: dtc [options] <input file + I, in format <arg Input formats are: dts device tree source text dtb device tree blob fs /proc/device tre 阅读全文
posted @ 2017-05-14 21:43 wangchangruei 阅读(2465) 评论(0) 推荐(0) 编辑
摘要:This is for Devicetree Specification Release 0.1 Interrupt Mapping Example p19 在講解前,先帶進一些 PCI 的基礎觀念 pci device 的 其中一種 type address 由下方組成 為什麼 硬體要連成這樣子呢 阅读全文
posted @ 2017-04-24 11:42 wangchangruei 阅读(1602) 评论(0) 推荐(0) 编辑