arm: dts: Add device tree for bosch acc board
Subsystems (3)
cover arm: dts: Add device tree for bosch acc board
Add dt and dt binding for bosch acc board, based on i.MX6 Dual.
Philip Oberfichtner (2):
dt-bindings: arm: Add bosch acc board
arm: dts: Add device tree for bosch acc board
.../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-bosch-acc.dts | 1048 +++++++++++++++++ 3 files changed, 1050 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-bosch-acc.dts
Signature · 7 lines
2.34.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/2 dt-bindings: arm: Add bosch acc board
Add device tree binding for the Bosch ACC board, based on i.MX6 Dual.
--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
@@ -192,6 +192,7 @@ properties: items: - enum: - auvidea,h100 # Auvidea H100 + - bosch,imx6q-acc # Bosch ACC i.MX6 Dual - boundary,imx6q-nitrogen6_max - boundary,imx6q-nitrogen6_som2 - boundary,imx6q-nitrogen6x
Signature · 7 lines
2.34.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 1/2] dt-bindings: arm: Add bosch acc board
Quoted 7 lines · Philip Oberfichtner
Add device tree binding for the Bosch ACC board, based on i.MX6 Dual.
Signed-off-by Philip Oberfichtner <[email protected]>--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 2/2 arm: dts: Add device tree for bosch acc board
In reply to Philip OberfichtnerAdd device tree for the Bosch ACC board, based on i.MX6 Dual.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-bosch-acc.dts | 1048 +++++++++++++++++++++++++ 2 files changed, 1049 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-bosch-acc.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -547,6 +547,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-b450v3.dtb \ imx6q-b650v3.dtb \ imx6q-b850v3.dtb \ + imx6q-bosch-acc.dtb \ imx6q-cm-fx6.dtb \ imx6q-cubox-i.dtb \ imx6q-cubox-i-emmc-som-v15.dtb \
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +1048 -0
1,048 lines not on this page · raw message
Signature · 7 lines
2.34.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Krzysztof Kozlowski
maintainerQuoted 2 lines · Philip Oberfichtner
Add device tree for the Bosch ACC board, based on i.MX6 Dual.
Thank you for your patch. There is something to discuss/improve.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 34
Quoted 4 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +4
-0+ }; + + backlight { + status = "okay";
Are you overriding any node? Looks like not, so status is not needed.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 47
Quoted 13 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +13
-0+ + compatible = "pwm-backlight"; + /* The last value is the PWM period in nano-seconds! + * -> 5 kHz = 200 µS = 200.000 ns + */ + pwms = <&pwm1 0 200000>; + brightness-levels = <0 61 499 1706 4079 8022 13938 22237 33328 47623 65535>; + num-interpolated-steps = <10>; + default-brightness-level = <60>; + power-supply = <®_lcd0_pwr>; + }; + + usb3503_refclk: usb3503_refclk {
hyphens in node names, not underscores. Node names should be generic, but if you need a specific prefix, it's ok.
Quoted 11 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +11
-0+ compatible = "fixed-factor-clock"; + #clock-cells = <0>; + + clocks = <&clks IMX6QDL_CLK_CKO2>; + clock-div = <1>; + clock-mult = <1>; + clock-output-names = "12mhz_refclk"; + + assigned-clocks = <&clks IMX6QDL_CLK_CKO>, + <&clks IMX6QDL_CLK_CKO2>, + <&clks IMX6QDL_CLK_CKO2_SEL>;
arch/arm/boot/dts/imx6q-bosch-acc.dts line 68
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ assigned-clock-parents = <&clks IMX6QDL_CLK_CKO2>, + <&clks IMX6QDL_CLK_CKO2_PODF>, + <&clks IMX6QDL_CLK_OSC>; + assigned-clock-rates = <0>, <12000000>, <0>; + }; + + cpus { + /* Override operating points with board-specific values */ + cpu0: cpu@0 { + operating-points = <
Anything blocking from using OPP v2 bindings?
arch/arm/boot/dts/imx6q-bosch-acc.dts line 76
Quoted 8 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +8
-0+ /* kHz uV */ + 1200000 1275000 + 996000 1225000 + 852000 1225000 + 792000 1150000 + 396000 950000 + >; + fsl,soc-operating-points = <
This seems undocumented and actually - why do you need it if you have generic operating points?
Quoted 23 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +23
-0+ /* ARM kHz SOC-PU uV */ + 1200000 1225000 + 996000 1175000 + 852000 1175000 + 792000 1150000 + 396000 1150000 + >; + }; + + cpu1: cpu@1 { + operating-points = < + /* kHz uV */ + 1200000 1275000 + 996000 1225000 + 852000 1225000 + 792000 1150000 + 396000 950000 + >; + fsl,soc-operating-points = < + /* ARM kHz SOC-PU uV */ + 1200000 1225000 + 996000 1175000 + 852000 1175000
arch/arm/boot/dts/imx6q-bosch-acc.dts line 109
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ 792000 1150000 + 396000 1150000 + >; + }; + }; + + leds { + compatible = "pwm-leds"; + + led_red: red {
Generic node names, so led-0.
Add common properties for color and function.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 116
Quoted 7 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +7
-0+ label = "red"; + max-brightness = <248>; + default-state = "off"; + pwms = <&pwm2 0 500000>; + }; + + led_white: white {
The same.
Quoted 6 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +6
-0+ label = "white"; + max-brightness = <248>; + default-state = "off"; + pwms = <&pwm3 0 500000>; + linux,default-trigger = "heartbeat"; + };
arch/arm/boot/dts/imx6q-bosch-acc.dts line 132
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ }; + + memory { + reg = <0x10000000 0x40000000>; + }; + + regulators: regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>;
This should not be a bus. Instead "regulator-0" and so on.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 136
Quoted 4 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +4
-0+ + supply_5P0: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>;
Please run make dtbs_check (see Docs for this) and fix the warnings. Please fix automated check warnings before using reviewers time.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 140
Quoted 4 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +4
-0+ regulator-name = "5P0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on;
Why do you need it? There is no control here, it's only used as a supply for other uncontrollable regulators (unless I missed something).
Quoted 53 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +53
-0+ }; + + supply_VIN: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "VIN"; + regulator-min-microvolt = <4500000>; + regulator-max-microvolt = <4500000>; + regulator-always-on; + vin-supply = <&supply_5P0>; + }; + + reg_usb_otg_vbus: regulator@2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + reg_usb_h1_vbus: regulator@3 { + compatible = "regulator-fixed"; + reg = <3>; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + vin-supply = <&supply_5P0>; + }; + + supply_VSNVS_3V0: regulator@4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "VSNVS_3V0"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + vin-supply = <&supply_5P0>; + }; + + reg_lcd0_pwr: regulator-lcd0-pwr { + compatible = "regulator-fixed"; + regulator-name = "LCD0 POWER"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_enable>; + gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; + + reg_usb_h2_vbus: regulator@6 {
arch/arm/boot/dts/imx6q-bosch-acc.dts line 203
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ compatible = "regulator-fixed"; + reg = <6>; + regulator-name = "usb_h2_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&supply_5P0> ; + regulator-always-on; + }; + + supply_vref_dac: vref_dac {
1. No underscores in node names.
2. Did you compile dts with W=1 and fixed warnings?
Quoted 70 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +70
-0+ compatible = "regulator-fixed"; + regulator-name = "vref_dac"; + regulator-min-microvolt = <20000>; + regulator-max-microvolt = <20000>; + vin-supply = <&supply_5P0> ; + regulator-boot-on; + }; + }; + + reset_gpio_led { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reset_gpio_led>; + + reset { + label = "red_reset"; + gpios = <&gpio5 18 0>; + default-state = "off"; + }; + }; + + soc { + aips1: bus@2000000 {}; + }; +}; + +®_arm { + vin-supply = <&pmic_sw2>; +}; + +®_soc { + vin-supply = <&pmic_sw1abc>; +}; + +®_vdd1p1 { + vin-supply = <&supply_VSNVS_3V0>; +}; + +®_vdd2p5 { + vin-supply = <&supply_VSNVS_3V0>; +}; + +®_vdd3p0 { + vin-supply = <&supply_VSNVS_3V0>; +}; + +&audmux { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_audmux>; + status = "okay"; +}; + +&fec { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet>; + status = "okay"; + + clocks = <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET_REF>; + clock-names = "ipg", "ahb", "ptp", "enet_out"; + phy-mode = "rmii"; + phy-supply = <&supply_sw4_3V3>; + phy-handle = <ðphy>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethphy: ethernet-phy@0 {
arch/arm/boot/dts/imx6q-bosch-acc.dts line 283
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; + smsc,disable-energy-detect; + }; + }; +}; + +
No need for two blank lines.
Quoted 14 lines
+&gpu_vg {
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +13
-0+ status = "disabled"; +}; + +&gpu_2d { + status = "disabled"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + clock-frequency = <400000>; + status = "okay"; +
arch/arm/boot/dts/imx6q-bosch-acc.dts line 307
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ eeprom: eeprom@50 { + compatible = "atmel,24c32"; + reg = <0x50>; + pagesize = <32>; + bytelen = <4096>; + bus-id = <0>; + flags = <0x80>; /* AT24_FLAG_ADDR16 */ + }; + + lm75: lm75@49 {
Generic node name.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 318
Quoted 11 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +11
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lm75>; + + compatible = "national,lm75b"; + reg = <0x49>; + + interrupts = <7 0x4>; + interrupt-parent = <&gpio4>; + }; + + pmic: pfuze100@8 {
pmic, not pfuze
arch/arm/boot/dts/imx6q-bosch-acc.dts line 321
Quoted 3 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +3
-0+ compatible = "fsl,pfuze100"; + reg = <0x08>; + uboot,bootcounter;
Do not add undocumented properties. Please check all entire DTS for such undocumented stuff.
Quoted 29 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +29
-0+ + VGEN1-supply = <&supply_AUX_3V15>; + VGEN2-supply = <&supply_AUX_3V15>; + VGEN3-supply = <&supply_sw4_3V3>; + VGEN4-supply = <&supply_sw4_3V3>; + VGEN5-supply = <&supply_SYS_4V2>; + VGEN6-supply = <&supply_SYS_4V2>; + + VREFDDR-supply = <&supply_DDR_1V5>; + + SW1AB-supply = <&supply_SYS_4V2>; + SW1C-supply = <&supply_SYS_4V2>; + SW2-supply = <&supply_SYS_4V2>; + SW3A-supply = <&supply_SYS_4V2>; + SW3B-supply = <&supply_SYS_4V2>; + SW4-supply = <&supply_SYS_4V2>; + + regulators { + /* + * VDD_CORE is connected to SW1 ABC + * We need to define sw1ab and sw1c, but later it is controlled solely with + * sw1c and therefore only this is named "VDD_SOC". + * See PMIC datasheet Rev. 18, chapter 6.4.4.3.1: "The feedback and all + * other controls are accomplished by use of pin SW1CFB and SW1C control + * registers, respectively." + * Setting min and max according to SOC datasheet + */ + pmic_sw1abc: sw1c { + regulator-name = "VDD_SOC (sw1abc)";
arch/arm/boot/dts/imx6q-bosch-acc.dts line 360
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ regulator-min-microvolt = <1275000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + + default-voltage = <1300000>; + }; + + pmic_sw2: sw2{
Missing space.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 362
Quoted 2 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +2
-0+ regulator-name = "VDD_ARM (sw2)"; +
Why blank line here and not in other places?
Quoted 105 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +105
-0+ regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + + default-voltage = <1300000>; + }; + + pmic_sw3a: sw3a { + /* U-Boot sets correct voltage, shall not be touched by the OS */ + compatible = "regulator-fixed"; + regulator-name = "DDR_1V5a"; + regulator-boot-on; + regulator-always-on; + + }; + + supply_DDR_1V5: sw3b { + /* U-Boot sets correct voltage, shall not be touched by the OS */ + compatible = "regulator-fixed"; + regulator-name = "DDR_1V5b"; + regulator-boot-on; + regulator-always-on; + + }; + + supply_AUX_3V15: sw4 { + regulator-name = "AUX 3V15 (sw4)"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + + default-voltage = <3150000>; + + }; + + swbst_reg: swbst { + status = "disabled"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5150000>; + regulator-boot-on; + regulator-always-on; + + }; + + snvs_reg: vsnvs { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + + default-voltage = <3000000>; + }; + + vref_reg: vrefddr { + regulator-boot-on; + regulator-always-on; + + default-voltage = <675000>; + }; + + vgen1_reg: vgen1 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + regulator-always-on; + + default-voltage = <1500000>; + }; + + vgen2_reg: vgen2 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + regulator-always-on; + + default-voltage = <1200000>; + }; + + vgen3_reg: vgen3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + + default-voltage = <2500000>; + }; + + vgen4_reg: vgen4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + + default-voltage = <1800000>; + }; + + vgen5_reg: vgen5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + + default-voltage = <2800000>; + }; + + vgen6_reg: vgen6 { + regulator-min-microvolt = <1800000>;
arch/arm/boot/dts/imx6q-bosch-acc.dts line 477
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ regulator-max-microvolt = <3300000>; + regulator-always-on; + + default-voltage = <2800000>; + }; + + }; + }; + + rtc: rtcpcf8563@51 {
Generic node names.
Quoted 5 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +5
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + + compatible = "nxp,pcf8563"; + reg = <0x51>;
arch/arm/boot/dts/imx6q-bosch-acc.dts line 492
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ }; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + clock-frequency = <100000>; + status = "okay"; + + adc101c: ac101c@54 {
Ugh...
Quoted 5 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +5
-0+ compatible = "ti,adc101c"; + reg = <0x54>; + status = "okay"; + vref-supply = <&supply_vref_dac>; + vcc-supply = <&supply_vref_dac>;
arch/arm/boot/dts/imx6q-bosch-acc.dts line 507
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ }; + + ad5602: ad5602@c { + compatible = "adi,ad5602"; + reg = <0x0c>; + status = "okay"; + vcc-supply = <&supply_vref_dac>; + }; + + eeprom_ext: eeprom_ext@50 {
Generic node names, no underscores in node names.
OK, I'll stop for now. :)
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 5 lines · Krzysztof Kozlowski
Quoted 2 lines · Philip Oberfichtner
Add device tree for the Bosch ACC board, based on i.MX6 Dual.
Thank you for your patch. There is something to discuss/improve.
Hi Krzysztof,
thank you for the feedback. I will fix most of your comments in V2, but there are open questions left:
Quoted 51 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts line 34
Quoted 5 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +4
-0+ }; + + backlight { + status = "okay";Are you overriding any node? Looks like not, so status is not needed.
Quoted 8 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +7
-0+ + compatible = "pwm-backlight"; + /* The last value is the PWM period in nano-seconds! + * -> 5 kHz = 200 µS = 200.000 ns + */ + pwms = <&pwm1 0 200000>; + brightness-levels = <0 61 499 1706 4079 8022 1393822237 33328 47623 65535>;
arch/arm/boot/dts/imx6q-bosch-acc.dts line 47
Quoted 6 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +6
-0+ num-interpolated-steps = <10>; + default-brightness-level = <60>; + power-supply = <®_lcd0_pwr>; + }; + + usb3503_refclk: usb3503_refclk {hyphens in node names, not underscores. Node names should be generic, but if you need a specific prefix, it's ok.
Quoted 20 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +19
-0+ compatible = "fixed-factor-clock"; + #clock-cells = <0>; + + clocks = <&clks IMX6QDL_CLK_CKO2>; + clock-div = <1>; + clock-mult = <1>; + clock-output-names = "12mhz_refclk"; + + assigned-clocks = <&clks IMX6QDL_CLK_CKO>, + <&clks IMX6QDL_CLK_CKO2>, + <&clks IMX6QDL_CLK_CKO2_SEL>; + assigned-clock-parents = <&clks IMX6QDL_CLK_CKO2>, + <&clks IMX6QDL_CLK_CKO2_PODF>, + <&clks IMX6QDL_CLK_OSC>; + assigned-clock-rates = <0>, <12000000>, <0>; + }; + + cpus { + /* Override operating points with board-specific values*/
Review
Quoted 2 lines
(quoted diff) +2
-0+ cpu0: cpu@0 { + operating-points = <Anything blocking from using OPP v2 bindings?
Quoted 11 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts line 76
Quoted 8 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +8
-0+ /* kHz uV */ + 1200000 1275000 + 996000 1225000 + 852000 1225000 + 792000 1150000 + 396000 950000 + >; + fsl,soc-operating-points = <This seems undocumented and actually - why do you need it if you have generic operating points?
The "operating-points" and "fsl,soc-operating-points" properties are defined in imx6q.dtsi. We are just overwriting them here.
Quoted 68 lines
Quoted 24 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +23
-0+ /* ARM kHz SOC-PU uV */ + 1200000 1225000 + 996000 1175000 + 852000 1175000 + 792000 1150000 + 396000 1150000 + >; + }; + + cpu1: cpu@1 { + operating-points = < + /* kHz uV */ + 1200000 1275000 + 996000 1225000 + 852000 1225000 + 792000 1150000 + 396000 950000 + >; + fsl,soc-operating-points = < + /* ARM kHz SOC-PU uV */ + 1200000 1225000 + 996000 1175000 + 852000 1175000arch/arm/boot/dts/imx6q-bosch-acc.dts line 109
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ 792000 1150000 + 396000 1150000 + >; + }; + }; + + leds { + compatible = "pwm-leds"; + + led_red: red {Generic node names, so led-0.
Add common properties for color and function.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 116
Quoted 7 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +7
-0+ label = "red"; + max-brightness = <248>; + default-state = "off"; + pwms = <&pwm2 0 500000>; + }; + + led_white: white {The same.
Quoted 6 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +6
-0+ label = "white"; + max-brightness = <248>; + default-state = "off"; + pwms = <&pwm3 0 500000>; + linux,default-trigger = "heartbeat"; + };arch/arm/boot/dts/imx6q-bosch-acc.dts line 132
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ }; + + memory { + reg = <0x10000000 0x40000000>; + }; + + regulators: regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>;This should not be a bus. Instead "regulator-0" and so on.
Quoted 8 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts line 136
Quoted 4 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +4
-0+ + supply_5P0: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>;Please run
make dtbs_check(see Docs for this) and fix the warnings.
Please fix automated check warnings before using reviewers time.
I built with W=1 and used checkpatch.pl. But I'm having trouble using make dtbs_check. Seems like I get all warnings for all possible dts. Is there a way to get warnings for a single dt only?
Best regards,
Philip Oberfichtner
Quoted 423 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts line 140
Quoted 5 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +4
-0+ regulator-name = "5P0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on;Why do you need it? There is no control here, it's only used as a supply
for other uncontrollable regulators (unless I missed something).Quoted 53 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +53
-0+ }; + + supply_VIN: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "VIN"; + regulator-min-microvolt = <4500000>; + regulator-max-microvolt = <4500000>; + regulator-always-on; + vin-supply = <&supply_5P0>; + }; + + reg_usb_otg_vbus: regulator@2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + reg_usb_h1_vbus: regulator@3 { + compatible = "regulator-fixed"; + reg = <3>; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + vin-supply = <&supply_5P0>; + }; + + supply_VSNVS_3V0: regulator@4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "VSNVS_3V0"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + vin-supply = <&supply_5P0>; + }; + + reg_lcd0_pwr: regulator-lcd0-pwr { + compatible = "regulator-fixed"; + regulator-name = "LCD0 POWER"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_enable>; + gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; + + reg_usb_h2_vbus: regulator@6 {arch/arm/boot/dts/imx6q-bosch-acc.dts line 203
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ compatible = "regulator-fixed"; + reg = <6>; + regulator-name = "usb_h2_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&supply_5P0> ; + regulator-always-on; + }; + + supply_vref_dac: vref_dac {1. No underscores in node names.
2. Did you compile dts with W=1 and fixed warnings?Quoted 70 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +70
-0+ compatible = "regulator-fixed"; + regulator-name = "vref_dac"; + regulator-min-microvolt = <20000>; + regulator-max-microvolt = <20000>; + vin-supply = <&supply_5P0> ; + regulator-boot-on; + }; + }; + + reset_gpio_led { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reset_gpio_led>; + + reset { + label = "red_reset"; + gpios = <&gpio5 18 0>; + default-state = "off"; + }; + }; + + soc { + aips1: bus@2000000 {}; + }; +}; + +®_arm { + vin-supply = <&pmic_sw2>; +}; + +®_soc { + vin-supply = <&pmic_sw1abc>; +}; + +®_vdd1p1 { + vin-supply = <&supply_VSNVS_3V0>; +}; + +®_vdd2p5 { + vin-supply = <&supply_VSNVS_3V0>; +}; + +®_vdd3p0 { + vin-supply = <&supply_VSNVS_3V0>; +}; + +&audmux { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_audmux>; + status = "okay"; +}; + +&fec { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet>; + status = "okay"; + + clocks = <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET_REF>; + clock-names = "ipg", "ahb", "ptp", "enet_out"; + phy-mode = "rmii"; + phy-supply = <&supply_sw4_3V3>; + phy-handle = <ðphy>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + ethphy: ethernet-phy@0 {arch/arm/boot/dts/imx6q-bosch-acc.dts line 283
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; + smsc,disable-energy-detect; + }; + }; +}; + +No need for two blank lines.
Quoted 14 lines
+&gpu_vg {
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +13
-0+ status = "disabled"; +}; + +&gpu_2d { + status = "disabled"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + clock-frequency = <400000>; + status = "okay"; +arch/arm/boot/dts/imx6q-bosch-acc.dts line 307
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ eeprom: eeprom@50 { + compatible = "atmel,24c32"; + reg = <0x50>; + pagesize = <32>; + bytelen = <4096>; + bus-id = <0>; + flags = <0x80>; /* AT24_FLAG_ADDR16 */ + }; + + lm75: lm75@49 {Generic node name.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 318
Quoted 11 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +11
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lm75>; + + compatible = "national,lm75b"; + reg = <0x49>; + + interrupts = <7 0x4>; + interrupt-parent = <&gpio4>; + }; + + pmic: pfuze100@8 {pmic, not pfuze
arch/arm/boot/dts/imx6q-bosch-acc.dts line 321
Quoted 3 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +3
-0+ compatible = "fsl,pfuze100"; + reg = <0x08>; + uboot,bootcounter;Do not add undocumented properties. Please check all entire DTS for such
undocumented stuff.Quoted 34 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +21
-0+ + VGEN1-supply = <&supply_AUX_3V15>; + VGEN2-supply = <&supply_AUX_3V15>; + VGEN3-supply = <&supply_sw4_3V3>; + VGEN4-supply = <&supply_sw4_3V3>; + VGEN5-supply = <&supply_SYS_4V2>; + VGEN6-supply = <&supply_SYS_4V2>; + + VREFDDR-supply = <&supply_DDR_1V5>; + + SW1AB-supply = <&supply_SYS_4V2>; + SW1C-supply = <&supply_SYS_4V2>; + SW2-supply = <&supply_SYS_4V2>; + SW3A-supply = <&supply_SYS_4V2>; + SW3B-supply = <&supply_SYS_4V2>; + SW4-supply = <&supply_SYS_4V2>; + + regulators { + /* + * VDD_CORE is connected to SW1 ABC + * We need to define sw1ab and sw1c, but laterit is controlled solely with
(quoted diff) +1
-0+ * sw1c and therefore only this is named"
VDD_SOC".(quoted diff) +1
-0+ * See PMIC datasheet Rev. 18, chapter6.4.4.3.1: "The feedback and all
(quoted diff) +1
-0+ * other controls are accomplished by use ofpin SW1CFB and SW1C control
(quoted diff) +2
-0+ * registers, respectively." + * Setting min and max according to SOCdatasheet
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +3
-0+ */ + pmic_sw1abc: sw1c { + regulator-name = "VDD_SOC (sw1abc)";arch/arm/boot/dts/imx6q-bosch-acc.dts line 360
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ regulator-min-microvolt = <1275000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + + default-voltage = <1300000>; + }; + + pmic_sw2: sw2{Missing space.
arch/arm/boot/dts/imx6q-bosch-acc.dts line 362
Quoted 2 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +2
-0+ regulator-name = "VDD_ARM (sw2)"; +Why blank line here and not in other places?
Quoted 107 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +11
-0+ regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + + default-voltage = <1300000>; + }; + + pmic_sw3a: sw3a { + /* U-Boot sets correct voltage, shallnot be touched by the OS */
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +9
-0+ compatible = "regulator-fixed"; + regulator-name = "DDR_1V5a"; + regulator-boot-on; + regulator-always-on; + + }; + + supply_DDR_1V5: sw3b { + /* U-Boot sets correct voltage, shallnot be touched by the OS */
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +85
-0+ compatible = "regulator-fixed"; + regulator-name = "DDR_1V5b"; + regulator-boot-on; + regulator-always-on; + + }; + + supply_AUX_3V15: sw4 { + regulator-name = "AUX 3V15 (sw4)"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + + default-voltage = <3150000>; + + }; + + swbst_reg: swbst { + status = "disabled"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5150000>; + regulator-boot-on; + regulator-always-on; + + }; + + snvs_reg: vsnvs { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + + default-voltage = <3000000>; + }; + + vref_reg: vrefddr { + regulator-boot-on; + regulator-always-on; + + default-voltage = <675000>; + }; + + vgen1_reg: vgen1 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + regulator-always-on; + + default-voltage = <1500000>; + }; + + vgen2_reg: vgen2 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + regulator-always-on; + + default-voltage = <1200000>; + }; + + vgen3_reg: vgen3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + + default-voltage = <2500000>; + }; + + vgen4_reg: vgen4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + + default-voltage = <1800000>; + }; + + vgen5_reg: vgen5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + + default-voltage = <2800000>; + }; + + vgen6_reg: vgen6 { + regulator-min-microvolt = <1800000>;arch/arm/boot/dts/imx6q-bosch-acc.dts line 477
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ regulator-max-microvolt = <3300000>; + regulator-always-on; + + default-voltage = <2800000>; + }; + + }; + }; + + rtc: rtcpcf8563@51 {Generic node names.
Quoted 5 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +5
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + + compatible = "nxp,pcf8563"; + reg = <0x51>;arch/arm/boot/dts/imx6q-bosch-acc.dts line 492
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ }; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + clock-frequency = <100000>; + status = "okay"; + + adc101c: ac101c@54 {Ugh...
Quoted 5 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +5
-0+ compatible = "ti,adc101c"; + reg = <0x54>; + status = "okay"; + vref-supply = <&supply_vref_dac>; + vcc-supply = <&supply_vref_dac>;arch/arm/boot/dts/imx6q-bosch-acc.dts line 507
Quoted 10 lines
arch/arm/boot/dts/imx6q-bosch-acc.dts new file +10
-0+ }; + + ad5602: ad5602@c { + compatible = "adi,ad5602"; + reg = <0x0c>; + status = "okay"; + vcc-supply = <&supply_vref_dac>; + }; + + eeprom_ext: eeprom_ext@50 {Generic node names, no underscores in node names.
OK, I'll stop for now. :)
Best regards,
Krzysztof
Krzysztof Kozlowski
maintainerQuoted 3 lines · Philip Oberfichtner
The "operating-points" and "fsl,soc-operating-points" properties are defined in
imx6q.dtsi. We are just overwriting them here.
OK, thanks for explanation.
(...)
Quoted 7 lines
Quoted 3 lines
Please run
make dtbs_check(see Docs for this) and fix the warnings.
Please fix automated check warnings before using reviewers time.I built with W=1 and used checkpatch.pl. But I'm having trouble using make
dtbs_check. Seems like I get all warnings for all possible dts. Is there a way to get warnings for a single dt only?
I think no, it is not possible at the moment. I understand it's a pain and already someone proposed to have a ability to check only subset of DTS files.
Workaround is to build imx defconfig, run dtbs_check, touch your files and run dtbs_check again looking for results.
Best regards,
Krzysztof
Krzysztof Kozlowski
maintainerQuoted 9 lines · Philip Oberfichtner
Add device tree for the Bosch ACC board, based on i.MX6 Dual.
Signed-off-by Philip Oberfichtner <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-bosch-acc.dts | 1048 +++++++++++++++++++++++++ 2 files changed, 1049 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-bosch-acc.dts
One more point - wrong subject prefix.
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel